Jump to content
LaunchBox Community Forums

Launchbox Integration with SCUMMVM


Recommended Posts

Posted

Hi all,

I have a question about integrating SCUMMVM fully with Launchbox.
As of now, I can only add SCUMMVM as an "emulator" for Launchbox and the games i have work just fine.
However, the scummvm.ini is not being used and my copy of monkey island 2 is playing with mt-32 support but without the MIDI mix mode which is working properly if i launch the game directly from SCUMMVM.
Is there any way to configure this via Launchbox?

Posted (edited)

Hello, if you want to use a specific scummvm.ini file place the below command into the emulators Default Command-Line Parameters

--config="path_to_your_scummvm.ini" -p %romfile% --auto-detect --no-console

Hope it Helps. 🙂

Edited by Tsik
Posted

Hey, thanks for the answer.

I tried it and it doesn't work. when i launch the game it's without the mixed settings as supposed to be in scummvm.ini file.

when i press CTRL + F5 and select "return to launcher" i do get my SCUMMVM with all of it's settings. it's really weird.

I tried re adding the game but it doesn't seem to work. I play from SCUMMVM and it works just fine. with Launchbox i get some default settings. 

Posted
19 minutes ago, Ronen1984 said:

I tried it and it doesn't work

Can you share some screenshots?

Edit your ScummVM emulator (in LaunchBox) and show

  • The main Details section
  • The Associated Platforms section

Edit your Monkey Island 2 game and show

  • The Launching section
  • The Emulation section
Posted

If I may add to the above perhaps you can show us the location of your scummvm.ini file because the default place is where ScummVm looks/creates its files automatically is "C:\Users\[UserName]\AppData\Roaming\ScummVM" if you are pointing to anywhere else you might want to delete that folder and check again.

Posted
10 minutes ago, Tsik said:

the default place is where ScummVm looks/creates its files automatically is "C:\Users\[UserName]\AppData\Roaming\ScummVM"

(side note) If you have LaunchBox install or update ScummVM for you, during this process, LaunchBox will create an empty "scummvm.ini" file in the emulators folder (if one doesn't exist there). Making ScummVM portable.

With that, if your settings were originally all saved under %AppData% and you had LB update the emulator, the 'older' setting are not copied over.

 

This however does not explain why when launched outside on LaunchBox, the specific settings load. But not, when launched from within LaunchBox.

Unless the testing is inadvertently being done between 2 separate installs of ScummVM.

Posted
13 minutes ago, JoeViking245 said:

If you have LaunchBox install or update ScummVM

Yes, that's also another thing to keep in mind... which I have to admit I never used, so I didn't took into consideration. Thanks 😁

  • Like 1
Posted
9 hours ago, JoeViking245 said:

Can you share some screenshots?

Edit your ScummVM emulator (in LaunchBox) and show

  • The main Details section
  • The Associated Platforms section

Edit your Monkey Island 2 game and show

  • The Launching section
  • The Emulation section

Here you go:

 

  • The main Details section

image.thumb.png.32b710637b2688418c2536e16dd7b3a3.png

  • The Associated Platforms section

image.thumb.png.307e651e168a62cb30f2365dcbfbcaf4.png

  • The Launching section

image.thumb.png.0a923ad807a60bfa1752700130970e21.png

  • The Emulation section

image.thumb.png.f8c7a1a0bea4b90b099625ebd74ca44e.png

Posted (edited)

Ok lets see, I assume that you have installed ScummVM from within LaunchBox and that is the ONLY ScummVM installed in your system. If that is correct then 

  • Is the problem occurs only with that particular game, only for that mixed AdLib/MIDI mode setting? (If you happen to have any others does those games work as expected)?
  • What happens if you right-click your game (from LaunchBox) and select 'Open ScummVm', does the gui show all the games with their individual options correctly ?
  • You said: "i launch the game directly from SCUMMVM", is that same "..\LaunchBox\Emulators\ScummVM\scummvm.exe" or is it another?
    If you use the exact "..\LaunchBox\Emulators\ScummVM\scummvm.ini" file there is no-need to use the '--custom=...' argument

I suppose that you already checked the %AppData%\Roaming\ScummVM path for any additional inis. (just to put that out of the equation)

The next step is to open the working scummvm.exe (outside of launchBox) and navigate to 'Global Options' > Paths' and read the 'ScummVM Config Path'  where the correct ini path is.

I tried to reproduce your exact installation and everything works as expected. If I use the '--custom=...' argument to another ini the options from that ini load fine BUT ONLY as the game is active, meaning that if I right-click the game and select 'Open ScummVm', the gui is empty.

As a last step I would suggest you run the game normally make sure the checkbox 'Attempt to hide the console window...' (from the Emulator edit window) is unchecked and as your game launches use Alt+Enter to go in window mode and copy/paste the text from the console window below to take a look...
 

🙂

Edited by Tsik
Posted
39 minutes ago, Tsik said:

Ok lets see, I assume that you have installed ScummVM from within LaunchBox and that is the ONLY ScummVM installed in your system. If that is correct then 

  • Is the problem occurs only with that particular game, only for that mixed AdLib/MIDI mode setting? (If you happen to have any others does those games work as expected)?
  • What happens if you right-click your game (from LaunchBox) and select 'Open ScummVm', does the gui show all the games with their individual options correctly ?
  • You said: "i launch the game directly from SCUMMVM", is that same "..\LaunchBox\Emulators\ScummVM\scummvm.exe" or is it another?
    If you use the exact "..\LaunchBox\Emulators\ScummVM\scummvm.ini" file there is no-need to use the '--custom=...' argument

I suppose that you already checked the %AppData%\Roaming\ScummVM path for any additional inis. (just to put that out of the equation)

The next step is to open the working scummvm.exe (outside of launchBox) and navigate to 'Global Options' > Paths' and read the 'ScummVM Config Path'  where the correct ini path is.

I tried to reproduce your exact installation and everything works as expected. If I use the '--custom=...' argument to another ini the options from that ini load fine BUT ONLY as the game is active, meaning that if I right-click the game and select 'Open ScummVm', the gui is empty.

As a last step I would suggest you run the game normally make sure the checkbox 'Attempt to hide the console window...' (from the Emulator edit window) is unchecked and as your game launches use Alt+Enter to go in window mode and copy/paste the text from the console window below to take a look...
 

🙂

Thanks for the help!

To answer your questions after now using this in the emulator default command-line: --config="..\LaunchBox\Emulators\ScummVM\scummvm.ini" -p %romfile% --auto-detect

this happens with all games i suppose, monkey island 2 is the only game which uses this "mixed" mode.

When i open SCUMMVM from launchbox i do get to the same location it is installed with all of the settings correct. I have checked %AppData%\Roaming\ScummVM and there are no ini files.

When i launch the game now with the new command-line which i pasted above, i get this masage from the console:

WARNING: File::open: node does not exist!
Creating configuration file: ..\LaunchBox\Emulators\ScummVM\scummvm.ini
GameID                         Description                                                Full Path
------------------------------ ---------------------------------------------------------- ---------------------------------------------------------
scumm:monkey2                  Monkey Island 2: LeChuck's Revenge (DOS/English)           C:\Users\ronen\LaunchBox\Games\ScummVM\Monkey Island 2\
WARNING: Unable to write configuration file: ..\LaunchBox\Emulators\ScummVM\scummvm.ini!
WARNING: Unable to write configuration file: ..\LaunchBox\Emulators\ScummVM\scummvm.ini!
User picked target 'monkey2' (engine ID 'scumm', game ID 'monkey2')...
WARNING: Unable to write configuration file: ..\LaunchBox\Emulators\ScummVM\scummvm.ini!

 

* All of the settings are now set as default fresh SCUMMVM install. this happens with every single game.

 

Posted

First of all just for the sake of this "debugging" lets use full file paths e.g. C:\Users\ronem\Launchbox\etc." as your Details section screenshot and not relative such as "..\LaunchBox\etc" and "\LaunchBox\etc." just for keeping things straight and point everything to the right "targets". Later after everything works you will return to the relative side of things.

After doing the above:

Check the file properties of the actual scummvm.ini file (right-click > properties) check and apply the 'unblock' box (if exists) down at the bottom to give the file write permissions and re-paste the console window because you got a "WARNING: Unable to write configuration file:..' in the console, which by the way it looks like it is creating it from the beginning as fresh [Creating configuration file: ..\LaunchBox\Emulators\ScummVM\scummvm.ini]

If you open "the working as expected" scummvm.exe (outside of launchBox) and navigate to 'Global Options' > Paths' where it says the ini path is?

After that we can try and do a fresh start (if you agree of course) from the beginning (keeping the working ini as a backup) with step by step guide.
We can try to edit something very obvious to an option such as change only the themeat first and check if that is loading correctly then change the options only for Monkey Island and repeat...

🙂

Posted

I put the full path: --config="C:\Users\ronen\LaunchBox\Emulators\ScummVM\scummvm.ini" -p %romfile% --auto-detect --no-console

Now when launching from Launchbox i get the default "Global settings" of SCUMMVM and not the one i did individually for monkey island 2 with the "mixed" mode.

I did an entirly new install of scummvm from launchbox and created a new ini file followed.

One thing iv'e noticed: When launching the game from SCUMMVM itself, I save the file to one location (inside the program folder) and from Launchbox to another (inside %AppData%\Roaming\ScummVM).

Posted
40 minutes ago, Ronen1984 said:

I save the file to one location (inside the program folder) and from Launchbox to another (inside %AppData%\Roaming\ScummVM)

I am not sure what you mean by that... perhaps that the location of the ini file differs from standalone (by double clicking scummvm.exe) to the path seeing the from Global Options as you returning from the game to the gui (Ctrl+F5) ?

Posted
14 minutes ago, Tsik said:

I am not sure what you mean by that... perhaps that the location of the ini file differs from standalone (by double clicking scummvm.exe) to the path seeing the from Global Options as you returning from the game to the gui (Ctrl+F5) ?

Not the ini, the save location only. it's really strange it's like it's ignoring the ini file location. I'm really don't know what else i can try to do. I tried changing the location of the entire Launchbox install but it's the same problem.

Posted (edited)

Ok what ever it is, please try to follow:

1st install ScummVM fresh from with in LaunchBox:

InstalledScummVM(fresh).thumb.png.fff53505556ab34dbdc8f384ddd83d5b.png AssosiatedPlatforms(fresh).thumb.png.1bc95f0c67536777f7f976b730d8e0db.png

2nd Lets Import Monkey Island into launchbox I put it in LaunchBox\Games\ScummVM:

GameImport-Launchingwindow.thumb.png.d4faf113a63fc6fbbde60d172b868791.png GameImport-Emulationwindow.thumb.png.35807c30c7cc0b2455f4df2bb0aafcd8.png

Till this stage you must be able to run the game from within LaunchBox. (correct?)
No customizing anything yet (pretty straight forward)

Edited by Tsik
Posted (edited)
4 minutes ago, Ronen1984 said:

I'm really don't know what else i can try to do

Don't worry if there is anything wrong we will find the issue. 😄

Edited by Tsik
Posted

Continuing... Now if you right-click the game from within LaunchBox choosing 'Open ScummVM':

OpenScummVMright-click.thumb.png.bf9cbf1f10b335fc93a641ab9410dafc.png

You should get the empty gui ScummVM (correct?):

OpenScummVMgui.thumb.png.5d8ccb54d7a174e7e7a4e75a56be14f2.png

Posted

Perhaps it looks weird but ScummVM can identify the game from its database id just by pointing the game folder to the scummvm.exe although it is not yet imported into the gui.

Are you with me till now?
No worries if you have to be AFK but it is essential that we are in the same pace just to get the same results. 🙂

Posted
2 minutes ago, Tsik said:

Perhaps it looks weird but ScummVM can identify the game from its database id just by pointing the game folder to the scummvm.exe although it is not yet imported into the gui.

Are you with me till now?
No worries if you have to be AFK but it is essential that we are in the same pace just to get the same results. 🙂

I do have to go for a while but i did found out something rather strange:

When i open the game launching SCUMMVM from outside the launcher, the game saves to the "saved games" folder inside the scummvm installation as should.

When i open the game from Launchbox, aside from using the global options instead of the game speciefic one, i noticed that i don't have a saved game and when saving a new game, it saves under the correct location inside scumm vm with this file name: monkey2-1.s01 (added "-1" to the file name).

Posted (edited)
2 hours ago, Ronen1984 said:

I do have to go for a while

Its ok, just leave everything else for now and lets concentrate just to the steps I show you (I now they are baby steps but trust me on this).

Will wait for confirmation on the above steps and continue with more custom stuff.

Cheers 🙂

Edited by Tsik

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...