Posts
11
Respect
Forum Rank
Legless Crawler
Primary Group
Member
Login Issues
Forgot password?Activate Issues
Account activation email not received? Wrong account activation email used?Other Problems?
Contact Support - Help Center Get help on the UGX Discord. Join it now!Benevolent Soul who has our eternal gratitude and exclusive access to betas and the donator section of the forum. |
I am getting a weird error message in my console after I build my map.For some reason it looks like level.flag isn't initialized, but I don't know how this would be possible considered that it should be initialized within the official scripts, as opposed to my own. I assume this means thatConsole Text******* script runtime error *******
undefined is not an array, string, or vector: (file 'common_scripts/utility.gsc', line 463)
while( !level.flag )
*
Error: called from:
(file 'maps/_zombiemode_firstroom_sealer.gsc', line 92)
flag_wait("all_players_connected");
*
Error: called from:
(file 'maps/_zombiemode_firstroom_sealer.gsc', line 7)
thread sealDoors();
*
Error: called from:
(file 'maps/house.gsc', line 122)
maps\_zombiemode_firstroom_sealer::main(); // inits first room challenge
*
Error: started from:
(file 'maps/house.gsc', line 9)
main()
*[close]
is never called for some reason. I am trying to revive an old map of mine so I am a little rusty.
Try to run it without developer
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
I have seen the same suggestion on other posts, but I don't really think that fixes that problem (more like just ignoring it). If possible I would really like to find out what is causing the problem and fixing it, so that I don't have to leave developer mode to further develop my map.
It shouldn't be happening on a new script placer map.
//
That error comes from using a command like
flag_wait "all_players_connected" before
flag_init "all_players_connected"
If you have developer 1, developer_script 1, and logfile it should tell you the exact file and line the flag is called from.
Has shown effort and knowledge in the area of scripting while being a part of the UGX-Mods community. |
All of my scripts that use flag_wait have:
Where would I call flag_init "all_players_connected". I would assume the system would do this because I assume that the system is the one that sets the all_players_connected flag when the game starts.
I think I see the problem.
Go to maps/house.gsc and scroll down to line 122.
There you will see this:
I think that should be placed under this: