stringbefore;stringafter;bankprogressBank=BankLoad("test",1);//Load bankbefore=BankValueGetAsString(progressBank,"a","b");//Check if "c" is thereBankValueSetFromString(progressBank,"a","b","c");//Add cafter=BankValueGetAsString(progressBank,"a","b");//Check resultBankSave(progressBank);//Save to diskTriggerDebugOutput(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?
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?
0
Hi,
I have this galaxy code:
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?
0
@gexicide: Go
bump.
Noone using mac here?
0
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?