Out of Sync: How to solve?
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
-
- Posts: 39
- Joined: December 20th, 2007, 9:47 am
Out of Sync: How to solve?
Code: Select all
[event]
name=prestart
[message]
side_for=1
speaker=narrator
message= _ "Enable fog?"
[option]
message= _ "No"
[command]
[/command]
[/option]
[option]
message= _ "Yes"
[command]
[event]
name=new turn
first_time_only=yes
[modify_side]
side=1
fog=yes
[/modify_side]
[modify_side]
side=2
fog=yes
[/modify_side]
[modify_side]
side=3
fog=yes
[/modify_side]
[modify_side]
side=4
fog=yes
[/modify_side]
[modify_side]
side=5
fog=yes
[/modify_side]
[modify_side]
side=6
fog=yes
[/modify_side]
[modify_side]
side=7
fog=yes
[/modify_side]
[modify_side]
side=8
fog=yes
[/modify_side]
[modify_side]
side=9
fog=yes
[/modify_side]
[/event]
[message]
speaker=narrator
message= _ "Fog Added"
[/message]
[/command]
[/option]
[/message]
[/event]
Question is: How to make the option chosen by P1 be sent to all network players?
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Out of Sync: How to solve?
[option] does currently not work at all in prestart and start events in mutiplayer. The earliest point you can do that is in a turn 1 event.
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: Out of Sync: How to solve?
Well I can't say for pre-start, but in Paintball Era I use some options in a start event, and so far it has always worked for me. Note that I only tested it in local multiplayer, maybe it would cause OOSes in real MP... I hadn't thought 'bout that.Anonymissimus wrote:[option] does currently not work at all in prestart and start events in mutiplayer. The earliest point you can do that is in a turn 1 event.
Jazz is not dead, it just smells funny - Frank Zappa
Current projects: Internet meme Era, The Settlers of Wesnoth
Current projects: Internet meme Era, The Settlers of Wesnoth
-
- Inactive Developer
- Posts: 2461
- Joined: August 15th, 2008, 8:46 pm
- Location: Germany
Re: Out of Sync: How to solve?
Yes it causes OOS (1.8) In 1.9 the wml author gets a forceful error message now.
https://gna.org/bugs/index.php?16378
https://gna.org/bugs/index.php?16378
projects (BfW 1.12):
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
A Simple Campaign: campaign draft for wml starters • Plan Your Advancements: mp mod
The Earth's Gut: sp campaign • Settlers of Wesnoth: mp scenario • Wesnoth Lua Pack: lua tags and utils
updated to 1.8 and handed over: A Gryphon's Tale: sp campaign
Re: Out of Sync: How to solve?
It will if people pick different game-state-changing options.Dixie wrote:Well I can't say for pre-start, but in Paintball Era I use some options in a start event, and so far it has always worked for me. Note that I only tested it in local multiplayer, maybe it would cause OOSes in real MP... I hadn't thought 'bout that.Anonymissimus wrote:[option] does currently not work at all in prestart and start events in mutiplayer. The earliest point you can do that is in a turn 1 event.
You need to use side_for=1 and let only the host choose. Or if you want each person to be able to pick differently (per-side settings for example), you will have to do it in side turn 1.
Also start and turn 1 are the same event AFAIK.
-
- Posts: 39
- Joined: December 20th, 2007, 9:47 am
Re: Out of Sync: How to solve?
Take a look at the code. 4th lineGambit wrote: It will if people pick different game-state-changing options.
You need to use side_for=1 and let only the host choose. Or if you want each person to be able to pick differently (per-side settings for example), you will have to do it in side turn 1.
Also start and turn 1 are the same event AFAIK.
Anonymissimus wrote:Yes it causes OOS (1. In 1.9 the wml author gets a forceful error message now.
https://gna.org/bugs/index.php?16378
Thanks! Gonna figure out an way to avoid that bug.
Re: Out of Sync: How to solve?
Sorry. That was for Dixie.AssassinT90 wrote: Take a look at the code. 4th line
Re: Out of Sync: How to solve?
Well, in paintball era, only the host (well, player one) gets to pick options at the start. The other players are at his mercy So I guess that it wouldn't cause OOSes, then. GoodGambit wrote:It will if people pick different game-state-changing options.Dixie wrote: Well I can't say for pre-start, but in Paintball Era I use some options in a start event, and so far it has always worked for me. Note that I only tested it in local multiplayer, maybe it would cause OOSes in real MP... I hadn't thought 'bout that.
You need to use side_for=1 and let only the host choose. Or if you want each person to be able to pick differently (per-side settings for example), you will have to do it in side turn 1.
Also start and turn 1 are the same event AFAIK.
Jazz is not dead, it just smells funny - Frank Zappa
Current projects: Internet meme Era, The Settlers of Wesnoth
Current projects: Internet meme Era, The Settlers of Wesnoth