Skip to content

Command line issue #1

@flossy83

Description

@flossy83

Hello,

Sorry for spamming you with this, but I don't know if you check your email address in the readme.

I am trying to use GCR to command line extract SystemData\start.dol from the game Starfox Adventures.

However it gives me this error at Windows command line:

System.NullReferenceException: Object reference not set to an instance of an object.
   at GCRebuilder.MainForm.Export(String expPath)
   at GCRebuilder.Program.Main(String[] args)

Commands tried so far:

gcr "C:\starfox\game.iso" "&&SystemData\start.dol" "e" "C:\starfox"
gcr "C:\starfox\game.iso" "SystemData\start.dol" "e" "C:\starfox"
gcr C:\starfox\game.iso &&SystemData\start.dol e C:\starfox
gcr "C:\starfox\game.iso" "SystemData\start.dol" "e" "C:\starfox\start.dol"
gcr "C:\starfox\game.iso" "root\SystemData\start.dol" "e" "C:\starfox"
gcr "C:\starfox\game.iso" "\SystemData\start.dol" "e" "C:\starfox"

Looking at the source code, the issue may be in here somewhere:

public void Export(string expPath)
{
    expImpPath = expPath;
    expImpIdx = Convert.ToInt32(selNode.Name);      // is selNode.Name null?
    if (toc.fils[expImpIdx].isDir)                  // is toc.fils null?
        ExportDir();
    else
        Export(expImpIdx, expPath);
}

Starfox and some other GCN games have a unique deflicker vfilter which ruins the graphics a bit. We can patch them in start.dol, and I'm trying to write a tool that automates this patching and then repacking back into the ISO using GCR's command line.

GCR is the only tool that can re-insert files without having to rebuild the entire ISO which saves a lot of time.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions