I have attempted to contact s3rius (author of StarCode http://www.sc2mapster.com/forums/resources/trigger-libraries/5091-library-starcode-v1-4/) but so far no reply. Does anyone know how difficult it would be to take a Library and use it via a web app (written in PHP or Ruby on Rails)....I guess the simplest thing would be a commandline program that could run in Linux. I guess I'm asking how difficult it would be to port StarCode to a stand-alone Linux executable, or if that has already been done...? The goal here is to allow players to upload banks to a website which can decrypt them...this would be an attempt at a true centralized scoring system (as opposed to viral, which is the best you can do in Bnet).
A library is written in galaxy. You just have to look at what the person was doing in the triggers or galaxy script and then try to use that to guide the design of your webapp. You can't convert a program between languages without some kind of high level representation that they might share so you have to understand all of the nuances of the language and accommodate the grammers. Such a thing is akin to trying to write the front end of a compiler or virtual machine.
In any case you would be better off avoiding that approach and starting directly with his program's output as your programs input.
Since banks are mostly XML you can just parse out the information for what you are looking for- but these things can get increasingly complex depending on what the bank has in it.
Also if you have the power over the map design you can correlate what you create in the bank with what you look for in your app.
Wasn't someone on the forum voicing out awhile ago about a similar system in the works? It was called EAGLE, and the fella was complaining about how Blizz ignored EAGLE and promotes GLOOP.
Extra info:
From some trials I've had with banks, I actually found that when they are opened during a game, they seem to be stored in some kind of buffer. That is, if you write values to the bank, it will not update the physical bank file in your documents until the game is over, thus making it impossible to read scores in real time.
Since galaxy script is so close to c++, it doesn't take much energy to convert a script to a c++ program.. Just copy the script, and make some c++ functions that does the same as the native functions.
I did it for that starcode library.. Didn't take long.
I have attempted to contact s3rius (author of StarCode http://www.sc2mapster.com/forums/resources/trigger-libraries/5091-library-starcode-v1-4/) but so far no reply. Does anyone know how difficult it would be to take a Library and use it via a web app (written in PHP or Ruby on Rails)....I guess the simplest thing would be a commandline program that could run in Linux. I guess I'm asking how difficult it would be to port StarCode to a stand-alone Linux executable, or if that has already been done...? The goal here is to allow players to upload banks to a website which can decrypt them...this would be an attempt at a true centralized scoring system (as opposed to viral, which is the best you can do in Bnet).
@jcraigk: Go
This might interest you http://www.teamliquid.net/forum/viewmessage.php?topic_id=302997
A library is written in galaxy. You just have to look at what the person was doing in the triggers or galaxy script and then try to use that to guide the design of your webapp. You can't convert a program between languages without some kind of high level representation that they might share so you have to understand all of the nuances of the language and accommodate the grammers. Such a thing is akin to trying to write the front end of a compiler or virtual machine.
In any case you would be better off avoiding that approach and starting directly with his program's output as your programs input.
Since banks are mostly XML you can just parse out the information for what you are looking for- but these things can get increasingly complex depending on what the bank has in it.
Also if you have the power over the map design you can correlate what you create in the bank with what you look for in your app.
@jcraigk: Go
Wasn't someone on the forum voicing out awhile ago about a similar system in the works? It was called EAGLE, and the fella was complaining about how Blizz ignored EAGLE and promotes GLOOP.
Extra info: From some trials I've had with banks, I actually found that when they are opened during a game, they seem to be stored in some kind of buffer. That is, if you write values to the bank, it will not update the physical bank file in your documents until the game is over, thus making it impossible to read scores in real time.
Since galaxy script is so close to c
++
, it doesn't take much energy to convert a script to a c++
program.. Just copy the script, and make some c++
functions that does the same as the native functions.I did it for that starcode library.. Didn't take long.
@FuzzYD: Go
If the map uses the Save Bank trigger action often enough, it should work.