Chihiro on XBOX

Discussion in 'Chihiro Development' started by Dabman, Mar 14, 2010.

  1. Boomslangnz

    Boomslangnz Spirited Member

    Joined:
    Jan 17, 2013
    Messages:
    172
    Likes Received:
    3
    Ok Windows Tutorial For Extracting CHD

    First ive uploaded the files required here for windows users http://www.sendspace.com/file/cjbhuj (hope this is ok)

    In my case I have a folder name 'chihiro' in downloads directory and threw the chd in that folder.
    1)Open Command Prompt and move to chihiro directory eg cd C:\users\Boomslangnz\downloads\chihiro
    2)Type chdman extractcd -I gdx-0012a.chd -o gdx-0012a.toc (replace gdx-0012a with your name of chd)
    3)After this you will have 2 new files (bin and a toc file)
    4)Type toc2cue gdx-0012.toc gdx-0012.cue (you will receive a cue file)
    5)Type bin2iso gdx-0012.cue -t 03 (you will receive a iso file)
    6)Type extract-gdrom gdx-0012-03.iso
    7)Folder called GDROM will be made and 3 files placed in here
    8) Now when you got CHD you should of got a separate zip file. A small 4kb file which is the rom when loaded from mame eg ghostsq.zip. Put this in chihiro folder and extract data file within
    9)Type Parse-SecurityIC gdx-0012.data key (this will give you security key, write this down)
    10)Type Parse-Security IC gdx-0012.data loader (should point to smaller bin file)
    10a)Type Parse-Security gdrom/(bin file from step 10) fatx
    11) Type Descrypt 970EFE79CE32AB4A gdrom/vsg.bin (change key numbers to your ones and bin file to your big bin file name in gdrom directory
    12)Type extract-fatx gdrom/vsg.bin.dat /fatx (will extract files from fatx image)
    13) Now close Command Prompt and open explorer or such...go to C: and you will see a folder named fatx (rename to whatever your game name is and copy over to xbox to play your game

    Main Credit goes to JayFoxRox, without his tools none of this would be possible on 1gb dumps. Thanks Mate!
    I basically just followed his tutorial with very slight changes for windows users :)
    Also a big thanks to rtw for compiling some of his tools to windows. (Sorry if I forgot anyone)
     
    Last edited: Jan 22, 2014
  2. blueshogun96

    blueshogun96 Robust Member

    Joined:
    Jul 29, 2010
    Messages:
    294
    Likes Received:
    8
    I haven't been keeping up with this thread, or any forums for that matter. Been way too busy IRL.

    I see progress is happening, and you can play GhostSquad on a retail Xbox now, hm? When I have time, I'm curious to see if it will run on my debug Xbox later. It's acting strange now, but maybe it will still work well enough to run it.
     
  3. Floydthebarber

    Floydthebarber Rapidly Rising Member

    Joined:
    Sep 1, 2012
    Messages:
    76
    Likes Received:
    4
    Thanks a lot for posting this Boomslangnz. I swear I was doing the parse-securityic step the same way before, I don't know what I was doing wrong but now I can do that step :) I have a new problem now though unfortunately. For one, when I type extract-gdrom gdx-0007-03.iso I don't get 3 files, I get five. These are their names and their sizes

    BHF.1GB 256 bytes
    BHF.BIN 256 bytes
    GAME_S.1GB 473mb
    GAME_S.512 473mb
    XBAMGD.BIN 12kb

    When you say to "change key numbers to your ones and bin file to your big bin file name in gdrom directory" I take it you mean BHF.BIN?
    After getting BHF.BIN.DAT (which is 256 bytes in size) I try to extract it by typing "extract-fatx gdrom/bhf.bin.dat /fatx" and command prompt stops working, and this is what I get

    Untitled_zpse79e3cf4.png

    I do get the "fatx" folder in my c drive, but there is nothing in it.
    Do you guys know what is going on here?
     
    Last edited: Jan 21, 2014
  4. Boomslangnz

    Boomslangnz Spirited Member

    Joined:
    Jan 17, 2013
    Messages:
    172
    Likes Received:
    3
    No. Looks like you almost have 512 and 1 gb separate files there strangely. But you should not be using BHF.BIN you should be using one of the Game_S files. That's why you have no files

    Sorry...relised I missed a step so added in Step 10a now. This will tell you what file to use from above
     
    Last edited: Jan 22, 2014
  5. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    Ghost squad run on Debug/dev Kit, I made a mistake with chihiro folder.
    I try to launch Olie King, freeze black screen red/green and automatic restart.
    It seems no exceptions/ error loading memory, but missing hardware. I thinks it's a control problem, like the wheel for Outrun 2 SP.

    Hypothetical way: outrun 2 beta run with standard control (without rumble).

    Interesting thing: from debug dash, games launch directly after select memory hack and press start from chihiro_launchers screen. But I m not rename vsg.xbe to default.xbe
     
    Last edited: Jan 22, 2014
  6. kl0wn

    kl0wn <B>Site Supporter 2013</B><BR><B>Site Benefactor</

    Joined:
    Aug 31, 2006
    Messages:
    237
    Likes Received:
    8
    What did you have to do to make the launcher work on debug/devkit? What was your mistake with the chihiro folder?
     
  7. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    I forgot this empty files:

    E:\Chihiro two folder mbcom and mbrom,
    after from xdk dash or XBMC (but need to copy on F partition games folders), run.

    I do like on video.

    Another thing, I try to lauch testmode but doesnot work. For example I try to rename vsg_t.xbe to vsg.xbe, but error on .xbe. I try from chihiro launchers with test mode option (A button or Y I think) but freeze on black screen.

    It could be very interesting to access to test mode for gun calibration and dificulty games.
     
    Last edited: Jan 22, 2014
  8. Patrick

    Patrick Rising Member

    Joined:
    Aug 27, 2009
    Messages:
    54
    Likes Received:
    7
    I have my xbox hooked up with RGB-Scart and I can launch Ghost Squad and the Outrun 2 beta straight from the dash (XBMC4Xbox 3.5 Beta 1). Virtua Cop 3 stays at black screen. The same goes for the chihiro launcher from JayFoxRox.
     
  9. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    Does Ghost Squad work ingame and can you play mission 3?
    I'd like to have more info about your kernel / mod in that case.
     
  10. Patrick

    Patrick Rising Member

    Joined:
    Aug 27, 2009
    Messages:
    54
    Likes Received:
    7
    In Ghost Squad I can get into the mission selection screen, but it's freezes while loading (mission 1-3). I have a reatail Xbox 1.0 with 128mb RAM and TSOP flashed bios (x2_5035_vOld_512k).

    @JayFoxRox: My bad, didn't had the Chihiro + subdirs on E... the launcher is working and every mission is loading :)
     
    Last edited: Jan 22, 2014
  11. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    Which is exactly why my launcher exists.. Should work properly if you follow the instructions.

    I also added these to my hook:

    EXPORT(50,HalWriteSMBusValue)
    EXPORT(45,HalReadSMBusValue)
    EXPORT(46,HalReadWritePCISpace)
    EXPORT(49,HalReturnToFirmware)
    EXPORT(329,READ_PORT_BUFFER_UCHAR)
    EXPORT(330,READ_PORT_BUFFER_USHORT)
    EXPORT(331,READ_PORT_BUFFER_ULONG)
    EXPORT(332,WRITE_PORT_BUFFER_UCHAR)
    EXPORT(333,WRITE_PORT_BUFFER_USHORT)
    EXPORT(334,WRITE_PORT_BUFFER_ULONG)
    EXPORT(24,ExQueryNonVolatileSetting)
    EXPORT(2,AvSendTVEncoderOption)
    EXPORT(3,AvSetDisplayMode)

    I don't have any tool to dump the kernel thunk table of the Chihiro XBEs - so if anyone could do that for me that'd be great.
    Here is the generated crash log with the existing hooks:

    < 160>: ExQueryNonVolatileSetting(0x00000011,0xD0031D3C,0xD0031D44,0x00000004,0xD0031D40) = 0x00000000,D:08000000
    < 235>: ExQueryNonVolatileSetting(0x0000000A,0xD0031D40,0xD0031D44,0x00000004,0x00000000) = 0x00000000,D:00000000
    < 295>: HalReturnToFirmware(0x00000002)
    - Rebooting from vc3_t.xbe to vc3.xbe
    < 358>: ExQueryNonVolatileSetting(0x0000000A,0xD0031D38,0xD0031D3C,0x00000004,0x00000000) = 0x00000000,D:00000000
    < 562>: HalReadWritePCISpace(0x00000001,0x00000000,0x0000004C,0xD0031AB4,0x00000004,0)
    < 562>: HalReadWritePCISpace(0x00000001,0x00000000,0x0000004C,0xD0031AB4,0x00000004,1)
    < 564>: AvSendTVEncoderOption(0x00000000,0x00000006,0x00000000,0x00117448)
    < 564>: AvSendTVEncoderOption(0xFD000000,0x0000000B,0x00000005,0x00000000)
    < 572>: AvSendTVEncoderOption(0xFD000000,0x0000000E,0x00000000,0x00000000)
    < 590>: ExQueryNonVolatileSetting(0x00000009,0xD0031CB8,0xD0031CBC,0x00000004,0x00000000) = 0x00000000,D:01000000
    - Probably D3D Init / GPU RAM zero-ing
    < 2768>: AvSetDisplayMode(0xFD000000,0x00000000,0x04010101,0x0000001E,0x00000A00,0x02058000) = 0x00000000
    < 2831>: AvSendTVEncoderOption(0xFD000000,0x0000000F,0x00000000,0xD0031D28)
    < 2831>: AvSendTVEncoderOption(0xFD000000,0x00000009,0x00000000,0x00000000)

    are the only calls made before selecting "BACKUP DATA CLEAR". I'm puzzled.

    I'll probably try of the other games next.
    Maybe someone can decode these AV / Setting flags for me? They are surely why the AV Packs don't work properly.

    //Edit: Exactly the same crash on Crazy Taxi testmode, AV setup like this

    < 312>: ExQueryNonVolatileSetting(0x0000000A,0xD0032D38,0xD0032D3C,0x00000004,0x00000000) = 0x00000000,D:00000000
    < 5550>: HalReadWritePCISpace(0x00000001,0x00000000,0x0000004C,0xD0032AD4,0x00000004,0)
    < 5550>: HalReadWritePCISpace(0x00000001,0x00000000,0x0000004C,0xD0032AD4,0x00000004,1)
    < 5551>: AvSendTVEncoderOption(0x00000000,0x00000006,0x00000000,0x00076808)
    < 5551>: AvSendTVEncoderOption(0xFD000000,0x0000000B,0x00000005,0x00000000)
    < 5559>: AvSendTVEncoderOption(0xFD000000,0x0000000E,0x00000000,0x00000000)
    < 9410>: AvSetDisplayMode(0xFD000000,0x00000000,0x00000000,0x00000012,0x00000A00,0x03B84000) = 0x00000000
    < 9588>: AvSendTVEncoderOption(0xFD000000,0x0000000F,0x00000000,0xD0032C10)
    < 9588>: AvSendTVEncoderOption(0xFD000000,0x00000009,0x00000000,0x00000000)
    < 13219>: *crash*

    Interestingly Crazy Taxi sticks in Test Mode, takes longer to load and hence crashes 5 seconds later in "XBE: \Device\Harddisk0\Partition1\Games\Chihiro\ctx_ac_t.xbe"

    Crazy Taxi game mode:

    < 398>: ExQueryNonVolatileSetting(0x0000000A,0xD0032D38,0xD0032D3C,0x00000004,0x00000000) = 0x00000000,D:00000000
    < 7537>: HalReadWritePCISpace(0x00000001,0x00000000,0x0000004C,0xD0031EB4,0x00000004,0)
    < 7537>: HalReadWritePCISpace(0x00000001,0x00000000,0x0000004C,0xD0031EB4,0x00000004,1)
    < 7538>: AvSendTVEncoderOption(0x00000000,0x00000006,0x00000000,0x00118A50)
    < 7538>: AvSendTVEncoderOption(0xFD000000,0x0000000B,0x00000005,0x00000000)
    < 7546>: AvSendTVEncoderOption(0xFD000000,0x0000000E,0x00000000,0x00000000)
    < 7754>: AvSetDisplayMode(0xFD000000,0x00000000,0x00000000,0x00000012,0x00000A00,0x03B80000) = 0x00000000
    < 7905>: AvSendTVEncoderOption(0xFD000000,0x0000000F,0x00000000,0xD003203C)
    < 7905>: AvSendTVEncoderOption(0xFD000000,0x00000009,0x00000000,0x00000000)
    < 9749>: *crash*

    (This time "XBE: \Device\Harddisk0\Partition1\Games\Chihiro\ctx_ac[r].xbe")


    This is probably the same issue in all games.

    //Edit:

    AvSetDisplayMode 3rd parameter is 0x04010101 in Virtua Cop but zero in Crazy Taxi.
    Let's decode that real quick:

    0xF0000000 Mask: 0x00000000 = SDTV 525 Lines Mode
    0x20000000 Bit: Clear = Scart disabled
    0x10000000 Bit: Clear = Widescreen disabled
    0x04000000 Bit: Set = Disable DAC-C
    0x00FF0000 Mask: 0x00010000 = 640x480
    0x0000FF00 Mask: 0x00000100 = NTSC-M
    0x000000FF Mask: 0x00000001 = YC

    (I believe)
     
    Last edited: Jan 22, 2014
  12. nonosto

    nonosto Intrepid Member

    Joined:
    Jan 5, 2012
    Messages:
    698
    Likes Received:
    54
    if it could be widescreen avallable for Out Run 2 (original, beta or SP)
     
  13. Boomslangnz

    Boomslangnz Spirited Member

    Joined:
    Jan 17, 2013
    Messages:
    172
    Likes Received:
    3
    So crazy taxi has no setting to set a display mode?
     
  14. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    All it means is that Crazy Taxi turns off the AV Output (and then crashes a bit later so it never has any chance to turn on again).
    Virtua Cop 3 keeps some parts on but disables others (probably caused by region).
     
  15. Floydthebarber

    Floydthebarber Rapidly Rising Member

    Joined:
    Sep 1, 2012
    Messages:
    76
    Likes Received:
    4
    I am very close to successfully extracting a 1gb Chihiro game now, I'm on the very last step. By the way Boomslangnz, I think you meant to put "Parse-loader gdx-0012.data loader" in step 10a) not "Parse-Security IC gdx-0012.data loader" and for step 10) there shouldn't be a space between "security" and "IC", I really appreciate you taking the time to write that out though, definitely helped me out. I still need some help with the last step. I found out which fatx image the bin file wants to load and I used "extract-fatx gdrom/(dat file name) /fatx" but I get this

    Untitled_zps67675f70.png

    It just stops working right away and guesses 0 bytes as the partition size. Jayfox said this in his tutorial "If it doesn’t work you will have to adjust the partition size yourself. Try to use the FATX image size in bytes and add or subtract multiples of 4096 bytes."
    Does anybody know how to adjust the partition size? Thanks
     
    Last edited: Jan 22, 2014
  16. Boomslangnz

    Boomslangnz Spirited Member

    Joined:
    Jan 17, 2013
    Messages:
    172
    Likes Received:
    3
    Not sure. Sorry about the mistake, I wrote it out quickly....my bad
     
  17. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    The version of extract-fatx you are using must be old or something. My local copy works fine. I updated the file on my blog very often and the command line for it changed once. You can attempt adding " 512" or " 1024" (without quotes) behind "/fatx". But note that the version of the tool you are using is probably broken.
     
  18. Floydthebarber

    Floydthebarber Rapidly Rising Member

    Joined:
    Sep 1, 2012
    Messages:
    76
    Likes Received:
    4
    I tried different copies of extract-fatx, one's that supposedly worked for others, but no on mine. This is what I get now.

    Untitled_zpsc9544e61.png
     
  19. JayFoxRox

    JayFoxRox Spirited Member

    Joined:
    Dec 23, 2010
    Messages:
    176
    Likes Received:
    9
    It might not work because of the spaces in the path too.
    Also make sure your .dat files are a couple hundred MB in size - if not you are using the wrong files or a previous step was wrong.

    Maybe you also used a wrong key. You can open your .dat file with notepad for example and the first symbols should read "FATX".
     
  20. Boomslangnz

    Boomslangnz Spirited Member

    Joined:
    Jan 17, 2013
    Messages:
    172
    Likes Received:
    3
    I did my extract with 1gb image.
     
sonicdude10
Draft saved Draft deleted
Insert every image as a...
  1.  0%

Share This Page