Cod4 Script compile error

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

Moderator: Core Staff

Post Reply
Vartazian
CJ Worshipper
CJ Worshipper
Posts: 286
Joined: June 10th, 2011, 9:14 pm

Cod4 Script compile error

Post by Vartazian » October 19th, 2011, 7:32 am

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? :(

User avatar
iCYsoldier
CJ Worshipper
CJ Worshipper
Posts: 289
Joined: December 5th, 2009, 7:12 am
Location: Australia

Re: Cod4 Script compile error

Post by iCYsoldier » October 19th, 2011, 8:02 am

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.

Vartazian
CJ Worshipper
CJ Worshipper
Posts: 286
Joined: June 10th, 2011, 9:14 pm

Re: Cod4 Script compile error

Post by Vartazian » October 19th, 2011, 10:11 am

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

User avatar
iCYsoldier
CJ Worshipper
CJ Worshipper
Posts: 289
Joined: December 5th, 2009, 7:12 am
Location: Australia

Re: Cod4 Script compile error

Post by iCYsoldier » October 19th, 2011, 11:00 am

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.

Vartazian
CJ Worshipper
CJ Worshipper
Posts: 286
Joined: June 10th, 2011, 9:14 pm

Re: Cod4 Script compile error

Post by Vartazian » October 19th, 2011, 5:22 pm

okay, but where is the code located?? like where do ui type //

User avatar
iCYsoldier
CJ Worshipper
CJ Worshipper
Posts: 289
Joined: December 5th, 2009, 7:12 am
Location: Australia

Re: Cod4 Script compile error

Post by iCYsoldier » October 19th, 2011, 9:49 pm

The line that's causing the error

other thread maps/mp_gametypes/_codjumper::loadPos();

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

Re: Cod4 Script compile error

Post by Drofder2004 » October 19th, 2011, 10:30 pm

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.
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

IzNoGoD
CJ Worshipper
CJ Worshipper
Posts: 343
Joined: January 6th, 2009, 8:39 pm
Location: Netherlands/Holland

Re: Cod4 Script compile error

Post by IzNoGoD » October 19th, 2011, 10:31 pm

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
LMGTFY!

Its not a glitch... Its the future!

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

Re: Cod4 Script compile error

Post by Drofder2004 » October 19th, 2011, 10:58 pm

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]
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

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests