Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: buttkicker845 on January 02, 2016, 03:12:16 am
Title: problems opening menu file
Post by: buttkicker845 on January 02, 2016, 03:12:16 am
im trying to open a menu file once each player is spawned that will allow them to pick specific weapons to be spawned with. but the menu file will not open. this is what i have the rest of the function runs perfectly fine but the menu file never opens. and i dont get any errors about not prechaching the menu file or not including it in a fastfile does anyone know why it not opening?
Title: Re: problems opening menu file
Post by: JBird632 on January 02, 2016, 03:19:19 am
Do you have a menu file in raw\ui\scriptmenus called test_menu.menu ? Also do you have a csv file that contains the line: And finally do you have the file precached before _zombiemode.gsc is called using the line:
Title: Re: problems opening menu file
Post by: buttkicker845 on January 02, 2016, 03:32:56 am
Do you have a menu file in raw\ui\scriptmenus called test_menu.menu ? Also do you have a csv file that contains the line: And finally do you have the file precached before _zombiemode.gsc is called using the line:
yes to all. i didnt have the menufile in my raw only in my mod folder but after adding it to my raw still nothing
Title: Re: problems opening menu file
Post by: JBird632 on January 02, 2016, 05:40:38 am
Well your script looks fine logically, but it would definitely help if you showed how and where you were calling the onPlayerSpawn() function, since I have a suspicion your player isn't actually defined.
Also make sure that your self.spawnedOnTeam really isn't defined or that you set it to false.
Title: Re: problems opening menu file
Post by: buttkicker845 on January 02, 2016, 03:23:52 pm
the main method is called right after maps\_load::main() and im positive that self.spawnedOnTeam either isnt defined or is false since the rest of the method runs fine. it just doesnt open the menu file