Topic: wood is too hard too produce

toptopple
Avatar
Joined: 2013-10-30, 08:11 UTC+1.0
Posts: 156
Ranking
At home in WL-forums
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?


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 20:48 UTC+1.0
Posts: 2683
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2016-07-10, 10:15 UTC+2.0

Take a look at: src/logic/map_objects/tribes/worker.cc


Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 15:56 UTC+2.0
Posts: 3317
Ranking
One Elder of Players
Location: RenderedRect
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

Top Quote
toptopple
Avatar
Joined: 2013-10-30, 08:11 UTC+1.0
Posts: 156
Ranking
At home in WL-forums
Posted at: 2016-07-11, 07:44 UTC+2.0

Thanks, I got it! face-smile.png With the prevalent lack of function documentation this is difficult to understand.


Top Quote