Backward compatibility of MP Eras
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.
- White_Drag0n
- Posts: 55
- Joined: January 11th, 2016, 1:42 pm
Backward compatibility of MP Eras
Title. Is it possible to code a MP Era in such a way, that if host uses a different version than the rest of participants, the game is loaded on his version for all players? I know that something like this is used in EoHS, and wonder is there's any quick way of doing it for simpler eras. Perhaps some WML Wizards from this site might give a helping hand? Or is it more a lua thing to do?
Re: Backward compatibility of MP Eras
EoHS is designed to work no matter if participants even have it loaded, which is why it is not affected by them having different version. Also, EoHS is not really era, that name is just remaining from era of no modifications.
Re: Backward compatibility of MP Eras
It's possible to embed Unit Type WML into the Scenario WML (perhaps inside a [set_variables]), using macros, however this would obviously increase the size of Scenario WML.
This variable could then be used to overwrite things like attacks, moves, defenses.
However some things would be difficult to do correctly, such as playing nicely with other modifications in the scenario.
Other things would be impossible, like introducing new unit types.
This variable could then be used to overwrite things like attacks, moves, defenses.
However some things would be difficult to do correctly, such as playing nicely with other modifications in the scenario.
Other things would be impossible, like introducing new unit types.
http://www.wesnoth.org/wiki/User:Sapient... "Looks like your skills saved us again. Uh, well at least, they saved Soarin's apple pie."
Re: Backward compatibility of MP Eras
In wesnoth 1.13 the game engine can autoamtically downaload the latest version of an addon from the server if it detects that your addon version is incmpatible with the addon version of the host. So if you want to start writing an mp era now it might be uneeseary to think too much about this.
Scenario with Robots SP scenario (1.11/1.12), allows you to build your units with components, PYR No preperation turn 1.12 mp-mod that allows you to select your units immideately after the game begins.