Re: Need help with lua? - LunaLua General Help
Posted: Fri Mar 18, 2016 11:38 am
Okay. Here's what I've done now:
But I'm getting this crash and error report each time:
What am I doing wrong?
Code: Select all
storedpower = false
change = false
canchange = false
function onTick()
if player.powerup ~= PLAYER_SMALL or player.powerup ~= PLAYER_BIG then
storedpower = true
end
if player.powerup == PLAYER_SMALL then
if storedpower == true then
change = true
storedpower = false
end
end
if change == true and canchange == true then
player.powerup = PLAYER_BIG
end
while player:mem(0x122,FIELD_WORD ) == 2 do
canchange = false
end
end
Code: Select all
**************************************************
* Summary *
**************************************************
SMBX has crashed due an error. See the description for more information!
LunaLua Version: LUNALUA V0.7.3.0 BETA
Time/Date: 2016-03-18 11 37 13
**************************************************
* Description *
**************************************************
Exception code: 0xc0000005
If you like to help us finding the error then please post this log at:
* http://engine.wohlnet.ru/forum/ or
* http://www.smbxgame.com/forums/viewforum.php?f=35 or
* http://talkhaus.raocow.com/viewforum.php?f=36
**************************************************
* Stacktrace *
**************************************************
**** LIBRARY INFORMATION ****
SymInit: Symbol-SearchPath: '.;C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta;C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta;C:\Windows;C:\Windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'Daniel'
OS-Version: 6.1.7601 (Service Pack 1) 0x300-0x1
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\smbx.exe.legacy:smbx.exe.legacy (00400000), size: 7626752 (result: 0), SymType: '-nosymbols-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\smbx.exe.legacy', fileVersion: 1.3.0.1
C:\Windows\SysWOW64\ntdll.dll:ntdll.dll (77210000), size: 1572864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\ntdll.dll', fileVersion: 6.1.7601.19110
C:\Windows\syswow64\kernel32.dll:kernel32.dll (753E0000), size: 1114112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\kernel32.dll', fileVersion: 6.1.7601.19110
C:\Windows\syswow64\KERNELBASE.dll:KERNELBASE.dll (75C40000), size: 290816 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\KERNELBASE.dll', fileVersion: 6.1.7601.19110
C:\Windows\system32\MSVBVM60.DLL:MSVBVM60.DLL (72940000), size: 1388544 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSVBVM60.DLL', fileVersion: 6.0.98.15
C:\Windows\syswow64\USER32.dll:USER32.dll (75280000), size: 1048576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USER32.dll', fileVersion: 6.1.7601.19061
C:\Windows\syswow64\GDI32.dll:GDI32.dll (75880000), size: 589824 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\GDI32.dll', fileVersion: 6.1.7601.19091
C:\Windows\syswow64\LPK.dll:LPK.dll (76D80000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\LPK.dll', fileVersion: 6.1.7601.18985
C:\Windows\syswow64\USP10.dll:USP10.dll (755A0000), size: 643072 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USP10.dll', fileVersion: 1.626.7601.19054
C:\Windows\syswow64\msvcrt.dll:msvcrt.dll (75030000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\msvcrt.dll', fileVersion: 7.0.7601.17744
C:\Windows\syswow64\ADVAPI32.dll:ADVAPI32.dll (74BD0000), size: 659456 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\ADVAPI32.dll', fileVersion: 6.1.7601.19091
C:\Windows\SysWOW64\sechost.dll:sechost.dll (74CA0000), size: 102400 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\SysWOW64\sechost.dll', fileVersion: 6.1.7601.18869
C:\Windows\syswow64\RPCRT4.dll:RPCRT4.dll (75760000), size: 983040 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\RPCRT4.dll', fileVersion: 6.1.7601.19110
C:\Windows\syswow64\SspiCli.dll:SspiCli.dll (74B70000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SspiCli.dll', fileVersion: 6.1.7601.19110
C:\Windows\syswow64\CRYPTBASE.dll:CRYPTBASE.dll (74B60000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CRYPTBASE.dll', fileVersion: 6.1.7601.19110
C:\Windows\syswow64\ole32.dll:ole32.dll (75C90000), size: 1425408 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\ole32.dll', fileVersion: 6.1.7601.18915
C:\Windows\syswow64\OLEAUT32.dll:OLEAUT32.dll (75640000), size: 585728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\OLEAUT32.dll', fileVersion: 6.1.7601.18679
C:\Windows\system32\apphelp.dll:apphelp.dll (71250000), size: 311296 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\apphelp.dll', fileVersion: 6.1.7601.19050
C:\Windows\AppPatch\AcLayers.DLL:AcLayers.DLL (6E470000), size: 577536 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\AppPatch\AcLayers.DLL', fileVersion: 6.1.7601.19050
C:\Windows\syswow64\SHELL32.dll:SHELL32.dll (75E50000), size: 12890112 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SHELL32.dll', fileVersion: 6.1.7601.19135
C:\Windows\syswow64\SHLWAPI.dll:SHLWAPI.dll (75700000), size: 356352 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SHLWAPI.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\USERENV.dll:USERENV.dll (74C80000), size: 94208 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\USERENV.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\profapi.dll:profapi.dll (74F40000), size: 45056 (result: 0), SymType: '-nosymbols-', PDB: 'C:\Windows\syswow64\profapi.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\WINSPOOL.DRV:WINSPOOL.DRV (712A0000), size: 331776 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINSPOOL.DRV', fileVersion: 6.1.7601.17514
C:\Windows\system32\MPR.dll:MPR.dll (73710000), size: 73728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MPR.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\IMM32.DLL:IMM32.DLL (75DF0000), size: 393216 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\IMM32.DLL', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\MSCTF.dll:MSCTF.dll (74F50000), size: 835584 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\MSCTF.dll', fileVersion: 6.1.7601.18731
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\LunaDll.dll:LunaDll.dll (592C0000), size: 2936832 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\LunaDll.dll', fileVersion: 0.7.3.0
C:\Windows\system32\VERSION.dll:VERSION.dll (731A0000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\VERSION.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\WINMM.dll:WINMM.dll (72F40000), size: 204800 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WINMM.dll', fileVersion: 6.1.7601.17514
C:\Windows\system32\dbghelp.dll:dbghelp.dll (707F0000), size: 962560 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dbghelp.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\WS2_32.dll:WS2_32.dll (75C00000), size: 217088 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\WS2_32.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\NSI.dll:NSI.dll (771E0000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\NSI.dll', fileVersion: 6.1.7600.16385
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\SDL2.dll:SDL2.dll (6C740000), size: 4296704 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\SDL2.dll', fileVersion: 2.0.3.0
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\SDL2_mixer_ext.dll:SDL2_mixer_ext.dll (66380000), size: 2465792 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\SDL2_mixer_ext.dll'
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\libgcc_s_dw2-1.dll:libgcc_s_dw2-1.dll (6E940000), size: 147456 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\libgcc_s_dw2-1.dll'
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\libwinpthread-1.dll:libwinpthread-1.dll (64940000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\libwinpthread-1.dll', fileVersion: 1.0.0.0
C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\libstdc++-6.dll:libstdc++-6.dll (6FC40000), size: 1052672 (result: 0), SymType: '-exported-', PDB: 'C:\Users\Daniel\Desktop\SMBX-2.0 Open Beta\libstdc++-6.dll'
C:\Windows\system32\OPENGL32.dll:OPENGL32.dll (591F0000), size: 819200 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\OPENGL32.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\GLU32.dll:GLU32.dll (591C0000), size: 139264 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\GLU32.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\DDRAW.dll:DDRAW.dll (02D40000), size: 946176 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DDRAW.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\DCIMAN32.dll:DCIMAN32.dll (6FB90000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DCIMAN32.dll', fileVersion: 6.1.7601.18985
C:\Windows\syswow64\SETUPAPI.dll:SETUPAPI.dll (750E0000), size: 1691648 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\SETUPAPI.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\CFGMGR32.dll:CFGMGR32.dll (76DE0000), size: 159744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CFGMGR32.dll', fileVersion: 6.1.7601.17621
C:\Windows\syswow64\DEVOBJ.dll:DEVOBJ.dll (75850000), size: 73728 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\DEVOBJ.dll', fileVersion: 6.1.7601.17621
C:\Windows\system32\dwmapi.dll:dwmapi.dll (6FED0000), size: 77824 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\dwmapi.dll', fileVersion: 6.1.7601.18917
C:\Windows\system32\MSIMG32.dll:MSIMG32.dll (6FF70000), size: 20480 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSIMG32.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\api-ms-win-core-synch-l1-2-0.DLL:api-ms-win-core-synch-l1-2-0.DLL (67DF0000), size: 12288 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\api-ms-win-core-synch-l1-2-0.DLL', fileVersion: 10.0.10240.16390
C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll:tiptsf.dll (73430000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\Program Files (x86)\Common Files\microsoft shared\ink\tiptsf.dll', fileVersion: 6.1.7601.18984
C:\Windows\system32\atiglpxx.dll:atiglpxx.dll (67DE0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\atiglpxx.dll', fileVersion: 8.14.1.6214
C:\Windows\system32\atioglxx.dll:atioglxx.dll (69030000), size: 18362368 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\atioglxx.dll', fileVersion: 6.14.10.10834
C:\Windows\system32\atigktxx.dll:atigktxx.dll (591B0000), size: 45056 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\atigktxx.dll', fileVersion: 8.14.1.6214
C:\Windows\system32\aticfx32.dll:aticfx32.dll (5C4A0000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\aticfx32.dll', fileVersion: 8.17.10.1083
C:\Windows\system32\atiadlxy.dll:atiadlxy.dll (10000000), size: 262144 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\atiadlxy.dll', fileVersion: 6.14.10.1061
C:\Windows\system32\WTSAPI32.dll:WTSAPI32.dll (71A40000), size: 53248 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\WTSAPI32.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\PSAPI.DLL:PSAPI.DLL (75910000), size: 20480 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\PSAPI.DLL', fileVersion: 6.1.7600.16385
C:\Windows\syswow64\WINTRUST.dll:WINTRUST.dll (76D90000), size: 192512 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\WINTRUST.dll', fileVersion: 6.1.7601.18839
C:\Windows\syswow64\CRYPT32.dll:CRYPT32.dll (74CC0000), size: 1183744 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CRYPT32.dll', fileVersion: 6.1.7601.18839
C:\Windows\syswow64\MSASN1.dll:MSASN1.dll (76AA0000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\MSASN1.dll', fileVersion: 6.1.7601.17514
C:\Windows\system32\SXS.DLL:SXS.DLL (6BE10000), size: 389120 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\SXS.DLL', fileVersion: 6.1.7601.17514
C:\Windows\system32\asycfilt.dll:asycfilt.dll (59160000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\asycfilt.dll', fileVersion: 6.1.7601.17514
C:\Windows\syswow64\CLBCatQ.DLL:CLBCatQ.DLL (754F0000), size: 536576 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\syswow64\CLBCatQ.DLL', fileVersion: 2001.12.8530.16385
C:\Windows\system32\oleacc.dll:oleacc.dll (711D0000), size: 245760 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\oleacc.dll', fileVersion: 7.0.0.0
C:\Windows\system32\DINPUT.DLL:DINPUT.DLL (56E30000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DINPUT.DLL', fileVersion: 6.1.7600.16385
C:\Windows\system32\HID.DLL:HID.DLL (70E80000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\HID.DLL', fileVersion: 6.1.7600.16385
C:\Windows\system32\DSOUND.DLL:DSOUND.DLL (59590000), size: 466944 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\DSOUND.DLL', fileVersion: 6.1.7600.16385
C:\Windows\system32\POWRPROF.dll:POWRPROF.dll (74810000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\POWRPROF.dll', fileVersion: 6.1.7600.16385
C:\Windows\System32\MMDevApi.dll:MMDevApi.dll (6CE30000), size: 233472 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\System32\MMDevApi.dll', fileVersion: 6.1.7601.17514
C:\Windows\System32\PROPSYS.dll:PROPSYS.dll (703D0000), size: 1003520 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\System32\PROPSYS.dll', fileVersion: 7.0.7601.17514
C:\Windows\system32\AUDIOSES.DLL:AUDIOSES.DLL (6CDF0000), size: 221184 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\AUDIOSES.DLL', fileVersion: 6.1.7601.18741
C:\Windows\system32\wdmaud.drv:wdmaud.drv (67E30000), size: 196608 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\wdmaud.drv', fileVersion: 6.1.7601.17514
C:\Windows\system32\ksuser.dll:ksuser.dll (71030000), size: 16384 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\ksuser.dll', fileVersion: 6.1.7601.19091
C:\Windows\system32\AVRT.dll:AVRT.dll (71020000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\AVRT.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\msacm32.drv:msacm32.drv (70BC0000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\msacm32.drv', fileVersion: 6.1.7600.16385
C:\Windows\system32\MSACM32.dll:MSACM32.dll (6D010000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\MSACM32.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\midimap.dll:midimap.dll (6D000000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\midimap.dll', fileVersion: 6.1.7600.16385
C:\Windows\system32\CRYPTSP.dll:CRYPTSP.dll (70B30000), size: 94208 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\CRYPTSP.dll', fileVersion: 6.1.7601.18741
C:\Windows\system32\rsaenh.dll:rsaenh.dll (71210000), size: 241664 (result: 0), SymType: '-exported-', PDB: 'C:\Windows\system32\rsaenh.dll', fileVersion: 6.1.7600.16385
**** THE STACKTRACE ****
0: 5935BB0F (LunaDll): (filename not available): LunaLuaGlDrawTriangles
1: 59370429 (LunaDll): (filename not available): LunaLuaGlDrawTriangles
2: 592FE66A (LunaDll): (filename not available): LunaLuaGlDrawTriangles
3: 5932F2AC (LunaDll): (filename not available): LunaLuaGlDrawTriangles
4: 592C27FA (LunaDll): (filename not available): (function-name not available)
5: 593F58B6 (LunaDll): (filename not available): LunaLuaGlDrawTriangles
6: 592C9131 (LunaDll): (filename not available): (function-name not available)
7: 592C972B (LunaDll): (filename not available): (function-name not available)
8: 592CA612 (LunaDll): (filename not available): (function-name not available)
9: 592CA2FC (LunaDll): (filename not available): (function-name not available)
10: 00A755D7 (smbx.exe): (filename not available): (function-name not available)
11: 008CA24F (smbx.exe): (filename not available): (function-name not available)
12: 008C224A (smbx.exe): (filename not available): (function-name not available)
13: 7294A048 (MSVBVM60): (filename not available): EbLoadRunTime
14: 72947B3E (MSVBVM60): (filename not available): BASIC_CLASS_QueryInterface
15: 72943981 (MSVBVM60): (filename not available): ThunRTMain
16: 729436FA (MSVBVM60): (filename not available): ThunRTMain
17: 72943600 (MSVBVM60): (filename not available): ThunRTMain
18: 0040BDE2 (smbx.exe): (filename not available): (function-name not available)
19: 77249882 (ntdll): (filename not available): RtlInitializeExceptionChain
20: 77249855 (ntdll): (filename not available): RtlInitializeExceptionChain