Page 1 of 1

Config directory issues

PostPosted: Thu Feb 10, 2022 4:05 pm
by PolygonSlayer
Hi all, newcomer here :)

I can't get anything to load using the emulator, but the issue seems to be that it can't find the config files (even though they are in the Config folder).

[Info] Supermodel Version 0.3a-svn-881
[Info] Started as:
[Info] argv[0] = D:\X_Emulators\Supermodel\Supermodel.exe
[Info] argv[1] = G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip
[Error] Unable to open 'Config/Supermodel.ini'. Configuration will not be loaded.
[Error] Failed to parse Config/Games.xml (XML_ERROR_FILE_NOT_FOUND).
[Error] Game and ROM set definitions could not be loaded! ROMs will not be detected.
[Info] Opened G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip.
[Error] No complete Model 3 games found in 'G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip'.

I have tried to run it from just the base of the hard drive as well and same results.
The odd thing is that I can get it to work if I run it via the Supermodel UI, however this won't work as I plan to integrate it into Launchbox and it can't boot via command line.

Any help would be great, and thank you for the hard work :)

Re: Config directory issues

PostPosted: Thu Feb 10, 2022 5:46 pm
by Bart
PolygonSlayer wrote:Hi all, newcomer here :)

I can't get anything to load using the emulator, but the issue seems to be that it can't find the config files (even though they are in the Config folder).

[Info] Supermodel Version 0.3a-svn-881
[Info] Started as:
[Info] argv[0] = D:\X_Emulators\Supermodel\Supermodel.exe
[Info] argv[1] = G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip
[Error] Unable to open 'Config/Supermodel.ini'. Configuration will not be loaded.
[Error] Failed to parse Config/Games.xml (XML_ERROR_FILE_NOT_FOUND).
[Error] Game and ROM set definitions could not be loaded! ROMs will not be detected.
[Info] Opened G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip.
[Error] No complete Model 3 games found in 'G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip'.

I have tried to run it from just the base of the hard drive as well and same results.
The odd thing is that I can get it to work if I run it via the Supermodel UI, however this won't work as I plan to integrate it into Launchbox and it can't boot via command line.

Any help would be great, and thank you for the hard work :)


Where is the config folder? And where is this being run from? Supermodel looks for the config folder in the current working directory but that may not be the same as the directory the executable is in. Maybe we should have Supermodel parse the argv[0] and figure out where the config folder really is.

So for example, if your config folder is: G:\X_Emulators\Supermodel\Config, then you need to run Supermodel from G:\X_Emulators\Supermodel. If, say, you run it from some arbitrary directory like G:\foo, as such:

Code: Select all
G:\foo>G:\X_Emulators\Supermodel\Supermodel.exe "G:\0_Emulation\Arcade\Sega Model 3\daytona2.zip"


This will fail because it will look for the config folder in G:\foo\Config.

Re: Config directory issues

PostPosted: Fri Feb 11, 2022 1:29 am
by PolygonSlayer
It's a fresh extract from the zipped builds. So the config folder is located where the exe is. With the ini and xml file inside of it. I haven't moved anything around since I unzipped it basically.

This particular error log was when I tried to drag and drop the daytona2 zip file on top of the exe. However I get the exact same issue when I try and launch it via a Frontend like Launchbox.

I also tried to extract the zip into a new folder just at the base of the hard drive, thinking maybe my folder names were causing any issues, but same problem.

Re: Config directory issues

PostPosted: Fri Feb 11, 2022 3:07 pm
by PolygonSlayer
Ok, I understand now. The config folder actually has to be in the same folder as the roms. Got it working now :) Just not used to having the config folder in that location.

Cheers ! :)

Re: Config directory issues

PostPosted: Fri Feb 11, 2022 6:01 pm
by Bart
PolygonSlayer wrote:Ok, I understand now. The config folder actually has to be in the same folder as the roms. Got it working now :) Just not used to having the config folder in that location.

Cheers ! :)


If you are using a frontend to launch Supermodel, I guess this means the frontend considers the ROM directory the working directory. Glad you got it sorted.