Forum: IDE HDD Game Compatability Discussion - Discussion and information about game compatibility issues related to IDE HDD game compatibility.


The above video goes away if you are a member and logged in, so log in now!




 
Would you like to get all the new info from
PSX-Scene in your email each day?




Want to learn more about the team keeping you up to date with the latest scene news?

Read about them now!

Check out our Developer bios, too!

 


User Tag List

Thread: need help in debugging ps2 titles
  

Results 1 to 7 of 7
  1. #1 need help in debugging ps2 titles 
    thereal_zap is offline Member
    Join Date
    Sep 2004
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    i would like to know what kind of setup and software i'd need to properly debug ps2 titles to try and get some titles working. i'm quite adept at low-level asm debugging on the pc, but i don't know how exactly to do this with a ps2 game.

    do you use pcsx2 and hook in there somehow? any changes or tweaks i've made to elf files have involved disassembly, guesswork, trial and error. but it'd be nice to monitor a game in real time to see what's really happening.

    just like crazyc has found issues with some games where at some point the game points to a void* buffer that doesn't exist and you've fixed that (ala ratchet and clank). my question is: 'how the hell did you figure that out?' 'what's your setup?'. perhaps some of you guys have ties to or are part of real development companies with real development ps2's, etc.

    in any case, i'd just like to know what i'd need to set this up (software, hardware, etc) so i can perhaps be of assistance in getting some games working.

    you never know until you ask

    thanks in advance for any help you guys can lend on this subject
    Reply With Quote  

  2. #2  
    crazyc is offline User
    Join Date
    Sep 2004
    Posts
    694
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by thereal_zap
    'how the hell did you figure that out?'
    Pcsx2, ps2dis and a lot of SIF call traces.
    Reply With Quote  

  3. #3  
    thereal_zap is offline Member
    Join Date
    Sep 2004
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by crazyc
    Pcsx2, ps2dis and a lot of SIF call traces.
    cool, it's good to know that you're using the first 2 tools to do pc side work which means it's not a big setup

    SIF call traces? SIF? what's that?

    even when running stuff thru pcsx2, how to you actively debug the game with it? or, is it that you're not debugging and you're just going over some available dumped log or something that pcsx2 can produce? maybe that's what you mean by checking out all those calls.

    i suppose another valid question would be that when you're checkout out games within pcsx2, are you first loading the HDL ELF and then booting a game from there? (can pcsx2 run HDL, i guess is the question. and if so, how do you configure your hdd so that it can be read by the emulator)

    thanks for the reply
    Reply With Quote  

  4. #4  
    crazyc is offline User
    Join Date
    Sep 2004
    Posts
    694
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by thereal_zap
    SIF call traces? SIF? what's that?
    SIF stands for "System Interface". It's the interface between the IOP and the EE. PCSX2 has an option to log all RPC calls passing through the SIF. The problem with Ratchet and Clank was split between both processors so I had to log a large chunk of the traffic to figure out what was going on.
    Quote Originally Posted by thereal_zap
    even when running stuff thru pcsx2, how to you actively debug the game with it?
    Sure I'm actively debugging it until I have an idea of whats happening. The Crash Twinsanity problem is a good example. Before I got HDLoader working with PCSX2, I tried adding printf's to the area in the binary that I thought it was crashing. Then, I watched the output on the PS2's serial line. Problem was is that it was crashing in the IOP reset code and AFAIK there's no way to get the output from the IOP. After I got HDLoader working, I could just run PCSX2 until it crashed. The strange stack address was obvious then in the register window.
    Quote Originally Posted by thereal_zap
    i suppose another valid question would be that when you're checkout out games within pcsx2, are you first loading the HDL ELF and then booting a game from there?
    Yes.
    Reply With Quote  

  5. #5  
    thereal_zap is offline Member
    Join Date
    Sep 2004
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    thanks for your replies crazyc. i'm gonna have to start playing with pcsx2 and familiarize myself with it. hopefully, i'll be able to put 1 and 1 together and figure some stuff out
    Reply With Quote  

  6. #6  
    crazyc is offline User
    Join Date
    Sep 2004
    Posts
    694
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by thereal_zap
    thanks for your replies crazyc. i'm gonna have to start playing with pcsx2 and familiarize myself with it. hopefully, i'll be able to put 1 and 1 together and figure some stuff out
    Is there some particular game you are going to work on?
    Reply With Quote  

  7. #7  
    thereal_zap is offline Member
    Join Date
    Sep 2004
    Posts
    189
    Downloads
    0
    Uploads
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Likes Given
    0
    Likes Received
    0
    Quote Originally Posted by crazyc
    Is there some particular game you are going to work on?
    the only game that i own right now that isn't working on hdd is sc:chaos theory. i'd really like to see what's going on there. so probably that would be the first one i'd check out. i haven't bought any new games in awhile, so it'll be a bit b4 i can look at some of these newer ones.
    Reply With Quote  

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •