OXP Variables

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
Commander McLane
---- E L I T E ----
---- E L I T E ----
Posts: 9520
Joined: Thu Dec 14, 2006 9:08 am
Location: a Hacker Outpost in a moderately remote area
Contact:

Post by Commander McLane »

Kaks wrote:
And I'm still not done! I found 2 more - minor - glitches this morning, I wonder what I'll find when I sort those two out!
What about that after saving a commander you return to the last page of equipment on the status screen, instead of the first one?
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Post by Cmd. Cheyd »

Actually, I was hoping this idea would grab hold a little more. For SysRed 2.0, I'd like to offer the user a total of 8 or so things that COULD be user-modified. Some would utilize Booleans, some integers. Some examples:
Texture Main Planets? Y/N
Add Additional Planets? Y/N
Max Number of Planets: 0-10
Texture Additional Planets? Y/N

Now, I can (and do inside the script) eliminate one of those by using Max_Planets = 0 to just shut down that function. Still, you get the point.

Additionally, I've had to create a second OXP to toggle an easter-egg function of SysRed 2.0 on/off. Literally, the second OXP is a script that sets ONE value to true. That's all. If this OxpConfig 2.0 thing came about, I could just allow the user to set it to True/False as they preferred.

I'll include documentation to turn all the options on/off inside the script itself, and I've HEAVILY commented the code so hopefully even newb's can do it. But still, it'd be MUCH nicer if this could be handled inside a GUI framework and take some of the possibility for "stupid user tricks" out of the question.
User avatar
Thargoid
Thargoid
Thargoid
Posts: 5528
Joined: Thu Jun 12, 2008 6:55 pm

Post by Thargoid »

So all your toggling except max number of planets (including the easter egg) can already be comfortably handled by OXPConfig...

And as you've already done, you can set the max_planets manually within the script - it's not exactly rocket science to open a file in a text editor and change a value in it (other than choosing the right text editor to use of course :roll: ).
User avatar
Cmd. Cheyd
---- E L I T E ----
---- E L I T E ----
Posts: 934
Joined: Tue Dec 16, 2008 2:52 pm
Location: Deep Horizon Industries Manufacturing & Research Site somewhere in G8...

Post by Cmd. Cheyd »

That was a short list... I guess overall it would be:
Texture Main Planet? (Y/N)
Max Additional Planets? (0-10, 0 = disabled)
Texture Added Planets? (Y/N)
Max Additional Moons? (0-20, 0 = disabled)
Texture Added Moons? (Y/N)
Alter Sun Properties? (Y/N)
Easter Egg? (Y/N)
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Post by Cody »

Thargoid wrote:
it's not exactly rocket science to open a file in a text editor and change a value in it
I tend to agree, Thargoid.

However, to some people who might be new to gaming and coding, it may seem like “rocket science”… all those parentheses etc.
If you follow the basic rules (i.e. make a backup, use the right text editor) you can work it out. But to a “newbie” (I’ve never liked that word) it can be a bit daunting.
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
PhantorGorth
---- E L I T E ----
---- E L I T E ----
Posts: 647
Joined: Wed May 20, 2009 6:48 pm
Location: Somewhere off the top left of Galaxy 1 map

Post by PhantorGorth »

Thargoid wrote:
And as you've already done, you can set the max_planets manually within the script - it's not exactly rocket science to open a file in a text editor and change a value in it (other than choosing the right text editor to use of course Rolling Eyes ).
You forget to mention that you have to find the right file which could be installed in various different places depending on your install (I found this out today when I installed the ubuntu 1.73.3 package of Oolite) and then you have make sure you don't accidentally do anything else to the file that could knacker it. This is often enough to put a lot of people off. This is one of the reasons why Windows PC and Macs outstrip Linux in peoples homes. Linux got it reputation of requiring you to open a console to type commands or edit config files to get more than the basics done. That reputation is really no longer valid but it sticks in peoples minds and gets trotted out regularly. People prefer to point and click within the same environment and no more than the minimal amount of typing in text boxes. I would even go as far as saying that editing script files method of configuring systems is in most peoples eyes a sign of unfinished/half-baked software. I am not saying that this is right for people to think this but they do. Maybe most users are spoiled but that is the world we live in.

Cmd. Cheyd's OXP is an example of the OXP that does require a upgraded version of OXPConfig the lack of which was the only thing stopping me from pushing on this. Though I have to say that Oolite's GUI's vagaries could be an issue in getting it done.
Post Reply