Script to convert maps to layer terrain format

The place to post your WML questions and answers.

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.
Post Reply
fabi
Inactive Developer
Posts: 1260
Joined: March 21st, 2004, 2:42 pm
Location: Germany

Script to convert maps to layer terrain format

Post by fabi »

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
Attachments
map_convert_layers.pl.txt
modified map_convert.pl for new layer terrain
(3.85 KiB) Downloaded 211 times
fabi
Inactive Developer
Posts: 1260
Joined: March 21st, 2004, 2:42 pm
Location: Germany

config files

Post by fabi »

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.
Last edited by fabi on March 6th, 2007, 2:30 pm, edited 1 time in total.
SkeletonCrew
Inactive Developer
Posts: 787
Joined: March 31st, 2006, 6:55 am

Post by SkeletonCrew »

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.
fabi
Inactive Developer
Posts: 1260
Joined: March 21st, 2004, 2:42 pm
Location: Germany

Post by fabi »

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.
Isn't the entire content in 1.3.1 svn allready translated from single char ?
I thought it could be used to transform svn and commit the new terrain config files to trunk.
SkeletonCrew
Inactive Developer
Posts: 787
Joined: March 31st, 2006, 6:55 am

Post by SkeletonCrew »

fabi wrote:
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.
Isn't the entire content in 1.3.1 svn allready translated from single char ?
I thought it could be used to transform svn and commit the new terrain config files to trunk.
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
Inactive Developer
Posts: 1260
Joined: March 21st, 2004, 2:42 pm
Location: Germany

new config files

Post by fabi »

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
fabi
Inactive Developer
Posts: 1260
Joined: March 21st, 2004, 2:42 pm
Location: Germany

Post by fabi »

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...
I try to modify the script so it converts the terrain outside of map description
( for example inside an event ) too.
Then compatibility shouldn't be a problem any more.

Greetings, Fabi
Post Reply