terrain id

Brainstorm ideas of possible additions to the game. Read this before posting!

Moderator: Forum Moderators

Forum rules
Before posting a new idea, you must read the following:
Post Reply
Luc7y
Posts: 19
Joined: June 29th, 2019, 6:19 pm
Contact:

terrain id

Post by Luc7y »

update:language - comma and dot

Hello, I wish me an automatic scan through the folders with the sub-folder images/terrain. Because all images have an id and a String.
Code-example in terrain_definitions.cfg which should be in the "add-on-folder/terrain",
works but also in the folder "add-on-folder/utils"
and drives to the tab inside editors panel with exactly these symbolized images.
But not all is done except a screenshot with the new map.
Example snippet from Archaic_Resources, Genesis_Resources and Amaranthine_Stone in regard.

Code: Select all

[terrain_type]
   symbol_image=village/village-overlay-editor #### sorry a missing ship-symbol
   id=20th_ship2
   name= _ "Human Ship"
   string=Ww^Gyb
   aliasof=Gg^Vh, Ww
   heals=8
   gives_income=true
    editor_group=The_20th
[/terrain_type]
And a full automatic - to set in relation (maybe a text-file output in add-on folder by editors work behind the gui)
for all founded in right manner constructed images.
Or please tell me how is coming the id to the texture and where is the string behind "string=" from.
I would be happy about every answer
Last edited by Luc7y on July 16th, 2019, 10:07 am, edited 5 times in total.
User avatar
josteph
Developer
Posts: 741
Joined: August 19th, 2017, 6:58 pm

Re: terrain id

Post by josteph »

What are you trying to do? Are you trying to write a map, or to write a WML event, or what? Feel free to answer in your native language, if it's not English.
User avatar
beetlenaut
Developer
Posts: 2517
Joined: December 8th, 2007, 3:21 am
Location: Washington State
Contact:

Re: terrain id

Post by beetlenaut »

I don't understand all of this question, but I can give you links that answer one part.
Luc7y wrote: July 15th, 2019, 2:25 am how is coming the id to the texture and where is the string behind "string="
https://wiki.wesnoth.org/TerrainCodeTableWML
https://wiki.wesnoth.org/TerrainCodesWM ... rain_Codes
Campaigns: Dead Water,
The Founding of Borstep,
Secrets of the Ancients,
and WML Guide
Luc7y
Posts: 19
Joined: June 29th, 2019, 6:19 pm
Contact:

Re: terrain id

Post by Luc7y »

Aha, all what I must do is - to keep the rule for the first Letters and a little of luck to set no multiple Strings
e.G. a new Mountaintexture look than like this
<code>
{NEW:MOUNTAIN *^Mat mountain-imagename_without_extension}
</code>

- *^Mat is then the usage for string= (in terraindefinition.cfg)
- The picture is coming by the name and the id is for other cases to identifier
inside the graphical user interface.
Post Reply