WebSockets: What do you want?

Post your work in progress addons and get feedback

Post » Wed Sep 25, 2013 8:27 pm

I can see that JSON is a plus. I used to be against JSON and typically am against any non-native browser extensions, like jQuery, which I regard as bloat-ware. I could always provide the exact same support in native JavaScript, even allowing JSON standard messaging. People who got used to the frameworks also never seemed to realize that you could do the same things in JavaScript. But JSON is now native to all major browsers, so it kind of doesn't matter how I implement it. Sure, no problem sending JSON into the game ... none at all ... I don't even have any theological problems with it. :)

I have some ideas for providing a very powerful, but very easy way to program the server-side logic.
B
6
S
1
Posts: 76
Reputation: 606

Post » Thu Sep 26, 2013 7:53 am

Thanks for the comments Rushino. Although I don't use C# myself, you've set me to thinking.

From what I gather, free educational-use Microsoft tools are used in schools quite a bit and C# is one of the languages students use. So, there are a lot of people who have learned it and are used to it. The HLL framework was written with the idea that people can build app components in any language. I have a free C# compiler on my dev machine which I guess still works (although I've updated .NET since I got it ... so long ago). I'll put doing a short demo on my to-do list.
rogerfgay2013-09-26 07:57:19
B
6
S
1
Posts: 76
Reputation: 606

Post » Thu Sep 26, 2013 4:52 pm

You can use visual studio 2012 express.Its free! You certainly dont need to buy the pro one plus the express enable commercial use.
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Thu Sep 26, 2013 8:25 pm

[QUOTE=Rushino] You can use visual studio 2012 express.Its free! You certainly dont need to buy the pro one plus the express enable commercial use.[/QUOTE]

Yes, now I remember. That's what I have. Maybe I should download again since it's been so long. Might be some updates.
B
6
S
1
Posts: 76
Reputation: 606

Post » Thu Sep 26, 2013 9:53 pm

C# is one of the most popular language and really easy to use. The framework is an huge advantage for server logic so that basically why i think it rock. But well everyone have their own tastes and opinion. I changed the way i work i now go for a DRY and KISS approaxh and that enough for me.
B
16
S
5
G
1
Posts: 190
Reputation: 2,489

Post » Fri Sep 27, 2013 6:54 am

Being a tool builder and with my love for pushing beyond the cutting edge might give me a different perspective. But you've reminded me that is exactly what I have to keep in mind. I actually know this, but when focused on things I'm doing, I'm also focused on my own development approach. In the end, a "product" must appeal to its users and their preferences. You're not the first to mention that you use C# in app development.

I'm hoping a lot of this won't take too long. I've done the core of the really big work already. WebSocket server in hand, it's now down to features aimed to support game development. So ... not being in the top spot on my to-do list shouldn't be terribly important. I think my to-do for language support looks like this:

1: XML supporting arbitrary command language
2. JavaScript for server logic
3. C/C++/C# extensions

Unless something pops-up and takes over my time, I should have XML looking pretty good by Monday. "Arbitrary command language" means a game developer can decide on their own set of messages. Note: JSON isn't on the list because it's supported in the browser and can be used anywhere, messages in the XML for example.

JavaScript ... I've had this on the list for a long time and it's about time I did something about it. Up to now, all my server-side handlers have been written in Java. The success of Node.js for example, is directly related to the fact that there are a lot of people who know how to program in JavaScript who want to use this sort of technology.

C/C++/C# can all be addressed with Java's Native Interface (JNI).
B
6
S
1
Posts: 76
Reputation: 606

Post » Fri Sep 27, 2013 7:24 am

I might as well go ahead and promote HLL XML processing a little. I'm going to adapt something that I developed in the framework. The idea was that the HLL development system supports a very powerful way to "configure" applications. I have quotes around "configure" just to add emphasis. Configuration becomes a more important part of developing end applications ... reuse of components. Kind of a next step beyond SOA, might be one way to put it.

I think it's ripe for supporting development the way C2 does it, more or less. I'll see if I have time for a simple HTML interface for creating back-end logic this weekend. Not sure I'll have time for that step by Monday, but ... maybe a very simple version.
B
6
S
1
Posts: 76
Reputation: 606

Post » Fri Sep 27, 2013 4:03 pm

I don't see why no ones using Node-Webkit.
You could introduce a npm package via the plugin sdk, and write all your server side logic in Construct.
Image ImageImage
B
170
S
50
G
179
Posts: 8,379
Reputation: 113,427

Post » Fri Sep 27, 2013 4:59 pm

[QUOTE=newt] I don't see why no ones using Node-Webkit.
You could introduce a npm package via the plugin sdk, and write all your server side logic in Construct.[/QUOTE]

Interesting. I'm going to try to imagine how it might be useful in my work. It's not WebSockets though ... just to make sure we're on the same page; and the only page I read was the C2 intro. https://www.scirra.com/manual/162/node-webkit

It says it uses Ajax (asynchronous http) to read files from the application folder.

Actually though ... I can set up the HLL WebSocket server to get files as well. .... OK, brain cooking ... I wonder if it could be interesting to also give the WebSocket server the ability to fetch files from your C2 subscription application folders? ....

Well ... What would you like to do with it?
B
6
S
1
Posts: 76
Reputation: 606

Post » Fri Sep 27, 2013 5:07 pm

Well it really wont have a lot to do with the Node-webkit plug, although you would want it to do some file work perhaps.

What you would really want to do is use the Node.js side of it.

https://github.com/rogerwang/node-webkit

And have C2 be able to make both the server, and the client.
Image ImageImage
B
170
S
50
G
179
Posts: 8,379
Reputation: 113,427

PreviousNext

Return to Work in Progress Addons

Who is online

Users browsing this forum: No registered users and 0 guests