Page 1 of 1
loop delay
Posted: Tue Dec 02, 2003 4:11 pm
by small_sumo
This is the command i have in my script.
level.jvbot_loopdelay = 2.0
This what I saw in the log.
INFO[jv_mp_ai::setloopdelay]: Using new loop delay: 0.400 seconds (2 fps
Have I written the command wrongly?
Thanks JV.
Posted: Tue Dec 02, 2003 5:26 pm
by jv_map
Ops looks like a little bot bug
Basically there's two ways to fix this:
- Place the level.jvbot_loopdelay = 2 line below the waitthread global/jv_bots/jv_mp_ai.scr::enable line.
- Use setcvar jvbot_loopdelay 2 at any convenient time.
Posted: Wed Dec 03, 2003 12:52 am
by small_sumo
Oh well thats ok, see now I can really see if it makes a difference to fps. Obviousley it never worked before I just didnt notice the error in the log.
Thanks.

Posted: Mon Dec 08, 2003 3:28 pm
by Krane
I'm kind of confused, jv:
Can we use:
setcvar jvbot_loopdelay 2
INSTEAD of :
level.jvbot_loopdelay = 2
????????
And the setcvar line should below waitthread etc?????
Posted: Mon Dec 08, 2003 5:25 pm
by jv_map
The setcvar line can be placed anywhere you want. Setting level.jvbot_loopdelay
after enabling the bots should also work but it may cause unexpected problems

.
Posted: Tue Dec 09, 2003 9:29 pm
by Krane
Thanks.
And ,btw, the right way is:
setcvar "jvbot_loopdelay" "2"
Right?
Posted: Wed Dec 10, 2003 8:06 am
by jv_map
Yup, the second one is better, but as the mohaa scripting language isn't very 'strict' both will work.
Posted: Mon Dec 15, 2003 3:01 pm
by small_sumo
So is this correct?
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots
level.jvbot_loopdelay = 2.0
while !(level.roundstart)
Posted: Mon Dec 15, 2003 5:37 pm
by jv_map
small_sumo wrote:So is this correct?
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots
level.jvbot_loopdelay = 2.0
while !(level.roundstart)
I think it will work, just gotta try it I guess

. Preferrably add an additional wait though. Like:
Code: Select all
waitthread global/jv_bots/jv_mp_ai.scr::enable 0 0 0 0 // enables bots
thread setloopdelay
while !(level.roundstart)
waitframe // I suppose this should be here ;)
// (...)
end
setloopdelay:
wait 1
level.jvbot_loopdelay = 2.0
end
Posted: Wed Dec 17, 2003 4:27 am
by small_sumo
Great thanks, I will add this to my revised map scripts.
Thanks man.