Latest Posts

Topic: Is there a way to edit a map with an hexeditor?

kaputtnik
Avatar
Topic Opener
Joined: 2013-02-18, 19:48
Posts: 2442
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2015-08-27, 21:17

I play around with some new terrain types and immovables.... Therefore i've made an extra datadir and an extra program launcher which load widelands with the extra datadir as option. While testing other things i started this launcher which loads the extra datadir and unfortunally saved a map which i would maybe make public here on the website. This map contain no terrains which are stored in my extra datadir, but it fails to load with normal widelands (without extra datadir). While loading a message popup which told me that there is a terrain which does not exist.

It seems that while saving a map all current available terrains (and all current available immovables) are stored in the map file, regardless of the terrain (or immovable) is used in this map.

In result i have a map which couldn't be loaded with normal widelands face-upset.png

So is there a possibility to remove the unneeded terrains/immovables from a map file?

Edited: 2015-08-27, 21:19

Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote