Infinite loop error in script????

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Infinite loop error in script????

Post by kdja »

Hey
i ahve made my maps 3 styles of play DM/OBJ and CTF and combined them into one pak3 (9steal my idea and i hunt you down LOL)
But Dm is fine /OBJ is fine (round never finishes but thats a different matter)
But on CTF i get this error when one player joins another team
"infinite loop error" and the server crashes.
here is the script (cos im only testing out CTF i used a basic scr file)
//
// FLAG TEST

main:

setcvar "g_obj_alliedtext1" "Capture the"
setcvar "g_obj_alliedtext2" "Axis flag"
setcvar "g_obj_axistext1" "Capture the"
setcvar "g_obj_axistext2" "Allied flag"
level waittill prespawn

exec global/DMprecache.scr

level.script = maps/obj/dieppeCTF.scr

level waittill spawn

level.dmrespawning = 1 // 1 or 0
level.dmroundlimit = 10 // round time limit in minutes
level.clockside = draw // set to axis, allies, kills, or draw

level waittill roundstart

thread global/obj_ravir_point_relay.scr::point_relay_start

end

Thats it nothing else.
now i ahve the random explosions and the the 3 OBJ still inthe map but without an SCR i assume dthey wouldnt laod and would not cause any problem.
Anyone know how to resolve the error???
thx
kdja
Moal
Moderator
Posts: 150
Joined: Wed Jun 05, 2002 6:45 am
Location: Lexington Ky

Post by Moal »

I am still learning about scripts
so maybe I'm off base here but this line
thread global/obj_ravir_point_relay.scr::point_relay_start
is calling obj_ravir_point_relay.scr
maybe the error is there not in this scr
I looked and this doesnt seem to be a stock scr
so I take it that it is a custom scr
Creater of MOHpile
Play With Honor
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Post by kdja »

thats the CTF scr.
As far as i know mine only references that one but in console that ravir.scr never loads.

kdja

*tip
to test OBJ maps without a 2nd person get the dedicated server launcher pak3 your map and load it ,the dedicated console will tell you if your OBJ script have loaded.
I have yet to my OBJ loading and them not work ,so a handy way to test SCR files.
I have no freinds :(
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Post by kdja »

kinda fixed it wasnt calling the ravir scr as it was in the wrong line.
Now it is and i ahve 2 trigger_use2 in the script so the game keeps crashing next compile i will fix that.
Still ahve the leak and high vis :)

is there any way to edit a compiled map to change trigger_use 2 to 3 without opening in mohradient and recompiling????
kdja
Pip
Private
Posts: 3
Joined: Sun Jul 14, 2002 9:34 am
Location: The Netherlands

Post by Pip »

what exactly do yuo mean? have you got the cnt for the trigger set to 2? or is the targetname trigger2? You can make changes to the trigger in the script or you can open up the bsp and look for the entities. they are near the end. but be carefull when changing this. you might screw it up.
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Post by kdja »

I have 5 flags with 5 trigger_use in map numbered 1 to 5 (*but obviously named one with number 2 twice)
So just need to edit them and make sure they is 1 to 5.

kdja
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Post by kdja »

thx it worked
i knew you could edit the MAP files with textpad but didnt know you could edit BSp too.

Hmm the possibilites .........

Kdja
Pip
Private
Posts: 3
Joined: Sun Jul 14, 2002 9:34 am
Location: The Netherlands

Post by Pip »

if you copy and paste the entities part of a bsp to a textfile and import it to micro$oft excel you can get an nice list of all entities and their properties. this wil help you a lot in figuring out scripting stuff of ea maps

btw. did you edit the bsp with notepad?
kdja
Captain
Posts: 254
Joined: Wed Jun 19, 2002 1:08 am
Location: Ireland

Post by kdja »

i used textpad from textpad.com its a great text editor.

kdja
Post Reply