Page 1 of 2
.GSC file missing
Posted: March 29th, 2010, 12:05 pm
by iCYsoldier
Hey fellas,
When I build the fast file, it says "ERROR: Could not open mp/maps/mp_name.gsc"
What does this file do? Am I missing something?
Thanks guys

Re: .GSC file missing
Posted: March 29th, 2010, 12:20 pm
by Oi!mel
This file is importent. It descripes the main settings of the map. Here is a example.
Code: Select all
main()
{
maps\mp\mp_hill_fx::main();
maps\mp\_load::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_hill");
VisionSetNaked( "mp_hill" );
ambientPlay("ambient_hill");
game["allies"] = "sas";
game["axis"] = "russian";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "woodland";
game["axis_soldiertype"] = "woodland";
setdvar( "r_specularcolorscale", "1" );
}
As you see, you can set teams, there uniforms, the Compass, the ambient sound and the fx. All scripts you wanna add have to be linked in this .gsc
EDIT:
It is placed in raw/maps/mp/mp_yourmap.gsc
Re: .GSC file missing
Posted: March 29th, 2010, 5:30 pm
by Pedsdude
You don't necessarily need a .gsc file - if you don't want one then simply click the "Update Zone File" in the compiler tools and remove the line which has the .gsc file on, but as Oi!mel says, generally you should have one.
Re: .GSC file missing
Posted: March 30th, 2010, 6:20 am
by iCYsoldier
Ah, ok guys thanks.
I checked the other .gsc files and found they opened in notepad. So I copied and pasted the code thet 'oi!mel' said, saved it as mp_name.gsc, and It worked

I hope I did the right thing..
Thanks again Oi!mel and Pedsdude.
Re: .GSC file missing
Posted: March 30th, 2010, 1:40 pm
by Pedsdude
iCYsoldier wrote:I hope I did the right thing..
Compile and see!

Re: .GSC file missing
Posted: March 31st, 2010, 11:52 am
by iCYsoldier
Pedsdude wrote:iCYsoldier wrote:I hope I did the right thing..
Compile and see!

Ah.. well, it did work, but when I went to run it, I ended up getting a script compile error. So I deleted it. As you said, it wasn't completely necessary, so it's not big deal
Thanks

Re: .GSC file missing
Posted: March 31st, 2010, 2:57 pm
by Pedsdude
Load the map with /devmap and then look in console to see what the script compile error was - we can help you with it!
Re: .GSC file missing
Posted: March 31st, 2010, 3:13 pm
by Rezil
Set /developer 1, then reload your map, open the console and paste the error here.
Re: .GSC file missing
Posted: March 31st, 2010, 8:23 pm
by Drofder2004
maps\mp\mp_hill_fx::main();
File does not exist.
Odds of 2/1 that the error is similar to the above...
Re: .GSC file missing
Posted: April 1st, 2010, 6:44 am
by iCYsoldier
Drofder2004 wrote:maps\mp\mp_hill_fx::main();
File does not exist.
Odds of 2/1 that the error is similar to the above...
Lol, yeh.
Also, when I'm compiling the reflections I get this:
Code: Select all
Script Compile Error
Could not find 'animscripts/utility'
#include animscripts/utility;
Re: .GSC file missing
Posted: April 1st, 2010, 2:01 pm
by Rezil
Code: Select all
main()
{
maps\mp\_load::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_hill"); //doubt you have one
VisionSetNaked( "mp_hill" ); //doubt you have one
ambientPlay("ambient_hill"); //doubt you have one
game["allies"] = "sas";
game["axis"] = "russian";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "woodland";
game["axis_soldiertype"] = "woodland";
setdvar( "r_specularcolorscale", "1" );
}
Try this, if it doesn't work, try removing the lines where it says //doubt you have one.
Re: .GSC file missing
Posted: April 2nd, 2010, 6:17 am
by iCYsoldier
Rez|l wrote:Code: Select all
main()
{
maps\mp\_load::main();
maps\mp\_compass::setupMiniMap("compass_map_mp_hill"); //doubt you have one
VisionSetNaked( "mp_hill" ); //doubt you have one
ambientPlay("ambient_hill"); //doubt you have one
game["allies"] = "sas";
game["axis"] = "russian";
game["attackers"] = "axis";
game["defenders"] = "allies";
game["allies_soldiertype"] = "woodland";
game["axis_soldiertype"] = "woodland";
setdvar( "r_specularcolorscale", "1" );
}
Try this, if it doesn't work, try removing the lines where it says //doubt you have one.
Ah lovely, thanks Rez! Got rid of those errors

Re: .GSC file missing
Posted: April 2nd, 2010, 3:53 pm
by iCYsoldier
Could I just ask one more question?
When I compile the map fast file, there is only one .ff in there. I looked at the other maps, seeing a _load.ff file aswell. What is that _load file? Is it significant?
Thanks

Re: .GSC file missing
Posted: April 2nd, 2010, 4:26 pm
by Hoogie
Isn't that the load screen?
Not sure tough!
Re: .GSC file missing
Posted: April 2nd, 2010, 11:56 pm
by iCYsoldier
Hoogie wrote:Isn't that the load screen?
Not sure tough!
Oh really? It's 1KB, that seems weird, but I see all the other maps have it. Oh well, ill try.
Thanks