Search found 7698 matches

Go to advanced search

by Enjl
Sat Jan 25, 2020 3:52 am
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

Murphmario wrote:
Fri Jan 24, 2020 9:51 pm
I know it's been deprecated, but will leveltimer.lua get fixed? It breaks when using old codes currently, all because of line 14.
You should use timer.lua
https://docs.google.com/document/d/1uOd ... 1h3s6vmjm7
by Enjl
Fri Jan 24, 2020 3:36 pm
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

Yo, can you cancel Wario's Ground Pound mid-animation? I was playing a level, and I ground pounded on a spring, and Wario kept on doing his ground pound animation infinitely. He fell on the spring, bounced back up, pounded back on the spring, and since he cannot move sideways during the animation, ...
by Enjl
Fri Jan 24, 2020 12:24 pm
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

When making custom characters, it's advised to replace one of the standard 5. The others have their own basegame lua code that runs for them, which can and will cause conflicts. I'm not surprised this caused issues for you.
Broadsword replaces Mario internally, for reference.
by Enjl
Fri Jan 24, 2020 1:19 am
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

No because we're not the ones who make the editor.
by Enjl
Thu Jan 23, 2020 4:02 pm
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

Is there an option to shuffle blocks to transform the central block into different decoration blocks automatically? I don't really like removing blocks then place decoration blocks randomly then fill the central block again. You can change a block's ID with lua. Just loop over all blocks of an ID i...
by Enjl
Wed Jan 22, 2020 4:04 pm
Forum: LunaLua Help
Topic: NPC Settings problem
Replies: 1
Views: 63

Re: NPC Settings problem

Are you editing a .lvlx file? These settings only work in .lvlx files. Someone else recently reported something similar where it would even not work in a specific lvlx file they made. Confirm if this happens for all your lvlx files or if one of them is just cursed somehow. If it's just the one file,...
by Enjl
Tue Jan 21, 2020 10:33 pm
Forum: LunaLua Help
Topic: How do I get text to appear as the player clears a level?
Replies: 3
Views: 97

Re: How do I get text to appear as the player clears a level?

just set a boolean in onEvent that enables relevant code in onDraw. onEvent runs like the name implies: Only on frames that have triggered an event.
Instead of using onEvent you could also just check for Level.winState() > 0 https://wohlsoft.ru/pgewiki/Level_(class)
by Enjl
Mon Jan 20, 2020 4:20 pm
Forum: LunaLua Help
Topic: Custom Loading Screens?
Replies: 2
Views: 99

Re: Custom Loading Screens?

loadscreen.lua in the episode folder runs during load screens, automatically replacing the default. the lua environment is massively restricted, but you have access to all Graphics functions, as well as the onDraw event. You can override an episode-wide loadscreen with a loadscreen.lua file in a lev...
by Enjl
Mon Jan 20, 2020 2:20 pm
Forum: Help and Support
Topic: Level editor glitch
Replies: 2
Views: 59

Re: Level editor glitch

The legacy editor has a lot of annoying bugs and glitches.
by Enjl
Mon Jan 20, 2020 1:10 am
Forum: LunaLua Help
Topic: particles.lua help (again)
Replies: 2
Views: 92

Re: particles.lua help (again)

Here's step-by-step how most people do this: 1) Make an empty table which you will use for all emitters that have been spawned. This list will be responsible for drawing the emitters. People don't use NPC code for drawing emitters because when the NPC dies, that just means all the particles will als...
by Enjl
Sat Jan 18, 2020 10:38 am
Forum: Help and Support
Topic: SMBX2 Scaling Issue
Replies: 1
Views: 95

Re: SMBX2 Scaling Issue

Try a more readable windows default font like calibri as a workaround.
by Enjl
Sat Jan 18, 2020 6:24 am
Forum: Help and Support
Topic: Friendly Fire
Replies: 1
Views: 46

Re: Friendly Fire

Nope.
by Enjl
Fri Jan 17, 2020 1:18 am
Forum: Help and Support
Topic: Events with lunalua
Replies: 13
Views: 222

Re: Events with lunalua

OnKeyboardPress is inconvenient because it assumes players never change their control layout. Imagine setting the keys to Q and E just to find out someone plays your level with a controller. Whoops! But if you really wanna do this, then Daring Tombstone's suggestion is right. In my prior post when I...
by Enjl
Thu Jan 16, 2020 1:40 pm
Forum: Help and Support
Topic: Error 62 Input past end of file (solved)
Replies: 14
Views: 286

Re: Error 62 Input past end of file

So you cannot use the engine at all anymore? Can you screenshot how the error looks like / when does it happen? I cannot take screenshots. I can only say that when the window telling me the selection between game and editor opens up, everything goes fine. Whatever selection I try opening up, said w...
by Enjl
Thu Jan 16, 2020 1:07 am
Forum: Help and Support
Topic: Events with lunalua
Replies: 13
Views: 222

Re: Events with lunalua

Assuming this what you're asking here's an example. https://i.imgur.com/w0fU1O4.png Pretty simple yeah? Not quite. The behaviour expected is an unlock, from what I gather. So, instead of putting all the code into onEvent, it would be better to use onEvent to toggle a boolean variable that otherwise...
by Enjl
Wed Jan 15, 2020 12:47 pm
Forum: Help and Support
Topic: Error 62 Input past end of file (solved)
Replies: 14
Views: 286

Re: Error 62 Input past end of file

Sounds like the legacy editor failed to save the file correctly. If you want you can open your lvl file in a text editing program. There you can compare its contents to the file specification . What you're looking for is any kind of data placed after what it considers to be the end of the file (see:...
by Enjl
Sun Jan 12, 2020 1:47 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 185
Views: 23878

Re: Need help with lua? - LunaLua General Help

'kay let's see... Stacktrace says the error is in line 128. Dropbox must've inserted some lines. Since the stacktrace thinks line 94 is where onTickNPC begins, that means line 126 is the error. v.pressed = 1 I suspect the error is that NPCs don't have a "pressed" field, and thus assigning it makes n...
by Enjl
Sun Jan 12, 2020 11:44 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 185
Views: 23878

Re: Need help with lua? - LunaLua General Help

Two things would be incredibly helpful. 1) The ACTUAL error message. Usually errors come with line numbers where the error happened, as well as a stacktrace that lets you trace back where the code was even executed from. https://cdn.discordapp.com/attachments/215662742520987649/409398470546423818/un...
by Enjl
Sun Jan 12, 2020 3:38 am
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

Update on the extra settings stuff: I have updated the download links to my own packs that used an extra settings file. Here are the download links if anyone would like to investigate the changes made. They have folders for PAL and b4, and the only changes are in the lua files. (*) (*) (*) (*) (*)
by Enjl
Sat Jan 11, 2020 5:33 am
Forum: LunaLua
Topic: SMBX2 PAL Release - Feedback, Questions and Bugs here!
Replies: 1098
Views: 402773

Re: SMBX2 PAL Release - Feedback, Questions and Bugs here!

You can now make dark sections, level timers, visual effects, weather, all without a single line of Lua! Had a question about that. Are these options build into the PGE editor or is it like the background text document to configure these options? They're in the editor section settings window. SMBX ...

Go to advanced search