Jump to content

Giova

Member
  • Posts

    58
  • Joined

  • Last visited

Posts posted by Giova

  1. Found the problem. The wrong part of the code is this one:

    memory.registerwrite(0x021D15AC, function() frame = frame + 1 end)
    memory.registerwrite(0x0210F6CC, function() iframe = iframe + 1 end)
    

    The first one has to be 0x021D15A8, because this is the address of the Current Seed. While 0x021D15AC is the address of the Initial Seed.

    Can you tell me instead why, when i use save state, it only save the right Current Seed, Initial Seed and Delay, but doesn't save the Frame? Is there a way to fix this?

  2. I'm using HGSS Kaphotics's lua script. This one:

    mdword=memory.readdwordunsigned
    mbyte=memory.readbyte
    rshift=bit.rshift
    
    -- Initialize on Script Startup
    local frame = 0
    local iframe = 0
    local seed = 0
    local initial = 0
    
    memory.registerwrite(0x021D15AC, function() frame = frame + 1 end)
    memory.registerwrite(0x0210F6CC, function() iframe = iframe + 1 end)
    
    function buildseed()
    delay=mdword(0x021D1138)
    timehex=mdword(0x023FFDEC)
    datehex=mdword(0x023FFDE8)
    hour=string.format("%02X",(timehex%0x100)%0x40)	-- memory stores as decimal, but Lua reads as hex. Convert.
    minute=string.format("%02X",(rshift(timehex%0x10000,8)))
    second=string.format("%02X",(mbyte(0x02FFFDEE)))
    year=string.format("%02X",(mbyte(0x02FFFDE8)))
    month=string.format("%02X",(mbyte(0x02FFFDE9)))
    day=string.format("%02X",(mbyte(0x02FFFDEA)))
    ab=(month*day+minute+second)%256		-- Build Seed
    cd=hour
    cgd=delay%65536 +1 -- can tweak for calibration
    abcd=ab*0x100+cd
    efgh=(year+cgd)%0x10000
    nextseed=ab*0x1000000+cd*0x10000+efgh		-- Seed is built
    return nextseed		
    end
    
    function main()
    currseed = mdword(0x021D15A8)
    seed = mdword(0x021D15AC)
    
    -- Detect initial seeding
    if mdword(0x021D15AC) == currseed then
    	initial = mdword(0x021D15A8)
    	if currseed ~= 0x00000000 then
    		iframe = 0
    		frame = 0
    	end
    end
    if mdword(0x021D15A8) == 0 then	-- if seed is 0, reset everything
    	iframe = 0
    	frame = 0	
    end
    
    -- Print variables in corner of bottom screen
    if frame == 0 then
    	gui.text(0,-10,string.format("Next Seed: %08X", buildseed()))
    end
    gui.text(0,180,string.format("Initial Seed: %08X", initial))
    gui.text(0,170,string.format("Current Seed: %08X", currseed))
    gui.text(0,160,string.format("IRNG Frame: %d", iframe))
    gui.text(0,150,string.format("PRNG Frame: %d", frame))
    gui.text(0,140,string.format("Delay: %d", mdword(0x021D1138)))
    end
    
    gui.register(main)

    Can you tell me why PRNG Frame shows me always 0 and never grows up? Everything works well, but PRNG and IRNG frame are always 0.

    [ATTACH=CONFIG]12993[/ATTACH]

  3. How and at what step do you extract the .bin? I could try doing it for the Japanese trio.

    First make the photos while you collect them, then (after you take them from bank) save in the bank (DON'T COLLECT THEM IN THE GAME), export the main file and open it wit this Tool. Use the dump botton to dump the bin file

  4. Heyho, I just had a quick look on the Excel sheet in the constribution zip.

    Just one thing I noticed, the sheet isn't quite consistent in what it lists. Some events that are missing are listed, but others like the aforementioned Pikachu, the different TIDs for the Mega Campaign events, or Australian Hoopa (ID: 10235) are not (maybe more; I have not checked it really, these were just the ones I noticed).

    I'd also suggest to include the Pokemon Link Events, where Pokemon Bank Meganium, Typhlosion and Feraligatr seem to be missing.

    Some kind of overview in this thread or in the sheet which events the collection does NOT include yet would be awesome.

    Another thing I noticed: There are "?"s for Electabuzz without ribbon. I believe it is safe to assume that those don't exist. I've been quite active in the event collection scene at this time, and have not seen a single Electabuzz without despite actively searching for one. This was before the time save editing other than powersaves was possible. As there have not been any of those, it seems to be very likely that the Magmar without ribbon exists just due to some mistake on Nintendo's end.

    As I haven't been following the scene for a while and am too busy to get up to date for now: In case you are already able to decrypt powersaves-backups let me know, I could contribute some of the missing events, such as different versions of Magmar with/without ribbon (I was able to get quite some codes at that time to redeem myself) and the Italian Arash Mamoswine (picked up at German VGC on Italian language).

    While I can juggle stuff through my japanese copies with CyberGadget, I have no way to access the save of my european games directly, so unfortunately I cannot extract wc6s.

    Why don't you use the HomeBrew to extract your save files and the wc6?

  5. Serebii is wrong. I don't know why they clame it on the Event page.

    There's no evidence that it was distributed at the 16th September of 2004.

    Also I have read a little bit on some Japanese sites including 2ch about if it was available for Emerald in Japan and they it was not.

    According to this site which gives some detailed informations of the Japanese distribution dates the Aurora Ticket was distributed from June 19. 2004 - August 31, 2004.

    It was only distributed to those who bought a Ticketto watch the Deoxys movie in the cinema from between April 17, 2004 and July 16, 2004.

    So in japanese copy of emerald no, but in europen copy yes?

×
×
  • Create New...