Compiling Error + Script Error

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
BiG_HeaD
Brigadier General
Posts: 531
Joined: Thu Jul 03, 2003 7:28 pm

Compiling Error + Script Error

Post by BiG_HeaD »

2 problems-
a: Theres No .pth after i compile the map, but everything else is there

b: The bomb seams not to be working. IE: No red bomb thingy

Oh yeah, When ever the Map changes to new round-Bots Disapear-Scores and all, wont let me add them.

heres my sc:

main:
level waittill prespawn

$world farplane 3000
$world farplane_color (.333 .333 .329)
thread bombscript
level.elipos = 1


exec global/DMprecache.scr

level.script = maps/obj/objtest.scr

exec global/ambient.scr m4l1



exec global/door_locked.scr::lock

setcvar "g_obj_alliedtext1" "Go2Town"
setcvar "g_obj_alliedtext2" "KillSumAxis"
setcvar "g_obj_alliedtext3" "FindtheBomb"
setcvar "g_obj_axistext1" "- Prevent Allies from"
setcvar "g_obj_axistext2" "destroying the Flak88's"
setcvar "g_obj_axistext3" "MadeBy BiG_HeaD"
setcvar "g_scoreboardpic" "objdm1.tga"

level waittill spawn

$mybomb thread global/jv_obj_dm.scr::bomb_thinker

end


bombscript:

$flak88_explosive1 thread global/jv_obj_dm.scr::bomb_thinker

waitthread global/jv_bots/jv_mp_ai.scr::enable


$flak88_explosive1 thread axis_win_timer
thread allies_win_bomb

$bomb thread global/jv_obj_dm.scr::bomb_thinker


Any Help Would greatly be appreciated.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

You only get a pth file when you run the map, not when you compile it.

Did you make a script_model bomb with targetname mybomb? And one with targetname flak88_explosive1 and one called bomb?

Finally I'd suggest adding an 'end' below your script.
Image
Post Reply