my .gsc file is being ignored.

Have questions about CoD4 mapping that aren't covered in the tutorials section? Post here!

Moderator: Core Staff

Post Reply
_DanTheMan_
PC Team
PC Team
Posts: 294
Joined: September 6th, 2008, 2:14 am

Re: my .gsc file is being ignored.

Post by _DanTheMan_ » February 1st, 2010, 1:36 am

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?
Image

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: my .gsc file is being ignored.

Post by Drofder2004 » February 1st, 2010, 5:58 am

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 \]
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

User avatar
Drofder2004
Core Staff
Core Staff
Posts: 13315
Joined: April 13th, 2005, 8:22 pm
Location: UK, London

Re: my .gsc file is being ignored.

Post by Drofder2004 » February 1st, 2010, 5:43 pm

CSV was the problem then?
Image
Virgin Media 20Mb Broadband:
"Perfect for families going online at the same time, downloading movies, online gaming and more."
Borked internet since: 22-07-2010

BatterY
CJ Worshipper
CJ Worshipper
Posts: 238
Joined: January 29th, 2010, 10:27 pm

Re: my .gsc file is being ignored.

Post by BatterY » February 2nd, 2010, 2:44 pm

so.. you're back into call of duty then? :D or am i just retarded?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests