Unwanted changes by the map editor

Having trouble with the game? Report issues and get help here. Read this first!

Moderator: Forum Moderators

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
zorroot
Posts: 5
Joined: August 23rd, 2019, 12:12 pm

Unwanted changes by the map editor

Post by zorroot »

Hello,
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]
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 ?
User avatar
octalot
General Code Maintainer
Posts: 786
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Unwanted changes by the map editor

Post by octalot »

The template is almost certainly src/editor/map/map_context.cpp's map_context::to_config().
Post Reply