Topic: __skip_if_exists ?
kaputtnik Topic Opener |
Posted at: 2021-05-30, 18:48
Just noticed that the foreign_planet add-on uses "__skip_if_exists" I have tried to find some source about this, but i haven't using Do we need a new forum for Add-On's below Widelands Development ? Top Quote |
Nordfriese |
Posted at: 2021-05-30, 18:56
Directives like this one will be introduced in https://github.com/widelands/widelands/pull/4760 . In master it's still ignored at the moment. The purpose is to handle the case that two add-ons define a unit with the same name. So all authors of ‘World’ and ‘Tribes’ add-ons will need to use it in the future. (Currently in master, the last add-on in the list takes priority in this case. Whether this is actually safe is heavily add-on dependent; these directives are the only truly safe solution approach. I'm intending to add more, optional such directives in the future to give add-on designers even more control about the way their add-on interacts with other add-ons.)
+1 Edited: 2021-05-30, 18:58
Top Quote |
kaputtnik Topic Opener |
Posted at: 2021-05-30, 20:29
Thanks for the explanation New Forum is available. Top Quote |
Nordfriese |
Posted at: 2021-05-30, 20:44
Great Just one nit, can you please remove the apostrophe in the forum name? "Add-On's" is a genitive, you can use it to say "The add-on's author" or "The add-on's contents", but a plural form ("the Add-Ons") can not contain one. For a description, how about "The place to discuss all kinds of user-made content." IMHO the add-on submission tread should also be moved to the new forum. Top Quote |