Script to convert maps to layer terrain format
Moderator: Forum Moderators
Forum rules
- Please use [code] BBCode tags in your posts for embedding WML snippets.
- To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Script to convert maps to layer terrain format
This script transforms a map file or a scenario file which contains a map.
It does not translate old single char maps !
It needs extra "oldstring=" in the terrain.cfg used für translation.
It is a modification of the map_convert.pl script and is used in the same way.
Greetings, Fabi
It does not translate old single char maps !
It needs extra "oldstring=" in the terrain.cfg used für translation.
It is a modification of the map_convert.pl script and is used in the same way.
Greetings, Fabi
- Attachments
-
- map_convert_layers.pl.txt
- modified map_convert.pl for new layer terrain
- (3.85 KiB) Downloaded 211 times
config files
this two config files are ready to use with the perl script.
They also contain a new hill forest mix terrain.
edit: removed files, there are newer ones out.
They also contain a new hill forest mix terrain.
edit: removed files, there are newer ones out.
Last edited by fabi on March 6th, 2007, 2:30 pm, edited 1 time in total.
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
Isn't the entire content in 1.3.1 svn allready translated from single char ?SkeletonCrew wrote:Thanks for the script, it will be nice for those who already converted their content :) I'll look at it later since I don't have time today.
I thought it could be used to transform svn and commit the new terrain config files to trunk.
-
- Inactive Developer
- Posts: 787
- Joined: March 31st, 2006, 6:55 am
SVN has been converted, but it might be that UMC has been converted as well. When we started to talk about the layering stuff, the idea was to keep things compatible...fabi wrote:Isn't the entire content in 1.3.1 svn allready translated from single char ?SkeletonCrew wrote:Thanks for the script, it will be nice for those who already converted their content I'll look at it later since I don't have time today.
I thought it could be used to transform svn and commit the new terrain config files to trunk.
new config files
Here is a new set of config files:
- added a mushroom plains terrain
added snowforest hill terrain
added forest hill terrain
added elvish village on a snowhill
added elvish village on a hill
added bridges over sand for rivers which went dry during some seasons
Swamps are displayed better
Trees no longer grow in water or on roads
some transitions now work like expected :-)
- Attachments
-
- terrain.cfg.txt
- (16.45 KiB) Downloaded 223 times
-
- terrain-graphics.cfg
- (43.82 KiB) Downloaded 199 times
I try to modify the script so it converts the terrain outside of map descriptionSVN has been converted, but it might be that UMC has been converted as well. When we started to talk about the layering stuff, the idea was to keep things compatible...
( for example inside an event ) too.
Then compatibility shouldn't be a problem any more.
Greetings, Fabi