Search found 1393 matches

Go to advanced search

by Hoeloe
Wed Mar 10, 2021 11:31 am
Forum: Help and Support
Topic: What's wrong with SMW Lakitu?
Replies: 14
Views: 1193

Re: What's wrong with SMW Lakitu?

You're aggressive and antagonistic every time you ask for help. You complain constantly, and every time you do, you act like it's everyone elses fault. The fact is, things are working as intended, but because they're not working exactly how you want them to, you yell at everyone. And if you want to ...
by Hoeloe
Wed Mar 10, 2021 11:28 am
Forum: LunaLua Help
Topic: A bit of help regarding Lua Basics
Replies: 18
Views: 1172

Re: A bit of help regarding Lua Basics

I think you need to go through some basic Lua tutorials. The code you are writing here does not make any sense. When I said to use a timer, I literally told you how to do that. I did not say to use the timer library, which 1) exists to add a level timer that kills the player when it runs out and 2) ...
by Hoeloe
Tue Mar 09, 2021 12:26 pm
Forum: LunaLua Help
Topic: A bit of help regarding Lua Basics
Replies: 18
Views: 1172

Re: A bit of help regarding Lua Basics

RNG.random(7) will give a random decimal number between 0 and 7. You likely want RNG.randomInt(7), or better yet, a table with all the possible responses as entries and RNG.irandomEntry to select one.
by Hoeloe
Tue Mar 09, 2021 12:16 pm
Forum: Help and Support
Topic: Splash Effect not appearing?
Replies: 2
Views: 337

Re: Splash Effect not appearing?

The splash effect only appears around certain BGOs, not just water in general. If you're not using those BGOs, the effect won't display.
by Hoeloe
Tue Mar 09, 2021 12:15 pm
Forum: Help and Support
Topic: What's wrong with SMW Lakitu?
Replies: 14
Views: 1193

Re: What's wrong with SMW Lakitu?

That's just another cheap excuse to not wanting to help somebody. I swear, getting any form of help around here is like pulling teeth. No-one else seems to have a problem with it. Honestly, every time you "just ask for help" you're always needlessly aggressive and antagonistic. You don't ...
by Hoeloe
Tue Mar 09, 2021 11:46 am
Forum: LunaLua Help
Topic: A bit of help regarding Lua Basics
Replies: 18
Views: 1172

Re: A bit of help regarding Lua Basics

You can use a timer, set it to around 320, decrement it once every frame, and print some text as long as it's larger than 0.
by Hoeloe
Tue Mar 09, 2021 8:14 am
Forum: LunaLua Help
Topic: Does anyone know why I'm having this error?
Replies: 4
Views: 368

Re: Does anyone know why I'm having this error?

You need to re-save the file as a .lvlx file from PGE. Just renaming the extension doesn't change the file format, it only changes how your operating system will try to read it. Since the 38A level format is very different from the PGE .lvlx format, if you just rename the extension, it'll be unable ...
by Hoeloe
Mon Mar 08, 2021 8:49 pm
Forum: LunaLua Help
Topic: Does anyone know why I'm having this error?
Replies: 4
Views: 368

Re: Does anyone know why I'm having this error?

Are you trying to load a level made in 38A? You can't do that. You'd need to convert it to a lvlx file first.
by Hoeloe
Mon Mar 08, 2021 8:31 pm
Forum: LunaLua Help
Topic: A bit of help regarding Lua Basics
Replies: 18
Views: 1172

Re: A bit of help regarding Lua Basics

So-called "1.4.4" isn't technically a version of SMBX, and doesn't support Lua at all. It's a separate program called SMBX38A, and has no connection to SMBX2 (and only a tangential one to 1.3, since it was a recreation of that). Confusing? Yes, but that's how it is.
by Hoeloe
Mon Mar 08, 2021 11:33 am
Forum: Help and Support
Topic: What's wrong with SMW Lakitu?
Replies: 14
Views: 1193

Re: What the hell is wrong with SMW Lakitu?

I'd think... the bit that sets speedY? Like seriously is it really that hard to read through the code and find a bit that sets speedY? if v:mem(0x136, FIELD_BOOL) == false then v.speedY = NPC.config[npcID].speed * 7 else v.speedY = v.speedY + Defines.npc_grav data.wasThrown = data.wasThrown or v:mem...
by Hoeloe
Sun Mar 07, 2021 6:00 pm
Forum: Help and Support
Topic: What's wrong with SMW Lakitu?
Replies: 14
Views: 1193

Re: What the hell is wrong with SMW Lakitu?

You'd be best off just copying its lua file into a new NPC and removing the bit that sets speed on spawn.
by Hoeloe
Sun Mar 07, 2021 11:45 am
Forum: Help and Support
Topic: What's wrong with SMW Lakitu?
Replies: 14
Views: 1193

Re: What the hell is wrong with SMW Lakitu?

I can confirm that SMW Lakitu does indeed move up and down, so I'm not sure what you're seeing there. If the Lakitu is set to "doesn't move" it'll move ONLY vertically, but that doesn't seem to be what you're seeing. The lightning bolt, on the other hand, does appear to fall instantly, but...
by Hoeloe
Wed Mar 03, 2021 1:29 pm
Forum: Help and Support
Topic: New Color
Replies: 3
Views: 485

Re: New Color

Just... download Paint.NET and change the colour?
by Hoeloe
Sun Feb 28, 2021 7:20 pm
Forum: Help and Support
Topic: Using handycam.lua messes up my HUD
Replies: 2
Views: 343

Re: Using handycam.lua messes up my HUD

The HUD is exactly the same size. The rest of the screen just got bigger.

As for the dropped item, you basically need to detect when an item is dropped from the itembox and move it to the correct location.
by Hoeloe
Sun Feb 28, 2021 9:21 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 383
Views: 73669

Re: Need help with lua? - LunaLua General Help

It's in part to do with how complicated the data is. Basically, everything that is a table (i.e. any object that can have "fields" or "indices") is far too complex to be just copying around, so instead of storing the object directly, the program makes one copy of it, and then sto...
by Hoeloe
Sun Feb 28, 2021 8:35 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 383
Views: 73669

Re: Need help with lua? - LunaLua General Help

What do you mean "the hud is shrunken"? The hud shouldn't be affected by handycam at all. As for reserve powerups - yes those will drop where the base game expects them to. You can fix that with some lua, however.
by Hoeloe
Sat Feb 27, 2021 11:36 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 383
Views: 73669

Re: Need help with lua? - LunaLua General Help

You never update the value in SaveData. When you use the variable "hits" you're copying the value, not a reference to the SaveData location. The "hits" variable is only in your lua file, and has no "memory" of where it gets its values from. When you assign "SaveDat...
by Hoeloe
Sun Feb 21, 2021 8:13 pm
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 383
Views: 73669

Re: Need help with lua? - LunaLua General Help

There's no reason why not. Have you checked that your event is triggering correctly?
by Hoeloe
Sun Feb 21, 2021 6:15 am
Forum: LunaLua Help
Topic: Camera Coordinates
Replies: 1
Views: 234

Re: Camera Coordinates

You can just use "camera.x" and "camera.y" in your Lua code, but note that these will be one frame behind in functions other than onDraw, onCameraDraw, or onDrawEnd, and onCameraUpdate may be affected by other Lua code, so you should try to make sure you use onDraw or onCameraDraw.
by Hoeloe
Sun Feb 21, 2021 6:13 am
Forum: LunaLua Help
Topic: Need help with lua? - LunaLua General Help
Replies: 383
Views: 73669

Re: Need help with lua? - LunaLua General Help

First thing you want to do is hit F2 and make sure your script is actually running.

Go to advanced search