Bug with trigger_levelchange Created 10 months ago2023-05-26 06:31:24 UTC by EPLSOFF EPLSOFF

Created 10 months ago2023-05-26 06:31:24 UTC by EPLSOFF EPLSOFF

Posted 10 months ago2023-05-26 06:31:25 UTC Post #347554
Please help!

The level does not change on the second map to the third after passing the first map.
But if you load second map from the console, level change works fine!

Video:
Showing the bug
Posted 10 months ago2023-05-26 09:01:14 UTC Post #347555
Are you running the map from the editor? That may cause issues with changelevel.
Try starting the game on its own and load the map from there if you haven't already tried that.
Posted 10 months ago2023-05-26 09:10:21 UTC Post #347556
In the game this bug appears too.
Posted 10 months ago2023-05-26 10:14:48 UTC Post #347558
It's tricky to tell without seeing the map files, but if completing the first map kills the transition in the second map, this suggests to me that there is some duplication with the names or something. Also, does the transition from map2 back to map3 work? Likewise does the transition from map2 back to map1 work? It could also be that the trigger to the previous level is too close to your start point when changing level, and is being disabled to prevent an infinite loop.

Some further testing:
  • Can you complete map1 and change to map2 via the trigger? - Yes
  • Can you return to map1 from map2 via the trigger? ?
  • Can you complete map2 and change to map3 via the trigger? - Yes
  • Can you return to map2 from map3 via the trigger? ?
monster_urby monster_urbyGoldsourcerer
Posted 10 months ago2023-05-26 11:41:55 UTC Post #347559
I tested a little bit and find out that:

After you go into map2 from map1, you cant return, same bug.
If you load on map2 from console, and return to map1 (which you can), you cant go to map2 from map1
And for some reason, after i moved triggers a little bit on map2 and map3, when you load on map2 and go to map3, game just crashes.

I would like to mention that i use Spirit Of Half-Life 1.8, but this bug was even before i start using sohl1.8

Link to rmfs (Google Drive)
(The only thing that this maps uses from sohl1.8 is giving a player suit at the start, so maps works well in vanilla hl)
Posted 10 months ago2023-05-26 15:09:26 UTC Post #347560
I can take a look at the RMFs tonight, but that does sound like your trigger_changelevels might be too close to one another between maps. I'll take a look and let you know what I find unless somebody beats me to it :D
monster_urby monster_urbyGoldsourcerer
Posted 10 months ago2023-05-26 16:44:30 UTC Post #347561
Thanks!

UPD. I fixed it! Problem was like you said, trigger_changelevels were too close to one another between maps.
Posted 10 months ago2023-05-26 21:15:43 UTC Post #347563
Ah nice. Just got to my desk and saved me a job. Glad that's fixed. :D
monster_urby monster_urbyGoldsourcerer
You must be logged in to post a response.