Jump to content

Kaphotics

Helpful Member
  • Posts

    7028
  • Joined

  • Last visited

  • Days Won

    336

Posts posted by Kaphotics

  1. Oh right, I forgot; for forme encounters you have to use the special 0x297 command which the Haxorus uses. One of the parameters for it is 'forme', or it might be for gender restrictions (idk)

    97 02 87 02 32 00 01 00 0B 02

    97 02 - special wild encounter

    87 02 - species:keldeo

    32 00 - level 50

    01 00 - forme 1 (not 0) for resolute

    0B 02 - shiny and no 'wild' appear; the 02 is for the grass pad (can put to 0)

  2. No, it does modify the medal box. Although it is encrypted when the game is saved, during play it is not.

    There was an old code which gave you all the medals on the same date, but I didn't like that one.

    94000130 FFFB0000 
    B2000024 00000000 
    D5000000 000CE50C 
    C0000000 000000FE 
    D6000000 00025C20 
    D2000000 00000000

    It sets the 32 byte medal field to 000CE50C, which is 28 Oct 2012 in the datetime format the games use. I'd not have a code that sets the date to the same 'probably hacked' date, so I made it a little more flexible.

  3. 94000130 FFFB0000 - 9 'if' ~ 4000130 is FFFB. activator button = pressed

    B2000024 00000000 - B instruction means load value at 0x2000024 as a pointer

    C0000000 000000F6 - C instruction is a repeat type instruction, 0xF6 times (0xFF total, see post bottom)

    00025C3C 00030000 - 0 instruction means write 32bytes at pointer+0x0025C3C, with a writevalue of 0x00030000

    DC000000 00000004 - DC instruction says to increase our pointer value by 4

    D1000000 00000000 - D1 instruction says to end the repeat loop

    D2000000 00000000 - D2 instruction... end instruction/code.

    humanly readable:

    if button=select then
    
    offset=read32(0x02000024)
    
    for i=1,0xF6 do
    	write32(offset+0x25C3C,0x00030000)
    	offset=offset+4
    end
    
    end

    0x00030000 just happens to be the value that tells the game to "give player this medal". I skip the easy medals you get at the start to save the user time; total of 246 or so medals have to be picked up. If any of the u32's = 0x00030000, the medal guy appears to give you 'em.

    It just makes it so you get awarded them naturally (skipping the step of satisfying the criteria, which then flags it to award).

  4. >The edit saved, i checked the file after saving the rom, and the static image is edited just fine, its just the animated one.

    Not sure what you mean by that. If both edits stuck, then you should have no problem. You can always export the original palette and search it's hex to see if any other file is overriding. If you replaced the right files, you shouldn't have any issue. Check to see if the edits stayed with tinke.

  5. Oh, sorry about that.

    The game loads the Rival name from 0x0223B444 in White2 (EN). I made an AR code to replace the string but this location essentially stores the currently entered string.

    script command 028F brings up this "Your rival's name?" but I have no idea where it's getting Hugh from.

    Unfortunately I can't help any further :|

    edit: if that's really the solution BlackShark... that's so simple :P

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

×
×
  • Create New...