User File #21812049412006449

Upload All User Files

#21812049412006449 - Lua Rayman Advance MAJ

Rayman advance.lua
Game: Rayman Advance ( GBA, see all files )
1 comment, 830 downloads
Uploaded 4/1/2015 7:03 AM by gamerretro2 (see all 38)
local speedxAddr=0x202FA68
 local speedx
local speedyaddr=0x202FCC0
 local speedy
 local FRAMESrules=0x202EEED
 local framesR
 local charge=0x202EE88
 local chargeup
 local Cameraposition=0x200008
 local Camera
 local XPosition=0x202E5DC
 local PositionX
 while true do
  speedx=memory.readword(speedxAddr)
  gui.text(0,0,"speedx : " .. speedx)
  
  speedy=memory.readword(speedyaddr)
  gui.text(0,7,"speed : " .. speedy)
  
  framesR=memory.readword(FRAMESrules)
  gui.text(0,14,"framesR : " .. framesR)
  
  chargeup=memory.readword(charge)
  gui.text(0,21,"chargeup : " .. chargeup)

  Camera=memory.readword(Cameraposition)
  gui.text(0,28,"Cameraposition :".. Camera)
 
  PositionX=memory.readword(Xposition)
  gui.text(0,34,"Xposition :" ..PositionX)
 
 
emu.frameadvance()
  end
Spikestuff
on 4/1/2015 7:09 AM
Looks at the lua
Oh wow. This is... crap.
This is crap. Can't say anything else.
Oh, wait I'm Spikestuff. So I can and I will.
You're making it do 4 things at once when it can be dropped to 2 or 1 thing.
Edit: Rayman advance.lua:29: bad argument #1 to 'readword' (number expected, got nil)
Even better.
Edit 2: After Modifying it to run how it was meant to be intended (But not changing where the placement is or the spelling), it looks like this:
I'm sorry that half of you guys had to puke.