Editing save files on windows

General feedback and discussion of the game.

Moderator: Forum Moderators

Post Reply
Delicius169
Posts: 189
Joined: February 16th, 2015, 5:02 pm

Editing save files on windows

Post by Delicius169 »

The efect of potions disapear when the unit advances on next lvl (gets new amla)

Thanks for response:
I went to Userdata file, then to Save files, looked at the save file and opened it in notepad. But now, I cannot delete any letter, nor writte anything in to it.
Please, what did I do wrong/What I have to do another way?
Last edited by Ravana on February 13th, 2016, 7:33 pm, edited 1 time in total.
Reason: Split from https://forums.wesnoth.org/viewtopic.php?f=8&t=32384
User avatar
nuorc
Forum Regular
Posts: 582
Joined: September 3rd, 2009, 2:25 pm
Location: Barag Gor

Re: Legend of the Invincibles

Post by nuorc »

@Delicius169: Did you decompress the file before opening it? If not, maybe that's why you're in read-only.

I'm no expert on this, but IIRC you don't have to compress it after editing (as that also may lead to problems).
I have a cunning plan.
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Legend of the Invincibles

Post by Dugi »

Delicius169 wrote: went to Userdata file, then to Save files, looked at the save file and opened it in notepad. But now, I cannot delete any letter, nor writte anything in to it.
Please, what did I do wrong/What I have to do another way?
I assume you don't have the rights to do it. I'd try something of these:
1. Open notepad in administrator mode (should be an option in the right click menu)
2. Copy the save file elsewhere (for example on the desktop, make sure you don't make a link), edit it and copy it back.
3. As nuorc said, copy make sure you've permanently decompressed it. You don't have to compress it back, wesnoth can open uncompressed save files. It also has a setting to prevent compression of files (that should fix all your issues).
Delicius169
Posts: 189
Joined: February 16th, 2015, 5:02 pm

Re: Editing save files on windows

Post by Delicius169 »

Thanks a lot, I managed it.
I decompresed the file and opened it in notepad. Changed the line I needed, and put file again between saves.
:-)
User avatar
Aldarisvet
Translator
Posts: 836
Joined: February 23rd, 2015, 2:39 pm
Location: Moscow, Russia

Re: Editing save files on windows

Post by Aldarisvet »

Yea, I used editing save files too.
Great instrument when you testing a campaign you create.
For example, if you cannot afford finishing a scenario in a certain time limit you can always rise it manually in the save file :D
facebook.com/wesnothian/ - everyday something new about Wesnoth
My campaign:A Whim of Fate, also see it's prequel Zombies:Introduction
Art thread:Mostly frankenstains
User avatar
Dugi
Posts: 4961
Joined: July 22nd, 2010, 10:29 am
Location: Carpathian Mountains
Contact:

Re: Editing save files on windows

Post by Dugi »

For example, if you cannot afford finishing a scenario in a certain time limit you can always rise it manually in the save file
That can be done simply via the debug mode. It has a command for it.
Via its lua command, you can do pretty much anything, but it's not very comfortable so sometimes editing the save file is easier.
Post Reply