StackRabbit icon indicating copy to clipboard operation
StackRabbit copied to clipboard

Running the program

Open AstroOrbis opened this issue 4 years ago • 7 comments

The program compiles and starts fine, but I'm not sure what to do afterwards... Running the stackrabbit.lua file gives me this error: lua: stackrabbit.lua:226: invalid escape sequence near '",|\|'

npm run start

> [email protected] start
> node built/src/server/app.js

loading: 37.594ms
loading: 30.735ms
loading: 34.795ms
loading: 30.625ms
loading: 32.999ms
loading: 33.019ms
loading: 28.115ms
Done loading worker threads
Listening on port 3000

Navigating to localhost:3000 gives me this: Screen Shot 2021-10-27 at 11 34 59

AstroOrbis avatar Oct 27 '21 15:10 AstroOrbis

I'm probably doing something really stupid XD

AstroOrbis avatar Oct 27 '21 15:10 AstroOrbis

Re: Lua, it is currently coded in Lua 5.1 (the version bundled with the FCEUX emulator), so there may be a differing syntax that your installation of Lua doesn't like.

As for running on localhost, it looks like your local server is working! It just needs some input in the request to respond to. The simplest one to try is localhost:3000/ping which returns "pong!".

I've been meaning to write up an API endpoint summary, since the encoding into URLs isn't particularly intuitive.

GregoryCannon avatar Oct 29 '21 09:10 GregoryCannon

Allright, I've managed to install Lua 5.1, but this happens:

lua-5.1 src/fceux/stackrabbit.lua


lua-5.1: src/fceux/stackrabbit.lua:6: module 'rabbithttp' not found:
	no field package.preload['rabbithttp']
	no file './rabbithttp.lua'
	no file '/opt/homebrew/share/lua/5.1/rabbithttp.lua'
	no file '/opt/homebrew/share/lua/5.1/rabbithttp/init.lua'
	no file '/opt/homebrew/lib/lua/5.1/rabbithttp.lua'
	no file '/opt/homebrew/lib/lua/5.1/rabbithttp/init.lua'
	no file './rabbithttp.so'
	no file '/opt/homebrew/lib/lua/5.1/rabbithttp.so'
	no file '/opt/homebrew/lib/lua/5.1/loadall.so'
stack traceback:
	[C]: in function 'require'
	src/fceux/stackrabbit.lua:6: in main chunk
	[C]: ?

AstroOrbis avatar Oct 29 '21 13:10 AstroOrbis

I am also having the same issue that you are in this comment.

FridgeEnd avatar Jun 05 '22 14:06 FridgeEnd

put the lua files to the fceux lua folder and your all set

BenP1236691 avatar May 31 '24 05:05 BenP1236691

@AstroOrbis

BenP1236691 avatar May 31 '24 05:05 BenP1236691