• 0

    posted a message on Banks not working as intended

    Hi,

    I have this galaxy code:

        string before;
        string after;
        bank progressBank = BankLoad("test",1);     //Load bank
        before = BankValueGetAsString(progressBank,"a","b"); //Check if "c" is there
        BankValueSetFromString(progressBank,"a","b","c"); //Add c
        after = BankValueGetAsString(progressBank,"a","b"); //Check result
        BankSave(progressBank); //Save to disk
        TriggerDebugOutput(1, StringToText("Before:" + before + " After:" + after), true); 
        //Always displayes only the second c
    

    It is embedded in a custom script init function. The last line (the debug output) shows up, so the code gets executed. I load a bank, add a value to it and save it. If I run this map twice, the value should be in the bank even before I add it (since the bank was saved). However, it isn't! The debug output always shows only the second c. In addition, no bank file gets created in the banks directory.

    So what am I doing wrong? Are there any restriction on banks, like they cannot be created during map init?

    Posted in: Galaxy Scripting
  • 0

    posted a message on Launching a map from command line

    @gexicide: Go

    bump.

    Noone using mac here?

    Posted in: Miscellaneous Development
  • 0

    posted a message on Launching a map from command line

    Hi,

    can anybody tell me how to successfully launch a map from command line?

    This seems to be a mac related problem. I am getting it to work using Windows, it just fails under MacOS

    Using OS X I tried the following, which used to work in the beta
    open "/Applications/StarCraft II/StarCraft II.app" --args  -displaymode 0 -trigdebug -preload 1 -NoUserCheats -reloadcheck -difficulty 0 -speed 2 -run "/Projects/Map/out.SC2Map"

    The path to sc2 and to the map are okay for sure. SC2 starts, but only shows the normal bnet login promt instead of starting the map. The map can be started using the editor, so the map itself can't be the problem. I rather think it is a bnet authentication problem. Does someone have the answer to this?

    Posted in: Miscellaneous Development
  • To post a comment, please or register a new account.