if (GetActivePerson() != GetInputPerson()) return;
Okay, figured out why cars can pick up flags and stuff in Puff-Puff, it's not technically a bug. Sphere 1.x only calls the touch-script for input person collisions, minisphere does it for all entities. Despite that the behavior is not fully compatible, in almost all cases, minisphere's semantics here are preferable. Persons should be able to respond to anyone touching them, not just the player(s).
Lookie here:https://travis-ci.org/fatcerberus/minisphere
Quote from: Lord English on June 26, 2015, 01:24:17 amLookie here:https://travis-ci.org/fatcerberus/minisphereNice! I suppose this will warn you of building issues before I get the chance to complain () about it, right?
var LocalPort = 9500; var Listen = 255; // MAXCONNECT var server = new ListeningSocket(LocalPort, Listen); if(! server ){Abort("Could not open socket on " + LocalPort)} var socket = server.accept(); if(socket === NULL){Abort("Could not accept socket")} if(socket.isConnected()){ var len = socket.getPendingReadSize(); if(0 < len && len < 1024){ var BUFFER = socket.readString(len); socket.write("404 Not Found\n\r\n\r"); Abort(BUFFER); }else{ Abort("len is not ok " + len); } socket.close(); }
var socket = server.accept();
JS Error: main.js:10 - TypeError: not callable
I'm not giving up C99, I like my // comments and sized ints too much.
obj/utility.h:6:8: warning: (this will be reported only once per input file)In file included from obj/animation.c:2:0:obj/api.h:1:14: warning: ISO C forbids forward references to 'enum' types [-Wpedantic] typedef enum js_error js_error_t;
CFLAGS = ["-Wall", "-std=c99"]minisphere = Program("msphere", msphere_sources, LIBS = msphere_libs, CFLAGS = CFLAGS)
Thanks a TON! It is unbelievable how fast you update and commit.Good code too, will re-test stuff later-on. I'm trying to get the networking working, but I seem to either not "getting" it, or there is a bug:Code: [Select] var LocalPort = 9500; var Listen = 255; // MAXCONNECT var server = new ListeningSocket(LocalPort, Listen); if(! server ){Abort("Could not open socket on " + LocalPort)} var socket = server.accept(); if(socket === NULL){Abort("Could not accept socket")} if(socket.isConnected()){ var len = socket.getPendingReadSize(); if(0 < len && len < 1024){ var BUFFER = socket.readString(len); socket.write("404 Not Found\n\r\n\r"); Abort(BUFFER); }else{ Abort("len is not ok " + len); } socket.close(); }But forCode: [Select]var socket = server.accept();it throws: Code: [Select]JS Error: main.js:10 - TypeError: not callableI wrapped it in a try loop, of course, but even then, a webbrowser connects, but then "hangs" (as opposed to an immediate "unable to connect" error). So we know it is connecting, but it seems it is not able to start up communications.