{"id":143,"date":"2008-04-28T13:32:34","date_gmt":"2008-04-28T03:32:34","guid":{"rendered":"http:\/\/www.vectorstorm.org\/?p=143"},"modified":"2008-04-28T13:32:34","modified_gmt":"2008-04-28T03:32:34","slug":"networking-added-to-core-vectorstorm-engine","status":"publish","type":"post","link":"https:\/\/www.vectorstorm.com.au\/2008\/04\/28\/networking-added-to-core-vectorstorm-engine\/","title":{"rendered":"Networking added to core VectorStorm engine"},"content":{"rendered":"

\"Showing<\/a>I’ve now put a first pass implementation of very basic networking into the core VectorStorm engine.\u00a0 This is only a very, very rudimentary implementation (and will currently only work under UNIX operating systems;\u00a0 I need to load it up under Windows and add the necessary extra WinSock calls.\u00a0 Shouldn’t take but a few minutes).<\/p>\n

Here’s a screenshot of the Testbed game, which talks to a special server I was running on vectorstorm.org for a short while.\u00a0 It’s not doing anything fancy, but it’s passing data back and forth.\u00a0 Network packets are constructed using memStores (which were already being stored in network byte order, in preparation for this), and you use one or more vsNetClients and a vsSocket to specify where packets should be delivered.<\/p>\n

Eventually, I’ll build cryptography in.\u00a0 But this was a nice first step.\u00a0 And it’s in the public SVN repository now.\u00a0 :)<\/p>\n

In other news, I’ve also added what I call “String Mode” to the input system.\u00a0 Put the input system into “String Mode”, and the keyboard will stop acting as an emulated gamepad, but will instead construct a text string as though you were typing into a text editor.\u00a0 This is in preparation for TIG’s all-but-inevitable “Procedural” competition, where I’ll want to accept a string input by the player in order to initialise my world generation algorithm.\u00a0 This also is now in the public SVN repository.\u00a0 (Though it’s kind of ugly;\u00a0 right now it only supports basic alphanumerics and spaces.\u00a0 No punctuation or unicode characters.)<\/p>\n","protected":false},"excerpt":{"rendered":"

I’ve now put a first pass implementation of very basic networking into the core VectorStorm engine.\u00a0 This is only a very, very rudimentary implementation (and will currently only work under UNIX operating systems;\u00a0 I need to load it up under Windows and add the necessary extra WinSock calls.\u00a0 Shouldn’t take but a few minutes). Here’s…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[4,3],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/po9WK-2j","_links":{"self":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/143"}],"collection":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/comments?post=143"}],"version-history":[{"count":0,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/posts\/143\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/media?parent=143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/categories?post=143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vectorstorm.com.au\/wp-json\/wp\/v2\/tags?post=143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}