Topic: Tool in editor to fill whole one texture with new texture
wojtek Topic Opener |
Posted at: 2022-12-20, 16:52
When I create a map, sometimes I want to replace a texture of terrain with other. So I would like to have a tool that works like "fill with color" in paint. Top Quote |
hessenfarmer |
Posted at: 2022-12-20, 16:56
As the terrains are not only texture but define the values that determine the growth probability of trees it is not possible to change the terrains texture. If you need a differrent texture for eye candy you need to specifiy a new terrain and provide this terrain with an addon. the map should be published via addon in this case too to reflect the dependency from the "custom" terrain. Top Quote |
wojtek Topic Opener |
Posted at: 2022-12-20, 17:04
I mean just changing a terrain. When I have some connected fields covered with some terrain, I would like to replace all these fields with other terrain by single click. Top Quote |
kaputtnik |
Posted at: 2022-12-21, 17:16
Such a tool isn't implemented yet. There is a bug report open to add such functionality as an addon: https://github.com/widelands/widelands/issues/4801 If you have a debug build running you can start a script console and run a file containing a function for changing terrains. The file should have this content:
Save the file as e.g. "editor_functions.lua" To start the script console hit SHIFT+STRG+SPACE and write
Note that this will replace all terrains of 'Meadow 1' to 'Barren Steppe' in the whole map. The values ('Meadow 1', 'Barren Steppe') needs to be in English, otherwise the function will not work. Be aware that trees may need to be adjusted, because what hessenfarmer said: The growing of trees is terrain specific. So if you change the terrain it's likely that already placed trees do not grow well anymore. Edited: 2022-12-21, 17:17
Fight simulator for Widelands: |