Author Topic: Opening the SCI Studio VGA project source in BC++  (Read 6833 times)

0 Members and 1 Guest are viewing this topic.

Offline MusicallyInspired

Opening the SCI Studio VGA project source in BC++
« on: November 24, 2014, 09:51:30 AM »
I'm pulling my hair out. I'm trying to open the SCI Studio VGA source project file (scistudio.bpr) with the old Borland C++ 5.02 IDE. Problem is, it doesn't know what a BPR file is. I open the BPR file in notepad and it says it was created with BC 5.03. I've looked everywhere and there doesn't seem to have ever been a 5.03 IDE. I'm at somewhat of a loss as to how to continue. The other thing is I clearly remember opening the source in a Borland IDE of some kind ages ago. I was sure it was 5.02, as I still have it archived. Or maybe I was opening the SCI Studio 3 source, but I can't see why I'd do that...I don't know. The other thing is that the source project references a VCL.H header, which is apparently Borland-specific, but which is not included with BC++ 5.02. I must just have an outdated IDE.

Anyway, how on earth do I open this BPR file? Which version of Borland C++ Builder would work with it? I just want to be able to successfully compile the source as it is in the environment it was originally built for so I can try to make some changes. Which version comes with VCL.H?
« Last Edit: November 24, 2014, 10:11:14 AM by MusicallyInspired »


Brass Lantern Prop Competition

Offline Collector

Re: Opening the SCI Studio VGA project source in BC++
« Reply #1 on: November 24, 2014, 12:27:56 PM »
The BPR is just an XML, like the VS project files. Did you search for "BCB.05.03" or "BC 5.03"? It should be "BCB.05.03". Doing a little looking most of the advice was to avoid the older IDEs like a plague. There does not seem to be an upgrade path, so probably best to create a new project and import the source files. Having to do this, if it were me, I would move away from Borland altogether. Don't know if you have VS installed, but to me it is by far the easiest IDE to work with once you get used to it, especially for doing GUIs.

Gumby and I were looking at Studio VGA a wile back. It looks like Brian was very close. Not sure how close the compiler was though. Gumby would probably have a better idea about that. The editors look like they are ready. The template game scripts are mostly finished. The resources would still need to be stripped down to a single room and all of the LSL specific stuff stripped out or replaced, but that would be the easy part.
KQII Remake Pic

Offline MusicallyInspired

Re: Opening the SCI Studio VGA project source in BC++
« Reply #2 on: November 24, 2014, 01:04:45 PM »
The BPR is just an XML, like the VS project files. Did you search for "BCB.05.03" or "BC 5.03"? It should be "BCB.05.03". Doing a little looking most of the advice was to avoid the older IDEs like a plague. There does not seem to be an upgrade path, so probably best to create a new project and import the source files. Having to do this, if it were me, I would move away from Borland altogether. Don't know if you have VS installed, but to me it is by far the easiest IDE to work with once you get used to it, especially for doing GUIs.

Thanks for the tip on 05.03 as opposed to 5.03!

The thing is, SCI Studio relies quite heavily on Borland-specific libraries that aren't portable. You'd have to take the meat of SCI Studio out and completely redo the interface stuff. VCL.H, for instance, is a required library and it only works with Borland C++ Builder specifically.

It also utilizes the SynEdit package. I got a hold of BCB6 and SCI Studio fails to function because the SynEdit package isn't installed. When I try to install it (because it's included in the source) it fails because it's made specifically for BCB5 and not BCB6. It's just all very confusing to me. Why are so many files meant for BCB5 when BC++ 5.02 doesn't support any of it? And it lists the next version that was released on the Wikipedia entry as 5.5, which isn't even an IDE, just a command line compiler. There is another one that says Borland C++ Builder 4.0 + Borland C++ 5.02 with a tag that says "Bundle combination to facilitate the migration to C++Builder." So is Borland C++ Build 4.0 newer than Borland C++ 5.02? It's all very confusing.

Quote
Gumby and I were looking at Studio VGA a wile back. It looks like Brian was very close. Not sure how close the compiler was though. Gumby would probably have a better idea about that. The editors look like they are ready. The template game scripts are mostly finished. The resources would still need to be stripped down to a single room and all of the LSL specific stuff stripped out or replaced, but that would be the easy part.

There are some little glitches and bugs, though. The view editor, for instance, cannot have negative numbers in the x/y fields (used for origin pinpointing) when it can open previously created views with negative x/y fields no problem. That seems like just an interface error. Also, when you edit a View it can't edit the palette and doesn't seem to save or embed it properly, so all-black pixels turn into white pixels in-game for some reason. The standalone VGA View editor doesn't have this problem and can edit and embed palettes just fine, but it has no origin x/y setting fields whatsoever so the animations are all completely off center when drawn on the screen. Very annoying to work with. It's these little things I wanted to try to fix. But I can't even get it to compile! If I knew what I was doing I could just strip out the meat of the View editor (or the Pic importer for that matter) and make a new program, but at points everything still becomes gibberish to me and I can't make entire sense out of what I'm seeing in the code.
« Last Edit: November 24, 2014, 01:23:24 PM by MusicallyInspired »
Brass Lantern Prop Competition

Offline MusicallyInspired

Re: Opening the SCI Studio VGA project source in BC++
« Reply #3 on: November 24, 2014, 02:35:27 PM »
Ok, I've found a version of BCB that works with the source. I've installed the SynEdit package successfully. However, I seem to be missing the TMenuBar package. Every reference I've found online says that you need to download it from Borland's website.....unfortunately, it doesn't exist anymore, being bought out by Embarcadero. The old links don't work. Anyone have any idea where I could find it?

The original link: http://www.borland.com/devsupport/delphi/downloads/
Brass Lantern Prop Competition

Offline Collector

Re: Opening the SCI Studio VGA project source in BC++
« Reply #4 on: November 24, 2014, 05:45:36 PM »
$30 - http://www.delphipages.com/comp/tmenubar-2332.html Seems like a bit much to pay for use with an antiquated IDE/compiler.

I don't see the SynEdit being much of an issue. There are many editor controls out there and most are easy enough to work with that redoing that part of the code should not be that difficult. I guess if it were me delving into it, I would just see if I could glean the code for backend stuff and do a new GUI, but C++ is getting a bit out of my element.

BTW, Enrico Rolfi just registered on SHP. Don't know how much he would be able or willing to start developing SCI tools again, but it will be interesting to see what input he might have. Extending his FotoSCIhop backwards to SCI1 might fit your immediate quest.
KQII Remake Pic

Offline MusicallyInspired

Re: Opening the SCI Studio VGA project source in BC++
« Reply #5 on: November 24, 2014, 11:48:01 PM »
$30 - http://www.delphipages.com/comp/tmenubar-2332.html Seems like a bit much to pay for use with an antiquated IDE/compiler.

I actually found that site. Strange that they're selling it when it used to be available for free...

Quote
I don't see the SynEdit being much of an issue. There are many editor controls out there and most are easy enough to work with that redoing that part of the code should not be that difficult. I guess if it were me delving into it, I would just see if I could glean the code for backend stuff and do a new GUI, but C++ is getting a bit out of my element.

That's the part I can't do. I still find it difficult to make heads or tails out of what's GUI and what's the actual brains. I'm just not familiar enough yet with the different types of code (what's actually interface and what's not).

Quote
BTW, Enrico Rolfi just registered on SHP. Don't know how much he would be able or willing to start developing SCI tools again, but it will be interesting to see what input he might have. Extending his FotoSCIhop backwards to SCI1 might fit your immediate quest.

I hope he can! I do want to try and fix the View editor issues as well, though. As far as I know there is no source for the standalone SCI1 viewedit, which is too bad.
« Last Edit: November 24, 2014, 11:53:29 PM by MusicallyInspired »
Brass Lantern Prop Competition

Offline Collector

Re: Opening the SCI Studio VGA project source in BC++
« Reply #6 on: November 25, 2014, 12:32:53 AM »
I know what you mean about having the GUI stuff mingled in with the actual guts. It is not as obvious with just a glance which is which. It is one of the things I love about C# WinForms. It makes it easy to separate backend stuff and other classes from the forms' partial class scripts. It helps to keep things neat and readable. It also makes it reasonable reuse code from other projects with little modification. Once I have worked out how to do something, I can lift that code into other projects where I need to do the same thing again. Sometimes it can be as simple as dropping that borrowed class into the new project.
KQII Remake Pic

Offline MusicallyInspired

Re: Opening the SCI Studio VGA project source in BC++
« Reply #7 on: November 25, 2014, 09:20:35 AM »
Found TMenuBar here! http://www.torry.net/pages.php?id=16

Or at least one that works. I no longer get errors for missing the TMenuBar package. After adding it, I tried to build the project and it gave me a bunch of errors for multiple declarations of struct types in shlobj.hpp. This was apparently a common problem and I needed only add the line "NO_WIN32_LEAN_AND_MEAN" to the conditionals list in the project options. Otherwise, I got quite a few warnings (99! Mostly values and declarations "that are never used", some "comparing signed and unsigned values", "mixing pointers to different char types", "possible incorrect assignments", "constant out of range in comparison", and "code has no effect"), and one more fatal error where it couldn't find "DCLUSR50.lib". But I just removed the reference from the project file (as people with the same issue were suggested to do) and it continued to compile! I'll let you know how successful it is.
Brass Lantern Prop Competition

Offline MusicallyInspired

Re: Opening the SCI Studio VGA project source in BC++
« Reply #8 on: November 25, 2014, 09:45:59 AM »
It worked!!! Now we can make changes in its original development environment! Ideally, of course, it'd be best to port it to a new environment, but this is great! I can make small changes and see what happens.
Brass Lantern Prop Competition

Offline Collector

Re: Opening the SCI Studio VGA project source in BC++
« Reply #9 on: November 25, 2014, 10:44:01 AM »
I am halfway tempted to see how far I could get in porting it to something more modern, but I am not sure I feel like tracking down and setting up such an old environment to work against. Unless you felt like zipping up your environment and modified Studio source.
KQII Remake Pic

Offline MusicallyInspired

Re: Opening the SCI Studio VGA project source in BC++
« Reply #10 on: November 25, 2014, 11:47:55 AM »
I can do that tonight. Or I'll try. Will message you later.
Brass Lantern Prop Competition

Offline Collector

Re: Opening the SCI Studio VGA project source in BC++
« Reply #11 on: November 25, 2014, 03:22:00 PM »
Thanks
KQII Remake Pic


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

Page created in 0.096 seconds with 23 queries.