Page 1 of 1

Re: my .gsc file is being ignored.

Posted: February 1st, 2010, 1:36 am
by _DanTheMan_
KillerSam wrote:

Code: Select all

main()
{
	maps\mp\_load::main();
iprintlnbold ("^2TEST-MAIN-THREAD");	
	ambientPlay("ambient_backlot_ext");	
	game["allies"] = "sas";
	game["axis"] = "opfor";
	game["attackers"] = "axis";
	game["defenders"] = "allies";
	game["allies_soldiertype"] = "woodland";
	game["axis_soldiertype"] = "woodland";
thread door1();
}


door1()
{
iprintlnbold ("^2TEST-DOOR-THREAD");
door1_left = getent("door1_left","targetname");
door1_right = getent("door1_right","targetname");
door1_trigger = getent("door1_trigger","targetname");
	while (1)
	{
door1_trigger waittill ("trigger");
door1_left movey (-134, 2, 0, 0.5);
door1_right movey (134, 2, 0, 0.5);
door1_left waittill ("movedone");
door1_right waittill ("movedone");
wait (2);
door1_left movey (134, 2, 0, 0.5);
door1_right movey (-134, 2, 0, 0.5);
door1_left waittill ("movedone");
door1_right waittill ("movedone");
	}
}
Even if your script is working, print functions won't appear to the player if they are placed at the same point in the script where everything is still initiating (You could try doing a wait 10 at the start of door1 and see if it prints).

Also, any compile errors?

Re: my .gsc file is being ignored.

Posted: February 1st, 2010, 5:58 am
by Drofder2004
In this scenario I would use DVAR testing, not prints (as said, you will not see the prints)
setDvar("Door_Thread", "Init") for example.


Secondly the most likely reasons for your gsc not to run are:
- Incorrectly name
- Error in extension
- Error in folder placement
- Duplicate version loaded

Also, considering a possibility of a CSV/Zone file error and finally compile error.

I would imagine the first 3 have been checked.
The fourth just means you should remove all (if any) other copies of the GSC placed in folders (or use separate CoD installation to test map).

For the CSV, check your folders for a "missingassets.csv" file (or use compile tools < option 4) and make sure your file is listed correctly (rawfile,maps/mp/mp_blah.gsc) [Using / not \]

Re: my .gsc file is being ignored.

Posted: February 1st, 2010, 5:43 pm
by Drofder2004
CSV was the problem then?

Re: my .gsc file is being ignored.

Posted: February 2nd, 2010, 2:44 pm
by BatterY
so.. you're back into call of duty then? :D or am i just retarded?