Join us at the Oolite Anniversary Party -- London, 7th July 2024, 1pm
More details in this thread.

[RELEASE] Hyperspace Hangar OXP

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: another_commander, winston

Post Reply
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

I've figured out what causes the bug: OOCheat itself.
I tested with OOCheat, and the bug happened as described. But, without OOCheat, and with xml editing skills, the bug does not happen.
Now what we need to figure out is why.
(Also, is there a way to attach images to posts? Also also, I am being grabbed by real life. bye.)
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Cody »

Ramen wrote:
Also, is there a way to attach images to posts?
Upload them to a host, then link to them.
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
Norby
---- E L I T E ----
---- E L I T E ----
Posts: 2577
Joined: Mon May 20, 2013 9:53 pm
Location: Budapest, Hungary (Mainly Agricultural Democracy, TL10)
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Norby »

Ramen wrote:
is there a way to attach images to posts?
Probably you missed my recent post.

You are needed here, thanks for your help in debug - I like laziness also. ;)
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: [RELEASE] Hyperspace Hangar OXP

Post by Day »

Ramen wrote:
Wait,
So it happens even if nothing but OOCheat is installed?
I'm going to have to test this myself.
Yes. Well, at least on my computer.
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: [RELEASE] Hyperspace Hangar OXP

Post by Day »

Ramen wrote:
I've figured out what causes the bug: OOCheat itself.
I tested with OOCheat, and the bug happened as described. But, without OOCheat, and with xml editing skills, the bug does not happen.
Now what we need to figure out is why.
Huh? Well, I used OOCheat just because I needed lots of money quickly to test this with a new game, but I didn't use it when I was testing with my own savegames.

When you say "xml editing skills", you mean you tested by editing your money account in the xml savegame directly?
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

Back from real life. What I meant was that with OOCheat uninstalled, I found the credits key within my save file directly, as you said, and added a bunch of zeros. It worked. But when I added money with OOCheat, it didn't. Which is what I said "and now we need to figure out why" about.
Sorry for the confusion.Also, did you have OoCheat installed even if you weren't using it? Silly question, I just looked at the list and it isn't there. By how much does your money exceed the fee? I might need to look at the price aspect of my storage function.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

I figured out that it is not OOCheat, sorry about that. I think I have narrowed the problem down to the price check function.
I'm going to take a look at it right now.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

Alright, I have identified and fixed the problem. Basically, the check to see if the player had enough money to use the hangar was using variables that were updated by the ship being bought. Unfortunately, I cannot get the wiki to load right now, so you will all have to wait. Sorry :(.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Day
---- E L I T E ----
---- E L I T E ----
Posts: 545
Joined: Tue Mar 03, 2015 11:35 am
Location: Paris

Re: [RELEASE] Hyperspace Hangar OXP

Post by Day »

Yay!! It's nice it's fixed :-)
I really really wanted to enjoy the ability to have several ships.
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

Yeah, it is nice to have something working.
Unfortunately, you might find yourself having too many ships due to a bug I re-re-re-re-uncovered while fixing yours.
Anyway, I am going to upload this partially fixed version, since the bug isn't dehabilitating.

EDIT:
Alright, version 1.6.4 is available from the expansion manager or http://wiki.alioth.net/img_auth.php/c/c ... _1.6.4.oxz.
A side note: the hangar is incompatible with the shield cycler equiment, as I just found out. In general, if it doesn't show up under equipment, it won't be saved. Another (perhaps more serious) sidenote: This version WILL muck up your savefile if you save with it. It will not make it unusable, it will just save a crapton of ships if you look at the shipyard a lot. For this reason, the next version will have a savefile purge option.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Lone_Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 546
Joined: Wed Aug 08, 2007 10:59 pm
Location: Netherlands

Re: [RELEASE] Hyperspace Hangar OXP

Post by Lone_Wolf »

Ramen wrote:
the hangar is incompatible with the shield cycler equiment, as I just found out. In general, if it doesn't show up under equipment, it won't be saved.
No need for special measures for SC, Norby and i have already talked about solving that.
Check Ship Storage helper thread, page 4 for details.
OS : Arch Linux 64-bit - rolling release

OXPs : My user page

Retired, reachable at [email protected]
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

Alright, thanks. :)
Also, a bit late though, when I said "am I needed here", it should have probably been appended with "If not, call me if you need me, and I will help". That was the intent anyway. It looked like you guys had it under control. Sorry for the confusion.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

Alright! I finally, most definitely™ killed that bug. You can find the new version from http://wiki.alioth.net/img_auth.php/5/5 ... _1.6.5.oxz or from the expansion manager, as per usual. I unfortunately forgot about the purge option. Selling the extra ships also works, but this may seem like cheating to some. If you absolutely cannot stand the savefile problem and cannot wait, I will point you in the right direction.
Do one of these two things:

- Open up your savefile and delete the line <key>mission_hyperSpace_namesStored</key>, as well as from <string> to </string> below it. You might want to back up your savefile. Run Oolite with the hangar installed and save. This will delete all of your of your stored ships, as well as restoring the options to default.

- Sell all the ships, keeping tally of how much money you make. Save and exit Oolite. Open your savefile and find the <credits> key. Multiply the amount of money you gained by 10 (this is including that .5 or whatever), and then subtract it from the number listed there. Replace the old listing with the number you just got.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Ramen
Deadly
Deadly
Posts: 138
Joined: Sat Apr 18, 2015 5:36 pm
Location: Mountain View, CA, USA
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Ramen »

Version 1.8.0 is out. (version 1.7.0 had a lifespan of not 30 minutes)
New features(!) include:

-Remove ships option. This removes them entirely, without refund.
-OXPConfig is now optional, though recommended; You cannot use options without OXPConfig.

Available from: http://wiki.alioth.net/img_auth.php/4/4 ... _1.8.0.oxz or the expansion manager.
That is not my desk.
I find this lack of milk... disturbing.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16063
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: [RELEASE] Hyperspace Hangar OXP

Post by Cody »

Ramen wrote:
Version 1.8.0 is out. (version 1.7.0 had a lifespan of not 30 minutes)
<chuckles> Enjoying the cookies?
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!
Post Reply