So the idea is, send strings of javascript from client to server and vice versa and when a client recieves it (or the server) it will eval it and do something with the code. This would allow for things such as server mods, speedy connection (I think) because there would be no need for packets, and also simply the support for client mods.
So i’m stuck. I’ve already scrapped my original design for the networking in my game and started to work with kryonet. So before i scrap my kryonet code, I would like to ask if any of you people out there know of any bad things or good things that could come with using javascript? Thanks!
Just looked up jnode. I knew id heard of it. I have it in my virtualbox lol. But i dont see what i’m dong thats similar to it?
Oh wow I misunderstood what you meant!
lol what did you think i said?
If I were you I would not have javascript commands evaluated over the network. For server mods, just modify anything needed on the server. Client mods could just be supported without any javascript code over the network, just running on the client. Also, the packets shouldn’t be filled enough to make javascript command evaluation a less intensive solution.
Don’t do it.
If you’re looking at javascript and it starts to seem like a viable solution to you, than you need to heavily rework the way you network your games.