An other "ManagedOXPs" directory/folder and a test mode

An area for discussing new ideas and additions to Oolite.

Moderators: another_commander, winston

Post Reply
commander_STyx2909
Dangerous
Dangerous
Posts: 77
Joined: Sun Dec 13, 2020 1:22 pm

An other "ManagedOXPs" directory/folder and a test mode

Post by commander_STyx2909 »

Something not so hard to achieve on the coding side I think.

:arrow: OXPs authors and testers (learners too, I hope I will fit the 3 somedays) would require a dedicated directory for their OXPs while keeping current one for their "career" mode. I mean, running a normal profile in the game while moving OXPs back and forth to ensure compatibility is a bit of a hassle on files management.

A "test mode" (or whatever name) in the game menu, loading OXPs but from ManagedOXPs (TestOXps?, anyone for a name?) would be appreciated. We don't care it is managed by the OXP Manager. The goal is to run two different version of the game simply.

While I am thinking about it, Secondary OXPs would fit anyone, probably.
Asus K61ic, 4Gb RAM, Nvidia GT220M (1Gb VRAM), OpenGL renderer version: 3.3.0 ("3.3.0 NVIDIA 340.108").
Ubuntu 20.06. :mrgreen:
User avatar
Reval
---- E L I T E ----
---- E L I T E ----
Posts: 402
Joined: Thu Oct 29, 2020 3:14 am
Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by Reval »

Wouldn't that be complicating things a bit unnecessarily? (unless I have misunderstood your point).

We develop and test our OXPs - at least I do - in the AddOns directory, starting Oo with the shift-key when we wish it to flush the cache for the new changes. When all is good and bug-free, we zip up the contents of our OXP folder, re-name it .oxz, and upload it to the Manager and the Wiki.

The process is simple and straightforward enough already, n'est-ce pas?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
User avatar
stranger
---- E L I T E ----
---- E L I T E ----
Posts: 351
Joined: Thu Apr 05, 2018 5:31 am
Location: Vladivostok, Russia

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by stranger »

And it is easy to manage experimental packages in AddOns folder without adding/removing content. Just change MyAnotherCoolIdea.oxp to MyAnotherCoolIdea.oxp OFF to temporary disable it, edit, change to MyAnotherCoolIdea.oxp again to activate it, test!
commander_STyx2909
Dangerous
Dangerous
Posts: 77
Joined: Sun Dec 13, 2020 1:22 pm

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by commander_STyx2909 »

Thank you for pointing this. A neat solution to test a simple OXP.

My point is rather on testing multiple OXPs at once.
Asus K61ic, 4Gb RAM, Nvidia GT220M (1Gb VRAM), OpenGL renderer version: 3.3.0 ("3.3.0 NVIDIA 340.108").
Ubuntu 20.06. :mrgreen:
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16052
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by Cody »

You could have a 'career' build and a test build - but I guess that ain't what you want.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
commander_STyx2909
Dangerous
Dangerous
Posts: 77
Joined: Sun Dec 13, 2020 1:22 pm

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by commander_STyx2909 »

Cody wrote: Mon Dec 28, 2020 11:12 am
You could have a 'career' build and a test build - but I guess that ain't what you want.
I tried it, but I found out, both are interacting. Either if one is installed for the whole system and the other for myself, they both point out to the GNUStep folder in my Home directory...
One solution would be to compile a version for myself, but I'm not found of it either.

I need to take a look into running VM.
Asus K61ic, 4Gb RAM, Nvidia GT220M (1Gb VRAM), OpenGL renderer version: 3.3.0 ("3.3.0 NVIDIA 340.108").
Ubuntu 20.06. :mrgreen:
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16052
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by Cody »

commander_STyx2909 wrote: Mon Dec 28, 2020 12:48 pm
... they both point out to the GNUStep folder in my Home directory...
You're on LInux, so you'd perhaps need a penguinista's help, but multiple installs works fine on Windows.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
stranger
---- E L I T E ----
---- E L I T E ----
Posts: 351
Joined: Thu Apr 05, 2018 5:31 am
Location: Vladivostok, Russia

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by stranger »

Well, there is old trick to switch multiple OXPs at once.
1. Create folder MyTestingGround in your AddOns folder
2. Place all your experimental OXPs onto this folder
3. Add .oxp expansion to this folder.
MyTestingGround -> MyTestingGround.oxp
Now you can switch this "super-OXP": MyTestingGround.oxp <-> MyTestingGround.oxp OFF

Before Oolite 1.80 all my OXPs were grouped such way

AddOns
-->Ooniversum.oxp
---->AmbienceOne.oxp
---->AmbienceTwo.oxp
...
-->GameMechanics.oxp
---->MechOne.oxp
---->MechTwo.oxp
...
etc.
commander_STyx2909
Dangerous
Dangerous
Posts: 77
Joined: Sun Dec 13, 2020 1:22 pm

Re: An other "ManagedOXPs" directory/folder and a test mode

Post by commander_STyx2909 »

stranger wrote: Mon Dec 28, 2020 2:07 pm
Well, there is old trick to switch multiple OXPs at once.
1. Create folder MyTestingGround in your AddOns folder
2. Place all your experimental OXPs onto this folder
3. Add .oxp expansion to this folder.
MyTestingGround -> MyTestingGround.oxp
Now you can switch this "super-OXP": MyTestingGround.oxp <-> MyTestingGround.oxp OFF

Before Oolite 1.80 all my OXPs were grouped such way

AddOns
-->Ooniversum.oxp
---->AmbienceOne.oxp
---->AmbienceTwo.oxp
...
-->GameMechanics.oxp
---->MechOne.oxp
---->MechTwo.oxp
...
etc.
thank you!
Asus K61ic, 4Gb RAM, Nvidia GT220M (1Gb VRAM), OpenGL renderer version: 3.3.0 ("3.3.0 NVIDIA 340.108").
Ubuntu 20.06. :mrgreen:
Post Reply