• HELP! Final Burn Alpha emulator LUA script.MVC
    13 replies, posted
Could you help me with .LUA? How do I do life regeneration? I'm using the game's life code, but I can not do the regeneration effect. "cheat "Infinite Energy (1st Char) PL2" default 0 0 "Disabled" 1 "Enabled", 0, 0xFF3671, 0x90, 0, 0xFF367B, 0x90"
What? Thats not Lua? What is that?
https://files.facepunch.com/forum/upload/317069/237a662c-92cf-42ae-961c-14b6daae3bd5/image.png This code is the default code for infinite health. The way I can get him to read is like this: "-- infinite health (1nd Char) P2  local infinityHealthChar1p2 = 0xFF3671   local healthValueChar1p2 = 0x90    while true do    memory.writebyte(infinityHealthChar1p2,healthValueChar1p2)    emu.frameadvance()   end"
why are you just posting on random forums? This has nothing to do with what you're doing
this lua post usually is only used for GMod stuff...not some other games...no one (i assume) of us knows what your talking about, or what functions and variables you use...0xFF3671, 0x90, 0, 0xFF367B, 0x90, what are we supposed to do with that?
This is a forum for Garry's Mod Lua, not Lua for some emulator I've never heard of. The only thing in common is the syntax. Even if I knew more about this emulator and their Lua conventions, you haven't even mentioned what game this is for, and what this missing "life regeneration effect" is.
The "0xFF3671, 0xFF367B" it means the life of 2p. The "0x90" is the life value of 2p. In that case it is always full. Could not create something to be in max value only when it is lifeless? "why are you just posting on random forums? This forum has nothing to do with what you're doing" Where could I be posting this?
maybe on a forum or community thats actually FOR that thing? This is a facepunch forum, the lua forum here is inside a GARRYS MOD section.
Why don't you try here? FBA Discussion
I thought someone would know of some "keyword" for the script that could help me. I have some saved examples of regeneration for other emulated games, but I could not extract anything that worked. Already making it clear that I'm starting now with .LUA, and I thought you'd know something about it. Sorry for bothering.
Well I can't provide any guarantee of this working, but here's a little modification I made to what you gave me local p2HealthAddress = 0xFF3671 local healthValueChar1p2 = 0x90 while true do     local hp = memory.readbyte(p2HealthAddress)     if hp < 0x90 then         memory.writebyte(p2HealthAddress, hp + 1)     end     emu.frameadvance() end Maybe that will do what you want, maybe it won't. I don't know, because I don't know anything about this emulator, nor the game you are playing, nor whether this is the "regeneration" you want.
https://files.facepunch.com/forum/upload/317069/949ab840-5919-4c15-998c-6ff7e7da71d1/image.png
You're not gonna get very much luck here, go discuss on a forum that is actually meant for the emulator you're using.
the code formatting is a little broken, use the fix from here and try it again. Code tags fix for Chrome
Sorry, you need to Log In to post a reply to this thread.