Search found 1216 matches

Go to advanced search

by Hoeloe
Sat Aug 08, 2020 10:39 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

you can do a getIntersecting check over overlapping blocks to tag them with a variable that prevents them from transforming No you can't. Beat blocks don't "transform" between different IDs, they change their state, so you'd have to prevent the state from changing for all blocks of this type, which...
by Hoeloe
Fri Aug 07, 2020 12:28 am
Forum: LunaLua Help
Topic: What is the code that makes drybones collapse?
Replies: 6
Views: 317

Re: What is the code that makes drybones collapse?

That's not how it works. You don't just "insert" parts of one NPCs code into another. However, all NPCs from ID 293 onwards have open source code, so you can just take a look in the scripts folder to see how they were made.
by Hoeloe
Sun Aug 02, 2020 10:49 pm
Forum: General
Topic: Legacy vs PGE
Replies: 27
Views: 1383

Re: Legacy vs PGE

Wiimeiser wrote:
Sun Aug 02, 2020 10:18 pm
In my experience, legacy autoscroll is virtually useless in SMBX2
To be totally fair, it hasn't changed. It was virtually useless in 1.3, too.
by Hoeloe
Sun Aug 02, 2020 8:37 pm
Forum: General
Topic: Legacy vs PGE
Replies: 27
Views: 1383

Re: Legacy vs PGE

> 4. ... it sucks that you can't access battle mode from it as far as I'm aware). Since recent time, PGE Editor can launch battle mode with SMBX-38A and TheXTech engines. But still, SMBX2 doesn't support that. At the same time, SMBX2 have a broken two-player game support. This is disingenuous at be...
by Hoeloe
Thu Jul 30, 2020 12:42 pm
Forum: Help and Support
Topic: Custom World Map Music
Replies: 2
Views: 190

Re: Custom World Map Music

Custom world map music is not part of SMBX. It's a PGE engine only feature, and won't work in the game. Instead, you should use music.ini files to redirect existing music tracks to custom music, or use Lua to play music manually.
by Hoeloe
Tue Jul 28, 2020 8:50 pm
Forum: General
Topic: Legacy vs PGE
Replies: 27
Views: 1383

Re: Legacy vs PGE

Besides, if you have compatibility concerns, there's still a possibility of making levels in PGE and saving them in .lvl format instead of .lvlx. That's the thing, just to test out if PGE levels worked in 1.3, I loaded up one of the completed levels that I have been working on in my episode, and it...
by Hoeloe
Mon Jul 27, 2020 7:47 pm
Forum: General
Topic: Legacy vs PGE
Replies: 27
Views: 1383

Re: Legacy vs PGE

It's not broken by any means, but it sometimes doesn't closes when closing the window, takes too much time to load, or spawns your character at weird positions when opening another level. So, aside from a lot of other very weird points that I won't get into (like how more NPCs somehow makes the edi...
by Hoeloe
Sun Jul 26, 2020 10:21 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

Goldenemerl64 wrote:
Sun Jul 26, 2020 2:19 am

i Don't know what it means by "luna.lua:8: 'then' expected near ';' "

Like I said before, ; is NOT used to access functions. You should NOT be writing player;mem, but player:mem. You've used semicolons where they don't make sense.
by Hoeloe
Sat Jul 25, 2020 9:14 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

You... don't need to copy the lua files, just load them using "require".
by Hoeloe
Fri Jul 24, 2020 11:53 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

Goldenemerl64 wrote:
Fri Jul 24, 2020 11:10 pm
It wasn't producing an error message. How do i save the file Correctly?
How did you create it? There should be a button in the editor under Scripts that allows you to open the local level script. That should create the correct file.
by Hoeloe
Fri Jul 24, 2020 8:00 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

Goldenemerl64 wrote:
Fri Jul 24, 2020 6:50 pm
Oh ok, I'll see if it works.

Added in 15 minutes 47 seconds:
It's still not working It still Moves To the End Of Section Immediately.
Was it producing an error message before? If it wasn't, then your Lua code wasn't even running. You likely didn't save the file correctly.
by Hoeloe
Fri Jul 24, 2020 5:49 pm
Forum: Help and Support
Topic: Power-up Resetting Layer Movement
Replies: 2
Views: 182

Re: Power-up Resetting Layer Movement

The problem is that lunetime.tick() continues to increase while the layer movement is paused, so the layer remains stationary while the speed continues to change. The way to resolve this is to not use lunatime.tick(). instead, create a local variable, say, "timer", and assign it to 0 initially. Then...
by Hoeloe
Fri Jul 24, 2020 12:36 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

Goldenemerl64 wrote:
Fri Jul 24, 2020 8:52 am
player;kill()
If your code isn't erroring, it's not running.

This should be player:kill(). A semicolon (;) is used as a marker for the end of a line, not as a member function. For that, you'd use a full colon (:), which is used similarly to a period (.) in Lua.
by Hoeloe
Thu Jul 23, 2020 10:46 am
Forum: LunaLua
Topic: SMBX2 BETA 4 Release - Feedback and Suggestions here!
Replies: 553
Views: 79645

Re: SMBX2 BETA 4 Release - Feedback and Suggestions here!

I just discovered a bug that if you change episode, yout point stay the same and it can also deactivate the switch palace of other episode. (SMBX2 with all patch) How are you "changing episode"? The best way to switch episodes is to go back to the launcher and switch from there. The old title scree...
by Hoeloe
Wed Jul 22, 2020 6:48 pm
Forum: LunaLua Help
Topic: costume.lua question
Replies: 1
Views: 132

Re: costume.lua question

You don't "insert" the costume files. You place the entire costume folder in their own "costumes" folder, and activate the costume from a Lua script (though I believe MrDoubleA's SMW costumes are built into the latest version of the game): function onStart() Player.setCostume(CHARACTER_MARIO, "SMW-M...
by Hoeloe
Wed Jul 15, 2020 6:52 pm
Forum: General
Topic: find
Replies: 2
Views: 215

Re: find

These are for an unfinished set of NPCs - shield monitors from Sonic the Hedgehog. They're not available in the editor because they're not finished and don't work.
by Hoeloe
Sat Jul 11, 2020 7:41 pm
Forum: General
Topic: Old smbx.exe file
Replies: 5
Views: 325

Re: Old smbx.exe file

You aren't supposed to run that .exe directly. SMBX2.exe in the root folder should be the one you run. If that doesn't work, try SMBXLauncher.exe in the data folder. If THAT doesn't work, try LunaLoader.exe.
by Hoeloe
Fri Jul 10, 2020 12:24 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

Checking PGE for updates isn't going to update your engine. SMBX2 Beta 4 patch 2.1 is the latest version, which you can download from http://codehaus.moe.
by Hoeloe
Wed Jul 08, 2020 1:15 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 271
Views: 37685

Re: Need help with lua? - LunaLua General Help

I believe that error can occur if you're using an old version of Beta 4. Make sure you have the most recent version downloaded!
by Hoeloe
Tue Jul 07, 2020 10:32 am
Forum: LunaLua Help
Topic: Looping Music from a Specific Point
Replies: 4
Views: 198

Re: Looping Music from a Specific Point

Uhh.... That is exactly what this explains??? You can't do it with MP3 files, because they don't support it, but you don't need Lua for this. You just fill in the metadata and SMBX will loop the music from the point you specify. It'll play the intro the first time, and then loop back to the marked "...

Go to advanced search