Need help with lua? - LunaLua General Help

This is the place for discussion and support for LunaLua and related modifications and libraries.
Forum rules
Before you make a topic/post, consider the following:
-Is there a topic for this already?
-Is your post on topic/appropriate?
-Are you posting in the right forum/following the forum rules?
Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8457
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Need help with lua? - LunaLua General Help

Postby Enjl » Thu Mar 17, 2016 8:37 am

Harvey36Dice wrote:HALPLAPLAPPALPLPLA
Pls tel me how to load an image (Image name : badge-1.png) in a level......
http://wohlsoft.ru/pgewiki/LunaLua_global_functions

Down where graphics functions are at.
The ABC of Creation
________________________________________________________
Image

User avatar
Mario_and_Luigi_55
Mega Mole
Mega Mole
Posts: 270
Joined: Sat Feb 27, 2016 12:01 pm
Current Project: Super Mario Bros Adventure

Re: Need help with lua? - LunaLua General Help

Postby Mario_and_Luigi_55 » Thu Mar 17, 2016 8:50 am

How to do a level timer?
Image
Image

My best levels:
Goomba Lands - 5/10
Stars of the trees - 5.5/10
Koopa Cave - 3.42
Green Grass Hill - 3.42
Grassy Valley - 5.47

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Need help with lua? - LunaLua General Help

Postby PixelPest » Thu Mar 17, 2016 9:30 am

Mario_and_Luigi_55 wrote:How to do a level timer?
http://wohlsoft.ru/pgewiki/Leveltimer.lua

Except use API.load instead of loadAPI and function onStart() instead of function onLoad()

And, how do I make the coins collected by a player just continually increase, without giving the player a 1-up and resetting to 0 when it hits 100 coins, and have this show up on the HUD?

User avatar
Mario_and_Luigi_55
Mega Mole
Mega Mole
Posts: 270
Joined: Sat Feb 27, 2016 12:01 pm
Current Project: Super Mario Bros Adventure

Re: Need help with lua? - LunaLua General Help

Postby Mario_and_Luigi_55 » Thu Mar 17, 2016 10:09 am

PixelPest wrote:
Mario_and_Luigi_55 wrote:How to do a level timer?
http://wohlsoft.ru/pgewiki/Leveltimer.lua

Except use API.load instead of loadAPI and function onStart() instead of function onLoad()

I did that but at some point:
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-03-17 15 07 33
**************************************************
* Description *
**************************************************
Exception code: 0xc000008f
VB6 Error Code: 9
VB6 Error Name: Subscript out of range
This happens when too many items are in the scenery.

If you like to help us finding the error then please post this log at:
* http://engine.wohlnet.ru/forum/ or
* http://www.supermariobrosx.org/forums/v ... m.php?f=35 or
* http://talkhaus.raocow.com/viewforum.php?f=36

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


**** LIBRARY INFORMATION ****
SymInit: Symbol-SearchPath: '.;C:\Programy\SMBX 2.0 Open Beta LunaLua;C:\Programy\SMBX 2.0 Open Beta LunaLua;C:\WINDOWS;C:\WINDOWS\system32;SRV*C:\websymbols*http://msdl.microsoft.com/download/symbols;', symOptions: 530, UserName: 'Username'
OS-Version: 6.2.9200 () 0x100-0x1
C:\Programy\SMBX 2.0 Open Beta LunaLua\smbx.exe.legacy:smbx.exe.legacy (00400000), size: 7626752 (result: 0), SymType: '-nosymbols-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\smbx.exe.legacy', fileVersion: 1.3.0.1
C:\WINDOWS\SYSTEM32\ntdll.dll:ntdll.dll (779F0000), size: 1552384 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\ntdll.dll', fileVersion: 6.2.10586.122
C:\WINDOWS\SYSTEM32\KERNEL32.DLL:KERNEL32.DLL (77600000), size: 917504 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\KERNEL32.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\KERNELBASE.dll:KERNELBASE.dll (77740000), size: 1564672 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\KERNELBASE.dll', fileVersion: 6.2.10586.162
C:\WINDOWS\system32\apphelp.dll:apphelp.dll (6D410000), size: 598016 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\apphelp.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\AppPatch\AcLayers.DLL:AcLayers.DLL (60FA0000), size: 2588672 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\AppPatch\AcLayers.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\msvcrt.dll:msvcrt.dll (75DD0000), size: 778240 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\msvcrt.dll', fileVersion: 7.0.10586.0
C:\WINDOWS\SYSTEM32\USER32.dll:USER32.dll (76C00000), size: 1339392 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\USER32.dll', fileVersion: 6.2.10586.20
C:\WINDOWS\SYSTEM32\GDI32.dll:GDI32.dll (76EA0000), size: 1372160 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\GDI32.dll', fileVersion: 6.2.10586.63
C:\WINDOWS\SYSTEM32\SHELL32.dll:SHELL32.dll (74920000), size: 20963328 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\SHELL32.dll', fileVersion: 6.2.10586.122
C:\WINDOWS\SYSTEM32\cfgmgr32.dll:cfgmgr32.dll (77920000), size: 225280 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\cfgmgr32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\windows.storage.dll:windows.storage.dll (770F0000), size: 5218304 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\windows.storage.dll', fileVersion: 6.2.10586.162
C:\WINDOWS\SYSTEM32\combase.dll:combase.dll (74740000), size: 1822720 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\combase.dll', fileVersion: 6.2.10586.103
C:\WINDOWS\SYSTEM32\RPCRT4.dll:RPCRT4.dll (763B0000), size: 708608 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\RPCRT4.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\SspiCli.dll:SspiCli.dll (74720000), size: 122880 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\SspiCli.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\CRYPTBASE.dll:CRYPTBASE.dll (74710000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\CRYPTBASE.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll:bcryptPrimitives.dll (776E0000), size: 360448 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\bcryptPrimitives.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\sechost.dll:sechost.dll (761C0000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\sechost.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\advapi32.dll:advapi32.dll (76210000), size: 503808 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\advapi32.dll', fileVersion: 6.2.10586.63
C:\WINDOWS\SYSTEM32\shlwapi.dll:shlwapi.dll (767A0000), size: 282624 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\shlwapi.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\kernel.appcore.dll:kernel.appcore.dll (76790000), size: 49152 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\kernel.appcore.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\shcore.dll:shcore.dll (76FF0000), size: 577536 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\shcore.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\powrprof.dll:powrprof.dll (76E50000), size: 278528 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\powrprof.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\profapi.dll:profapi.dll (75DC0000), size: 61440 (result: 0), SymType: '-nosymbols-', PDB: 'C:\WINDOWS\SYSTEM32\profapi.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\OLEAUT32.dll:OLEAUT32.dll (75D20000), size: 598016 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\OLEAUT32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\SETUPAPI.dll:SETUPAPI.dll (767F0000), size: 4239360 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\SETUPAPI.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\MPR.dll:MPR.dll (73E30000), size: 90112 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MPR.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\sfc.dll:sfc.dll (66680000), size: 12288 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\sfc.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\WINSPOOL.DRV:WINSPOOL.DRV (6E4A0000), size: 421888 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINSPOOL.DRV', fileVersion: 6.2.10586.122
C:\WINDOWS\SYSTEM32\bcrypt.dll:bcrypt.dll (738A0000), size: 110592 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\bcrypt.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\sfc_os.DLL:sfc_os.DLL (70D80000), size: 61440 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\sfc_os.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\IMM32.DLL:IMM32.DLL (76190000), size: 176128 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\IMM32.DLL', fileVersion: 6.2.10586.0
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 (75F00000), size: 962560 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\ole32.dll', fileVersion: 6.2.10586.162
C:\Programy\SMBX 2.0 Open Beta LunaLua\LunaDll.dll:LunaDll.dll (60AC0000), size: 2547712 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\LunaDll.dll', fileVersion: 0.7.3.0
C:\WINDOWS\SYSTEM32\WS2_32.dll:WS2_32.dll (75E90000), size: 389120 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WS2_32.dll', fileVersion: 6.2.10586.0
C:\Programy\SMBX 2.0 Open Beta LunaLua\FreeImage.dll:FreeImage.dll (10000000), size: 5677056 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\FreeImage.dll', fileVersion: 3.17.0.0
C:\WINDOWS\SYSTEM32\WINMM.dll:WINMM.dll (73FA0000), size: 147456 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINMM.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\dbghelp.dll:dbghelp.dll (73620000), size: 1306624 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\dbghelp.dll', fileVersion: 6.2.10586.0
C:\Programy\SMBX 2.0 Open Beta LunaLua\SDL2.dll:SDL2.dll (6C740000), size: 4296704 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\SDL2.dll', fileVersion: 2.0.3.0
C:\Programy\SMBX 2.0 Open Beta LunaLua\SDL2_mixer_ext.dll:SDL2_mixer_ext.dll (66380000), size: 1695744 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\SDL2_mixer_ext.dll'
C:\WINDOWS\SYSTEM32\VERSION.dll:VERSION.dll (735E0000), size: 32768 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\VERSION.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\OPENGL32.dll:OPENGL32.dll (614E0000), size: 917504 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\OPENGL32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\MSIMG32.dll:MSIMG32.dll (62290000), size: 24576 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MSIMG32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\WINMMBASE.dll:WINMMBASE.dll (73BD0000), size: 143360 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINMMBASE.dll', fileVersion: 6.2.10586.0
C:\Programy\SMBX 2.0 Open Beta LunaLua\libFLAC-8.dll:libFLAC-8.dll (64080000), size: 421888 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libFLAC-8.dll'
C:\Programy\SMBX 2.0 Open Beta LunaLua\libmodplug-1.dll:libmodplug-1.dll (6CB80000), size: 2265088 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libmodplug-1.dll'
C:\Programy\SMBX 2.0 Open Beta LunaLua\libvorbisfile-3.dll:libvorbisfile-3.dll (6B3C0000), size: 98304 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libvorbisfile-3.dll'
C:\WINDOWS\SYSTEM32\GLU32.dll:GLU32.dll (6E5F0000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\GLU32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\DDRAW.dll:DDRAW.dll (613F0000), size: 974848 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DDRAW.dll', fileVersion: 6.2.10586.0
C:\Programy\SMBX 2.0 Open Beta LunaLua\libgcc_s_dw2-1.dll:libgcc_s_dw2-1.dll (6E940000), size: 147456 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libgcc_s_dw2-1.dll'
C:\Programy\SMBX 2.0 Open Beta LunaLua\libstdc++-6.dll:libstdc++-6.dll (6FC40000), size: 1052672 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libstdc++-6.dll'
C:\Programy\SMBX 2.0 Open Beta LunaLua\libvorbis-0.dll:libvorbis-0.dll (6D540000), size: 233472 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libvorbis-0.dll'
C:\Programy\SMBX 2.0 Open Beta LunaLua\libogg-0.dll:libogg-0.dll (70680000), size: 114688 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libogg-0.dll'
C:\Programy\SMBX 2.0 Open Beta LunaLua\libwinpthread-1.dll:libwinpthread-1.dll (64940000), size: 81920 (result: 0), SymType: '-exported-', PDB: 'C:\Programy\SMBX 2.0 Open Beta LunaLua\libwinpthread-1.dll', fileVersion: 1.0.0.0
C:\WINDOWS\SYSTEM32\DCIMAN32.dll:DCIMAN32.dll (6E7A0000), size: 28672 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DCIMAN32.dll', fileVersion: 6.2.10586.3
C:\WINDOWS\system32\uxtheme.dll:uxtheme.dll (71710000), size: 479232 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\uxtheme.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\MSCTF.dll:MSCTF.dll (76460000), size: 1175552 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MSCTF.dll', fileVersion: 6.2.10586.71
C:\WINDOWS\system32\dwmapi.dll:dwmapi.dll (710E0000), size: 118784 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\dwmapi.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\ig75icd32.dll:ig75icd32.dll (60100000), size: 8708096 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\ig75icd32.dll', fileVersion: 20.19.15.4331
C:\WINDOWS\SYSTEM32\igdusc32.dll:igdusc32.dll (033F0000), size: 9113600 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\igdusc32.dll', fileVersion: 20.19.15.4331
C:\WINDOWS\SYSTEM32\WTSAPI32.dll:WTSAPI32.dll (73200000), size: 61440 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WTSAPI32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\SXS.DLL:SXS.DLL (71010000), size: 528384 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\SXS.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\system32\asycfilt.dll:asycfilt.dll (6B350000), size: 94208 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\system32\asycfilt.dll', fileVersion: 6.2.10586.162
C:\WINDOWS\SYSTEM32\clbcatq.dll:clbcatq.dll (77960000), size: 540672 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\clbcatq.dll', fileVersion: 2001.12.10941.16384
C:\WINDOWS\SYSTEM32\DINPUT.DLL:DINPUT.DLL (62400000), size: 151552 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DINPUT.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\HID.DLL:HID.DLL (6FDF0000), size: 40960 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\HID.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\DEVOBJ.dll:DEVOBJ.dll (738C0000), size: 139264 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DEVOBJ.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\WINTRUST.dll:WINTRUST.dll (77080000), size: 270336 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\WINTRUST.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\MSASN1.dll:MSASN1.dll (770D0000), size: 57344 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\MSASN1.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\CRYPT32.dll:CRYPT32.dll (76010000), size: 1540096 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\CRYPT32.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\DSOUND.DLL:DSOUND.DLL (60F10000), size: 548864 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\DSOUND.DLL', fileVersion: 6.2.10586.0
C:\WINDOWS\System32\MMDevApi.dll:MMDevApi.dll (09CE0000), size: 348160 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\MMDevApi.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\System32\PROPSYS.dll:PROPSYS.dll (70DE0000), size: 1355776 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\System32\PROPSYS.dll', fileVersion: 7.0.10586.0
C:\WINDOWS\SYSTEM32\AUDIOSES.DLL:AUDIOSES.DLL (70580000), size: 425984 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\AUDIOSES.DLL', fileVersion: 6.2.10586.71
C:\WINDOWS\SYSTEM32\wintypes.dll:wintypes.dll (704B0000), size: 819200 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\wintypes.dll', fileVersion: 6.2.10586.103
C:\WINDOWS\SYSTEM32\avrt.dll:avrt.dll (705F0000), size: 36864 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\avrt.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\SYSTEM32\coml2.dll:coml2.dll (762F0000), size: 368640 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\SYSTEM32\coml2.dll', fileVersion: 6.2.10586.0
C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.0_none_d3c2e4e965da4528\comctl32.DLL:comctl32.DLL (70010000), size: 2158592 (result: 0), SymType: '-exported-', PDB: 'C:\WINDOWS\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.10586.0_none_d3c2e4e965da4528\comctl32.DLL', fileVersion: 6.10.10586.0


**** THE STACKTRACE ****
0: 660CE246 (MSVBVM60): (filename not available): rtcDoEvents
1: 0019FD54 ((module-name not available)): (filename not available): (function-name not available)
2: 008CA6A4 (smbx.exe): (filename not available): (function-name not available)
3: 008CA6B0 (smbx.exe): (filename not available): (function-name not available)
4: 008CAB46 (smbx.exe): (filename not available): (function-name not available)
5: 008CAB46 (smbx.exe): (filename not available): (function-name not available)
6: 008CACF2 (smbx.exe): (filename not available): (function-name not available)
7: 008CACF2 (smbx.exe): (filename not available): (function-name not available)
8: 008CB053 (smbx.exe): (filename not available): (function-name not available)
9: 008CB0EE (smbx.exe): (filename not available): (function-name not available)
10: 008CB0EE (smbx.exe): (filename not available): (function-name not available)
11: 008CB1F3 (smbx.exe): (filename not available): (function-name not available)
12: 008CB20F (smbx.exe): (filename not available): (function-name not available)
13: 008CB251 (smbx.exe): (filename not available): (function-name not available)
14: 008CB26D (smbx.exe): (filename not available): (function-name not available)
15: 008CB2AF (smbx.exe): (filename not available): (function-name not available)
16: 008CB2CB (smbx.exe): (filename not available): (function-name not available)
17: 008CB30D (smbx.exe): (filename not available): (function-name not available)
18: 008CB363 (smbx.exe): (filename not available): (function-name not available)
19: 008CB392 (smbx.exe): (filename not available): (function-name not available)
20: 008CB59F (smbx.exe): (filename not available): (function-name not available)
21: 008CB5AB (smbx.exe): (filename not available): (function-name not available)
22: 008CB5B8 (smbx.exe): (filename not available): (function-name not available)
23: 008CB5CF (smbx.exe): (filename not available): (function-name not available)
24: 008CB5DB (smbx.exe): (filename not available): (function-name not available)
25: 008CB5DB (smbx.exe): (filename not available): (function-name not available)
26: 008CB5DB (smbx.exe): (filename not available): (function-name not available)
27: 008CBA9F (smbx.exe): (filename not available): (function-name not available)
28: 008CBC6F (smbx.exe): (filename not available): (function-name not available)
29: 008CBD20 (smbx.exe): (filename not available): (function-name not available)
30: 008CBEF2 (smbx.exe): (filename not available): (function-name not available)
31: 008CC2BC (smbx.exe): (filename not available): (function-name not available)
32: 008CC72C (smbx.exe): (filename not available): (function-name not available)
33: 008CC857 (smbx.exe): (filename not available): (function-name not available)
34: 008CC918 (smbx.exe): (filename not available): (function-name not available)
35: 008CC941 (smbx.exe): (filename not available): (function-name not available)
36: 008CCEDD (smbx.exe): (filename not available): (function-name not available)
37: 008CD0A6 (smbx.exe): (filename not available): (function-name not available)
38: 008CD158 (smbx.exe): (filename not available): (function-name not available)
39: 008CD256 (smbx.exe): (filename not available): (function-name not available)
40: 008CDB86 (smbx.exe): (filename not available): (function-name not available)
41: 008CDD93 (smbx.exe): (filename not available): (function-name not available)
42: 008CDD9F (smbx.exe): (filename not available): (function-name not available)
43: 008CDDAC (smbx.exe): (filename not available): (function-name not available)
44: 008CDDC3 (smbx.exe): (filename not available): (function-name not available)
45: 008CDE80 (smbx.exe): (filename not available): (function-name not available)
46: 008CDEF4 (smbx.exe): (filename not available): (function-name not available)
47: 008CDEF4 (smbx.exe): (filename not available): (function-name not available)
48: 008CDF00 (smbx.exe): (filename not available): (function-name not available)
49: 008CDF00 (smbx.exe): (filename not available): (function-name not available)
50: 008CDFB9 (smbx.exe): (filename not available): (function-name not available)
51: 008CE297 (smbx.exe): (filename not available): (function-name not available)
52: 008CE2D4 (smbx.exe): (filename not available): (function-name not available)
53: 008CE338 (smbx.exe): (filename not available): (function-name not available)
54: 008CE344 (smbx.exe): (filename not available): (function-name not available)
55: 008CE35B (smbx.exe): (filename not available): (function-name not available)
56: 008CE3DA (smbx.exe): (filename not available): (function-name not available)
57: 008CE3DA (smbx.exe): (filename not available): (function-name not available)
58: 008CE793 (smbx.exe): (filename not available): (function-name not available)
59: 008CE87B (smbx.exe): (filename not available): (function-name not available)
60: 008CE96F (smbx.exe): (filename not available): (function-name not available)
61: 008CE9C1 (smbx.exe): (filename not available): (function-name not available)
62: 008CE9F3 (smbx.exe): (filename not available): (function-name not available)
63: 008CE9FF (smbx.exe): (filename not available): (function-name not available)
64: 008CEA2E (smbx.exe): (filename not available): (function-name not available)
65: 008CEA7B (smbx.exe): (filename not available): (function-name not available)
66: 008CEA7B (smbx.exe): (filename not available): (function-name not available)
67: 008CEA7B (smbx.exe): (filename not available): (function-name not available)
68: 008CEA7B (smbx.exe): (filename not available): (function-name not available)
69: 008CEDE2 (smbx.exe): (filename not available): (function-name not available)
70: 008CEEFA (smbx.exe): (filename not available): (function-name not available)
71: 008CF010 (smbx.exe): (filename not available): (function-name not available)
72: 008CF128 (smbx.exe): (filename not available): (function-name not available)
73: 008CF240 (smbx.exe): (filename not available): (function-name not available)
74: 008CF356 (smbx.exe): (filename not available): (function-name not available)
75: 008CF46E (smbx.exe): (filename not available): (function-name not available)
76: 008CF586 (smbx.exe): (filename not available): (function-name not available)
77: 008CF69C (smbx.exe): (filename not available): (function-name not available)
78: 008CF7B4 (smbx.exe): (filename not available): (function-name not available)
79: 008CF7B4 (smbx.exe): (filename not available): (function-name not available)
80: 008CF89F (smbx.exe): (filename not available): (function-name not available)
81: 008CFB31 (smbx.exe): (filename not available): (function-name not available)
82: 008CFBFD (smbx.exe): (filename not available): (function-name not available)
83: 008D0113 (smbx.exe): (filename not available): (function-name not available)
84: 008D0222 (smbx.exe): (filename not available): (function-name not available)
85: 008D0869 (smbx.exe): (filename not available): (function-name not available)
86: 008D08C4 (smbx.exe): (filename not available): (function-name not available)
87: 008D098B (smbx.exe): (filename not available): (function-name not available)
88: 008D0A37 (smbx.exe): (filename not available): (function-name not available)
89: 008D0A93 (smbx.exe): (filename not available): (function-name not available)
90: 008D0AEA (smbx.exe): (filename not available): (function-name not available)
91: 008D0AEA (smbx.exe): (filename not available): (function-name not available)
92: 008D0AEF (smbx.exe): (filename not available): (function-name not available)
93: 008D0B4A (smbx.exe): (filename not available): (function-name not available)
94: 008D0B5A (smbx.exe): (filename not available): (function-name not available)
95: 008D0B72 (smbx.exe): (filename not available): (function-name not available)
96: 008D0B83 (smbx.exe): (filename not available): (function-name not available)
97: 008D0BE1 (smbx.exe): (filename not available): (function-name not available)
98: 008D0BF7 (smbx.exe): (filename not available): (function-name not available)
99: 008D0C57 (smbx.exe): (filename not available): (function-name not available)
100: 008D0C6D (smbx.exe): (filename not available): (function-name not available)
101: 008D0CCB (smbx.exe): (filename not available): (function-name not available)
102: 008D0CE1 (smbx.exe): (filename not available): (function-name not available)
103: 008D0D40 (smbx.exe): (filename not available): (function-name not available)
104: 008D0D56 (smbx.exe): (filename not available): (function-name not available)
105: 008D0DB6 (smbx.exe): (filename not available): (function-name not available)
106: 008D0DCC (smbx.exe): (filename not available): (function-name not available)
107: 008D0E2A (smbx.exe): (filename not available): (function-name not available)
108: 008D0E40 (smbx.exe): (filename not available): (function-name not available)
109: 008D0E9F (smbx.exe): (filename not available): (function-name not available)
110: 008D0EB5 (smbx.exe): (filename not available): (function-name not available)
111: 008D0F15 (smbx.exe): (filename not available): (function-name not available)
112: 008D0F2B (smbx.exe): (filename not available): (function-name not available)
113: 008D0F89 (smbx.exe): (filename not available): (function-name not available)
114: 008D0F9C (smbx.exe): (filename not available): (function-name not available)
115: 008D0FFB (smbx.exe): (filename not available): (function-name not available)
116: 008D0FFB (smbx.exe): (filename not available): (function-name not available)
117: 008D100B (smbx.exe): (filename not available): (function-name not available)
118: 008D1010 (smbx.exe): (filename not available): (function-name not available)
119: 008D1025 (smbx.exe): (filename not available): (function-name not available)
120: 008D1085 (smbx.exe): (filename not available): (function-name not available)
121: 008D10DE (smbx.exe): (filename not available): (function-name not available)
122: 008D10F8 (smbx.exe): (filename not available): (function-name not available)
123: 008D1158 (smbx.exe): (filename not available): (function-name not available)
124: 008D11B1 (smbx.exe): (filename not available): (function-name not available)
125: 008D11CB (smbx.exe): (filename not available): (function-name not available)
126: 008D122A (smbx.exe): (filename not available): (function-name not available)
127: 008D1287 (smbx.exe): (filename not available): (function-name not available)
128: 008D12E1 (smbx.exe): (filename not available): (function-name not available)
129: 008D12FB (smbx.exe): (filename not available): (function-name not available)
130: 008D1359 (smbx.exe): (filename not available): (function-name not available)
131: 008D18B7 (smbx.exe): (filename not available): (function-name not available)
132: 008D1903 (smbx.exe): (filename not available): (function-name not available)
133: 008D195F (smbx.exe): (filename not available): (function-name not available)
134: 008D19B7 (smbx.exe): (filename not available): (function-name not available)
135: 008D1A0E (smbx.exe): (filename not available): (function-name not available)
136: 008D1A0E (smbx.exe): (filename not available): (function-name not available)
137: 008D1A0E (smbx.exe): (filename not available): (function-name not available)
138: 008D1A1A (smbx.exe): (filename not available): (function-name not available)
139: 008D1A1A (smbx.exe): (filename not available): (function-name not available)
140: 008D1A66 (smbx.exe): (filename not available): (function-name not available)
141: 008D1AB5 (smbx.exe): (filename not available): (function-name not available)
142: 008D1ACC (smbx.exe): (filename not available): (function-name not available)
143: 008D1AE2 (smbx.exe): (filename not available): (function-name not available)
144: 008D1AF8 (smbx.exe): (filename not available): (function-name not available)
145: 008D1AF8 (smbx.exe): (filename not available): (function-name not available)
146: 008D1B0E (smbx.exe): (filename not available): (function-name not available)
147: 008D1B24 (smbx.exe): (filename not available): (function-name not available)
148: 008D1B3A (smbx.exe): (filename not available): (function-name not available)
149: 008D1B50 (smbx.exe): (filename not available): (function-name not available)
150: 008D1B66 (smbx.exe): (filename not available): (function-name not available)
151: 008D1B7C (smbx.exe): (filename not available): (function-name not available)
152: 008D1B92 (smbx.exe): (filename not available): (function-name not available)
153: 008D1BA8 (smbx.exe): (filename not available): (function-name not available)
154: 008D1C27 (smbx.exe): (filename not available): (function-name not available)
155: 008D1C3D (smbx.exe): (filename not available): (function-name not available)
156: 008D1C3D (smbx.exe): (filename not available): (function-name not available)
157: 008D1C5D (smbx.exe): (filename not available): (function-name not available)
158: 008D1C73 (smbx.exe): (filename not available): (function-name not available)
159: 008D1CB0 (smbx.exe): (filename not available): (function-name not available)
160: 008D1CC6 (smbx.exe): (filename not available): (function-name not available)
161: 008D1CC6 (smbx.exe): (filename not available): (function-name not available)
162: 008D1CC6 (smbx.exe): (filename not available): (function-name not available)
163: 008D1CE2 (smbx.exe): (filename not available): (function-name not available)
164: 008D1DB1 (smbx.exe): (filename not available): (function-name not available)
165: 008D1DDA (smbx.exe): (filename not available): (function-name not available)
166: 008D1DF0 (smbx.exe): (filename not available): (function-name not available)
167: 008D1DF0 (smbx.exe): (filename not available): (function-name not available)
168: 008D1DF0 (smbx.exe): (filename not available): (function-name not available)
169: 008D1E45 (smbx.exe): (filename not available): (function-name not available)
170: 008D1E60 (smbx.exe): (filename not available): (function-name not available)
171: 008D1E7B (smbx.exe): (filename not available): (function-name not available)
172: 008D1EB0 (smbx.exe): (filename not available): (function-name not available)
173: 008D1EDF (smbx.exe): (filename not available): (function-name not available)
174: 008D1F36 (smbx.exe): (filename not available): (function-name not available)
175: 008D2127 (smbx.exe): (filename not available): (function-name not available)
176: 008D218E (smbx.exe): (filename not available): (function-name not available)
177: 008D21A4 (smbx.exe): (filename not available): (function-name not available)
178: 008D21A4 (smbx.exe): (filename not available): (function-name not available)
179: 008D21A4 (smbx.exe): (filename not available): (function-name not available)
180: 008D21B0 (smbx.exe): (filename not available): (function-name not available)
181: 008D21B0 (smbx.exe): (filename not available): (function-name not available)
182: 008D21CB (smbx.exe): (filename not available): (function-name not available)
183: 008D2264 (smbx.exe): (filename not available): (function-name not available)
184: 008D227A (smbx.exe): (filename not available): (function-name not available)
185: 008D2290 (smbx.exe): (filename not available): (function-name not available)
186: 008D339E (smbx.exe): (filename not available): (function-name not available)
187: 008D3479 (smbx.exe): (filename not available): (function-name not available)
188: 008D375F (smbx.exe): (filename not available): (function-name not available)
189: 008D3CAF (smbx.exe): (filename not available): (function-name not available)
190: 008D4003 (smbx.exe): (filename not available): (function-name not available)
191: 008D428B (smbx.exe): (filename not available): (function-name not available)
192: 008D5774 (smbx.exe): (filename not available): (function-name not available)
193: 008D5B43 (smbx.exe): (filename not available): (function-name not available)
194: 008D5F70 (smbx.exe): (filename not available): (function-name not available)
195: 008D5F70 (smbx.exe): (filename not available): (function-name not available)
196: 008D5F7C (smbx.exe): (filename not available): (function-name not available)
197: 008D5F88 (smbx.exe): (filename not available): (function-name not available)
198: 008D5F94 (smbx.exe): (filename not available): (function-name not available)
199: 008D5FA0 (smbx.exe): (filename not available): (function-name not available)
200: 008D5FAC (smbx.exe): (filename not available): (function-name not available)
201: 008D5FB8 (smbx.exe): (filename not available): (function-name not available)
202: 008D5FC4 (smbx.exe): (filename not available): (function-name not available)
203: 008D5FD0 (smbx.exe): (filename not available): (function-name not available)
204: 008D61B9 (smbx.exe): (filename not available): (function-name not available)
205: 008D624A (smbx.exe): (filename not available): (function-name not available)
206: 008D62DB (smbx.exe): (filename not available): (function-name not available)
207: 008D62DB (smbx.exe): (filename not available): (function-name not available)
208: 008D6620 (smbx.exe): (filename not available): (function-name not available)
209: 008D6784 (smbx.exe): (filename not available): (function-name not available)
210: 008D6820 (smbx.exe): (filename not available): (function-name not available)
211: 008D6AAC (smbx.exe): (filename not available): (function-name not available)
212: 008D6ABC (smbx.exe): (filename not available): (function-name not available)
213: 008D6ABC (smbx.exe): (filename not available): (function-name not available)
214: 008D6ABC (smbx.exe): (filename not available): (function-name not available)
215: 008D6AC8 (smbx.exe): (filename not available): (function-name not available)
216: 008D6AC8 (smbx.exe): (filename not available): (function-name not available)
217: 008D6AD8 (smbx.exe): (filename not available): (function-name not available)
218: 008D6AE8 (smbx.exe): (filename not available): (function-name not available)
219: 008D6AF9 (smbx.exe): (filename not available): (function-name not available)
220: 008D6B09 (smbx.exe): (filename not available): (function-name not available)
221: 008D6B0B (smbx.exe): (filename not available): (function-name not available)
222: 008D6B1B (smbx.exe): (filename not available): (function-name not available)
223: 008D6B1B (smbx.exe): (filename not available): (function-name not available)
224: 008D6B2B (smbx.exe): (filename not available): (function-name not available)



USERNAME:
(NONE)


USERCOMMENT:
(NONE)
Image
Image

My best levels:
Goomba Lands - 5/10
Stars of the trees - 5.5/10
Koopa Cave - 3.42
Green Grass Hill - 3.42
Grassy Valley - 5.47

User avatar
h2643
Ludwig von Koopa
Ludwig von Koopa
Posts: 2896
Joined: Sat Dec 21, 2013 7:23 am
Flair: Украинец
Current Project: RL
Chat Username: h/hnumbers

Re: Need help with lua? - LunaLua General Help

Postby h2643 » Thu Mar 17, 2016 10:17 am

I suggest you to read error message's description.

User avatar
Mario_and_Luigi_55
Mega Mole
Mega Mole
Posts: 270
Joined: Sat Feb 27, 2016 12:01 pm
Current Project: Super Mario Bros Adventure

Re: Need help with lua? - LunaLua General Help

Postby Mario_and_Luigi_55 » Thu Mar 17, 2016 10:20 am

h2643 wrote:I suggest you to read error message's description.

Code: Select all

VB6 Error Code: 9
VB6 Error Name: Subscript out of range
This happens when too many items are in the scenery.
The fun thing was there was almost nothing in scenery (only black background from SMB3 exit)
Image
Image

My best levels:
Goomba Lands - 5/10
Stars of the trees - 5.5/10
Koopa Cave - 3.42
Green Grass Hill - 3.42
Grassy Valley - 5.47

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Need help with lua? - LunaLua General Help

Postby PixelPest » Thu Mar 17, 2016 1:48 pm

(Redacted)
Last edited by PixelPest on Thu Mar 17, 2016 2:04 pm, edited 1 time in total.

User avatar
Waddle
Tellah
Tellah
Posts: 1569
Joined: Sun Sep 07, 2014 4:59 am
Flair: The goblin uprising is upon us

Re: Need help with lua? - LunaLua General Help

Postby Waddle » Thu Mar 17, 2016 1:53 pm

I'm trying to get rain particles to work; the code I have right here doesn't work.

Code: Select all

local particles = loadAPI("particles");
 
local effect = particles.Emitter(0, 0, Misc.resolveFile("p_rain.ini"));
effect:AttachToCamera(Camera.get()[1]);
 
function onCameraUpdate()
    effect:Draw();
end
And yes, I do have the .ini file in the level folder.
Image

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8457
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Need help with lua? - LunaLua General Help

Postby Enjl » Thu Mar 17, 2016 2:09 pm

Mario_and_Luigi_55 wrote:
h2643 wrote:I suggest you to read error message's description.

Code: Select all

VB6 Error Code: 9
VB6 Error Name: Subscript out of range
This happens when too many items are in the scenery.
The fun thing was there was almost nothing in scenery (only black background from SMB3 exit)
Scenery refers to the canvas, or the screen. Subscript out of range triggers when any limit in SMBX is reached. Be it blocks, warps, npcs or even sizeables.
Waddle Derp wrote:I'm trying to get rain particles to work; the code I have right here doesn't work.

Code: Select all

local particles = loadAPI("particles");
 
local effect = particles.Emitter(0, 0, Misc.resolveFile("p_rain.ini"));
effect:AttachToCamera(Camera.get()[1]);
 
function onCameraUpdate()
    effect:Draw();
end
And yes, I do have the .ini file in the level folder.
It should? Can I see the contents of the ini file? (also use API.load)
The ABC of Creation
________________________________________________________
Image

User avatar
Waddle
Tellah
Tellah
Posts: 1569
Joined: Sun Sep 07, 2014 4:59 am
Flair: The goblin uprising is upon us

Re: Need help with lua? - LunaLua General Help

Postby Waddle » Thu Mar 17, 2016 2:18 pm

Code: Select all

grad_1={0,0.2,1},{0,1,0}
colTime={0,0.5,1},{0xFFFFFF00,0xFFFFFF99,0xFFFFFF00}
limit=1000
rate=500:2000
xOffset=-800:800
yOffset=-600:600
rotation=40:45
speedX=-300:-600
speedY=100:1000
height=8:32
width=1
scale=1
lifetime=1
The .ini file is located in the same folder as the code.
Image

User avatar
HVMetal
Pokey
Pokey
Posts: 234
Joined: Tue Dec 29, 2015 9:44 am
Current Project: SMBX: The Mushroom Island

Re: Need help with lua? - LunaLua General Help

Postby HVMetal » Thu Mar 17, 2016 3:05 pm

Hello!
So I decided to download LunaLua too... but when I wanted to test my level I got this error message:
Spoiler: show
Image
Version of PGE is 0.3.1.8

Thanks for the help!

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8457
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Need help with lua? - LunaLua General Help

Postby Enjl » Thu Mar 17, 2016 3:11 pm

Waddle Derp wrote:

Code: Select all

grad_1={0,0.2,1},{0,1,0}
colTime={0,0.5,1},{0xFFFFFF00,0xFFFFFF99,0xFFFFFF00}
limit=1000
rate=500:2000
xOffset=-800:800
yOffset=-600:600
rotation=40:45
speedX=-300:-600
speedY=100:1000
height=8:32
width=1
scale=1
lifetime=1
The .ini file is located in the same folder as the code.
You aren't loading any sprites through the ini file.
The ABC of Creation
________________________________________________________
Image

User avatar
Waddle
Tellah
Tellah
Posts: 1569
Joined: Sun Sep 07, 2014 4:59 am
Flair: The goblin uprising is upon us

Re: Need help with lua? - LunaLua General Help

Postby Waddle » Thu Mar 17, 2016 3:14 pm

Enjl wrote:
Waddle Derp wrote:

Code: Select all

grad_1={0,0.2,1},{0,1,0}
colTime={0,0.5,1},{0xFFFFFF00,0xFFFFFF99,0xFFFFFF00}
limit=1000
rate=500:2000
xOffset=-800:800
yOffset=-600:600
rotation=40:45
speedX=-300:-600
speedY=100:1000
height=8:32
width=1
scale=1
lifetime=1
The .ini file is located in the same folder as the code.
You aren't loading any sprites through the ini file.
Yeah, I got that. I added the line "Texture=Particle.png"
(and yeah I do have a PNG file named Particle in the folder)
Image

User avatar
Kevsoft
Ripper II
Ripper II
Posts: 374
Joined: Sun Jul 27, 2014 8:03 am

Re: Need help with lua? - LunaLua General Help

Postby Kevsoft » Thu Mar 17, 2016 3:15 pm

HVMetal wrote:Hello!
So I decided to download LunaLua too... but when I wanted to test my level I got this error message:
Spoiler: show
Image
Version of PGE is 0.3.1.8

Thanks for the help!
Don't use the PGE Engine for testing. You have to still use the SMBX Engine for testing.

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8457
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Need help with lua? - LunaLua General Help

Postby Enjl » Thu Mar 17, 2016 3:15 pm

Waddle Derp wrote:
Enjl wrote:
Waddle Derp wrote:

Code: Select all

grad_1={0,0.2,1},{0,1,0}
colTime={0,0.5,1},{0xFFFFFF00,0xFFFFFF99,0xFFFFFF00}
limit=1000
rate=500:2000
xOffset=-800:800
yOffset=-600:600
rotation=40:45
speedX=-300:-600
speedY=100:1000
height=8:32
width=1
scale=1
lifetime=1
The .ini file is located in the same folder as the code.
You aren't loading any sprites through the ini file.
Yeah, I got that. I added the line "Texture=Particle.png"
(and yeah I do have a PNG file named Particle in the folder)
texture shouldn't be capitalised.
The ABC of Creation
________________________________________________________
Image

User avatar
Waddle
Tellah
Tellah
Posts: 1569
Joined: Sun Sep 07, 2014 4:59 am
Flair: The goblin uprising is upon us

Re: Need help with lua? - LunaLua General Help

Postby Waddle » Thu Mar 17, 2016 3:16 pm

Code: Select all

texture=Particle.png
grad_1={0,0.2,1},{0,1,0}
colTime={0,0.5,1},{0xFFFFFF00,0xFFFFFF99,0xFFFFFF00}
limit=1000
rate=500:2000
xOffset=-800:800
yOffset=-600:600
rotation=40:45
speedX=-300:-600
speedY=100:1000
height=8:32
width=1
scale=1
lifetime=1
This still doesn't seem to work.
Image

User avatar
Ness-Wednesday
Purple Yoshi Egg
Purple Yoshi Egg
Posts: 1437
Joined: Sun Jun 28, 2015 3:50 pm
Flair: Diverse Scouts
Current Project: TBA ;)
Contact:

Re: Need help with lua? - LunaLua General Help

Postby Ness-Wednesday » Thu Mar 17, 2016 6:37 pm

Can I make an npc transform on a mem function?

Let's say if I wanted a Thwomp to transform into a friendly coin when it hits the ground.
#Therealmofloveandhate

Join my Discord server!
Spoiler: show
Image
Do you love Villagers? I know I do!
(Image is not by me)
Will Toad truly get an actual project, will something happen who knows?
OR

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8457
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Need help with lua? - LunaLua General Help

Postby Enjl » Thu Mar 17, 2016 6:46 pm

Ness-Wednesday wrote:Can I make an npc transform on a mem function?

Let's say if I wanted a Thwomp to transform into a friendly coin when it hits the ground.
No need for mem offsets.
http://wohlsoft.ru/pgewiki/SMBX_NPC_AI
http://wohlsoft.ru/pgewiki/NPC_%28class%29
The ABC of Creation
________________________________________________________
Image

PixelPest
Link
Link
Posts: 7116
Joined: Sun Jul 12, 2015 5:38 pm
Flair: Tamer of Boom Booms
Current Project: Boom Boom Evolution
Chat Username: PixelPest
Contact:

Re: Need help with lua? - LunaLua General Help

Postby PixelPest » Fri Mar 18, 2016 11:19 am

Okay. So I'm working with this code:

Code: Select all

storedpower = 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
			player.powerup = PLAYER_BIG
			storedpower = false
		end
	end
end
It pretty much does what I want it to (functions like the NSMB power-up system), but when the player is hit, for the duration of the time the powerdown effect is triggered, the player moves down (into the ground) as the sound plays, eventually resulting in the player's death; how can I avoid this?

Enjl
Cute Yoshi Egg
Cute Yoshi Egg
Posts: 8457
Joined: Mon Jan 20, 2014 12:58 pm
Flair: Orphion Egamalenitar Osmos IV, Esq.

Re: Need help with lua? - LunaLua General Help

Postby Enjl » Fri Mar 18, 2016 11:28 am

PixelPest wrote:Okay. So I'm working with this code:

Code: Select all

storedpower = 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
			player.powerup = PLAYER_BIG
			storedpower = false
		end
	end
end
It pretty much does what I want it to (functions like the NSMB power-up system), but when the player is hit, for the duration of the time the powerdown effect is triggered, the player moves down (into the ground) as the sound plays, eventually resulting in the player's death; how can I avoid this?
There's an offset for forced animation states, such as powerup and powerdown. You're setting the player to big every frame during this animation while he's still considered small.
http://wohlsoft.ru/pgewiki/SMBX_Player_Offsets
The ABC of Creation
________________________________________________________
Image


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests