Posts for RainbowSprinklez

Experienced Forum User
Joined: 10/2/2015
Posts: 91
NEVERMIND! figured it out :) [code speed.lua] while true do local status= memory.readbyte(0x7E1B03) table = joypad.get(1) if (status == 1) then if table.Y then if table.right then memory.writeword(0x7E0E8B, 3) memory.writeword(0x7E0E8D, 2000) elseif table.left then memory.writeword(0x7E0E8B, -3) memory.writeword(0x7E0E8D, -2000) end else if table.right then memory.writeword(0x7E0E8B, 2) elseif table.left then memory.writeword(0x7E0E8B, -2) end end end emu.frameadvance() end [/code] i used RAM search to search for a value for whether or not im in a level. i found many, so i just picked one. then i used an if statement to only allow the speed alterations when im in a lvl.
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
also, my original code is acting funky. it seems that it glitches up the overworld. is there any way to have it active ONLY when a lvl is entered? Download fortheloveof.lua
Language: lua

while true do table = joypad.get(1) if table.right then memory.writeword(0x7E0E8B,2) end if table.left then memory.writeword(0x7E0E8B,-2) end if (table.Y) then if table.right then memory.writeword(0x7E0E8D,2000) memory.writeword(0x7E0E8B,3) end if table.left then memory.writeword(0x7E0E8D, -2000) memory.writeword(0x7E0E8B,-3) end end emu.frameadvance() end [code]
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
Last one for a while. Sorry guys! I'm trying to recreate hippie's 'cursed cart', ie X to fly. Do you know what I'm doing wrong? Download Cursed.lua
Language: lua

while true do table = joypad.get(1) if (table.X) then local reads = memory.readword(0x7E0EF5) memory.writeword(0x7E0EF5,reads + 5) end emu.frameadvance() end
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
ok! thanks for the tip!
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
here is my final product. rudimentary, but it works
while true do
table = joypad.get(1)
if table.right then
	memory.writeword(0x7E0E8B,2)
  end
  if table.left then
	memory.writeword(0x7E0E8B,-2)
  end
if (table.Y) then
  if table.right then
    memory.writeword(0x7E0E8D,2000)
	memory.writeword(0x7E0E8B,3)
  end
  if table.left then
    memory.writeword(0x7E0E8D, -2000)
	memory.writeword(0x7E0E8B,-3)
  end
end
emu.frameadvance()
end
 
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
I got this to sort of work. it only seems small values like 2 work. 500 DOES NOT work however. my question is, is the game somehow smart enough to not allow what i'm trying?
while true do
table = joypad.get(1)
if (table.Y) then
  local face = memory.readword(0x7E0C6E) -- ?
  if face == 52 then
    memory.writeword(0x7E0E8D,2) -- speed
    else
    memory.writeword(0x7E0E8D,-2)
  end
end
emu.frameadvance()
end
 
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
thats GENIUS invariel! I never would have caught that!
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: ok, im sorry
Experienced Forum User
Joined: 10/2/2015
Posts: 91
makes sense. my goal is to have when diddy looks right, speed is forward. when he looks left speed is backwards. currently the way the code works, it's having donkey ONLY accelerate left and diddy ONLY accelerate right. i'm pobably wrong with my weird code, but i thought you needed a ram value to say which way you're facing. is this wrong?
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: thanks guys!
Experienced Forum User
Joined: 10/2/2015
Posts: 91
but its still not working as intended, although i will tweak from here. face is basically a ram value i found so when z is pressed, you accelerate in that direction. also, i am trying to get DIDDY'S x speed to change, not donkeys
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: just testing
Experienced Forum User
Joined: 10/2/2015
Posts: 91
i have bizhawk, but im just testing :) i dont plan on submitting, if i do i will definitely use bizhawk
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: ohhh sorry guys!
Experienced Forum User
Joined: 10/2/2015
Posts: 91
ohhh sorry guys! noob here! it's for the snes9x emu. the code is for dkc. im basically trying to make it so pressing z speeds you up. i already found the 'table' and made it so my joypad can trigger it.
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: stuck in the mud, please help.
Experienced Forum User
Joined: 10/2/2015
Posts: 91
i'm having a noob issue. ive been stuck on this code for hours! can someone please help? im TRYING to understand lua code. i really am :/ while true do local keys= input.get() if (keys.Z) then local face = memory.readword(8260718) if face == 52 then memory.writeword(8261261,2000) else memory.writeword(8261261,-2000) end end emu.frameadvance() end
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: thanks again
Experienced Forum User
Joined: 10/2/2015
Posts: 91
i didn't even know about the display page or drawing on the display or writing on it... i feel kinda embarrassed like i should've figure that out myself... but i DEFINITELY see the usefulness in knowing how to draw on the canvas
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
i intend to scrutinize the code. that's how i learn best, through example
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Experienced Forum User
Joined: 10/2/2015
Posts: 91
i just need a lua script for snes9x-rr until i learn the real deal. i want a script that reads and displays one 2 byte ram value on the screeb, the game is dkc, if that helps. the ram value i want tracked is 7E0565. can someone write this basic code for me while i learn?
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)
Post subject: im new. help
Experienced Forum User
Joined: 10/2/2015
Posts: 91
i was in a car accident and only have use of my right hand so i type pretty slow. i'm starting to learn lua script as i'm in college for programming and it seems fun. also, my main game is donkey kong country and tompa recommended the forums to me. so, anybody care to give me a jumpstart on lua scripting? i have the book open currently and i just got through variables, so pretty early on. any help would be greatly appreciated :)
I didn't kill donkey, I saved it. Current projects: Misc Donkey hacks :) Past projects: Pacifist DKC1 DKC1 Entrance randomizer DKC2 Entrance randomizer DKDC (a troll hack of DKC1) DKC1 Enemy randomizer (among other things)