Topic: wood is too hard too produce
toptopple![]() |
Posted at:
2016-07-10, 10:14 UTC+2.0
The lua script for the Ranger (forester) states "findspace size:any radius:5 avoid:field", I am interested to know where interpretation of this command is executed, up to the place where modifications could be applied. Anyone helpful here? ![]() ![]() |
kaputtnik![]() |
Posted at:
2016-07-10, 10:15 UTC+2.0
Take a look at: src/logic/map_objects/tribes/worker.cc ![]() ![]() |
GunChleoc![]() |
Posted at:
2016-07-10, 13:40 UTC+2.0
You should also have a look at /src/logic/map_objects/tribes/worker_program.cc, this is where the init.lua gets parsed. We had a discussion about this on the forum recently and found that changing it isn't trivial, so it will be something to look at for Build 20. We also have an open bug for this https://bugs.launchpad.net/widelands/+bug/1574379 Busy indexing nil values ![]() ![]() |
toptopple![]() |
Posted at:
2016-07-11, 07:44 UTC+2.0
Thanks, I got it! ![]() ![]() |