1 2
5 6
Joined: 10/3/2005
Posts: 1332
I do have Lua 5.1.3 installed and there's no comlaining previous to this point that the files in /usr/include were missing. Any idea on what's going wrong?
I think you need Lua to appear in your list of linked libraries, perhaps like so:
-lGL -lGLU -ldl -lLua -lz -L -lX11 -lXext -lXxf86dga -lXxf86vm -lnsl -lX11 -lXext -lXext -lX11 -lpthread -lm
Former player
Joined: 12/5/2007
Posts: 716
Adding "-llua" (small second L) fixed the compiling error - thanks! Still, it won't start with OpenGL. I get the same error I already got with Bisqwit's version:
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  1 (X_CreateWindow)
  Serial number of failed request:  22
  Current serial number in output stream:  23
See this page for a 1.51-specific patch. Although nitsujrehtona gave up, maybe gocha still has an idea?
Player (13)
Joined: 6/17/2006
Posts: 508
Gunty wrote:
SmashManiac wrote:
I vote for locking them all, because I don't see any advantage for changing any of them.
I vote against this. Turning on the 'Sync Sound' option usually doesn't desync the movie, while generating more accurate sound effects. I'd like to keep that option. ;)
Hmmm... You got a point there. ;) On second though maybe you should keep these options as-is. Also thanks for fixing the full-screen crash. :D
Editor, Expert player (2329)
Joined: 5/15/2007
Posts: 3933
Location: Germany
I'm not experienced in such things and I want to be sure. Is it ok to switch the emulator (in this case, from 1.43 + v12 to 1.43 + v15.2) and keep the movie file or will I have to copy my input to a movie file of the new emulator? (Or would it otherwise be a good idea to use 1.51 instead? What are the advantages?) thanks in advance.
Former player
Joined: 2/19/2007
Posts: 424
Location: UK
Gocha, I have this on second hand, but it seems that when trying to record an avi while skipping some parts of the movie with a lua script (by using speedmode("maximum")), the sound of those parts is included in the avi, even though the video of the skipped frames is not. Thus, audio and video get out of sync. It would be best if the sound from the skipped frames was not included either. This is relevant for making avis of the recent super metroid run, for example, where it would be nice to skip the 100 10 second long item fanfares involved, as well as countless door transitions etc.
gocha
Any
Emulator Coder, Former player
Joined: 6/21/2006
Posts: 401
Location: Japan, Nagoya
MUGG wrote:
Is it ok to switch the emulator (in this case, from 1.43 + v12 to 1.43 + v15.2) and keep the movie file or will I have to copy my input to a movie file of the new emulator?
The only movie related change is a fix for rare desync on reset recording (v15). In most of cases, you can play even a v9 movie. ex: my Kirby's Dream Course run. So, it's not a problem at all.
MUGG wrote:
(Or would it otherwise be a good idea to use 1.51 instead? What are the advantages?)
  • In general, emulation of 1.51 is more accurate than 1.43.
  • Probably 1.51 has less desyncs than 1.43.
  • Currently, 1.51 has no lua script feature...
@amaurea Hm, I don't know much about lua script, though, I'll keep it in mind anyway. *I don't know whether DeHackEd's official lua version does that.
I am usually available on Discord server or Twitter.
Joined: 9/30/2007
Posts: 103
Most likely, this is some basic error and I'm just stupid, but, eh. So yeah, I tried to compile 1.43 v15.3, but I simply get this error:
$ make
g++  -fno-rtti -INONE -I/home/neophos/snes9x -I/home/neophos/snes9x/unzip  -c -O2 -fomit-frame-pointer -fno-exceptions -Wall -W -pedantic -Wno-unused-parameter -pipe  -INONE -I/home/neophos/snes9x -I/home/neophos/snes9x/unzip  -DMITSHM -DVAR_CYCLES -DCPU_SHUTDOWN -DSPC700_SHUTDOWN -DEXECUTE_SUPERFX_PER_LINE  -DUSE_THREADS -DSPC700_C -DNETPLAY_SUPPORT -DUNZIP_SUPPORT -DJMA_SUPPORT -fexceptions     -DSDD1_DECOMP -DJOYSTICK_SUPPORT -DNOASM -DNEW_COLOUR_BLENDING -DZLIB -DHAVE_MKSTEMP -DHAVE_STRINGS_H -DHAVE_SYS_IOCTL_H '-DACCEPT_SIZE_T=socklen_t' lua-engine.cpp -o lua-engine.o
lua-engine.cpp:25:17: error: lua.h: No such file or directory
lua-engine.cpp:26:21: error: lauxlib.h: No such file or directory
lua-engine.cpp:27:20: error: lualib.h: No such file or directory
lua-engine.cpp:32: error: expected initializer before ‘*’ token
lua-engine.cpp: In function ‘int S9xLuaSpeed()’:
lua-engine.cpp:97: error: ‘LUA’ was not declared in this scope
lua-engine.cpp: In function ‘void S9xLuaWrite(uint32)’:
lua-engine.cpp:136: error: ‘LUA’ was not declared in this scope
lua-engine.cpp:136: error: ‘lua_settop’ was not declared in this scope
lua-engine.cpp:138: error: ‘LUA_REGISTRYINDEX’ was not declared in this scope
lua-engine.cpp:138: error: ‘lua_getfield’ was not declared in this scope
lua-engine.cpp:139: error: ‘lua_pushinteger’ was not declared in this scope
lua-engine.cpp:140: error: ‘lua_gettable’ was not declared in this scope
lua-engine.cpp:144: error: ‘lua_pcall’ was not declared in this scope
lua-engine.cpp:146: error: ‘lua_tostring’ was not declared in this scope
lua-engine.cpp: At global scope:
lua-engine.cpp:200: error: ‘lua_State’ was not declared in this scope
lua-engine.cpp:200: error: ‘L’ was not declared in this scope
lua-engine.cpp:200: error: expected ‘,’ or ‘;’ before ‘{’ token
lua-engine.cpp:38: warning: ‘frameBoundary’ defined but not used
lua-engine.cpp:45: warning: ‘skipRerecords’ defined but not used
lua-engine.cpp:48: warning: ‘frameAdvanceThread’ defined but not used
lua-engine.cpp:50: warning: ‘guiCallbackTable’ defined but not used
lua-engine.cpp:53: warning: ‘frameAdvanceWaiting’ defined but not used
lua-engine.cpp:56: warning: ‘wasPaused’ defined but not used
lua-engine.cpp:59: warning: ‘transparency’ defined but not used
lua-engine.cpp:62: warning: ‘lua_joypads’ defined but not used
lua-engine.cpp:63: warning: ‘lua_joypads_used’ defined but not used
lua-engine.cpp:72: warning: ‘gui_used’ defined but not used
lua-engine.cpp:73: warning: ‘gui_data’ defined but not used
lua-engine.cpp:83: warning: ‘button_mappings’ defined but not used
lua-engine.cpp:200: warning: ‘snes9x_speedmode’ defined but not used
make: *** [lua-engine.o] Error 1
What am I doing wrong?
mz
Emulator Coder, Player (79)
Joined: 10/26/2007
Posts: 693
It looks like you don't have Lua installed.
You're just fucking stupid, everyone hates you, sorry to tell you the truth. no one likes you, you're someone pretentious and TASes only to be on speed game, but don't have any hope, you won't get there.
Joined: 9/30/2007
Posts: 103
mz wrote:
It looks like you don't have Lua installed.
That was my first suspicion, so I felt silly, downloaded and installed Lua 5.1.2, and the error persisted.
Emulator Coder, Site Developer, Former player
Joined: 11/6/2004
Posts: 833
The lua.h file and the rest need to be in your include path. If you installed lua through a package manager, look for a lua-dev or lua-devel package. If you compiled manually, make sure the headers made their way to /usr/local/include or /usr/include
Editor, Emulator Coder, Expert player (2156)
Joined: 5/22/2007
Posts: 1134
Location: Glitchvania
<klmz> it reminds me of that people used to keep quoting adelikat's IRC statements in the old good days <adelikat> no doubt <adelikat> klmz, they still do
Former player
Joined: 12/5/2007
Posts: 716
It ran fine for me with both the Windows and SDL builds from SVN.
1 2
5 6