Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Saving / Loading Tutorial

Discussion in 'StarCraft II Tutorials' started by SteelTDG, May 6, 2010.

  1. SteelTDG

    SteelTDG

    Joined:
    Jun 16, 2007
    Messages:
    39
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Originally posted at jx3.net/tdg, since the formatting is different between forums I can't post the entire thing here without a lot of grief. Our size tags differ from HiveWorkshops's.

    These steps show how to save a hero's level / experience. This has been considered extremely difficult but as you can see for yourself, it is easier than you think. Saving units and loading them is quite simple since there is a function there.

    The Tutorial

    The original post also contains a demo map.
     
  2. killer1390

    killer1390

    Joined:
    Mar 19, 2008
    Messages:
    90
    Resources:
    0
    Resources:
    0
    Pretty sweet tutorial. Thanks for link.:grin:
     
  3. Pyritie

    Pyritie

    Joined:
    Nov 26, 2006
    Messages:
    11,356
    Resources:
    60
    Models:
    30
    Icons:
    9
    Packs:
    3
    Skins:
    12
    Tools:
    1
    Maps:
    1
    Tutorials:
    4
    Resources:
    60
    Moved to the tutorial section
     
  4. Serbianbeast

    Serbianbeast

    Joined:
    Sep 26, 2005
    Messages:
    1,070
    Resources:
    9
    Models:
    1
    Icons:
    2
    Maps:
    6
    Resources:
    9
    Btw, is this bank stuff same like cache in wc3? I mean, it saves it on local computer, not online database?
     
  5. JakeCake

    JakeCake

    Joined:
    Dec 17, 2007
    Messages:
    425
    Resources:
    2
    Tools:
    1
    Maps:
    1
    Resources:
    2
    It is local, and it is not encrypted in any way. The bank file is located in your document's folder.. I am doing a simple function in Galaxy right now to encrypt and decrypt strings.
     
  6. SteelTDG

    SteelTDG

    Joined:
    Jun 16, 2007
    Messages:
    39
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    This stuff can't be reposted here easily for anyone who's wondering why it's a link. TDG's forum uses BB code that I made to hasten our tutorial writing.
     
  7. Pyritie

    Pyritie

    Joined:
    Nov 26, 2006
    Messages:
    11,356
    Resources:
    60
    Models:
    30
    Icons:
    9
    Packs:
    3
    Skins:
    12
    Tools:
    1
    Maps:
    1
    Tutorials:
    4
    Resources:
    60
    That and CHUNK told me you have some sort of agreement with incgamers.
     
  8. SteelTDG

    SteelTDG

    Joined:
    Jun 16, 2007
    Messages:
    39
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    Yea, they helped get a lot of our members beta keys. So this is sort of our way to pay them back.
     
  9. mjllonir

    mjllonir

    Joined:
    May 31, 2009
    Messages:
    432
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Now, although it doesn't saveon an online database, even if it saves as local, if you replay the map in question on the same computer it should be fine no? With this in mind, I am also supposing if you don't play on the same computer, you won't have your "saved" data?

    Is tehre a way to save it on an online database?
     
  10. JakeCake

    JakeCake

    Joined:
    Dec 17, 2007
    Messages:
    425
    Resources:
    2
    Tools:
    1
    Maps:
    1
    Resources:
    2
    Not by now, but you can just merge your XML bank files :) Send it by e-mail, that will also let your friends play with your bank data.
    But the encryption trigger-function I'm making right now, encrypts the string according to the players name, so that's easy to work-around
     
  11. mjllonir

    mjllonir

    Joined:
    May 31, 2009
    Messages:
    432
    Resources:
    3
    Spells:
    3
    Resources:
    3
    Oh, so in a way, if you save it according to the player name it should be able to save "online"?
     
  12. Robbepop

    Robbepop

    Joined:
    Mar 6, 2008
    Messages:
    892
    Resources:
    7
    Maps:
    6
    Spells:
    1
    Resources:
    7
    hiho,

    nice tutorial.
    but there is one important thing which makes this unimportant for multiplayer maps.
    banks have got a storage limit of about 80 in multiplayer and with 1 player.
    this limit is set for a player and can't be avoided by saving stuff in different banks.
    the more players play in a game the lower is this limit.

    a real rpg map would be impossible if you want to give a player for example 8 hero slots.
    if he plays alone in single player he would have 10 values of storage per hero.
    that is why you have to do here the same as in wc3.
    you must create savecodes which you store encrypted in your bank.
    well, hopefully the stringlimit isn't that low... xD

    Robbepop
     
  13. MajicPanda

    MajicPanda

    Joined:
    May 26, 2010
    Messages:
    2
    Resources:
    0
    Resources:
    0
  14. Falconeye

    Falconeye

    Joined:
    Jul 18, 2008
    Messages:
    276
    Resources:
    0
    Resources:
    0
    For saving experience similar to games like undead assault 2 and night of the dead this works fine. But yeah rpgs won't be able to store all the info in the banks with a limit like that.