Page 1 of 1
Cod4 Script compile error
Posted: October 19th, 2011, 7:32 am
by Vartazian
i am making a new map, and um.. everything works fine, but when i go to compile reflections i get this error
ERROR
Script compile error
Could not find script 'maps/mp/gametypes/_codjumper'
other thread maps/mp_gametypes/_codjumper::loadPos();
any ideas?

Re: Cod4 Script compile error
Posted: October 19th, 2011, 8:02 am
by iCYsoldier
maps/mp/gametypes/_codjumper.gsc is in the codjumper mod, not in your raw directory. When it compiles the reflections, it doesn't use a mod, so it will come up with an error saying that it can't find the file. You could just comment out the those lines when compiling reflections and uncomment them when compiling the fast file.
Re: Cod4 Script compile error
Posted: October 19th, 2011, 10:11 am
by Vartazian
um. in my previous map i never had this issue. idk what you mean by "comment out" in the zone file? give me eg. plz
Re: Cod4 Script compile error
Posted: October 19th, 2011, 11:00 am
by iCYsoldier
When you compile the reflections, you need to remove that line that causing the error. Instead of just removing and re-typing it, just put two /'s in front of it so it's treated as a comment. When you compile the mod, just remove the two /'s. That's what I mean by comment/uncomment.
Also keep in mind that, because the _codjumper::loadPos() function is only in the official CJ mod, if you play the map with any other mod, you'll get an error.
Re: Cod4 Script compile error
Posted: October 19th, 2011, 5:22 pm
by Vartazian
okay, but where is the code located?? like where do ui type //
Re: Cod4 Script compile error
Posted: October 19th, 2011, 9:49 pm
by iCYsoldier
The line that's causing the error
other thread maps/mp_gametypes/_codjumper::loadPos();
Re: Cod4 Script compile error
Posted: October 19th, 2011, 10:30 pm
by Drofder2004
My guess is that you have an IWD with custom functions in it. Check your folders (main, mods, etc) for an IWD that shouldn't be there.
Re: Cod4 Script compile error
Posted: October 19th, 2011, 10:31 pm
by IzNoGoD
iCYsoldier wrote:The line that's causing the error
other thread maps/mp_gametypes/_codjumper::loadPos();
try maps\mp\gametypes instead of maps\mp_gametypes
Re: Cod4 Script compile error
Posted: October 19th, 2011, 10:58 pm
by Drofder2004
IzNoGoD wrote:iCYsoldier wrote:The line that's causing the error
other thread maps/mp_gametypes/_codjumper::loadPos();
try maps\mp\gametypes instead of maps\mp_gametypes
This has nothing to do with coding. The original post is about compiling reflections, and an error when the map loads for compiling. And that error must be coming from a GSC somewhere... [this is why I run two version of CoD4]