Author Topic: DOSBoxRunSetup for SCI Companion  (Read 14758 times)

0 Members and 1 Guest are viewing this topic.

Offline Collector

DOSBoxRunSetup for SCI Companion
« on: September 19, 2011, 01:53:17 AM »
In the Multiple text lines in one Print window thread gumby complained about having issues with running SCIV.EXE in Windows 7. I don't know if he has Win7 x64 or is having some issues with his NTVDM from Companion. Of course little 16-bit code will not run on x64 (thanks AMD) so the entire 16-bit subsystem and the NTVDM has been removed from x64 Windows. Even on 32-bit Windows, the NTVDM has some severe compatibility issues. For our games, we have been using DOSBox to solve these issues, but both Companion and Studio run the game's executable directly, so to use DOSBox requires you to leave your environment to do so.

Here is my first effort to get SCI Companion to run your project in DOSBox from its "Run" button. Run "DOSBoxRunSetup.exe" from your game's directory and Companion will use DOSBox to start your game. It should work for Studio as well. It comes with an uninstaller to cleanup your game of the utility before distributing it, so be sure you have a backup of DOSBoxRunSetup.exe before running Cleanup "Cleanup DOSBoxRun.exe".
« Last Edit: May 19, 2012, 01:26:58 PM by Collector »


KQII Remake Pic

Offline MusicallyInspired

Re: DOSBoxRunSetup for SCI Companion
« Reply #1 on: September 19, 2011, 12:56:24 PM »
Nice!
Brass Lantern Prop Competition

Offline gumby

Re: DOSBoxRunSetup for SCI Companion
« Reply #2 on: September 19, 2011, 09:59:46 PM »
Yeah, I'm running Win 7 64 bit.  Of course this isn't going to work, I should have known this - I haven't done any SCI development work since I got my new laptop a few months back.

So where is this installer that you've put together so I can give it a whirl?  Or is it still in development?
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline MusicallyInspired

Re: DOSBoxRunSetup for SCI Companion
« Reply #3 on: September 19, 2011, 11:49:12 PM »
It's right there attached to his post.
Brass Lantern Prop Competition

Offline gumby

Re: DOSBoxRunSetup for SCI Companion
« Reply #4 on: September 20, 2011, 08:38:36 AM »
Sorry, attachments don't show when you are just looking at the 'Recent Posts' view.  I will try this and report back.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline Collector

Re: DOSBoxRunSetup for SCI Companion
« Reply #5 on: September 20, 2011, 07:42:21 PM »
Anybody try this yet? Any feed back or suggestions?
KQII Remake Pic

Offline gumby

Re: DOSBoxRunSetup for SCI Companion
« Reply #6 on: September 21, 2011, 08:55:32 AM »
Yeah, I after finally putting the installer in the correct location (don't ask), This works perfectly.  Very seamless, thank you!

I'm thinking back to another problem that we had with Companion, the game corruption issue when you run an instance of the game when it was already running.  Would it be trivial to add this functionality into your executable as well?
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline MusicallyInspired

Re: DOSBoxRunSetup for SCI Companion
« Reply #7 on: September 21, 2011, 09:00:14 AM »
The only game corruption issue I can recall is the one where you rebuild resources while the game is running. And that only happens in SCI Studio. Companion doesn't mess up the game files. Unless you're talking about another thing?
Brass Lantern Prop Competition

Offline Cloudee1

Re: DOSBoxRunSetup for SCI Companion
« Reply #8 on: September 21, 2011, 01:15:09 PM »
Actually the same thing does happen in Companion when you compile the game while it is running. The fix is easy enough for both editors though, so it's no real big deal. The problem comes from the compiler though trying to overwrite a file in use so I'm not real sure what can be done from the game end to resolve the issue... but it would be nice if something were in place.

* Wait my bad, not compiling, rebuilding... that is when the files in use are overwritten, or at least attempted to
« Last Edit: September 21, 2011, 01:18:28 PM by Cloudee1 »
Halloween Competition Brass Lantern Prop Competition Groundhog Day Competition

Offline MusicallyInspired

Re: DOSBoxRunSetup for SCI Companion
« Reply #9 on: September 21, 2011, 01:16:32 PM »
I've tried compiling and rebuilding while already running the game numerous times over the past week and my game never got corrupted once.
« Last Edit: September 21, 2011, 06:26:17 PM by MusicallyInspired »
Brass Lantern Prop Competition

Offline Collector

Re: DOSBoxRunSetup for SCI Companion
« Reply #10 on: September 21, 2011, 02:21:41 PM »
Any kind of check and or fix would best be done from the editor side. I don't know what would happen if Companion or Studio encountered a locked file while trying to rebuild. Also, it seems like you would have to lock all resource files if the editors were not modified to set how to handle the first locked file.
KQII Remake Pic

Offline gumby

Re: DOSBoxRunSetup for SCI Companion
« Reply #11 on: September 21, 2011, 09:16:29 PM »
Yeah, apparently I couldn't remember the exact issue, but here is Cloudee's how-to fix it, just for reference:

http://sciprogramming.com/community/index.php/topic,21.html

It is rebuilding that nukes everything, I suffer from it regularly when developing.  I thought it had to do with having your game running twice, but it's the rebuild process that causes a problem when you have your game running, not having a game running twice.

Sorry for the noise.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition

Offline MusicallyInspired

Re: DOSBoxRunSetup for SCI Companion
« Reply #12 on: September 21, 2011, 09:30:26 PM »
Then how does it screw things up for you but not me?
Brass Lantern Prop Competition

Offline Collector

Re: DOSBoxRunSetup for SCI Companion
« Reply #13 on: September 22, 2011, 02:22:36 PM »
New version. This will make the use of it more seamless. Unzip into Companion's "Template" folder, overwriting the GAME.INI file. When you create a new game from within Companion, it will copy the setup into your new game's folder and keep the original in the Template folder.

The first time that you hit the run button, the tool will run, allowing you select your DOSBox and settings, then launch the game. Every time you hit the run button thereafter, the game will start. If you want to change your DOSBox settings, run "Conf.exe" in your game's folder. When you are ready to distribute your game, run "Cleanup Game.exe" to remove the setup files.
KQII Remake Pic

Offline gumby

Re: DOSBoxRunSetup for SCI Companion
« Reply #14 on: September 22, 2011, 08:28:58 PM »
Then how does it screw things up for you but not me?
I was until recently running XP Pro, and was plagued by this problem.

I just tested this (I apologize for not testing it before on my new setup!), and within Win 7 64 bit, I am unable to rebuild resources while a game is running - I get an error "An error occured (sic) while rebuilding resources: 80070020".

Well, that's a nice side-effect.  But is it because of running the game through DosBox, or because I'm on a new OS?  Either way, I'm pleased ;D.
In the Great Underground Empire (Zork port in development)
Winter Break 2012 Rope Prop Competition


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.056 seconds with 21 queries.