• Server plugins and performance
    5 replies, posted
The previous few days I worked on an IronPython plugin system. Today I woke up and I wanted a Javascript plugin system too. So I wrote up a thing that lets me implement some interfaces and use whatever the fuck scripting language I want. I'll probably do Lua and C# eventually too. https://streamable.com/zhhfy The deathmatch python plugin is functional, here it is in action: https://streamable.com/m4qiu All it does is spawn you with a few weapons when you die. I'm open to the possibility of some L4D2 type of game or gamemode with mass hordes of enemies, so I kinda want good performance with my networking and entities. I've been profiling with 64 tick and up to 100 bots in the server (with guns and knives, the total entity count sat at around 230). There's a lot of work to do yet, but at least it's a playable framerate. ~230 entities sending at 30 times per second put the server at about 1.2gb of bandwidth per hour for 1 connected player, so I'm gonna have to refine my delta updates a bit. https://streamable.com/szm4q
If S&box got Javascript support I would bust a big ol' nut.
I might port over my scripting thing just for the hell of it
Hell yea! I'll invest in it.
P L E A S E don't force us to use C# with s&box. give us the javascripts also, can you all consider maybe doing something that allows wrappers to be easily made so we can really do any lang?
You're not forced to do anything. Implement your own scripting language. Lua, brainfuck, javascript...
Sorry, you need to Log In to post a reply to this thread.