Planimeter / game-engine-2d

Planimeter Game Engine 2D - LÖVE-based game engine for Lua
https://github.com/Planimeter/game-engine-2d/wiki
MIT License
736 stars 74 forks source link

Linux executable syntax error #23

Closed Dasomeone closed 9 years ago

Dasomeone commented 9 years ago

As of current commit (19b68ed5cf7ac331f513b640c6bc1ee5e5243089), when attempting to run the linux version of Grid-sdk, the following syntax error is given upon executing "debug game.sh":

dasomeone@NR-Desknix:~/Documents/GRID-SDK/grid-sdk$ ./debug\ game.sh

Grid Engine

Launching Grid Engine 64-bit in debug . . .

./bin/x64/macosx-x64/love.app/Contents/MacOS/love: 1: ./bin/x64/macosx-x64/love.�HPAGEZEROhTEXT@@: not found

./bin/x64/macosx-x64/love.app/Contents/MacOS/love: 2: ./bin/x64/macosx-x64/love.app/Contents/MacOS/love: Syntax error: word unexpected (expecting ")")

andrewmcwatters commented 9 years ago

debug game.sh currently doesn't handle Linux environments, though I have seen a fork of grid-sdk update it to do so.

We need to update it to do this on our end as well, but haven't addressed it yet. Linux environments have primarily been deployment environments for dedicated servers.

Dasomeone commented 9 years ago

Ah cheers! Will just merge the code from his fork into mine to test then.

riordanp commented 9 years ago

Hi Andrew,

If you'd like I can submit a PR to merge my Linux launcher script? I've just updated it so it should work on OSX too but I have no way to test that unfortunately.

andrewmcwatters commented 9 years ago

Good morning from Phoenix! Yes, you can and I'll test it on my end. :)

andrewmcwatters commented 9 years ago

Give me a heads up if the fix from @riordanp resolves this, and I'll close the issue. Make sure LÖVE 0.9.2 is what you'll pulling from package managers in your respective Linux env.

Dasomeone commented 9 years ago

I'm getting a multitude of issues on my Ubuntu / Debian based system. Such as:

./debug game.sh: 10: ./debug game.sh: [[: not found

When editing out the [[ and ]] operators from the file, it registers fine, but comes up with:

./debug game.sh: 10: ./debug game.sh: : Permission denied

I have indeed made the binaries executable. There is also the issue of double dashes, which in my fork didn't register as proper arguments for Löve.

What I have in my fork, that works is a simple

love src -debug

but obviously that lacks OS aware abilities.

andrewmcwatters commented 9 years ago

I find it strange that it's not running properly for you with brackets. I see places like Stack Overflow mention this is pretty much the way to do it. I've updated the debug shell script, though.

andrewmcwatters commented 9 years ago

Pending upstream merge to vertex-adventure

Dasomeone commented 9 years ago

Aye, it's been acting up as of late, might have to format soon.

andrewmcwatters commented 9 years ago

Merged upstream to vertex-adventure@406be29

andrewmcwatters commented 9 years ago

Linux at the moment is only a dedicated server platform that Grid supports. It should run just fine on Linux environments (primarily Ubuntu) but for now I'm going to close this until the status of support for clients on Linux changes.