GregoryCannon / StackRabbit

An AI for playing NES Tetris at a high level. Based primarily on search & heuristic, with high quality board evaluation through value iteration.
434 stars 45 forks source link

Can't figure out how to run #9

Open FridgeEnd opened 2 years ago

FridgeEnd commented 2 years ago

I tried to run the lua stackrabbit file from the emulator, and got this error. image

jayhawker6 commented 2 years ago

same issue

mayman150 commented 1 year ago

If you're encountering the error message when trying to use rabbithttp.so, it may indicate that the shared object file was built with an incompatible environment or outdated dependencies. To resolve this issue, you may need to regenerate the shared object file from the rabbithttp.c source code file.

To do this, you can use the following command to generate the new shared object:

gcc -o rabbithttp.so -shared -fPIC rabbithttp.c -I/usr/include/lua5.3 -I/usr/include/x86_64-linux-gnu -lcurl -llua5.3

maVRick-Mike commented 1 year ago

I also got the rabbithttp error and that fix worked! That generated the new file and i no longer get the rabbithttp error in fceux - however I now get an error when i run it with the rank-lookup.js - it's looking for a 'ranks_NoNextBox_NoBars' text file that doesn't exist. It also doesn't generate the rank internally so that portion errors out, is there a reference file available?

Anybody else seeing this?

It's talking to the server and sends the board state, but then the server crashes because 'return lookUpRankInString(ranks_NoNextBox_NoBars, index)' - the ranks_NoNextBox_NoBars' errors out.

preethamrn commented 9 months ago

Just wanted to add onto this that you'll probably need to make sure that you're compiling it with the right version of lua for the emulator. lua5.1 worked for me but lua5.3 (the example given) caused segmentation faults.