Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Need help with any SMBX game-related issues? Ask your questions here.
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?
User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Tue Sep 17, 2019 3:40 am

I tried adding in Pixelpest's Easy Lunalua to use some of its features only to get hit with another error! (God I HATE errors! :evil: )

Image

Why am I still here? Just to suffer? :(
Need serious help with Lua based features :(

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

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Enjl » Tue Sep 17, 2019 4:45 am

clock.lua requires an image. Looks like you copied the library and not any of its assets. Check the error: It says it's in line 13 of clock.lua. The filepath in the loadImage call there will reveal the path to the image it's looking for. There might be more loadImage calls in that area, too.
Making a timer in the PAL relase is just two lines anyway:
local timer = require("timer")
timer.activate(TIME_IN_SECONDS)

The brackets can be left empty to default to 500.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Tue Sep 17, 2019 8:58 am

But I don't want to use the clock, I just want the NSMB powerups option & the visual effects like Snow, Sandstorms, Fog & Wind.
Need serious help with Lua based features :(

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

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Enjl » Tue Sep 17, 2019 9:18 am

Animebryan wrote:
Tue Sep 17, 2019 8:58 am
But I don't want to use the clock, I just want the NSMB powerups option & the visual effects like Snow, Sandstorms, Fog & Wind.
So... EasyLunalua is a crutch. One of the consequences of that and how it was made is that you can't just take some of it. The library tries to load stuff for the clock, so you gotta include stuff for the clock if you wanna use it.
That said, the "problems" solved by EasyLunaLua are consistently things that are very easily done without relying on the library.

NSMB powerups option:
local altpsystem = require("altpsystem")
altpsystem.usingSystem = altpsystem.SYSTEM_DS (other options are SYSTEM_WII and SYSTEM_SMW)

Using default particle systems:
local particles = require("particles")
local snowParticles = particles.Emitter(0, 0, "particles/p_snow.ini")
snowParticles:AttachToCamera(camera)

function onDraw()
snowParticles:Draw(priority)
end

To adjust the particles' sections you just change when drawing happens. For example only "if player.section == 0 then"
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Thu Sep 19, 2019 12:18 am

Where do I find these options & how do I set them up? (need details)
Need serious help with Lua based features :(

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

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Enjl » Thu Sep 19, 2019 3:02 am

Please be more specific. I don't know what information you're looking for.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Thu Sep 19, 2019 3:17 am

Enjl wrote:
Tue Sep 17, 2019 9:18 am
NSMB powerups option:
local altpsystem = require("altpsystem")
altpsystem.usingSystem = altpsystem.SYSTEM_DS (other options are SYSTEM_WII and SYSTEM_SMW)

Using default particle systems:
local particles = require("particles")
local snowParticles = particles.Emitter(0, 0, "particles/p_snow.ini")
snowParticles:AttachToCamera(camera)

function onDraw()
snowParticles:Draw(priority)
end

To adjust the particles' sections you just change when drawing happens. For example only "if player.section == 0 then"
Need serious help with Lua based features :(

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

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Enjl » Thu Sep 19, 2019 3:48 am

Right so... you're quoting the part where I provided the code that is essentially executed by the EasyLunaLua system to provide an alternative not relying on the system. You set them up by using the code you quoted, adjusting the variables I pointed out if necessary and not using EasyLunaLua at all.

If you want to instead continue using EasyLunaLua, you must address any errors the library starts complaining about. Might be a good idea, because it increases reading comprehension of error messages... even if the system is unwieldy and you'll have to include more code than you need in your episode. I've already repeated what the first error message you got said. From my post you can trace back to the layout of the error message and find out what to do. Here's the reference that's pinned in codehaus' smbx2-script-help. The stacktrace is less important in this case because you never actually call easylunalua from your own code. In your error it's just a list of files that called each other, and the error is actually in clock.lua at line 13.
Spoiler: show
Image
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Thu Sep 19, 2019 4:14 am

I don't want to use EasyLunaLua! I just want to know HOW to use those codes & WHERE to put them! Jesus Christ!
Need serious help with Lua based features :(

User avatar
Cedur
Blue Yoshi Egg
Blue Yoshi Egg
Posts: 4847
Joined: Tue Jun 28, 2016 10:14 am
Flair: Save climate, cut fridays for whole-week future
Current Project: various playthroughs and tests

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Cedur » Thu Sep 19, 2019 4:23 am

Animebryan wrote:
Thu Sep 19, 2019 4:14 am
I don't want to use EasyLunaLua! I just want to know HOW to use those codes & WHERE to put them! Jesus Christ!

when will you ever stop throwing tantrums
Image

Supports: show
Image
Image
Image
Image

Image

Still using the legacy editor? Get SMBX2 and PGE, it will improve your experience significantly. Here's why.

iphtechnologies wrote: NEO super mario world x is a really nice game. This Episode is 2,7 GB large at the moment.That`s crazy!
Please find similar post:
[ads]

If you're not smart enough to plan ahead, then DOOM ON YOU!

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Thu Sep 19, 2019 4:25 am

Don't know why you're chiming in but I have you on my foes list so your post is pointless!
Need serious help with Lua based features :(

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

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Enjl » Thu Sep 19, 2019 4:48 am

luna.lua. That's always where level- or episode-wide lua code goes (level folder if level-wide, episode folder if episode-wide).
Unless you're on Beta 3 (which I doubt since then EasyLunaLua wouldn't be breaking I think), where it's lunaworld.lua or lunadll.lua depending on whether it's episode or level code.
Considering you were on Episode 7 of the lunalua tutorials months ago I thought you had at least watched part of Episode 1, sorry.
ImageImageImageImage
ImageImageImageImageImageImage

User avatar
Animebryan
Bit
Bit
Posts: 144
Joined: Fri Jun 03, 2016 5:40 pm
Flair: Need help!
Current Project: Star of Darkness
Contact:

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Animebryan » Thu Sep 19, 2019 5:23 am

That's what I needed to know, but is there that much of a difference between what Beta 3 uses & what PAL uses?

As for the Darkness tutorial, I was just interested in that effect so I went straight to it. If I want to learn how to do something specific & there's a video that covers it, I'm going to THAT video. Why would I watch other videos when there's only 1 video that covers what I want to learn? That's why its important to give details & explain how to do something from step 1 to the final step & leave no information out so the person trying to learn it doesn't screw it up due to a lack of info.

Now are there tutorials or guides to explain how to set those up? Do I need to copy over certain lua files like altpsystem or particles into my episode/level folders?
Do those codes just go into the luna.lua file?
Need serious help with Lua based features :(

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

Re: Tried using Pixelpest's Easy Lunalua but got hit with another ERROR!

Postby Enjl » Thu Sep 19, 2019 5:33 am

That much of a difference? We just standardized the names so that people don't have to remember different names for episode- and level-wide anymore. And people would often think that "lunaworld" is for the "world map". The Beta 3 system was just confusing. In terms of functionality, there's no significant difference.

No coding tutorial series ever starts at step 0 with every video. It'd be a chore for people who are actually interested in learning the language to always have the fundamentals copypasted onto the start of the video. The videos are numbered in increasing order of complexity, though I suppose I should take out the numbering of the later systems and just imply that they assume people have a grasp on the language from the first few tutorials.

The codes just go into luna.lua.
ImageImageImageImage
ImageImageImageImageImageImage


Return to “Help and Support”

Who is online

Users browsing this forum: No registered users and 2 guests

cron