News for hackers. Stuff that matters.
Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by lucb1e on Saturday May 03, 2014 @07:48PM (#7692756)
Did all you said, modded the openfl version to 1.3.0, then the following:

     - Running command: haxe bin/linux64/cpp/haxe/release.hxml -D HXCPP_M64
    src-client/hidenstab/Client.hx:66: characters 8-21 : sys.net.Socket has no field endian
    src-client/hidenstab/Client.hx:83: characters 15-36 : sys.net.Socket has no field bytesAvailable
    src-client/hidenstab/Client.hx:84: characters 15-36 : sys.net.Socket has no field bytesAvailable
    src-client/hidenstab/Client.hx:89: characters 30-45 : sys.net.Socket has no field readByte
    src-client/hidenstab/Client.hx:90: characters 30-45 : sys.net.Socket has no field readByte
    src-client/hidenstab/Client.hx:98: characters 20-36 : sys.net.Socket has no field readBytes
    src-client/hidenstab/Client.hx:102: characters 20-36 : sys.net.Socket has no field readBytes
    src-client/hidenstab/Client.hx:106: characters 33-54 : sys.net.Socket has no field bytesAvailable
    make: *** [linux] Error 1
Edit: So it's not `make linux` it seems, `make flash` seems to do something... Let's try making the server or something...

Edit2: ./server:

    [...]
    Called from flash/Lib.hx line 191
    Called from /usr/lib/haxe/std/neko/Lib.hx line 30
    Uncaught exception - load.c(237) : Failed to load library : lime.ndll (lime.ndll: cannot open shared object file: No such file or directory)
Edit3: Found lime.ndll in some bin folder somewhere. Copied it over to where ./server is. Now it seems to try to bind to 54.244.244.60 (your server's IP) which of course doesn't work. Server.n is a binary format, that can't be the config file, hmm...

Edit4: Oh there are replies that HN doesn't show in edit mode. Okay. Gonna try this!

Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by bendmorris on Saturday May 03, 2014 @07:52PM (#7692771)
The targets you want are "flash-final" for the client and "server" for the server.

Before building, modify src/hidenstab/Defs.hx to change the host and port.

Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by bendmorris on Saturday May 03, 2014 @07:49PM (#7692760)
In HaxePunk, edit the file "include.xml." Find openfl, remove the version completely (just "<haxelib name=openfl />"), save and try again.
Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by bendmorris on Saturday May 03, 2014 @07:55PM (#7692775)
You'll need to run "lime setup linux" to build the lime.ndll file and then copy it into the hide-n-stab directory.

edit because I can't reply to your comment: yes, the client also uses the values in Defs.hx. It's likely a Flash security issue due to running it locally. Try adding "-Dnetwork-sandbox" to the command in the Makefile which builds the flash client.

Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by lucb1e on Saturday May 03, 2014 @08:02PM (#7692789)
Okay the server seems to run now, but the client gives a black screen. When using `make flash` (without -final) it does show "Masks", "output:" and "-- HaxePunk 2.6.0-dev --", but still no game. Does the flash client also use the values in src/hiddenstab/Defs.hx?
Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by abus on Sunday May 04, 2014 @03:54PM (#7695535)
How's it going?
Re:Show HN: My first Ludum Dare entry, online multiplayer ga... by lucb1e on Sunday May 04, 2014 @05:35PM (#7695916)
Still not working. It seems to compile, but I don't know what to do with the black screen that the client gives. Compile errors are googleable, but I don't feel like digging into code in some language that I have never used. I wouldn't know how to do console.log nor where to read the console log.