cannot edit safes

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

Moderators: Forum Moderators, Developers

Forum rules
Before reporting issues in this section, you must read the following topic:
Post Reply
OneWayHero
Posts: 2
Joined: January 9th, 2020, 9:51 pm

cannot edit safes

Post by OneWayHero »

hello community,

recently 2 of my loyal units just dissappeared in a campain. strangely i noticed that too late and now i dont wanna replay 2 scenarios. instead i would be fine with editing the safes and make 2 new loyal units ... and here comes the problem: the safe data is all gibberish with strange symbols.
whats the way to fix that?

with the best intentions

OneWayHero

User avatar
Pentarctagon
Forum Administrator
Posts: 4126
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: cannot edit safes

Post by Pentarctagon »

Is this a mainline campaign, or an add-on campaign?
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code

User avatar
Iris
Site Administrator
Posts: 6601
Joined: November 14th, 2006, 5:54 pm
Location: Chile
Contact:

Re: cannot edit safes

Post by Iris »

OneWayHero wrote:
January 9th, 2020, 9:59 pm
recently 2 of my loyal units just dissappeared in a campain. strangely i noticed that too late and now i dont wanna replay 2 scenarios. instead i would be fine with editing the safes and make 2 new loyal units ... and here comes the problem: the safe data is all gibberish with strange symbols.
Saves are compressed using the gzip algorithm by default (Preferences → Advanced → Compress saved games). Disabling compression is possible, but since saves tend to be ridiculously large without compression, you may start to see a noticeable drop in available disk space.

As an alternative, on Windows you can use a free tool such as 7-zip to manually uncompress individual saved game files. On Linux you can use gunzip or pretty much any tool that can read compressed files. I don't use macOS so I don't have any specific recommendations for that.
Author of the unofficial UtBS sequels Invasion from the Unknown and After the Storm.

Wayirr
Posts: 81
Joined: February 11th, 2012, 3:42 pm

Re: cannot edit safes

Post by Wayirr »

By the way, wesnoth itself provides command line options to gzip and gunzip files and bzip2 and bunzip2 as well. So it's not necessary to use any third party tools. Though of course, it requires some computer skill to use command line tools like that.

OneWayHero
Posts: 2
Joined: January 9th, 2020, 9:51 pm

Re: cannot edit safes

Post by OneWayHero »

thank you for all your fast replies to my problem! the removal of compressed saving did the job ...but i cant find where to change the trait so my unit gets the golden loyalty "bar". since i want it to be loyal after the lvl up too... "upkeep="loyal" " doesnt seem to be sufficient.
Pentarctagon wrote:
January 10th, 2020, 12:20 am
Is this a mainline campaign, or an add-on campaign?
and its a mainline campain. the one with kalenz as MC.

Edit: i got the permanent loyal trait into the unit but am stil missing the bar ._.

Post Reply