Disc Combining Kits

Discussion in 'Misc PSX Discussion' started by shalma, Feb 10, 2009.

  1. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Thanks for that report. Kinda interesting.

    I could try doing my own Chrono Cross kit then sometime (alternative). Source code included as usual.


    Note that avira will detect ePSXe_dvd5 as 'malware' - technically it is. You'll need to add an exclusion to use it (source code shows its a 'harmless' hack).


    news:
    Valkyrie Profile code is finally 'release candidate' ready. Almost done with Chapter 5. Most known swap points are taken care of now - few more to test (should work).

    Projected release is mid to late March. Early march if lucky.

    Then colony wars. Then resident evil 2.
  2. rhomboidspace

    rhomboidspace New Member

    Messages:
    7
    Likes Received:
    0
    I'm doing a secondary check via Symantic's online checker also, so aftet the 20 or so hours it takes to scan i'll repost if that also came up with as positive. When I looked up the trojan name on the trend database it didn't even come up with a result, so I'm guessing more then lokely it is just a bit of code that could be used malisciously but buy itself isn't necessarirly malisicous
  3. Hawk07

    Hawk07 New Member

    Messages:
    35
    Likes Received:
    0
    virus??? :D

    Ok Shalma! I just wait the release 'Valkyrie Profile', is the last I need for complete my multi disc games!!

    Thanks for all!!! :thumb:
  4. rhomboidspace

    rhomboidspace New Member

    Messages:
    7
    Likes Received:
    0
    the Chrono Cross kit is definitely infected verified through a second scanner

    chronomergekit\splitoff.exe infected with
    Now you may not think it;s major as long as the person doesn't know your IP... but every time you post here, your IP is tracked.
  5. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    I'm not thrilled about this. Don't think the ngemu people would either. :eek:
    Without the source, it'll be left treated as 'questionable'.

    Time to add Chrono Cross to the end of the todo-list.

    Thanks for bringing this up. :)


    edit:
    avira picks up this Trojan warning for both
    - Chrono Cross
    - Parasite Eve

    I'll leave them up until my kits are done. With your virus report warning.
  6. fireblaster_lyz

    fireblaster_lyz Is this thing on? Junior Contributor

    Messages:
    2,113
    Likes Received:
    15
    OMG. You are still alive! Keep it going! :D
  7. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Receiving some outside help in testing non-US disc kits. Projects updated:
    - Dragon Quest VII (japan)
    - Heart of Darkness (europe - france (*) - spain - germany (*))
    (*) = untested, highly likely should be fine

    All regions will be merged in the same kit, with folders for each country. Can't verify myself but told they all should work based on the usa disc structures.

    More disc kits ports are being tested. ^^



    Valkyrie Profile is about 95% done probably - near the final boss. Have to test the Seraphic Gate afterward to make sure it works.

    There's 3 versions in japan for this one. I might delay this kit slightly (early march) since I'm getting a chance to peek at the logs for 1 of them - have to figure out which one the guy has first though.

    If it's too hard, I'll just do it later. :)


    edit:
    Updated kits:
    - Driver 2 (europe - spain - france - italy - germany)
    - Heart of Darkness (italy)
    - Wild Arms 2 (japan)
    - Valkyrie Profile (usa - japan)

    I can vouch for the usa kit. ;)
    Last edited: Feb 22, 2011
  8. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Code:
    Valkyrie Profile
    - SLUS-01156 / 01179 (usa)
    - SLPM-86379 / 86380 (japan)
    - SLPM-86371 / 86372 (japan)
    
    
    This will combine your 2 game CDs into 1 disc
    Tested only with ePSXe 1.7.0
    
    WARNING:
    You'll need ~4GB to finish the operation
    
    
    Tested versions:
    - 2000-06-11  Original 1.1 (japan)
    - 2000-06-11  Original (usa)
    
    
    Untested versions:
    - 2000-06-11  Shokai Gentei Deluxe Pack (japan)
    - 2000-06-11  Original 1.2 (japan)
    
    Current: v1
  9. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    More kits ported:
    - Star Ocean 2 (japan)
    - Brain Dead 13 (japan)
    - Parasite Eve (usa - japan)
    - Novastorm (europe)

    02-25-10
    - In Cold Blood (europe)

    02-26-10
    - Xenogears (japan)

    02-28-10
    - Rebel Assault II (europe)

    Parasite Eve is now virus-free. :)


    Colony Wars cd structure resembles G-Police very much - likely easy to take down when the swap point hits


    As more kits are ported, this post will be updated (instead of creating new ones) until a certain amount of time passes
    Last edited: Feb 28, 2011
  10. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Code:
    Colony Wars
    - SLUS-00543 / 00554 (usa)
    - SLES-00860 / 10860 (europe)
    - SLES-00861 / 10861 (france)
    - SLES-00862 / 10862 (germany)
    - SLES-00863 / 10863 (italy)
    - SLES-00864 / 10864 (spain)
    - SLPS-01403 / 01404 (japan)
    
    
    This will combine your 2 game CDs into 1 disc
    Tested only with ePSXe 1.7.0
    
    WARNING:
    You'll need ~4GB to finish the operation
    
    
    Tested versions:
    - 1997-09-01  Original (europe)
    - 1997-08-08  Original (usa)
    
    
    Untested versions:
    - 1997-08-19  Original (japan)
    - 1997-08-19  Original (italy)
    - 1997-08-19  Original (spain)
    - 1997-08-19  Original (germany)
    - 1997-08-19  Original (france)
    
    current: version 1
  11. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Nothing dramatic happening. Just putting this project on 'pause'.

    Was working on Chronicles of the Sword - fixed cdda lba fuzz. May do sporadic updates late in the year. :frown:
  12. rhomboidspace

    rhomboidspace New Member

    Messages:
    7
    Likes Received:
    0
    Awe, thank you for all the wonderful ones you've done already though.
  13. MiniSpoon

    MiniSpoon New Member

    Messages:
    4
    Likes Received:
    1
    Thank you so much for Colony Wars! The disc built and booted without any problems. Unfortunately that's all the time I have to test right now.
  14. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Rather than unfairly have everyone wait for Chrono Cross to be cleaned,
    Download cross_chronomergekit_v1a.7z from Sendspace.com - send big files the easy way


    Untested idea that replaces splitoff.exe with a custom-fit solution
    Code:
    #include <stdio.h>
    
    
    FILE *in, *out;
    
    unsigned char buf[0x13000];
    
    int main()
    {
    	in = fopen( "cc1.iso", "rb" );
    	out = fopen( "disc1hed.dat", "wb" );
    
    	fread( buf, 1, 77824, in );
    	fwrite( buf, 1, 77824, out );
    
    	fclose(in);
    	fclose(out);
    
    	return 0;
    }
    
    If it works, please report the old file to the forum's mod team and tell them about the DDOS trojan. And ask to replace it with this kit (clean).
  15. Bosola

    Bosola New Member

    Messages:
    2
    Likes Received:
    0
    I'm interested in how these cominations work. Do all PSX games keep their filelookups in an uncompressed / unencrypted LBA+Size format?

    Also, I'm looking at reverse-engineering a few PSOne games. Anyone know of any simple tools that'll let me inject a file into an unused portion of a disc? Do I need to generate ECC checksums for the sectors I touch, or will most emulators ignore them?

    Also, thanks for providing source code. I'll enjoy reading through it.
  16. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Generally many games keep the file tables in the cdrom directory headers (plain lookup data). Xenogears shows you nothing and FF8 is similar (1 packed file).


    Basic idea of disc combining kits
    1- extract all files
    2- determine whether fixed LBAs used
    3- patch code to do auto-swap (zap lid open-close checks)
    4- repack all files again, taking care to manage LBA-relative files

    For tools, try asking at romhacking.net. Safe to ask for Gemini.

    You'll need to fix the ECC if someone loads it in a PC cdrom drive. Otherwise practically all emus ignore them, as the real psx does (few games have bad ecc-edc sectors).


    You can grab all the asm source + patches here
    Download src.7z from Sendspace.com - send big files the easy way
  17. Bosola

    Bosola New Member

    Messages:
    2
    Likes Received:
    0
    Thanks for the prompt reply.

    Is that Gemini as in from Devil Hackers? I think I've seen him on QHIMM here and there, but I'll give romhackers a try too.

    Incidentally, how do you intercept the disc swap? Do PSX games arbitrarily control CDREG, or is there some sort of call for the BIOS to handle the whole process?

    Thanks for the help!

    Hang on, I thought the PSX's copy-protection system basically relied on ECC data? Does the PSX only check for correct (and therefore, home-burned) ECCs on bootup?

    If so, is that how games like Spyro 3 could detect piracy mid-play, by arbitrarily seeking ECC data and inspecting it?
    Last edited: Mar 13, 2011
  18. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Yeah. He knows the most about psx coding. Likely only Dr. Hell of Xebra knows more about the system core itself.


    Games must call CDREG1 to issue cdrom commands (like ReadN, Pause, Play, Setloc). I use trace logs + 'log pauses' to see what new code is run when I trigger a lid open - close event. Then infer backwards to find what I want - also use some pcsx-reloaded debugger builds to catch the call inside the emu.

    I'm sure Gemini would have a more consistent method than mine. The BIOS may have a command set to do reading.. don't have any real experience with BIOS calls.


    Some real images have errors in the data (EDC or ECC).

    Dr. Hell said that the psx cdrom reader ignores the ECC errors - a redump image was used with daemon tools and the game would stop working because the virtual drive picked up on the data checksum faults (part of the real cdrom image). Playing straight from the Xebra image reader corrected this problem (no hang).


    The checksum that the console copy-protection checks for is in the 'sony license' sectors. Any practical drive will write out correct ECC / EDC data; sony's burner does not write out valid EDC for the license.

    Older models checked the disc at bootup. PS-X change lets you boot a homebrew image since the 1st disc is verified good for consoles.

    Later models check the disc when you close the lid. So you'd have to do some sneaky disc swapping to bypass it (spring trick where the drive doesn't the cd change).

    At least that's how I remember it. :unsure: You'd need to ask somewhere else for more (like Gemini). ;)


    I read up on this one.
    Gamasutra - Features - Keeping the Pirates at Bay

    They check the core exe data loaded into RAM. They then use several layered checksum hash methods to verify that nobody is hacking the critical parts of their game.

    They could check the ECC data but pirates could likely get around that one. The method they chose is more intricate and annoying. :)

    Thankfully I've never had to deal with that.


    EDIT:
    Apparently simpler than what memory recalled. Still, the programmers managed to do good damage the hackers' time schedule. :)

    Although I had to do something like that also - restore the original code a few times for decompression or some other reason.
    Last edited: Mar 13, 2011
  19. psykoako

    psykoako GreyKnightJusticar

    Messages:
    76
    Likes Received:
    0
    Hello, just ran into this post.. so the expse_shark builds will run the produced image files off the bat? (eg. File - > Run ISO -> point to combined image) Or will I require specialized cd/dvd plug-ins?

    Thanks in advance,
    Psyk~

    Edit: I've tried it with Dragon Warrior VII, Made the bin/cue files and same size as post, and I've downloaded a save file which starts on DISC 2, how do I load it? The game still asks me to insert disc 2...

    Edit 2: <deleted> lol
    EDIT 3: My bad mis labeled the disc one to disc two and vice versa, working now... Just have to figure out how to make FFIX... I got the finalized bin/cue but alas I'm stuck at a black screen when I run iso.
    Last edited: Apr 2, 2011
  20. shalma

    shalma Discontinued Emu Author

    Messages:
    1,192
    Likes Received:
    0
    Dragon Warrior 7 ntsc? Let me test the image I have later - I know it worked last time.

    Only FF8. FF9, Fear1, Fear2, D needs specialized cdrom plugins (iso will load them just fine).


    edit:
    Pulling pre-built image right now. Will try soon.


    edit2:
    Instead of "Please insert disc 2" it says "Please wait."

    Did you run patch\cd2dvd.bat? Let me check the kit again


    edit3:
    Thanks for looking into this also. *whew*
    Last edited: Apr 2, 2011

Share This Page