1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Welcome to Castle Story Online - Official Forums!
The Official forum for Castle Story! Forums include a wiki, gallery, and irc chat room.

You are currently viewing our community forums as a guest user. Sign up or
Having an account grants you additional privileges, such as creating and participating in discussions.

Manually fixing saves

Discussion in 'Discussion' started by Wild_Doogy, Oct 21, 2012.

  1. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    I went in to the save folder and poked around until I figured out how to fix the saves so they are less broken. I figured out how to delete:

    • Mines
    • Woodcutting jobs
    • Construction jobs (though they load pretty much ok)
    • Groups:
      • Mining
      • Woodcutting (though if there are any woodcutting groups, the game will not save to begin with.)
      • Construction
    • 5 random Bricktrons so you load the right number.
    ##################################
    Here is the script download links:

    64 bit version. (old and crappy)
    https://www.dropbox.com/s/njt0iblnv3ndg67/CastleStorySave-64.zip

    32 bit version. (New and better. No need to use the 64 bit version.)
    https://www.dropbox.com/s/3z3xls1ajfpllbh/CastleStorySave-32.zip

    Source Code. Also works on Windows, Mac, and linux. you will need to install python for this to work.
    https://www.dropbox.com/s/1w21d0cb4uq6bc7/CastleStorySave Version 1.0.py

    ##################################

    Here is how to do it manually:

    There are two files to edit in the save dir:

    • autre data.brx
    • objets.brx
    in objets.brx you want to make

    @Autres=[Array]

    instead of:

    @Autres=[Array @Pages 'n
    @Pages 'n
    @Pages of junk
    ]

    to do this, find where it says “@Roches” and delete everything from there back to “@Autres=[Array” and then add a “]” on the end. That will delete all the broken mines, and woodcutting jobs.


    To delete the groups go to “autre data.brx” :

    This file is really nasty to edit as it is all one line. See if you can use notepadd++ to replace every “@” with “\n@” so each item is on a new line. Don't worry, the game will load the file fine.

    Then find every line that says:
    “@Groupe Miner” at the beginning. (extra mining groups gone :) )

    Rename a couple of the bricktrons for fun.

    Alternately, delete all the
    “@ArbreCoupe” lines to grow all your trees back.

    Do not delete any @Bricktron lines, as if they are referenced in the groups, the save will not load. Put them to work for extra instability points, or drop them off an island by removing the block they are standing on.


    ~Wild_Doogy
  2. Plazmic Flame Member

    Castle Story:
    Plazmic Flame
    I'm sure many people would want this including myself. I played 12 hours straight and did A LOT. Would be nice to recover that save file if I can.
  3. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    Save early and often. also make sure there are no woodcutting groups when you save. (the woodcutting group icon should be gray and small.)
  4. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    I edited my post and added a section on how to do it manually. Working on the script / server now.
  5. Illanair Member

    *squint*

    So you're telling me that by renaming the game folder, savegames are magically fixed? :rolleyes:

    I'm going to have to call BS on that sir.
  6. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    Errrr no. but by
    errrrr, no. but by hatcheting 90% of the save file, yes, the save is magically fixed. I will look at it more closely when it is not 6 am.
  7. Illanair Member

    :D

    That makes more sense.
  8. Intradox Forum Developer

    • Administrator
    Castle Story:
    intradox
    Moved to General Discussion for Castle Story
  9. Chili New Member

    Castle Story:
    Chili
    "also delete the last 5
    “@Bricktron” lines, so you have the same number of bricktrons after you load."
    Will this just remove 5 random bricktrons or the 5 bricktrons that are forcefully spawn at the spawn point? Because the last 5 of mine seems to be miners.
  10. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    It will delete the last five Bricktrons, and that may mess up the mining group that references them. I am not sure what will happen, but I am pretty sure it will load fine since I remember doing it at least once.
  11. Jodern New Member

    That's weird, I always have a woodcutting group, but the game saves perfectly for me
  12. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    Strange, it doesn't finish creating all the save files for me.

    I am working on the script and hope to have a program for you guys to download soon.
    Thullias likes this.
  13. Andrea Member

    I'm really waiting for the new version of prototype... Clean load/save function will save mah day.
  14. Aside from the group issue and extra Bricktronian dudes, I haven't had the save/load issues since the first night I played. At first, I couldn't save at all, since then, it has worked fine.
  15. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
  16. Freakout2114 New Member

    Castle Story:
    Freakout2114
    Hey if its not too much trouble is it possible to make a 32bit version of your program, because i cant get it to run... But thanks for the help :D
  17. yvoo Well-Known Member

    Castle Story:
    yvoo
    Uhhh. My saves not loading like it tries to load, but it freezes. :(
  18. kingsmill New Member

    yeah my first save went okay but after that all the save did was save the voxel data, therefore my builds were okay but I couldn't load it because all the other files just weren't there. Ended up getting the nessesary files from my first save and pasting them into the rest. Its sloppy but it allows me to go back to previous games.
  19. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy
    That is a good idea. From my experience, that happens when you try to save while you have a woodcutting group. (Sometimes it works, and sometimes it doesn't. its strange, and prototype-y)
  20. Wild_Doogy New Member

    Castle Story:
    Wild_Doogy

    Yes, I can definitely make a 32 bit program. should be done soon.



    The save files can be huge, so let it run for a while. I will add a progress thingy to the program so you can tell if it is still working and not crashed.

    ~Wild_Doogy
    Freakout2114 likes this.