Portal 2

Portal 2

Community maps. For science.
Welcome to Aperture Laboratories, home of the Perpetual Testing Initiative. Easily create, share and play test chambers authored by and for the Portal 2 community. Do your part! Contribute to Science!
Learn More
[TIN] 13 22 Feb, 2023 @ 4:25am
hammer map not loading
i tried opening a map that i started in hammer a few days ago and almost finished, and it keeps getting stuck at 5% and it doesn't respond anymore, before i closed the map, when it was still working, i tried running the map, but after it said "gpu_level doesn't point to an existing ConVar", it just stopped, it got stuck and didn't get past that, and when i restarted it it just didn't load anymore.

is it like, corrupted? or is there just an entity that might cause this?

if it's cuz entities, i have 5 world portals, each with 2 linked_portal_door entities, so a total of 10 linked portal_door_entities, is it too much for hammer to handle?

and also, the last thing i added after the last build that actually worked was a vgui_movie_display, and a trigger_once with the output OnStartTouch, Display, to actually trigger the video
< >
Showing 1-11 of 11 comments
Rooke 39 22 Feb, 2023 @ 9:06am 
I'm not absolutely sure, but it seems you have too many linked portal door entries. Here's the warning from Valve's developer wiki:

Warning: By default, there is a limit of 4 portals visible on-screen, not counting portals seen through other portals. Since this includes the player's portals, you are essentially limited to 2 world portals in singleplayer, and none in Co-op. Setting the console variable r_portal_fastpath 0 at the start of the map will remove this limit, though having many portals visible at once will still degrade performance.

And here's a link to the page itself:
https://developer.valvesoftware.com/wiki/Linked_portal_door

As for the vgui_movie_display, I've used it in one of my maps and had no problem with it.
Last edited by Rooke; 22 Feb, 2023 @ 9:06am
[TIN] 13 22 Feb, 2023 @ 11:04am 
hi again rooke, so i deleted all of the linked_portal_door entities from the .vmf file, i can add them back once the map will open, if it will open, because it is still not opening after deleting them, i don't know what else can cause this
Rooke 39 22 Feb, 2023 @ 12:02pm 
To see if the problem might be Hammer, could you try to open your 1st Hammer map that you published, and see if it opens in Hammer?

If it won't, verify the local game files for the Portal 2 Authoring Tools...

Library > include Tools along with games to see the entry for Portal 2 Authoring Tools

After you verify that, then verify the Portal 2 files.
Last edited by Rooke; 22 Feb, 2023 @ 12:13pm
[TIN] 13 22 Feb, 2023 @ 1:46pm 
i already tried opening my other map, it works perfectly, the problem is the map, not hammer, even though i wish the problem was hammer because that would've been a much easier fix
Rooke 39 22 Feb, 2023 @ 3:03pm 
Do you have any entities in the void - outside your sealed chambers? Or brushes with invalid planes? Leaks?

That's all I can think of.
[TIN] 13 23 Feb, 2023 @ 1:11am 
If there were entities in the void, or any leaks, hammer would've normally just warned me about it instead of blowing up, so i don't think it's any sort of leak

About invalid planes, idk what can cause an invalid brush, and how i can tell if there are any just by looking in the .vmf file

So what i'm gonna try for now is, make a copy of my map, remove entities, one by one, and everytime, try to open the map, and if it finally opens, that means that probably the problem is the last entity i deleted

If the map still doesn't open after i delete all of the entities, then it might be one of those invalid brushes
Last edited by [TIN]; 23 Feb, 2023 @ 1:12am
split the map into two seperate halfs, whichever one crashes; go into that one and split it into another two halfs and keep going until you can find the source.
then go back to the original and remove the broken part
[TIN] 13 23 Feb, 2023 @ 2:30am 
Thanks that's a much faster and efficient way than just removing each one
[TIN] 13 23 Feb, 2023 @ 6:03am 
alright so i found the culprit, stupid game_text, next time i'll be careful using text because it might brick my whole level again

here's the entity, if anybody wants to figure out why it broke my level

entity
{
"id" "86736"
"classname" "game_text"
"channel" "4"
"color" "39 167 216"
"color2" "39 167 216"
"effect" "0"
"fadein" "0.2"
"fadeout" "1"
"fxtime" "0.25"
"holdtime" "5"
"message" "look at this cool stretched trailer of this game that you "haven't played""
"spawnflags" "0"
"targetname" "question"
"x" "-1"
"y" "-1"
"origin" "1544 -128 9"
editor
{
"color" "220 30 220"
"visgroupshown" "1"
"visgroupautoshown" "1"
"logicalpos" "[0 9500]"
}
}
Rooke 39 23 Feb, 2023 @ 9:23am 
probably the embedded quotes in the message. replacing those with apostrophes ( ' ) might work
[TIN] 13 23 Feb, 2023 @ 10:44am 
yeah i guess, in hammer it looks fine, but looking in the vmf file you can easily see that hammer probably just thinks it's part of the code
< >
Showing 1-11 of 11 comments
Per page: 1530 50