Emulator Issues #10654

TGC filesystem exporting is buggy

Added by Hiccup over 1 year ago. Updated 9 months ago.

% Done:


Operating system:
Issue type:
Relates to usability:
Relates to performance:
Relates to maintainability:
Regression start:
Fixed in:


Game Name?

Nintendo GameCube Soft e-Catalog 2003 Enjoy Plus-ban (Japan)

Game ID? (right click the game in the game list, properties, info tab)


MD5 Hash? (right click the game in the game list, properties, info tab, MD5 Hash: Compute)


What's the problem? Describe what went wrong.

The TGC image wario_trial.tgc (in local) produces different files when extracted in comparison to the same file, but converted first into a normal disc image using tgctogcm. In particular AAZWJ01_mod.SRL and fst.bin seem to be corrupted in the file extracted from the unconverted TGC.

What steps will reproduce the problem?

Extract wario_trial.tgc from Nintendo GameCube Soft e-Catalog 2003 Enjoy Plus-ban (Japan). From the extracted wario_trial.tgc, extract the whole image. For comparison with a proper (?) extraction, use tgctogcm to create a GCM version of the TGC, then extract the whole image f

Is the issue present in the latest development version? For future reference, please also write down the version number of the latest development version.


Is the issue present in the latest stable version?

Yes - 5.0-5892.

If the issue isn't present in the latest stable version, which is the first broken version? (You can find the first broken version by bisecting. Windows users can use the tool and anyone who is building Dolphin on their own can use git bisect.)


If your issue is a graphical issue, please attach screenshots and record a three frame fifolog of the issue if possible. Screenshots showing what it is supposed to look like from either console or older builds of Dolphin will help too. For more information on how to use the fifoplayer, please check here:


What are your PC specifications? (CPU, GPU, Operating System, more)

CPU: Intel Core i5-3330 @ 3.00Ghz
GPU: GeForce GT 620
OS: Windows 8.1 64bit

Is there anything else that can help developers narrow down the issue? (e.g. logs, screenshots,
configuration files, savefiles, savestates)



#1 Updated by JosJuice over 1 year ago

That the FSTs don't match is expected. The FSTs of TGC files contain "incorrect" offsets, and Dolphin fixes this by moving the files to the offsets listed in the FST, whereas tgctogcm uses the alternate method of patching the offsets in the FST. (That tgctogcm does it this way makes sense, since they otherwise would need to write hundreds of megabytes of padding that just wastes disk space. I chose to not implement it in that way in Dolphin since we never write out the whole file to disk.)

That any of the actual files differ does sound like a problem, though.

#2 Updated by JMC4789 9 months ago

  • Assignee set to JosJuice

Are we going to accept this?

#3 Updated by JosJuice 9 months ago

  • Assignee deleted (JosJuice)

I guess we can... But I don't think there's anything I can do about it for now, since I don't even have this TGC file.

#4 Updated by JMC4789 9 months ago

  • Status changed from New to Accepted

Confirmed. I actually got this demo a few days ago and complained about it on IRC for not having a banner >.>

#5 Updated by JosJuice 9 months ago

  • Assignee set to JosJuice

I've been taking a look at this now with JMC's help, and I don't think we can support this TGC file correctly without changing our approach to the one that tgctogcm uses. So maybe we'll have to do that...

#6 Updated by JosJuice 9 months ago

Or, hmm, maybe I could place the FST at a completely new virtual address... I'll have to think about this some more.

Also available in: Atom PDF