diffrence between reloadmap and restart?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

diffrence between reloadmap and restart?

Post by Aprop »

Well guys, whats the diffrence between reloadmap and restart? There must be at least one lil diffrence because few of my maps dont work properly after restart.... but reloadmap fix everything..?!
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Doesn't the name give it away? Reloadmap => reloads everything including bsp whereas, restart => restarts the scripts & respawns everybody (you could say, refreshes the map)
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

$oldier Of Ra wrote:restarts the scripts & respawns everybody (you could say, refreshes the map)
For some reasons not all scripts start!! I wonder why, its seems impossible but i cant play mission again without reloading whole bsp file... its a bit unfair because one computer load map faster than second, so players cant start in one moment...
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Hmm, odd, maybe singleplayer works differently on this matter. Although, it shouldn't.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Its multiplayer mission....!
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

I never saw the words "multiplayer" and "mission" used together in an affirmative sentence nor anyone referring a multiplayer game with the word "mission". Do you use the word "mission" as a synonym for "objective"?

I have no idea what you're doing with your game/scripts, you seem to run into a lot of (weird) errors, I never had nor ever heard of. But in my game restart works splendid when I make some ingame adjustments to my scripts.

And if you don't reveal any scripts, then I cannot say whether it's the restart function that's causing the problem or your scripts. Or at least, say what script isn't starting, what makes you know for sure it's not working...
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Mission. I mean mission.
Neverming, is there any diffrence between waitexec and waitthread ??
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

Waitexec is for external executions where no label within the external script is specified (so it just executes the first label it encounters in that script) and it pauses the label where this command was executed till the specified script('s first label) is done.
Eg:

Code: Select all

waitexec global/myscript.scr
Waitthread is for the executions of labels in the current script or a specific label in an external script and again it pauses the label where this command was executed till the specified label is done.
Eg:

Code: Select all

waitthread global/myscript.scr::mylabel
waitthread mylabel
Then again, since MoHAA's rules are so "elastic" (phrased by rookie :p), it waitexec works for specified labels in external scripts as well.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

Well... after restart game crashes to windows bug report... but after reloadmap everythings still right.?!
$oldier Of Ra
Lieutenant Colonel
Posts: 404
Joined: Sun Oct 16, 2005 7:16 pm
Location: Belgium
Contact:

Post by $oldier Of Ra »

That doesn't mean a thing if the game crashes under any circumstance, then there IS something wrong with your script/map.
Our official website: http://www.mohaairborne.co.cc
(Still accessible through http://mohaaclantb.tk and http://users.skynet.be/mohaaclantb/)

For all your bot needs!!!!

$oldier Of Ra.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Admittedly I'm getting a bit dusty :oops:, but let's see if I remember this correctly...

If you restart, the game kills all existing script threads and the script is rerun from the 'level waittill spawn' line onward (this explains why you may have only one such line in an entire script). This means that if you start certain threads before 'level waittill spawn', they will not rerun if you 'restart' from console.

Not that it would explain a game crash though.
Image
Aprop
Major
Posts: 291
Joined: Mon Nov 17, 2008 3:40 pm

Post by Aprop »

This is it!! JV, thank you very much!!



$oldier Of Ra wrote:there IS something wrong with your script/map.
I added only level waittill spawn line... and everythings allright
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

Well that's good to hear :). Better result than I expected tbh :)
Image
Post Reply