Hey
So one day i was scanning the sharpcraft forums and thought .. hey that HTTP thing is really awesome..
But it took an entire 2 seconds to realize we would never be able to use it on an actual map .. because if a map wont even start without a custom version of warcraft 3 it would be completely unable to spread and the community would be doomed.
I therefore set out to develop a solution to this problem.. and.. well now i would like to present the very first proof of consept
What you can use this for:
How it works:
Misc
It is possible to trick warcraft into using RAM in stead of the hard drive(TESTED). so you can all just shelve all of the tis'-gon'-killz-meh-HD-arguments..
I'll be posting the code in a few days hopefully. would likle to get rid of the most embarrassing bugs before u all hate me for it
So one day i was scanning the sharpcraft forums and thought .. hey that HTTP thing is really awesome..
But it took an entire 2 seconds to realize we would never be able to use it on an actual map .. because if a map wont even start without a custom version of warcraft 3 it would be completely unable to spread and the community would be doomed.
I therefore set out to develop a solution to this problem.. and.. well now i would like to present the very first proof of consept
What you can use this for:
- Asking for the users compuiter to do something. such as say the local time.. or well cuple of things. they do need to be precoded in the external application tho.(users without it CAN still play the game but not use the features..)
- generate a HTTP request to an external web service.
- something i was too tired to think of ..
How it works:
- you run the external service application*
- you start warcraft3 and start the map.
- your JASS creates a new SystemRequest instance and initializes it with all relevant data.
- you commit the request.. (SR.commit() or SR.get(callback))
- a file will be crated on your hard drive with the request data.
- SR timer will periodically poll the response file to see if the anwser is there..
- external app reads file and processes it.
- external app writes back response file and deletes query file.
- jass finds response file and reads it in.
- jass creates a file with a special DEL token.
- external application deletes all files for that request. and does any other cleanup.
- jass code calls the callback function if set.
- jass code will auto-destroy the request unless said otherwise (8k instances.. need reuse em indexes! )
Misc
It is possible to trick warcraft into using RAM in stead of the hard drive(TESTED). so you can all just shelve all of the tis'-gon'-killz-meh-HD-arguments..
I'll be posting the code in a few days hopefully. would likle to get rid of the most embarrassing bugs before u all hate me for it