Currently Online

Latest Posts

Topic: types of terrain @ world configuration

Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-01-11, 22:43

Hi,

still playing with editor and LUA scripting...

about field.terr and field.terd - where can I get valid list of terrains? I found that f.e. snow terrain is 'schnee' - so I would need some help... of course I could just test all surfaces and create my own "dictionary" - but perhaps there is an easier way... and in documentation this should be available - I believe...

Thanks!


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2014-01-12, 06:38

See worlds/greenland/terrainconf and similar for the other worlds. The names in [ ] brackets are the valid ones.

btw, if you find the documentation to be lacking, feel free to contribute patches to it. The documentation for the core libraries is inlined in the code - src/scripting/.cc - as comments. The aux libraries are also inlined and live in scripting/.lua .


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-01-14, 21:29

in fact I dont know how to upload changes via BZR, I presume that wiki is also generated from those source files..


Top Quote
SirVer

Joined: 2009-02-19, 14:18
Posts: 1445
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2014-01-15, 05:34

Tibor wrote:

in fact I dont know how to upload changes via BZR, I presume that wiki is also generated from those source files..

no, it is not. The dynamic content of the Wiki can be changed in the browser. No need to mess with bzr.


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2014-01-15, 22:22

at least here: https://wl.widelands.org/docs/wl/core/ I am not able to see any button/link to edit the page...


Top Quote