Page 1 of 1

Oolite and Oolite OXP Developer versions on Windows

Posted: Thu Aug 26, 2021 7:42 pm
by hiran
Unfortunately I do not have a Windows system to test this myself.

If someone installed Oolite through the installer, then later downloads the Oolite OXP developer version and installs that, where does he get?
* Will the original installation be overwritten?
* Will the original installation and the OXP developer version coexist in different directories?
* Will the whole setup end undefined and no version of Oolite is usable? (it seems this is where the person ended up)...

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Thu Aug 26, 2021 7:52 pm
by Cholmondely
hiran wrote: Thu Aug 26, 2021 7:42 pm
Unfortunately I do not have a Windows system to test this myself.

If someone installed Oolite through the installer, then later downloads the Oolite OXP developer version and installs that, where does he get?
* Will the original installation be overwritten?
* Will the original installation and the OXP developer version coexist in different directories?
* Will the whole setup end undefined and no version of Oolite is usable? (it seems this is where the person ended up)...
So, on my AppleMac, I have 4 versions (one of which is the developer) side-by-side. I can't compile, so I don't have any of the weeklies. They all share the same ManagedAddOns & AddOns folders. The regular and the developer v.1.90 use the same oxp's & oxz's. 1.88 can no longer use a dozen or so, so I get warnings when I run it. 1.77 only uses oxp's and seems to have has no warning system built in. So it just used whatever it uses. I had to transmogrify Feudal States into an oxp to enable 1.77 to recognise it.

On the Windows (a pain to use, and lousy graphics to boot), the 1.88 & 1.90 are quite separate with their own .oxz's. But I don't have the developer version installed there. They do seem to be in different folders.

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Thu Aug 26, 2021 8:05 pm
by Cody
As Cholly says, you can have multiple installs of Oolite, each independent of the others. I have 1.90 and 1.91 installed - you can have more. If you know what you're doing, you can set them up within one main folder, containing multiple oolite.exes - I believe another_commander has his set up in this manner. Beyond my ken, is that - too complex!

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Thu Aug 26, 2021 8:34 pm
by hiran
Cody wrote: Thu Aug 26, 2021 8:05 pm
As Cholly says, you can have multiple installs of Oolite, each independent of the others. I have 1.90 and 1.91 installed - you can have more. If you know what you're doing, you can set them up within one main folder, containing multiple oolite.exes - I believe another_commander has his set up in this manner. Beyond my ken, is that - too complex!
Ok, so it is possible to have multiple parallel installations.
Did you create that setup manually, or is this one of the use cases supported by the installer?

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Thu Aug 26, 2021 8:45 pm
by Cody
Manually! Re having multiple oolite.exes within one main folder, set up right, I think they can share resources.

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Thu Aug 26, 2021 9:05 pm
by Commander Mick
The problems I'm having trying to install the developer version over one of my installed Oolite games....

https://ibb.co/DbKhQtT

Image

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 3:17 am
by another_commander
OK, so here is what happens when the development version is installed:

The developer version installer expects a valid 1.90 deployment installation to be present. It checks that by looking at the folder it's pointed to at the first step of the installation and performing the following validation checks:
- It checks that a file called oolite.exe exists inside a sub-folder called oolite.app
- It checks that the oolite executable, if found, is of the same bitness as the one that will be installed. This is to avoid breaking a game install by copying a 64-bit exe in a 32-bit installation or vice versa.
- It checks that the oolite executable found is, in fact, a v1.90 executable. This is to avoid breaking a game install by attempting to copy the 1.90 exe over, say, a 1.86 installation. It checks this by comparing the file size of oolite.exe with the size that is expected for v1.90.

If all above checks pass, then the developer version installer will proceed with copying the Basic-debug.oxp inside AddOns and the developer version oolite.exe inside oolite.app. It preserves the original executable by renaming it to oolite.exe.dpl.

Once all this is complete, the game has been upgraded to the developer version.

Now, Commander Mick's problem seems to be in the oolite.exe validation. The game executable is either not found or it does not correspond to what is expected for version 1.90 of the game. My guess is that Commander Mick tried to point the installer inside <OoliteInstallDir>/oolite.app. If my guess is correct, this can be fixed by simply telling the installer to perform the install in the existing <OoliteInstallDir>.

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 8:15 am
by hiran
another_commander wrote: Fri Aug 27, 2021 3:17 am
The developer version installer expects a valid 1.90 deployment installation to be present.
So the installer is - unlike the developer downloads for Linux - not standalone but requires the normal installer to have run beforehand.
This is worth knowing when telling others to go for the developer version...

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 12:27 pm
by Commander Mick
another_commander wrote: Fri Aug 27, 2021 3:17 am
OK, so here is what happens when the development version is installed:

The developer version installer expects a valid 1.90 deployment installation to be present. It checks that by looking at the folder it's pointed to at the first step of the installation and performing the following validation checks:
- It checks that a file called oolite.exe exists inside a sub-folder called oolite.app
- It checks that the oolite executable, if found, is of the same bitness as the one that will be installed. This is to avoid breaking a game install by copying a 64-bit exe in a 32-bit installation or vice versa.
- It checks that the oolite executable found is, in fact, a v1.90 executable. This is to avoid breaking a game install by attempting to copy the 1.90 exe over, say, a 1.86 installation. It checks this by comparing the file size of oolite.exe with the size that is expected for v1.90.

If all above checks pass, then the developer version installer will proceed with copying the Basic-debug.oxp inside AddOns and the developer version oolite.exe inside oolite.app. It preserves the original executable by renaming it to oolite.exe.dpl.

Once all this is complete, the game has been upgraded to the developer version.

Now, Commander Mick's problem seems to be in the oolite.exe validation. The game executable is either not found or it does not correspond to what is expected for version 1.90 of the game. My guess is that Commander Mick tried to point the installer inside <OoliteInstallDir>/oolite.app. If my guess is correct, this can be fixed by simply telling the installer to perform the install in the existing <OoliteInstallDir>.
Should I pull up a folder map of the Oolite I'm trying to install the developer Oolite to? I couldn't find folder where the installer for the game is supposed to be. So I copied and pasted it into the main Ooilte Folder and tried again, and still can't get the damn thing to install.

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 2:43 pm
by another_commander
Commander Mick wrote: Fri Aug 27, 2021 12:27 pm
Should I pull up a folder map of the Oolite I'm trying to install the developer Oolite to? I couldn't find folder where the installer for the game is supposed to be. So I copied and pasted it into the main Ooilte Folder and tried again, and still can't get the damn thing to install.
Where did you install the deployment Oolite when you ran Oolite-1.90_x64.exe? What is the actual path to the game's root folder? If you left everything at default when installing the "normal" release, it should be C:\Oolite. You tell the updater to look at whichever folder it is that you installed the game in.

The file Oolite-1.90_x64-Deployment-to-Test-Release.exe is a converter (also mentioned in the download box for the Oolite developer release) that takes a "standard:" install and transforms it into a developer one (as it says in the filename as well). It is not a standalone installer and it expects a 1.90 installation to be already there.

Edit to add: I think the instructions are very clear when you launch the updater:
Image

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 3:30 pm
by hiran
@Commander Mick:
Your intention was to have one real and one development installation independently from each other.
This is possible.

What you did already was to install the real Oolite somewhere on your system.
Now install it a second time, and install it to a different folder. That makes two 'production' installations independently from each other.
Then run the installer for the OXP developer version and point it to one of the installation folders. It will convert the chosen installation from a 'production' to the 'developer' version.

There you go: One real and one development version installed independently from each other.

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 3:41 pm
by another_commander
You can also install the real Oolite just once, then run the updatedr on that folder. The updater will copy a new oolite.exe file in there (the developer version one) and rename the original executable to oolite.exe.dpl. You can further manually rename that to something like oolite_real.exe so now you will have both oolite.exe and oolite_real.exe inside your 1.90 installation. THe updater will also copy the Basic-debug.oxp inside your AddOns, but only the developer version can see it; the real one simply ignores it.

So, with this setup, you can run either oolite_real.exe when you want to have the standard game or oolite.exe when you want the developer version. Note that in this setup both versions will be sharing exactly the same set of OXPs / OXZs.

Re: Oolite and Oolite OXP Developer versions on Windows

Posted: Fri Aug 27, 2021 8:28 pm
by Commander Mick
Doesn't matter what I do, I keep on getting the same error.