Posts by Sambo

by Sambo
17 Jun 2015, 2:47
Forum: LunaLua - Extension Framework
Topic: LunaLua Offical Thread
Replies: 180
Views: 45329

Re: LunaLua Offical Thread

There's no transparent color parameter with the new loadImage function. How do you make a transparent color? It doesn't work with real image transparency.
by Sambo
26 May 2015, 7:18
Forum: LunaLua - Extension Framework
Topic: Counting NPCs on a Layer
Replies: 0
Views: 510

Counting NPCs on a Layer

I know this is really basic, but how do you count NPCs on a layer? I would just use the countNPCID function Kevsoft gave me, but some of the NPCs I need counted are buried, which makes them not counted until you pull them up.
by Sambo
24 May 2015, 4:48
Forum: LunaLua - Extension Framework
Topic: Using Pointers Causes the Game to Crash
Replies: 14
Views: 1746

Re: Using Pointers Causes the Game to Crash

Kevsoft wrote:
HenryRichard wrote:Try calling this in onLoop() and change it whenever you need to
No! placeSprite should only be called once.
@HenryRichard: You just asked me for help with a custom HUD not too long ago and I told you that the placeSprite command should only be called once.
by Sambo
20 May 2015, 3:32
Forum: LunaLua - Extension Framework
Topic: Testing for Too Many Event Names (causes lag)
Replies: 2
Views: 678

Re: Testing for Too Many Event Names (causes lag)

function onEvent(eventName) if(eventName:find("dc-trig-"))then if split_route == false then if eventName == "dc-trig-1" then ... end end end end This doesn't seem to work; the events won't trigger anything in Lua with the find() function there. EDIT: You don't need to help me fi...
by Sambo
17 May 2015, 4:48
Forum: LunaLua - Extension Framework
Topic: Testing for Too Many Event Names (causes lag)
Replies: 2
Views: 678

Testing for Too Many Event Names (causes lag)

on the onEvent function, I have it testing for too many event names, and it lags. However, I can't just remove them because I need them for my custom HUD to work. Is there a way to test for all of the events without doing it every time an event is called? All of the events I test for start with &quo...
by Sambo
12 May 2015, 4:13
Forum: LunaLua - Extension Framework
Topic: Using Pointers Causes the Game to Crash
Replies: 14
Views: 1746

Re: Using Pointers Causes the Game to Crash

It looks like my problem was that field type was supposed to be DFLOAT. It finally works! Now that I've figured this bit out, I have run into another very minor problem. When the HUD moves, the old one stays there. I know I can fix it by loading nothing into every slot and then reloading, but this c...
by Sambo
10 May 2015, 0:44
Forum: Projects
Topic: Yoshimoto Island - Travel To Prince Rocky's Island (Cancelled)
Replies: 2
Views: 2977

Re: Yoshimoto Island - Travel To Prince Rocky's Island (Cancelled)

The colors on that background are way too bright. You may want to tone them down a bit. Also, it seems like you have a lot of worlds, especially for a first episode. I would recommend that you only have 8 worlds. Otherwise you may find that you feel overwhelmed by all the levels you need to finish, ...
by Sambo
9 May 2015, 1:54
Forum: LunaLua - Extension Framework
Topic: Using Pointers Causes the Game to Crash
Replies: 14
Views: 1746

Re: Using Pointers Causes the Game to Crash

Well, it doesn't cause the game to crash now, but it always returns 0, which means I inputted the wrong data. I'll walk you through what I did to get the pointer so you can see if I did something wrong. You found a pointer, so I assume you will understand all this. First, I found the address of the ...
by Sambo
8 May 2015, 4:35
Forum: LunaLua - Extension Framework
Topic: Using Pointers Causes the Game to Crash
Replies: 14
Views: 1746

Re: Using Pointers Causes the Game to Crash

Well, the address 0x00CB3C28 is dynamic. The ones which are static mostly begin with "0x00b2####". So you have to find where you get the address. I don't think this one's dynamic, because it always points to the screen width address, but I will try to trace an address that starts with &qu...
by Sambo
5 May 2015, 3:58
Forum: LunaLua - Extension Framework
Topic: Using Pointers Causes the Game to Crash
Replies: 14
Views: 1746

Re: Using Pointers Causes the Game to Crash

Where did you get the address 0x00CB3C28? I found the address for screen width and write traced it. The pointer I found works in Cheat Engine. Also why do you use FIELD_BYTE for getting a pointer? What field type should it be? I tried BYTE, WORD, and DWORD. They all caused it to crash edit The code...
by Sambo
3 May 2015, 2:03
Forum: LunaLua - Extension Framework
Topic: Using Pointers Causes the Game to Crash
Replies: 14
Views: 1746

Using Pointers Causes the Game to Crash

I was finally able to locate the pointer for screen width in SMBX, but I attempted to use it and SMBX crashed. There was no error message; the program simply froze and the "This program has stopped working. Windows is trying to find a solution to the problem." Window popped up. Here is the...
by Sambo
30 Apr 2015, 6:55
Forum: LunaLua - Extension Framework
Topic: Can't Get Triggers to work
Replies: 2
Views: 722

Re: Can't Get Triggers to work

That's weird. I didn't get a newer version.
Well, that's irritating. That means I get to recode a bunch of stuff. I guess onEvent will be easier to use than triggers, though.
by Sambo
26 Apr 2015, 1:14
Forum: LunaLua - Extension Framework
Topic: Can't Get Triggers to work
Replies: 2
Views: 722

Can't Get Triggers to work

I have these codes : _G["saveData"] = Data(Data.DATA_WORLD, "Save", true) local triggers = loadAPI("triggers"); coin_switch = 0 if (alt_trigs == false) then if split_route == false then _G["trigs"] = {} -- Dragon Coin triggers trigs[1] = triggers.Trigger(20000...
by Sambo
25 Apr 2015, 21:10
Forum: LunaLua - Extension Framework
Topic: Variables within variable names?
Replies: 2
Views: 681

Re: Variables within variable names?

I found an even simpler way to do it. I just put this code in lunadll.lua: _G["level_code"] = "xxx" And this in lunaworld.lua: saveData:set(level_code .. "-dc-1", "collected") dc-1 is a variable that indicates if a dragon coin in the level was collected. Since...
by Sambo
24 Apr 2015, 4:04
Forum: LunaLua - Extension Framework
Topic: Tracking Data that Changes Addresses
Replies: 1
Views: 572

Tracking Data that Changes Addresses

I needed the mem address for screen size, so I started a 2P game in SMBX and used Cheat Engine to find the addresses. I then made a script that moves the HUD depending on the screen size, and tested it. It didn't work. I opened Cheat Engine again and found that those memory addresses just had some r...
by Sambo
23 Apr 2015, 3:50
Forum: LunaLua - Extension Framework
Topic: Variables within variable names?
Replies: 2
Views: 681

Variables within variable names?

That probably sounds confusing. What I mean is, is there a way to make a variable that can have a different name depending on the value of another variable? I have variables in all the levels I've made that do the same things, but they need to be independently set in each level. To reduce the amount...
by Sambo
15 Apr 2015, 5:07
Forum: LunaLua - Extension Framework
Topic: Detecting 2 Player screen splitting
Replies: 7
Views: 1287

Re: Detecting 2 Player screen splitting

I have encountered a problem. It seems that the screen dimensions are not stored in the same memory addresses every time the program runs. :comando: Is there a way around this issue?
by Sambo
15 Apr 2015, 4:52
Forum: LunaLua - Extension Framework
Topic: "player2.isValid" Doesn't Work/Isn't Needed
Replies: 0
Views: 481

"player2.isValid" Doesn't Work/Isn't Needed

"player2.isValid" does not work for checking for a second player. In 1-player mode, it gives "attempt to index a nil value." In 2-Player mode, it returns "true." This makes the code not useful for much of anything. However, the code isn't really necessary because you ca...
by Sambo
14 Apr 2015, 3:30
Forum: Troubleshooting
Topic: Sound FX Won't Play
Replies: 3
Views: 612

Re: Sound FX Won't Play

I just redownloaded the SMBX 1.3 config pack, and sounds are working now. You can lock this.
by Sambo
12 Apr 2015, 3:50
Forum: Troubleshooting
Topic: Sound FX Won't Play
Replies: 3
Views: 612

Sound FX Won't Play

Sound effects won't play when I use the "Test" button. I know it's not a problem with the system variable because the music will play just fine. I did get LunaLUA with SDL mixer, but I changed the sounds configurations to .ogg, so that's not the problem.

Go to advanced search