Jump to content

Lua translation?


Giova

Recommended Posts

-- General Parameters for current game and setup (english)
local rng=0x02216244-0x20*game		-- PRNG Seed Location
local mtrng=0x02215374-0x20*game	-- Mersenne Twister Table Top
local pos_m=0x0224F92C-0x20*game	-- Map Position -> XYZ

Compare the memory locations between EN White and the game you want to translate to, and just change the offsets in the script. If you just poke around with 2 emulators open it'd be easy to see what offset is where.

Link to comment
Share on other sites

Hey thanks so much kaphotics! :) i traslated the lua perfectly!

I have only a problem: i can use it only on white 1!

If i want to use it on black 1 i have to change again the value......how can i solve it? Can i have a single lua script file for black and white 1 ?

Link to comment
Share on other sites

Ah I misunderstood your intentions, but I still meant: just change that part to 1 or 0 for whatever game you need :P. But yeah, if you don't wanna be editing it manually every time, go with 2 individual files.

PS: A good alternative is creating a batch file to edit the text for you.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...