Jump to content

Recommended Posts

Posted

-- 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.

Posted

Ok, i found the offset for the italian version. It is 100. I did 02216244-100 and 0224F92C-100

But i can't find the local mtrng offset....i have to do again 02215374-100?

And why it doesn't work on black 1?

Posted

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 ?

Posted

Maybe i explaned my problem in a bad way

I use a file .lua for black1 and another file .lua for white1

I wanted to know if i can create a single file .lua that works for black1 and for white1

Is there a way? >.<

Posted

Just set up the complete file and change this part under the "-- General Parameters for current game and setup" part:

local game=0				-- 0 for white, 1 for black

No need to use 2 files.

Posted

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.

Posted

Sorry for my bad english

If i use the lua of the post it works only for one game, why?? It should work for black and white, but it works only for white, why??

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...