save/load bank; saving player name to bank problem

Discussion in 'Starcraft 2 (SC2) Editor Help' started by Yoshii, Apr 24, 2010.

  1. Yoshii

    Yoshii New Member

    Ratings:
    +74 / 0 / -0
    anyone had any luck with the bank trigger? I got it working on my map( it save unit kill then i can load it next map) but my main issue is that I cant put the player name to a a key or section name has it only accept string and string in the editor cant in any way be set to player name (only text variable can be set to playername).I must have tried every way to do this and it wont accept anything.

    basically im trying to find a way to save the player name like this
    Bank - Store integer HeroKillsave as "Kill" of section "Playername" in bank (Last opened bank)

    instead of Bank - Store integer HeroKillsave as "string" of section "string" in bank (Last opened bank)

    so that I can retrieve the value stored for the correct player later on.

    heres you can see in my map the loading value work fine but on bnet with many player it simply wont work
    http://img404.imageshack.us/img404/1033/saveload.jpg
    having a different bank for different player will not work also have people will change color and wont be able to access correct bank.

    so anyone played with the bank stuff?
     
  2. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    You can convert Text to String... Just store player name before, convert to string, and use it.
     
  3. Yoshii

    Yoshii New Member

    Ratings:
    +74 / 0 / -0
    I already tried this however the issue is in GUI, the convert to text to string option does not appear in the "function" list when I use the bank function or even set variable, only string to text appear

    http://img717.imageshack.us/img717/9766/lookj.jpg you can see for yourself
     
  4. Sevion

    Sevion The DIY Ninja

    Ratings:
    +423 / 0 / -0
    Custom Script.
     
  5. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    How weird, I see this function using the same exact call.
     
  6. EpicFlux

    EpicFlux Active Member

    Ratings:
    +5 / 0 / -0
    So how does the bank system work. Do we set it up like we would in World Editor save/load triggers or does it have some base functions that make it easier.
     
  7. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    The bank system, I explained in a post in the success thread, is like game cache, but does not go away between maps yet can be use in multiplayer as well, and prevents collision a bit better.
     
  8. EpicFlux

    EpicFlux Active Member

    Ratings:
    +5 / 0 / -0
    Sound interesting enough. Though does that mean between computers one couldn't load their saved character since it's in the games cache?
     
  9. Yoshii

    Yoshii New Member

    Ratings:
    +74 / 0 / -0
    really? how? care to post a pic?

    and ya the bank system is kinda limited as the file that hold the value is easily editable..
     
  10. EpicFlux

    EpicFlux Active Member

    Ratings:
    +5 / 0 / -0
    That kinda sucks if it's just native between computers. Is it possible to just to use a similar system in Galaxy Editor to save via variables like in World Editor, cause if so then that banking system won't be so useful. Or possibly make the banking system save not the the games cache but to variables so you can go between computers and still be able to load saved characters cause this is a problem for FFORPG if that's the only way we can save now.
     
  11. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    What the bank does is save to a type within a key, within a section, within a named bank. I'm not entirely sure if banks collide yet, as I haven't tested it...
     
  12. salem

    salem New Member

    Ratings:
    +3 / 0 / -0
    I have the same problem with my map. And btw there is no "Convert Text to String" function. Any progress here? If i knew how to add custom script i would make the function i need, but i don't know much about custom scripts with this editor (i know some basic C++ though).
     
  13. Steel

    Steel Software Engineer

    Ratings:
    +109 / 0 / -0
    You could just be a badass and convert the player's name to integers and then store those.
    Example, "Steel" = 083116101101108

    ASCII values in Decimal, leading zeros are required
    [###][###]....[###]
     
  14. salem

    salem New Member

    Ratings:
    +3 / 0 / -0
    Can't do that since you can't use "Text" for comparisons in your condition and you can't convert it to string either so not much can be done here...
     
  15. SerraAvenger

    SerraAvenger Cuz I can

    Ratings:
    +236 / 0 / -0
    Just add a hash+password protection...
    AFAIK, banks are stored on blizzard servers.
    That's why you are able to edit any other bank from any other map. A hash+password protected system is required to get a somewhat safe experience.
     
  16. Renendaru

    Renendaru (Evol)ution is nothing without love.

    Ratings:
    +309 / 0 / -0
    Banks are on your computer, stored in a SC2Bank file. Documents > Starcraft II Beta > Banks.
     

Share This Page