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
Kevsoft
Ripper II
Ripper II
Posts: 373
Joined: Sun Jul 27, 2014 8:03 am

Re: LunaLua - Lunadll with lua

Postby Kevsoft » Sat Dec 27, 2014 8:17 am

DarkShadeX wrote:i fu****g love you kevy!

Hehe, thanks :P

I also updated the package with a small hotfix towards loadImage.

SnifitGuy
Birdo
Birdo
Posts: 1565
Joined: Mon Dec 23, 2013 7:33 pm

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

Postby SnifitGuy » Sat Dec 27, 2014 8:17 am

This is the greatest thing of all time. Now we can make events like crumbling castles in SMB3 and SMW...

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 » Sat Dec 27, 2014 11:24 am

I am currently trying to fix a bug where the overworld is crashing when lunaoverworld.lua is missing. I'll release a new version soon!

Okay: Just fixed the small bug. Just download the same ZIP and overwrite the LunaDll.dll file.

User avatar
UberAndrew
Cheep-Cheep
Cheep-Cheep
Posts: 12
Joined: Thu May 08, 2014 4:51 pm
Current Project: SMBX Episode - The Great Kingdom Adventure.
Location: Tacoma, Wa.
Contact:

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

Postby UberAndrew » Sun Dec 28, 2014 5:23 am

Man, this is really looking amazing.

If this was included with SMBX 1.3.2 and there were in depth tutorials, this could really revitalize SMBX.
Add me on Wii U! Name is the same as on here.

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 Dec 30, 2014 8:29 am

And here is the first LunaLua update for the overworld adding now the world class!
Example Code:
Spoiler: show

Code: Select all

function onLoop()
   local output = ""
   if world.playerIsCurrentWalking then
      output = output .. "Running "
   else
      output = output .. "Looking "
   end
   
   if world.playerCurrentDirection == ODIR_UP then
      output = output .. "Up"
   elseif world.playerCurrentDirection == ODIR_LEFT then
      output = output .. "Left"
   elseif world.playerCurrentDirection == ODIR_DOWN then
      output = output .. "Down"
   elseif world.playerCurrentDirection == ODIR_RIGHT then
      output = output .. "Right"
   end
   
   printText(output, 10, 10)
   if world.levelTitle then
      printText("Current Level: "..world.levelTitle.str, 10, 30)
   end
end


Changes for LunaLua 0.5.2:
Spoiler: show
* Added world class with following functions and properties:
** field double world.playerX
** field double world.playerY
** field int world.playerWalkingDirection
** field int world.playerWalkingTimer
** field int world.playerWalkingFrame
** field int world.playerWalkingFrameTimer
** field boolean world.playerIsCurrentlyWalking
** field nil or VBStr world.levelTitle
** function mem


Documentation will be updated soon!

User avatar
DarkShadeX
Volcano Lotus
Volcano Lotus
Posts: 535
Joined: Sat Jan 18, 2014 11:34 am

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

Postby DarkShadeX » Tue Dec 30, 2014 9:30 am

The code above doesnt 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 » Tue Dec 30, 2014 11:29 am

What doesn't work?
Do you get any errors?

User avatar
Thegreatrainbowyoshi
Cheep-Cheep
Cheep-Cheep
Posts: 19
Joined: Sun Sep 07, 2014 8:21 pm
Current Project: a great madness. name yet pending

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

Postby Thegreatrainbowyoshi » Thu Jan 01, 2015 9:54 pm

Windows 8 is being a bitch :x . I cannot run SMBX with Lunalua. It can't even see the splash screen where i can choose the Level editor or the game beacuse windows 8 kills it's process.
Windows 8 is Hate Windows 8 is Death. Windows 7 is Love. Windows 7 is Life.
How i can fix this, Kevinsoft? :(

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 Jan 02, 2015 1:06 am

Thegreatrainbowyoshi wrote:beacuse windows 8 kills it's process.(

That's very strange.....

First of all:
1.) Do you have the modded version?
2.) Do you run it by administrator?

User avatar
Thegreatrainbowyoshi
Cheep-Cheep
Cheep-Cheep
Posts: 19
Joined: Sun Sep 07, 2014 8:21 pm
Current Project: a great madness. name yet pending

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

Postby Thegreatrainbowyoshi » Fri Jan 02, 2015 3:53 pm

Kevsoft wrote:
Thegreatrainbowyoshi wrote:beacuse windows 8 kills it's process.(

That's very strange.....

First of all:
1.) Do you have the modded version?
2.) Do you run it by administrator?


1) Yes, but i doesn't run
2) I did it. Still it doens'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 Jan 02, 2015 4:12 pm

Two questions more: The normal version (the unmodded one) works without problems?
And smbx doesn't run after the launcher?

User avatar
Thegreatrainbowyoshi
Cheep-Cheep
Cheep-Cheep
Posts: 19
Joined: Sun Sep 07, 2014 8:21 pm
Current Project: a great madness. name yet pending

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

Postby Thegreatrainbowyoshi » Fri Jan 02, 2015 7:54 pm

Kevsoft wrote:Two questions more: The normal version (the unmodded one) works without problems?
And smbx doesn't run after the launcher?

1) When i use Lunadll 8 without lua the modded exe works great while i use the one with lua it doesn't start
2)It doens't even show the launcher. :x

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 » Sat Jan 03, 2015 7:19 am

Okay, then try to run smbx with following command line arguments: "--patch --game".

User avatar
Thegreatrainbowyoshi
Cheep-Cheep
Cheep-Cheep
Posts: 19
Joined: Sun Sep 07, 2014 8:21 pm
Current Project: a great madness. name yet pending

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

Postby Thegreatrainbowyoshi » Sat Jan 03, 2015 12:05 pm

Kevsoft wrote:Okay, then try to run smbx with following command line arguments: "--patch --game".

what? i don't know how to make commands
edit: for some reason the one with lua is now working great. ._.

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 » Sat Jan 03, 2015 12:55 pm

Thegreatrainbowyoshi wrote:
Kevsoft wrote:Okay, then try to run smbx with following command line arguments: "--patch --game".

what? i don't know how to make commands
edit: for some reason the one with lua is now working great. ._.

It's simple:
Hold the "Shift" key and press right mouse button in the SMBX's folder: find menuitem "Open Command Prompt" (if menuitem is absense, try again, shift key should be holden while you pressing mouse button), and open them.
Now type in the black window next words:

(if your modded SMBX.exe names "smbx modded"), type:

Code: Select all

"smbx modded.exe" --patch --game


or if your SMBX.exe names "smbx_modded", type

Code: Select all

"smbx_modded.exe" --patch --game

etc...

SMBX should be launched in the gameplay mode with escaping of launcher box.
If you wanna run editor, use those arguments: --patch --leveleditor
"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
Thegreatrainbowyoshi
Cheep-Cheep
Cheep-Cheep
Posts: 19
Joined: Sun Sep 07, 2014 8:21 pm
Current Project: a great madness. name yet pending

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

Postby Thegreatrainbowyoshi » Sat Jan 03, 2015 1:42 pm

Wohlstand wrote:
Thegreatrainbowyoshi wrote:
Kevsoft wrote:Okay, then try to run smbx with following command line arguments: "--patch --game".

what? i don't know how to make commands
edit: for some reason the one with lua is now working great. ._.

It's simple:
Hold the "Shift" key and press right mouse button in the SMBX's folder: find menuitem "Open Command Prompt" (if menuitem is absense, try again, shift key should be holden while you pressing mouse button), and open them.
Now type in the black window next words:

(if your modded SMBX.exe names "smbx modded"), type:

Code: Select all

"smbx modded.exe" --patch --game


or if your SMBX.exe names "smbx_modded", type

Code: Select all

"smbx_modded.exe" --patch --game

etc...

SMBX should be launched in the gameplay mode with escaping of launcher box.
If you wanna run editor, use those arguments: --patch --leveleditor


wait no it now works propely since i installed it on other folder. case closed.

Avarice
Bob-omb
Bob-omb
Posts: 32
Joined: Sat Jul 05, 2014 2:35 pm

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

Postby Avarice » Wed Jan 07, 2015 8:44 am

Will this be compatible with PGE?

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 » Wed Jan 07, 2015 9:22 am

Avarice wrote:Will this be compatible with PGE?

Yes, because we (Me and Kevsoft) working together and we will take care to make it compatible with PGE's Lua scripting which will success to LunaDLL (LunaDLL's features will be a native part of PGE Engine and all LunaDLL/LUA features will be supported in the PGE, but instead memory addreses hacking we will call API functions directly, but I will make aliasing to 'mem' function which will replace SMBX's memory address with internal PGE's function). Anyway PGE will have new events system: instead of classic SMBX's events you will have able use action-styled events which a list where you need to add necessary actions. This will reduce file size, will make events more understandable, more flexible: (you will be able even insert delay between actions and loop inside alone event, and even you can break loop from another event, etc.)
"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
Veudekato
Ripper II
Ripper II
Posts: 394
Joined: Tue Feb 18, 2014 8:14 am
Current Project: in progress
Location: Russia

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

Postby Veudekato » Wed Jan 28, 2015 12:01 pm

its possible to make smb1 bowser throws hammer more and faster?
My channel (news about PlatGEnWohl , PlatGEnWohl tutorials,LunaDll ,and SMBX tests):
http://www.youtube.com/channel/UC6h-42umT14iR1wa3VkOs3Q





Image






If you want to make full screenshot of your level (big screenshot - screen of whole section) , just tell me via PM!

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 05, 2015 4:56 am

LunaLua 0.5.2.1 is out with just a mainV2.lua fix. No binary update!


Return to “LunaLua”

Who is online

Users browsing this forum: No registered users and 2 guests