Giova Posted September 9, 2013 Posted September 9, 2013 Can someone explain me how to "translate" these lua into another language? http://projectpokemon.org/forums/showthread.php?16634-Pokemon-B-W-Lua-scripts For example for italian and japan games. I need the lua that show me the standard seed, the iv frame the pid frame and the delay Please i really need it....
Kaphotics Posted September 9, 2013 Posted September 9, 2013 -- 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.
Giova Posted September 9, 2013 Author Posted September 9, 2013 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?
Giova Posted September 9, 2013 Author Posted September 9, 2013 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 ?
Kaphotics Posted September 9, 2013 Posted September 9, 2013 Use the -0x20*game on top of whatever shift you did for white.
Giova Posted September 10, 2013 Author Posted September 10, 2013 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? >.<
BPSpike Posted September 10, 2013 Posted September 10, 2013 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.
Giova Posted September 10, 2013 Author Posted September 10, 2013 But there is already this part on the lua! It still work only for one game....why?
BPSpike Posted September 10, 2013 Posted September 10, 2013 Ah I misunderstood your intentions, but I still meant: just change that part to 1 or 0 for whatever game you need . 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.
Giova Posted September 10, 2013 Author Posted September 10, 2013 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??
Giova Posted September 10, 2013 Author Posted September 10, 2013 i want to use this file for both version, understood what i mean? >.<
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now