Topic: Add-On System
Nordfriese Topic Opener |
Posted at: 2021-06-05, 20:12
Uploaded (with some minor i18n tweaks, goes without saying) Top Quote |
OIPUN |
Posted at: 2021-06-09, 20:07
I packed 2 maps into an add-on. I tested it and it seams to work fine. Also one printscreen attached. Top Quote |
Nordfriese Topic Opener |
Posted at: 2021-06-09, 20:22
Uploaded Top Quote |
rmazurek |
Posted at: 2021-07-06, 04:13
One thing is not clear to me about modding. Where can I find informations about variables names? Specifically I mean buildings. I have an idea to change factions towers. Basically I think about towers as kind of watch post, something to see more land, not defend. I would like to decrease capacity to 1 soldier but for exchange increase conquer range and possibly visibility range. I searched this forum and tried googling but did not found informations how could I possibly do it. Thanks in advance for help. Top Quote |
kaputtnik |
Posted at: 2021-07-06, 08:15
Hi rmazurek and welcome to the forums!
The documentation about modding and scripting is available at https://www.widelands.org/documentation/reference/, but ...
... this is not possible without much effort at the moment. The reason is that currently one has to change the settings you want at runtime of a game, but your idea should be applied during initialization of a game (changing the tribes militarysites). There is an open pull request to change some of the points in your idea during initialization. If this pull request get merged the new possibilities will be available in the developement version, but are not official yet. Currently your idea can be scripted as an addon, but will possible lead to desyncs in multiplayer games. If you want to get some help anyway about scripting your idea, please open another topic Top Quote |
rmazurek |
Posted at: 2021-07-06, 14:54
Thank you for your reply I could not find informations I need, so I asked here. Usually such settings are defined in text files and it's easy for modding. I hope it will be this way in this game too, at some point. I don't care about multiplayer Top Quote |
hessenfarmer |
Posted at: 2021-07-06, 15:32
@rmazurek if you just want tomod your own istallation by modifying the .lua files defining our tribes. They are scripts that can be edited easily with an text editor. Information about sysntax and content of them can be found in the link kaputtnik provided. Top Quote |
rmazurek |
Posted at: 2021-07-06, 16:26
Thanks for advice :) I'll definitelly dig into it. Top Quote |
rmazurek |
Posted at: 2021-07-06, 16:42
Wow, it's so freaking simple :D I mean I just edited game configs for now. I have to learn how to make it as mod, so I don't have to copy from backup after game's updates. Thanks once again, it's so awsome Top Quote |
Nordfriese Topic Opener |
Posted at: 2021-07-06, 18:35
Hi and welcome from me as well Just to get back to your initial question, the relevant interface to adjust the properties of existing units by creating a Tribes add-on is this one function: https://www.widelands.org/documentation/autogen_wl/#wl.Descriptions.modify_unit As kaputtnik said there is a bunch of more properties (including soldier capacity, conquer range, vision range) in review and will be available in the development version sometime soon. If there are any other properties of any units you'd like to be able to change via add-on scripting, please mention it here In the long run I intend to make all properties of all units modifyable like this, but I prefer to implement every aspect only when it's first needed, as unused code is bug-prone. Top Quote |