• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

Load Failed: Failed to uncompress data

WarKirby

Arty person
Joined
Jul 13, 2006
Messages
5,317
Location
Glasgow, Scotland
I'm in the middle of a nice enjoyable archos game, and suddenly I can't load anymore.

Every time I attempt to load my save, I get a "failed to uncompress data" message for a second or so, before the game just quits to desktop.

I've tried loading autosaves from several turns back too, it doesn't seem to be working.

It was about 150 turns in, pangaea world, 12 civs, large map.

What should I do? Is there a way to fix this ? :(
 
I didn't patch anything

All I've done are minor xml edits, adding a new spell. Same thing I've done before while tweaking dragons. Never had any problems then.
 
I didn't patch anything

All I've done are minor xml edits, adding a new spell. Same thing I've done before while tweaking dragons. Never had any problems then.

It's probably the new spell. You can generally get away with a lot of python changes, and in XML you can change a tag's value, add a new tag to an entry... but not add a new entry like a new spell, unit, etc.
 
But I already did it before. See the Dragons Can't Fly thread. I created two completely new spells, useable by coatlann, and it worked fine.

Nothing bad happened then...
 
Spells would tend not to worry about having added a new one. But if you added a new unit or promotion THAT would cause issues. There are a few other things you can add with XML which can cause problems too, but mostly those two are the ones people will run into issues with.

Also just changing some promotions can cause a savegame to be broken. Most of the fields which we have added work this way. It is a side-effect of allowing you to list all of the items you want in fields like <PrereqUnits> and trying to save memory space in the savefiles by only writing what you DID add, instead of recording if you added each and every unit or not for each and every promotion.


Looking at the DLL though it seems that adding a spell should also cause issue. So possibly these particular save/load routines are only utilized when you select "Lock Modified Assets" gameoption.
 
Spells would tend not to worry about having added a new one. But if you added a new unit or promotion THAT would cause issues. There are a few other things you can add with XML which can cause problems too, but mostly those two are the ones people will run into issues with

That would explain it, then, I added a new promotion.

I was trying to retroactively disable the AC by creating a spell which gives a promotion, which lowers the AC by 1000. "Mark of the No Armageddon Counter"

So, I'll revert those changes. Any thoughts on how else I could accomplish that goal? It's mainly because I accidentally left Last Days enabled and didn't notice until I was too far in to be bothered restarting my Archos game. But now the AC is spiralling out of control and I don't want that.
 
Worlbuilder ashen veil city after ashen veil city as barbs and give yourself a unit next to each, then raze them in turn? Ugly but it might work.

Or maybe worlbuilder up alot of barb unts that alter the ac counter down, then erase them?
 
Modify TestPromotion to be available to all unitcombats and be autoacquired. Make it do nothing except modify the AC by some negative amount. Also make it an EffectPromotion so that you don't have to actually see it on any units ever.
 
After I merged the new Patch G dll into my code, I am now receiving this error. I'm trying to track it down, but I'm starting to just remove everything I merged in hopes of fixing it.

If that isn't it, the only other thing I did was try to get the AI to use Reveal Nationality. I set that to AI usable, and put some barriers around when to use it.

I thought it was a stream data error, which is why I focused on the code. Could this error really be something simple like a spell? What generates it?
 
For my problem, it's every game right now. I start a game, save. Load, and get failed to uncompress data.

Any ideas?

I've got to the point where I've backed out almost everything and have only stuff I know has worked before. Yet, it still happens.

What types of things can generate this?
 
You don't say what error you are getting in the first post. But if it is the same as in the second, it means that one of your ::write statements doesn't match exactly for order/content with the corresponding ::read statements.

ie - when saving the game you record "I had 3 units, and I had 5 cities, and I had 12 technologies" but then when loading the game you ask "How many Technologies did I have? Ok, now how many Units? Ok, I'm done now. Why are you still talking to me? ERROR!"
 
You don't say what error you are getting in the first post. But if it is the same as in the second, it means that one of your ::write statements doesn't match exactly for order/content with the corresponding ::read statements.

ie - when saving the game you record "I had 3 units, and I had 5 cities, and I had 12 technologies" but then when loading the game you ask "How many Technologies did I have? Ok, now how many Units? Ok, I'm done now. Why are you still talking to me? ERROR!"

Ah yes, I focused on the read, and write statements, but I never considered the order.

I will go through and check those, thank you.
 
Oh, just realized which thread this was too. Just posting in here states automaticallky what your error was :)

I just found it after hours of work that had nothing to do with it.

It was a mismatched READ with no WRITE stream. I was relying on winmerge, and missed it entirely a good 30 times.

I finally compared it in Notepad++ and caught i immediately. Ugh. :crazyeye:
 
Back
Top Bottom