Page 1 of 1

Sueprmodel doesn´t open games

PostPosted: Mon Sep 06, 2021 11:26 am
by ajgomes
Hello everyone;

First of all thank you for supporting the SEGA Model 3 legacy by keeping it alive in emulation form.

I searched the forum and I didn't find any topic on this subject, but if there is one already, my apologies.
So, I downloaded the latest supermodel buil with the SEGA Model 3 UI from the catwalk (thanks for that!!), but I ran into some problems while trying to boot games.
Whenever I try to load a game using the UI, the game doesn't load and the following message appears:


[Info] Supermodel Version 0.3a-WIP
[Info] Started as:
[Info] argv[0] = Supermodel.exe
[Info] argv[1] = D:\Joel\Emulação\SEGA\Supermodel-x64-r862 Release + Sega Model 3 UI\ROMs\daytona2.zip
[Error] Could not open 'D:\Joel\Emulação\SEGA\Supermodel-x64-r862 Release + Sega Model 3 UI\ROMs\daytona2.zip'.


Supermodel isn't working with the comand line neither with "drag and drop". It just shows a comand line for a split second and then it crashes. I also tried to set it up with launchbox and the same happens.
If anyone could help me out, I would really apreciate it!

Thanks in advance!!

Re: Sueprmodel doesn´t open games

PostPosted: Fri Sep 10, 2021 9:21 pm
by Bart
Is the game actually at that location?

Re: Sueprmodel doesn´t open games

PostPosted: Fri Sep 10, 2021 11:38 pm
by PDNEJOH
Also, can you try to launch the emu from the directory that didn't use non-english characters?

Re: Sueprmodel doesn´t open games

PostPosted: Sat Sep 11, 2021 4:17 am
by orimarc
Try changing the "Emulação" (emulaçáo?) folder name.

Re: Sueprmodel doesn´t open games

PostPosted: Sat Sep 11, 2021 6:10 am
by ajgomes
Bart wrote:Is the game actually at that location?


It is. I have the Model 3 complete romset at that location and I didn't delete the DIR file on the folder either.

I'm going to try to use an english characters only file direction to see if it does the trick.

Re: Sueprmodel doesn´t open games

PostPosted: Sat Sep 11, 2021 6:33 am
by ajgomes
Ok, so I changed the rom directory to english characters only and now the supermodel emulator works!!!!


Thank you all for your help and suggestions!!!!

Re: Sueprmodel doesn´t open games

PostPosted: Sat Sep 11, 2021 12:35 pm
by Ian
Windows uses utf16, not sure how the command lines are being handled without looking at the code

Re: Sueprmodel doesn´t open games

PostPosted: Sun Sep 12, 2021 3:40 am
by Ian
I think to fix this we could use a few ifdefs
Need to define a wmain for utf16 for windows instead of main

Then I would convert the text from utf16 to utf8
We could abstract fopen to use the widechar versions after converting back to utf16

Re: Sueprmodel doesn´t open games

PostPosted: Sun Sep 12, 2021 7:26 pm
by Bart
Ian wrote:I think to fix this we could use a few ifdefs
Need to define a wmain for utf16 for windows instead of main

Then I would convert the text from utf16 to utf8
We could abstract fopen to use the widechar versions after converting back to utf16


Making it a proper Win32 application isn't a bad idea. Someone was requesting console window suppression. The only way to do that is to make it a Win32 app and then add an option to open a console window for stdout by default.

Re: Sueprmodel doesn´t open games

PostPosted: Sun Sep 12, 2021 7:27 pm
by Bart
Ian wrote:I think to fix this we could use a few ifdefs
Need to define a wmain for utf16 for windows instead of main

Then I would convert the text from utf16 to utf8
We could abstract fopen to use the widechar versions after converting back to utf16


IIRC, all of this should be constrained to Main.cpp because core Supermodel doesn't actually manipulate file paths anywhere (unless I am mistaken), right?