Unwanted changes by the map editor
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
Unwanted changes by the map editor
Hello,
I am working on a small 4 player coop sceanrio with the Wesnoth map editor. After saving the scenario, I changed something manually.
When I edit the sceanrio with the Wesnoth map editor and save it, the map editor deletes all my manual changes. Is there a way to alter this behavior (in order to save my changes from being deleted) ?
If there is no way to change the behavior of the map editor, another idea for solving this came to my mind. The code block 'side' must be predefined somewhere so that the map editor is using it as some sort of template. Can someone please tell me where this template is located ?
I am working on a small 4 player coop sceanrio with the Wesnoth map editor. After saving the scenario, I changed something manually.
Code: Select all
[side]
side=1
controller="human"
fog=yes
gold=300
hidden=no
income=10
no_leader=no
share_vision="all"
shroud=no
team_name=1
user_team_name="Die Guten"
#the next two lines were changed manually
disallow_shuffle=yes
team_lock=true
[/side]
If there is no way to change the behavior of the map editor, another idea for solving this came to my mind. The code block 'side' must be predefined somewhere so that the map editor is using it as some sort of template. Can someone please tell me where this template is located ?
Re: Unwanted changes by the map editor
The template is almost certainly src/editor/map/map_context.cpp's map_context::to_config().