project-navigation
Personal tools

Author Topic: Save file Size Mismatch error  (Read 5094 times)

Offline Malochai

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Save file Size Mismatch error
« on: August 14, 2007, 03:27:08 am »
Hello...I did a search to try and avoid a redundant post but didn't see anything....but here's my issue....when I try to save it tells me Size Mismatch error or something like that....given that I'm running Ubuntu Feisty and am just learning my way around the Debian realm it may be some broken dependency....everything else runs fine....not a whole heck of alot of sound but I hear gunshots and such....runs smooth all is well....except I can't save....anyone know what's going on there?......I installed SDL_ttf after the game install because I didn't realize I didn't have it until  I tried to start up the first time but not sure that would have a whole lot to do with it....
Any assistance would be greatly appreciated.....I'm loving the game so far but obviously saving the campaign is a really nice thing to be able to do :wink:

Offline Zenerka

  • Sergeant
  • *****
  • Posts: 301
    • View Profile
Save file Size Mismatch error
« Reply #1 on: August 14, 2007, 10:20:24 am »
Which version of the game? What is the exact error message?

Offline Malochai

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Save file Size Mismatch error
« Reply #2 on: August 14, 2007, 10:19:15 pm »
Okay well....I redownloaded and reinstalled again and now it's saving....sorry....admin feel free to delete this thread

Offline Malochai

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Save file Size Mismatch error
« Reply #3 on: August 20, 2007, 06:28:22 am »
Okay....well ...Yay!....guess what.....the bug is back now....grrrr....
Anyways....I'm running 2.1.1 with Hotfix....I had pasted a bunch of the terminal readout before the bug hid but edited it out.....lessee....
Quote
Load 'slot0'
...subsystem 'base' - loaded 5716 bytes
Initializing aircraft and aircraft-items ...
...aircraft and aircraft-items inited
Activate stage intro
...subsystem 'campaign' - loaded 215 bytes
...subsystem 'hospital' - loaded 2 bytes
...subsystem 'market' - loaded 2176 bytes
...subsystem 'research' - loaded 6288 bytes
...subsystem 'employee' - loaded 6048 bytes
...subsystem 'aliencont' - loaded 0 bytes
...subsystem 'production' - loaded 9 bytes
...subsystem 'aircraft' - loaded 1 bytes
...subsystem 'messagesystem' - loaded 618 bytes
...subsystem 'stats' - loaded 28 bytes
...subsystem 'nations' - loaded 32 bytes
File 'slot0' loaded.
Changing to Singleplayer
Save 'slot1'
...subsystem 'base' - saved 5716 bytes
...subsystem 'campaign' - saved 259 bytes
...subsystem 'hospital' - saved 2 bytes
...subsystem 'market' - saved 2176 bytes
...subsystem 'research' - saved 6288 bytes
...subsystem 'employee' - saved 6048 bytes
...subsystem 'aliencont' - saved 0 bytes
...subsystem 'production' - saved 9 bytes
...subsystem 'aircraft' - saved 1 bytes
...subsystem 'messagesystem' - saved 709 bytes
...subsystem 'stats' - saved 28 bytes
...subsystem 'nations' - saved 32 bytes
Failed to save campaign 'blah blah' !!!
Save user settings to /home/syn/.ufoai/2.1.1/base/config.cfg
Could not open '/home/syn/.ufoai/2.1.1/base/config.cfg' to store the user settings
Can not open /home/syn/.ufoai/2.1.1/base/history for writing
SDL audio device shut down.
recursive shutdown
Bearing in mind I loaded the game that it saved when I thought I had fixed whatever the issue is....but now all of a sudden it won't save again.

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Save file Size Mismatch error
« Reply #4 on: August 20, 2007, 08:06:39 am »
it looks like you don't have permissions to write into the savegame dirs - see the last lines of the output and check the permissions for every of those directories

Offline Malochai

  • Cannon Fodder
  • **
  • Posts: 4
    • View Profile
Re: Save file Size Mismatch error
« Reply #5 on: August 20, 2007, 08:50:52 pm »
Actually yeah....I was hopping on to report the fact that upon waking up today decided to try "sudo ufoai" for spits and giggles....so yeah that worked....basically the game isn't being given privileges to write it's own save file....well....bit of a nuisance....
...Even more so with Ubuntu....had to take a long road around using "gksu" to run a nautilus window in order to change the permissions on the folder.....but it's done.....thanks for the help though.... 

Offline Pard

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: Save file Size Mismatch error
« Reply #6 on: January 05, 2008, 02:35:05 pm »
This is moronic that I have to start the game but writing 'sudo ufoai' rather than just 'ufoai' to be able to save. How am I supposed to create a menu or desktop shortcut, huh?

Offline Pard

  • Cannon Fodder
  • **
  • Posts: 2
    • View Profile
Re: Save file Size Mismatch error
« Reply #7 on: January 05, 2008, 02:53:53 pm »
PROBLEM SOLVED!

All you need to do to be able to save games while starting game as a normal user using 'ufoai' is:

After installing the game you have to switch to root and give full access rights to the folder /home/<user>/.ufoai to the user.

I did it using Gnome Commander starting it with 'sudo gnome-commander' and now I can save games without having to start the game from the root account :P

Thank you :)

Offline Mattn

  • Administrator
  • PHALANX Commander
  • *****
  • Posts: 4831
  • https://github.com/mgerhardy/vengi
    • View Profile
    • Vengi Voxel Tools
Re: Save file Size Mismatch error
« Reply #8 on: January 06, 2008, 02:29:59 pm »
did you start the game the first time from within the installer? and did you start the installer as root or installed it system wide?

Offline BTAxis

  • Administrator
  • PHALANX Commander
  • *******
  • Posts: 2607
    • View Profile
Re: Save file Size Mismatch error
« Reply #9 on: January 06, 2008, 02:43:17 pm »
He's been over this with Tron. The conclusion was that there must be a problem with the installer. Log here: http://pastebin.com/f26d0100