GenkiGenga — rexrainbow
Thanks for the kind words guys, I really appreciate that.
Kyatric
Haha, you are too right. I'm prone to being affected by the "feature-adding" syndrom as you call it. Ha, but no worries, I'll release it as soon as I can.
Here's a little bit about the design of the plugin (suggestions are welcome):
So as I've mentioned a little bit of coding knowledge will be required. Fortunately, we are dealing with javascrip so nothing too complicated. So basically, nowjs works in the following way.
Lets suppose you have a function called receiveMessage(msg) on your server. To make it accessible to the client (the player that will be participating in the game) you will have to put the prefix "everyone.now." in front of it. So your function turns into "everone.now.receiveMessage(msg)". To access this function from the client (speak, from your HTML5 application) you simply call it with "now.receiveMessage("Your message goes here")".
The same thing of course works the other way around.
Now, CS2 plugin wise this would be very difficult to implement without limiting the potential of nowjs. To make it really simple I could just "hard-code" a couple of functions into the plugin and whoever uses it will be able to call them (like for example receiveMessage, registerPlayer and so on). However, I feel like this would be the wrong approach, as I really don't know which functionality you guys are interested in the most.
So I feel like doing the following:
Firstly the plugin/behaviour will have two core actions: "call function", "receive response". Now "call function" will just call a function that you yourself have defined already. This would involve a couple of modifications to the runtime.js file of the plugin. I know this might sound a little complicated, but thats why it's taking me a little longer to release this and make it accessible to everybody.
Everything will be fully commented and explained. I'll also include around 10-20 examples of C2 project, plugin modifications + server codes as well as point you to some comprehensive resources in case you get stuck.
So that's the plan for now. What do you think?
Cheers