Topic: Custom building, path to images
kaputtnik Topic Opener |
Posted at: 2020-08-20, 18:52
I have a custom building in a scenario. Currently this is just a another building as headquarter. Now i have tried to modify the image(s) and put them into the tribes directory of the maps scenario folder:
Now i have the problem that the image isn't found:
I guess this do not work because the
This should work, at least it gives me the path Any hints to get the correct path/folder/dirname? For completeness, here is the init.lua for this building:
Top Quote |
hessenfarmer |
Posted at: 2020-08-20, 19:07
well first of all we need the exact commit of your branch as we are doing a lot of changes in this currently Top Quote |
hessenfarmer |
Posted at: 2020-08-20, 19:11
in b21 it shoul work to specify the path relative to the data dir (e.g. we have helptext_script = "campaigns/emp04.wmf/scripting/tribes/vesta_helptexts.lua", in a scenario building of emp04) Top Quote |
kaputtnik Topic Opener |
Posted at: 2020-08-20, 19:54
I am as close as possible to the latest commit. This does not work with 1.0~git178[d13beaf@master]. Others i haven't testet so far.
This is a scenario map... not intended to be part of widelands (at least for now). So if i upload it to the website, i have no idea where the datadir of a foreign user is. In Scnerio specific units it is mentioned:
I just can't fiddle out the correct path to the image(s). Edit: Edited: 2020-08-20, 19:56
Top Quote |
hessenfarmer |
Posted at: 2020-08-20, 20:39
well this is weird. as it should work. need to dig deeper but this can take a couple of hours. Top Quote |
hessenfarmer |
Posted at: 2020-08-20, 22:30
I believe there is a bug see https://github.com/widelands/widelands/issues/4139 Top Quote |
kaputtnik Topic Opener |
Posted at: 2020-08-21, 08:06
Thanks Top Quote |