Page 1 of 1

Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 12:48 pm
by Creepermon
I am attempting to make a Cannon to another world for my project. It uses the Pipecannon.lua script (Not my creation) and worked perfectly yesterday. However, whenever I attempt to run it today, it crashes. It isn't file size as it is only about 23kb total, even including the custom data file. The crash report can be found below. Any help is appreciated.
Spoiler: show
**************************************************
* Summary *
**************************************************
SMBX has crashed due an error. See the description for more information!
LunaLua Version: LUNALUA V0.7.3.0 BETA
Time/Date: 2016-02-20 14 44 20
**************************************************
* Description *
**************************************************
Exception code: 0xc000008f
VB6 Error Code: 6
VB6 Error Name: Overflow
This happens when a number gets too big in the memory

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/v ... m.php?f=35 or
* http://talkhaus.raocow.com/viewforum.php?f=36

**************************************************
* Stacktrace *
**************************************************


**** LIBRARY INFORMATION ****
SymInit: Symbol-SearchPath: '.;C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0;C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0;C:\windows;C:\windows\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: '~'
OS-Version: 6.2.9200 () 0x300-0x1
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\smbx.exe.legacy:smbx.exe.legacy (00400000), size: 7626752 (result: 0), SymType: '-nosymbols-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\smbx.exe.legacy', fileVersion: 1.3.0.1
C:\windows\SYSTEM32\ntdll.dll:ntdll.dll (77400000), size: 1544192 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\ntdll.dll', fileVersion: 6.2.10240.16603
C:\windows\SYSTEM32\KERNEL32.DLL:KERNEL32.DLL (768E0000), size: 983040 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\KERNEL32.DLL', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\KERNELBASE.dll:KERNELBASE.dll (74540000), size: 1531904 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\KERNELBASE.dll', fileVersion: 6.2.10240.16384
C:\windows\system32\apphelp.dll:apphelp.dll (64E00000), size: 593920 (result: 0), SymType: '-exported-', PDB: 'C:\windows\system32\apphelp.dll', fileVersion: 6.2.10240.16384
C:\windows\AppPatch\AcLayers.DLL:AcLayers.DLL (667A0000), size: 2588672 (result: 0), SymType: '-exported-', PDB: 'C:\windows\AppPatch\AcLayers.DLL', fileVersion: 6.2.10240.16425
C:\windows\SYSTEM32\msvcrt.dll:msvcrt.dll (772F0000), size: 778240 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\msvcrt.dll', fileVersion: 7.0.10240.16384
C:\windows\SYSTEM32\USER32.dll:USER32.dll (746C0000), size: 1310720 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\USER32.dll', fileVersion: 6.2.10240.16603
C:\windows\SYSTEM32\GDI32.dll:GDI32.dll (769D0000), size: 1363968 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\GDI32.dll', fileVersion: 6.2.10240.16644
C:\windows\SYSTEM32\SHELL32.dll:SHELL32.dll (75510000), size: 20701184 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\SHELL32.dll', fileVersion: 6.2.10240.16542
C:\windows\SYSTEM32\windows.storage.dll:windows.storage.dll (74E30000), size: 5095424 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\windows.storage.dll', fileVersion: 6.2.10240.16515
C:\windows\SYSTEM32\combase.dll:combase.dll (76B20000), size: 1810432 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\combase.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\RPCRT4.dll:RPCRT4.dll (77100000), size: 704512 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\RPCRT4.dll', fileVersion: 6.2.10240.16412
C:\windows\SYSTEM32\SspiCli.dll:SspiCli.dll (74510000), size: 122880 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\SspiCli.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (74500000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\CRYPTBASE.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\bcryptPrimitives.dll:bcryptPrimitives.dll (744A0000), size: 364544 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\bcryptPrimitives.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\sechost.dll:sechost.dll (76FC0000), size: 274432 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\sechost.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\advapi32.dll:advapi32.dll (76D30000), size: 503808 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\advapi32.dll', fileVersion: 6.2.10240.16644
C:\windows\SYSTEM32\shlwapi.dll:shlwapi.dll (74B60000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\shlwapi.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\kernel.appcore.dll:kernel.appcore.dll (773B0000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\kernel.appcore.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\shcore.dll:shcore.dll (75480000), size: 577536 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\shcore.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\powrprof.dll:powrprof.dll (75310000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\powrprof.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\profapi.dll:profapi.dll (76FB0000), size: 61440 (result: 0), SymType: '-nosymbols-', PDB: 'C:\windows\SYSTEM32\profapi.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\OLEAUT32.dll:OLEAUT32.dll (77250000), size: 598016 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\OLEAUT32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\SETUPAPI.dll:SETUPAPI.dll (74800000), size: 1724416 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\SETUPAPI.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\CFGMGR32.dll:CFGMGR32.dll (773C0000), size: 221184 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\CFGMGR32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\MPR.dll:MPR.dll (6F6F0000), size: 94208 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\MPR.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\sfc.dll:sfc.dll (66680000), size: 12288 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\sfc.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\WINSPOOL.DRV:WINSPOOL.DRV (6F710000), size: 421888 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WINSPOOL.DRV', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\bcrypt.dll:bcrypt.dll (73FE0000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\bcrypt.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\sfc_os.DLL:sfc_os.DLL (71C60000), size: 61440 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\sfc_os.DLL', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\IMM32.DLL:IMM32.DLL (76DB0000), size: 176128 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\IMM32.DLL', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\MSCTF.dll:MSCTF.dll (75360000), size: 1179648 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\MSCTF.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\MSVBVM60.DLL:MSVBVM60.DLL (66000000), size: 1388544 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\MSVBVM60.DLL', fileVersion: 6.0.98.15
C:\windows\SYSTEM32\ole32.dll:ole32.dll (77010000), size: 958464 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\ole32.dll', fileVersion: 6.2.10240.16384
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\LunaDll.dll:LunaDll.dll (02FC0000), size: 2547712 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\LunaDll.dll', fileVersion: 0.7.3.0
C:\windows\SYSTEM32\WS2_32.dll:WS2_32.dll (74DC0000), size: 376832 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WS2_32.dll', fileVersion: 6.2.10240.16384
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\FreeImage.dll:FreeImage.dll (10000000), size: 5677056 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\FreeImage.dll', fileVersion: 3.17.0.0
C:\windows\SYSTEM32\NSI.dll:NSI.dll (74E20000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\NSI.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\VERSION.dll:VERSION.dll (74040000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\VERSION.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\WINMM.dll:WINMM.dll (71F70000), size: 147456 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WINMM.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\dbghelp.dll:dbghelp.dll (72670000), size: 1306624 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\dbghelp.dll', fileVersion: 6.2.10240.16384
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\SDL2.dll:SDL2.dll (6C740000), size: 4296704 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\SDL2.dll', fileVersion: 2.0.3.0
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\SDL2_mixer_ext.dll:SDL2_mixer_ext.dll (66380000), size: 1695744 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\SDL2_mixer_ext.dll'
C:\windows\SYSTEM32\OPENGL32.dll:OPENGL32.dll (6F120000), size: 917504 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\OPENGL32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\MSIMG32.dll:MSIMG32.dll (71C90000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\MSIMG32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\WINMMBASE.dll:WINMMBASE.dll (71F10000), size: 143360 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WINMMBASE.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\GLU32.dll:GLU32.dll (6F780000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\GLU32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\DDRAW.dll:DDRAW.dll (6E690000), size: 962560 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\DDRAW.dll', fileVersion: 6.2.10240.16384
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libFLAC-8.dll:libFLAC-8.dll (64080000), size: 421888 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libFLAC-8.dll'
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libmodplug-1.dll:libmodplug-1.dll (6CB80000), size: 2265088 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libmodplug-1.dll'
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libvorbisfile-3.dll:libvorbisfile-3.dll (6B3C0000), size: 98304 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libvorbisfile-3.dll'
C:\windows\SYSTEM32\DEVOBJ.dll:DEVOBJ.dll (73FB0000), size: 135168 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\DEVOBJ.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\DCIMAN32.dll:DCIMAN32.dll (71CF0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\DCIMAN32.dll', fileVersion: 6.2.10240.16384
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libgcc_s_dw2-1.dll:libgcc_s_dw2-1.dll (6E940000), size: 147456 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libgcc_s_dw2-1.dll'
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libogg-0.dll:libogg-0.dll (70680000), size: 114688 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libogg-0.dll'
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libstdc++-6.dll:libstdc++-6.dll (6FC40000), size: 1052672 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libstdc++-6.dll'
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libvorbis-0.dll:libvorbis-0.dll (6D540000), size: 233472 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libvorbis-0.dll'
C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libwinpthread-1.dll:libwinpthread-1.dll (64940000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Users\~\Desktop\SMBX Stuff\SMBX 2.0\libwinpthread-1.dll', fileVersion: 1.0.0.0
C:\windows\system32\uxtheme.dll:uxtheme.dll (730C0000), size: 479232 (result: 0), SymType: '-exported-', PDB: 'C:\windows\system32\uxtheme.dll', fileVersion: 6.2.10240.16397
C:\windows\system32\dwmapi.dll:dwmapi.dll (732B0000), size: 118784 (result: 0), SymType: '-exported-', PDB: 'C:\windows\system32\dwmapi.dll', fileVersion: 6.2.10240.16392
C:\windows\SYSTEM32\nvoglv32.DLL:nvoglv32.DLL (58D90000), size: 18710528 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\nvoglv32.DLL', fileVersion: 10.18.13.5598
C:\windows\SYSTEM32\WTSAPI32.dll:WTSAPI32.dll (71F40000), size: 61440 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WTSAPI32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\WINTRUST.dll:WINTRUST.dll (76CE0000), size: 270336 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WINTRUST.dll', fileVersion: 6.2.10240.16385
C:\windows\SYSTEM32\MSASN1.dll:MSASN1.dll (74530000), size: 57344 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\MSASN1.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\CRYPT32.dll:CRYPT32.dll (749B0000), size: 1527808 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\CRYPT32.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\ntmarta.dll:ntmarta.dll (71CC0000), size: 163840 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\ntmarta.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\WINSTA.dll:WINSTA.dll (6E2B0000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\WINSTA.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\SXS.DLL:SXS.DLL (6DEF0000), size: 524288 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\SXS.DLL', fileVersion: 6.2.10240.16384
C:\windows\system32\asycfilt.dll:asycfilt.dll (68FC0000), size: 94208 (result: 0), SymType: '-exported-', PDB: 'C:\windows\system32\asycfilt.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\coml2.dll:coml2.dll (74C70000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\coml2.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\cryptsp.dll:cryptsp.dll (72620000), size: 77824 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\cryptsp.dll', fileVersion: 6.2.10240.16384
C:\windows\system32\rsaenh.dll:rsaenh.dll (725F0000), size: 192512 (result: 0), SymType: '-exported-', PDB: 'C:\windows\system32\rsaenh.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\DINPUT.DLL:DINPUT.DLL (05F70000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\DINPUT.DLL', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\HID.DLL:HID.DLL (74030000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\HID.DLL', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\DSOUND.DLL:DSOUND.DLL (68030000), size: 548864 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\DSOUND.DLL', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\clbcatq.dll:clbcatq.dll (74D30000), size: 532480 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\clbcatq.dll', fileVersion: 2001.12.10941.16384
C:\windows\System32\MMDevApi.dll:MMDevApi.dll (6F5A0000), size: 344064 (result: 0), SymType: '-exported-', PDB: 'C:\windows\System32\MMDevApi.dll', fileVersion: 6.2.10240.16384
C:\windows\System32\PROPSYS.dll:PROPSYS.dll (72930000), size: 1318912 (result: 0), SymType: '-exported-', PDB: 'C:\windows\System32\PROPSYS.dll', fileVersion: 7.0.10240.16384
C:\windows\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (717D0000), size: 425984 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\AUDIOSES.DLL', fileVersion: 6.2.10240.16515
C:\windows\SYSTEM32\wintypes.dll:wintypes.dll (6F600000), size: 806912 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\wintypes.dll', fileVersion: 6.2.10240.16384
C:\windows\SYSTEM32\avrt.dll:avrt.dll (71C50000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\windows\SYSTEM32\avrt.dll', fileVersion: 6.2.10240.16384


**** THE STACKTRACE ****
0: 660CE246 (MSVBVM60): (filename not available): rtcDoEvents
1: 660D35BD (MSVBVM60): (filename not available): rtcR8ValFromBstr
2: 660D3CB2 (MSVBVM60): (filename not available): _vbaInputFile
3: 008DA472 (smbx.exe): (filename not available): (function-name not available)
4: 008E1AAF (smbx.exe): (filename not available): (function-name not available)
5: 008C16F5 (smbx.exe): (filename not available): (function-name not available)
6: 6600A048 (MSVBVM60): (filename not available): EbLoadRunTime
7: 66007B3E (MSVBVM60): (filename not available): BASIC_CLASS_QueryInterface
8: 66003981 (MSVBVM60): (filename not available): ThunRTMain
9: 660036FA (MSVBVM60): (filename not available): ThunRTMain
10: 66003600 (MSVBVM60): (filename not available): ThunRTMain
11: 0040BDE2 (smbx.exe): (filename not available): (function-name not available)
12: 77459CD4 (ntdll): (filename not available): RtlSetCurrentTransaction
13: 77459C9F (ntdll): (filename not available): RtlSetCurrentTransaction
(Note the ~ represents anything that isn't important to fixing it)
Update: Here's the code in use.
Spoiler: show
pipeAPI = loadAPI("pipecannon")

-- You can set exit speeds for every warp
pipeAPI.exitspeed = {0, 32, 32, 0, 32, 32, 0}
-- Will ignore speeds set for doors/instant warps

-- Firing angles, clockwise from perpendicular
pipeAPI.angle = {}

-- Sound effect for firing
pipeAPI.SFX = 22 -- default value (bullet bill sfx), set to 0 for silent
-- Visual effect for firing
pipeAPI.effect = 125 -- set to 0 for none

function onLoop()

end

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 12:54 pm
by PixelPest
You might be missing a required file to run the API. I think h2643 wrote it so maybe PM him.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 12:56 pm
by Marina
Actually it was made by arabsalmon, idk if he responds to PMs on this forum though.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 1:25 pm
by Emral
Giving us the code would be helpful. You're getting an overflow error, though, so I doubt the script is what causing it.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 1:41 pm
by h2643
I don't see any problems with the code (except that you use a POW Block effect, but it wouldn't crash the game) so I dunno. Judging by the error message you just got an overflow error, though, meaning that your level has too much stuff in it (iirc?).
PixelPest wrote:I think h2643 wrote it so maybe PM him.
arabsalmon wrote it.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 1:54 pm
by Creepermon
h2643 wrote:I don't see any problems with the code (except that you use a POW Block effect, but it wouldn't crash the game) so I dunno. Judging by the error message you just got an overflow error, though, meaning that your level has too much stuff in it (iirc?).
PixelPest wrote:I think h2643 wrote it so maybe PM him.
arabsalmon wrote it.
There isn't a lot in it. Here are screenshots of both sections.
http://imgur.com/aZshH08 http://imgur.com/Ajjs14p

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:04 pm
by PixelPest
We need the code of what you have in your lunadll.lua and those screenshots are very blurry. Use F12 and not Snipping Tool.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:10 pm
by Emral
He already posted the code tho

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:12 pm
by Creepermon
PixelPest wrote:We need the code of what you have in your lunadll.lua and those screenshots are very blurry. Use F12 and not Snipping Tool.
That was F12. I'll re-upload it and see if that's better.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:13 pm
by PixelPest
Enjl wrote:He already posted the code tho
PixelPest wrote:lunadll.lua
Want to see if something else could be causing the problem. He just posted the API code. There shouldn't be an issue with that.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:13 pm
by Emral
Upload it to imgur instead of postimg
PixelPest wrote:
Enjl wrote:He already posted the code tho
PixelPest wrote:lunadll.lua
Want to see if something else could be causing the problem. He just posted the API code. There shouldn't be an issue with that.
Please tell me, why would the API load itself in the first line?

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:42 pm
by Creepermon
The first line is directly copied from the sample level made by h2643, and the pipecannon.lua file code is here.
Spoiler: show
local pipecannon = {}

-- Speed at which the player is fired from the pipe
pipecannon.exitspeed = {}
pipecannon.angle = {}
local PIPE_EXIT_SPEED_X = 0
local PIPE_EXIT_SPEED_Y = 0

-- Frame counter for pipe transition
local pipecounter = 0
local jumpcounter = 0
-- Is the player currently in the pipe transition
local enteringPipe = false
-- Warp entrance and exit coordinates
local enterX = 0
local enterY = 0
local exitX = 0
local exitY = 0
-- Warp entrance and exit directions
local exitDirection = 0
local enterDirection = 0

-- Direction constants
local EXIT_UP = 3
local EXIT_LEFT = 4
local EXIT_DOWN = 1
local EXIT_RIGHT = 2
local ENTRANCE_UP = 1
local ENTRANCE_LEFT = 2
local ENTRANCE_DOWN = 3
local ENTRANCE_RIGHT = 4

-- Cannon fire SFX index
pipecannon.SFX = 22
-- Visual effect
pipecannon.effect = 0

function checksection(x, y)
for i,section in pairs(Section.get()) do
bounds = section.boundary
if x+96 >= bounds.left and x-96 <= bounds.right and y+96 >= bounds.top and y-96 <= bounds.bottom then return i end
end
return -1
end

-- Perform logic for pipe cannons
function pipecannon.logic()
-- If the player just entered a pipe warp transition
if player:mem(0x122, FIELD_WORD) == 3 and not enteringPipe then
-- Find the relevant warp
for _,w in pairs(Warp.getIntersectingEntrance(player.x, player.y, player.x+player.width, player.y+player.height)) do
-- Check speed and angle
PIPE_EXIT_SPEED = pipecannon.exitspeed[player:mem(0x15e,FIELD_WORD)]
ANGLE = pipecannon.angle[player:mem(0x15e,FIELD_WORD)]
if not PIPE_EXIT_SPEED or PIPE_EXIT_SPEED == 0 then break end
if not ANGLE then ANGLE = 0 end
if ANGLE < -90 then ANGLE = -90 end
if ANGLE > 90 then ANGLE = 90 end
ANGLE = ANGLE*math.pi/180
-- Find relevant parameters
enteringPipe = true
enterDirection = w:mem(0x80, FIELD_WORD)
exitDirection = w:mem(0x82, FIELD_WORD)
-- Tweak player coordinates depending on warp entrance direction
if enterDirection == ENTRANCE_UP then
enterX = w.entranceX
enterY = w.entranceY
elseif enterDirection == ENTRANCE_DOWN then
enterX = w.entranceX
enterY = w.entranceY - player.height + 32
elseif enterDirection == ENTRANCE_LEFT then
enterX = w.entranceX
enterY = w.entranceY + (32 - player.height)/2
elseif enterDirection == ENTRANCE_RIGHT then
enterX = w.entranceX + (32 - player.width)
enterY = w.entranceY + (32 - player.height)/2
end
-- Tweak player exit coordinates
if exitDirection == EXIT_UP then
exitX = w.exitX + (32 - player.width)/2
exitY = w.exitY - player.height + 32 + PIPE_EXIT_SPEED/2
PIPE_EXIT_SPEED_X = PIPE_EXIT_SPEED*math.sin(ANGLE)
PIPE_EXIT_SPEED_Y = -PIPE_EXIT_SPEED*math.cos(ANGLE)
elseif exitDirection == EXIT_DOWN then
exitX = w.exitX + (32 - player.width)/2
exitY = w.exitY
PIPE_EXIT_SPEED_X = -PIPE_EXIT_SPEED*math.sin(ANGLE)
PIPE_EXIT_SPEED_Y = PIPE_EXIT_SPEED*math.cos(ANGLE)
elseif exitDirection == EXIT_LEFT then
exitX = w.exitX + (32 - player.width)
exitY = w.exitY + (32 - player.height)
PIPE_EXIT_SPEED_X = -PIPE_EXIT_SPEED*math.cos(ANGLE)
PIPE_EXIT_SPEED_Y = -PIPE_EXIT_SPEED*math.sin(ANGLE)
elseif exitDirection == EXIT_RIGHT then
exitX = w.exitX
exitY = w.exitY + (32 - player.height)
PIPE_EXIT_SPEED_X = PIPE_EXIT_SPEED*math.cos(ANGLE)
PIPE_EXIT_SPEED_Y = PIPE_EXIT_SPEED*math.sin(ANGLE)
end
end
end
-- If in a pipe transition
if enteringPipe then
-- Increment pipe frame counter
pipecounter = pipecounter + 1
jumpcounter = jumpcounter + 1
-- Enforce pipe transition animation
player:mem(0x122, FIELD_WORD, 3)
-- Set player coordinates
player.x = enterX
player.y = enterY
-- Adjust for player dimensions
factor = 0.02
if player.height >= 50 then
factor = 0.019
end
-- Manually override player pipe animation
if enterDirection == ENTRANCE_UP then enterY = enterY - factor*player.height
elseif enterDirection == ENTRANCE_DOWN then enterY = enterY + factor*player.height
elseif enterDirection == ENTRANCE_LEFT then enterX = enterX - 0.021*player.width
elseif enterDirection == ENTRANCE_RIGHT then enterX = enterX + 0.021*player.width end
end
-- If the transition has ended
if pipecounter >= 60 then
-- Cancel transition animation
player:mem(0x122, FIELD_WORD, 0)
-- Set player coordinates
player:mem(0x15a, FIELD_WORD, checksection(exitX, exitY)-1)
player.x = exitX
player.y = exitY
enteringPipe = false
-- Reset counter
pipecounter = 0
-- Set player speed
player.speedX = PIPE_EXIT_SPEED_X
player.speedY = PIPE_EXIT_SPEED_Y
-- Play effects
if pipecannon.SFX > 0 then playSFX(pipecannon.SFX) end
if pipecannon.effect > 0 then
anim = Animation.spawn(pipecannon.effect, player.x, player.y)
animX = player.x + (player.width-anim.width)/2
animY = player.y + (player.height-anim.height)/2
anim.x = animX; anim.y = animY
end
end
if jumpcounter >= 60 and jumpcounter < 75 then
jumpcounter = jumpcounter + 1
end
end

function pipecannon.onInitAPI()
registerEvent(pipecannon, "onLoop", "logic")
end

return pipecannon

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 2:47 pm
by PixelPest
Enjl wrote:Upload it to imgur instead of postimg
PixelPest wrote:
Enjl wrote:He already posted the code tho
PixelPest wrote:lunadll.lua
Want to see if something else could be causing the problem. He just posted the API code. There shouldn't be an issue with that.
Please tell me, why would the API load itself in the first line?
Never mind. I just noticed what I missed.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 3:51 pm
by Kevsoft
Personally it seems that the level file itself is somehow corrupted. Can you temporarly move your lunadll.lua outside and try loading it without any code?

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 5:14 pm
by Creepermon
I can't launch the level at all any more. It probably is corrupted. Thanks for helping, and I'll remake the level. This post probably shouldn't be locked for now as a different explanation may emerge.

Re: Lunalua Pipe Cannon Crash

Posted: Sat Feb 20, 2016 5:53 pm
by Emral
Before remaking the level, try to trace the steps you've taken and actions you've made before the file got corrupted, and try to revert those to find out what's causing the error to appear in the first place.