LunaLua Offical Thread - SMBX Usermod Framework

This is the place for discussion and support for LunaLua and related modifications and libraries.

Shall I steam some LunaLua live development?

Yes
172
92%
No
15
8%
 
Total votes: 187
User avatar
Karl Marx
Ripper II
Ripper II
Posts: 314
Joined: Sun Dec 01, 2013 5:13 pm
Current Project: Getting a college degree
Location: Louisville, KY
Contact:

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Karl Marx » Thu Feb 05, 2015 12:17 pm

I love Lua, it's very similar to MATLAB, the program I'm most comfortable coding with, thanks to physics labs.

Definitely plan to check this out, nice job with it!
Image

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Fri Feb 13, 2015 3:10 pm

LunaLua version 0.5.3.1 is out!

Changes:
* Added function getLevelName()
* Added function getLevelFilename()
* Added class Level (for overworld code)


Documentation will be updated soon!

User avatar
Imaynotbehere4long
Kamikaze Koopa
Kamikaze Koopa
Posts: 1389
Joined: Thu Jan 23, 2014 3:00 pm
Current Project: Chaotic Culmination: Universe Rescuer
Location: "The land mass between New Orleans and Mobile"

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Imaynotbehere4long » Fri Feb 20, 2015 3:21 am

I downloaded the latest version of this along with the DLLs, and my sound effects were replaced with ASMBXT's sound effects! Why are they included instead of SMBX's default sound effects, and why isn't the sound mixer compatible with the original MP3 files?

--EDIT--

After a bit of searching, I found Wohlstand's OGG sound pack, but I'm still curious why ASMBXT's sound effects are included here.
I've decided to cancel SMBXville Under Seige. After my 1st Senior year of college, I realized I wouldn't have enough time to devote to finishing my four-level episode. Apologies to those who cared.


My favorite quote on the entire forum:
Spoiler: show
mechamind wrote:
AeroMatter wrote:People who think "autistic" is an adjective and not a verb.

You autistic some people so much with that statement.


My SMBX portfolio:
Spoiler: show
Image
(includes a Sonic 3D Blast styled level.)


SOMEONE ANSWER MY CRY FOR HELP: http://www.supermariobrosx.org/forums/v ... =69&t=2026

User avatar
Wohlstand
Birdo
Birdo
Posts: 1583
Joined: Tue Feb 11, 2014 4:44 pm
Current Project: Platformer Game Engine project
Location: Moscow, Russia
Contact:

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Wohlstand » Fri Feb 20, 2015 5:45 am

Imaynotbehere4long wrote:I downloaded the latest version of this along with the DLLs, and my sound effects were replaced with ASMBXT's sound effects! Why are they included instead of SMBX's default sound effects, and why isn't the sound mixer compatible with the original MP3 files?

--EDIT--

After a bit of searching, I found Wohlstand's OGG sound pack, but I'm still curious why ASMBXT's sound effects are included here.

Sorry, I included by default the A2MBXT sound pack into dependencies package because firstly this was presented on Talkhaus, but I think, we should add SMBX Ogg Pack too (I will ask Kevin to add it). But by anyway it's a little proof of "it works fine! :D" ;-)
"PGE Project, my Media and supported projects": show
Support me on the Patreon
Image

PGE Project
PGE Project SMBX Topic
PGE Project Official Site and forums
Download fresh experimental builds HERE!
LunaLua
LunaLUA - is a LUA scripting add-on for a LunaDLL

My Media:
My MIDI-music
Pure HQ Music Pack for SMBX
Pure HQ Sound Pack for SMBX
SMBX OPL Sound pack (Created with Yamaha OPL chip and MIDI files)
SMBX38A is here
SMBX-38A download, help and support HERE (SMBX-38A (a.k.a. 1.4.x) - is Chinese unofficial continuation of SMBX)

I'm support:
Image
Image
Image


Image
P.S. I don't like huge signatures which would be annoying, therefore I put huge content into spoilers

User avatar
Exiled Bowser
Bit
Bit
Posts: 135
Joined: Thu Feb 19, 2015 6:06 pm
Current Project: Esgardum Legends I: The Four Sinners
Location: Mario's House. My castle is taken from me.
Chat Username: Exiled
Contact:

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Exiled Bowser » Fri Feb 20, 2015 11:25 am

<Exiled-Bowser> I may be able to finally force level to have certain characters only without making a room you start in first as I'm doing now and maybe do a few other things I can't currently.
[10:55] <Exiled-Bowser> Like character only blocks like in hacks
[10:56] <Exiled-Bowser> or fix the character only blocks to allow npcs to go through
[10:56] <Exiled-Bowser> which they do not...
[10:57] <Exiled-Bowser> or fix the issue in smbx using luna where shells/other thrown objects can't hit invisible blocks.
[01:17:53] <Exiled_Bowser> Finally! I do not get a damn "2" added to my name when I dc and reconnect.
[01:19:18] <Exiled_Bowser> Bowser's Exile 2 will not be out or will ever be out for years! That is a Joke folks...I have no intention of making a second when I haven't even done the first to completion yet.

Speaking of which, just check out the thread for my Episode Project right here!
viewtopic.php?f=34&t=8440

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Mon Feb 23, 2015 11:27 am

LunaLua v0.5.3.2 has been released

Changes:
Spoiler: show
* Added npc.isValid()
* Added exceptions for npcs and players if the index is invalid for better coding experience.

User avatar
Exiled Bowser
Bit
Bit
Posts: 135
Joined: Thu Feb 19, 2015 6:06 pm
Current Project: Esgardum Legends I: The Four Sinners
Location: Mario's House. My castle is taken from me.
Chat Username: Exiled
Contact:

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Exiled Bowser » Mon Feb 23, 2015 3:33 pm

Can this now be used to force a certain character to be used in a level if they are allowed to be selected on world map before hand? I'm tired of having to make a "character waiting room section" where you have to change into the proper character first.
[01:17:53] <Exiled_Bowser> Finally! I do not get a damn "2" added to my name when I dc and reconnect.
[01:19:18] <Exiled_Bowser> Bowser's Exile 2 will not be out or will ever be out for years! That is a Joke folks...I have no intention of making a second when I haven't even done the first to completion yet.

Speaking of which, just check out the thread for my Episode Project right here!
viewtopic.php?f=34&t=8440

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Tue Feb 24, 2015 8:55 am

try

Code: Select all

function onLoad()
  player:mem(0xF0, FIELD_WORD, 1)
end

1 = Mario, 2 = Luigi, 3 = Princess, 4 = Toad, 5 = Link

User avatar
Exiled Bowser
Bit
Bit
Posts: 135
Joined: Thu Feb 19, 2015 6:06 pm
Current Project: Esgardum Legends I: The Four Sinners
Location: Mario's House. My castle is taken from me.
Chat Username: Exiled
Contact:

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Exiled Bowser » Tue Feb 24, 2015 10:48 am

That is in a lunadll.txt? For that level in the level folder? Or what? Once I know how to do it, I can remember it.
[01:17:53] <Exiled_Bowser> Finally! I do not get a damn "2" added to my name when I dc and reconnect.
[01:19:18] <Exiled_Bowser> Bowser's Exile 2 will not be out or will ever be out for years! That is a Joke folks...I have no intention of making a second when I haven't even done the first to completion yet.

Speaking of which, just check out the thread for my Episode Project right here!
viewtopic.php?f=34&t=8440

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Tue Feb 24, 2015 10:53 am

lunadll.lua in the custom folder (where you put also custom graphics).


Okay guys, the SUPER AMAZING SUPER-PATCH 0.5.4 IS OUT (just fixing my stupid memory-leak >.>)

... while fixing the memory-leak I also did:
Spoiler: show
* Added a constructor for VBStr with a string pointer (not a memory address, use mem with FIELD_STRING for memory address)!
** Added FIELD_STRING for the mem-functions! Usage:

Code: Select all

function onLoop()
   printText(mem(0x00B2D764, FIELD_STRING).str, 20, 300) --Prints out the level name
end

..or if you want to save up the pointer:

Code: Select all

function onLoop()
   local theLevelNameStrPointer = mem(0x00B2D764, FIELD_STRING)
end

* Added all other lua-libraries including cinematX.lua, raocoin.lua, triggers.lua, musix.lua, multipoints.lua.

MaxiMario289
Goomba
Goomba
Posts: 4
Joined: Wed Feb 25, 2015 10:07 am

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby MaxiMario289 » Wed Feb 25, 2015 4:12 pm

So, yeah, I tried to install LunaLUA many times (around six) but I can't get it to work =(
LunaDLL version 7 worked when I tried to install it. The old LunaLUA version which didn't use the SDL Mixer worked for me too (I'm using it atm). But the new versions aren't working for me.

When I open SMBX I get this:
Spoiler: show
Image

I have to press "OK" for every sound file. Then, when I play, I have no sound and LunaLUA isn't working.

I took a screenshot of my SMBX LunaLUA file:
Spoiler: show
Image


I'm still trying to find a way to get LunaLUA to work. I'd really love if someone could help me though :)
Thanks!

(oh and I use Windows 8 if that's the problem)

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Wed Feb 25, 2015 4:27 pm

The fix is simple: Just download "SMBX Audio Files" (from the first post) and put all the ogg files in the sounds folder.

MaxiMario289
Goomba
Goomba
Posts: 4
Joined: Wed Feb 25, 2015 10:07 am

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby MaxiMario289 » Wed Feb 25, 2015 4:35 pm

Yeah I've done this. It still doesn't work, I got the same message =/
Thanks for trying to help me anyway ^^

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Thu Feb 26, 2015 1:22 am

Could you screenshot the messagebox again?

MaxiMario289
Goomba
Goomba
Posts: 4
Joined: Wed Feb 25, 2015 10:07 am

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby MaxiMario289 » Thu Feb 26, 2015 5:33 am

Yeah.

Spoiler: show
Image

It's literally the same than the old one =p

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Thu Feb 26, 2015 11:38 am

Oh I just see that you need to put/create it in the folder "sound_ogg"

MaxiMario289
Goomba
Goomba
Posts: 4
Joined: Wed Feb 25, 2015 10:07 am

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby MaxiMario289 » Thu Feb 26, 2015 4:23 pm

You mean that I have to put all .ogg files in the sound_ogg folder ?

Still doesn't work =(

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

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Kevsoft » Fri Feb 27, 2015 12:59 am

So "SMBX/sound_ogg/....ogg-files"?

User avatar
Wohlstand
Birdo
Birdo
Posts: 1583
Joined: Tue Feb 11, 2014 4:44 pm
Current Project: Platformer Game Engine project
Location: Moscow, Russia
Contact:

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Wohlstand » Fri Feb 27, 2015 7:43 am

Also little note:
Full path SHOULD be with ASCII only characters (for example, D:\Igry\SMBX\LunaLUA 0.5.3\ but not D:\Игры\SMBX\LunaLUA 0.5.3).
"PGE Project, my Media and supported projects": show
Support me on the Patreon
Image

PGE Project
PGE Project SMBX Topic
PGE Project Official Site and forums
Download fresh experimental builds HERE!
LunaLua
LunaLUA - is a LUA scripting add-on for a LunaDLL

My Media:
My MIDI-music
Pure HQ Music Pack for SMBX
Pure HQ Sound Pack for SMBX
SMBX OPL Sound pack (Created with Yamaha OPL chip and MIDI files)
SMBX38A is here
SMBX-38A download, help and support HERE (SMBX-38A (a.k.a. 1.4.x) - is Chinese unofficial continuation of SMBX)

I'm support:
Image
Image
Image


Image
P.S. I don't like huge signatures which would be annoying, therefore I put huge content into spoilers

User avatar
Murphmario
Boom Boom
Boom Boom
Posts: 1790
Joined: Fri Dec 20, 2013 7:07 pm
Location: Smbxville, Murphmario's House

Re: LunaLua - Lunadll with lua [Now with Overworld]

Postby Murphmario » Sat Feb 28, 2015 11:30 am

I have an issue of tracks playing faster than they should. Could you please fix that?


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests