I need help with ship editing

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

Moderators: winston, another_commander

Old Hand Jameson
Poor
Poor
Posts: 6
Joined: Fri May 31, 2013 6:42 pm

I need help with ship editing

Post by Old Hand Jameson »

Hi all,

I'm new here, but not in the world of Elite. Starting in 1986, I've made the Elite status three times. On C64 in the original game, then on Amiga 500 in Frontier and Amiga 1200 in Close Encounters. And that, in my eyes, give me the right to - for the first time in Elite - try to mod two things here. Yes, it is a kind of cheating, but now I have very, very little time for playing (stressful job, kids etc etc...) and I've earned it three times :D

I want to make Fer-de-Lance cargo hold with 100 tonnes, and I want to make Naval Energy Unit to be, say, 10 times faster.

How do I make it?

I've tried to change those values in Ship Description with text editor, but to no avail. Whatever value I put on Player's ship, it stays the same. So it has to be something else.

How do you edit parameters of ships and equipment? (PC, Win7 - running in XP Compatibility mode for Oolite)

Thank you all!
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:

Re: I need help with ship editing

Post by Cody »

Old Hand Jameson wrote:
PC, Win7 - running in XP Compatibility mode for Oolite
Might one ask why? Oh... and welcome aboard.

After your changes, did you restart Oolite with the shift key held down until the spinning Cobra appears? If not, you need to.
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!
Old Hand Jameson
Poor
Poor
Posts: 6
Joined: Fri May 31, 2013 6:42 pm

Re: I need help with ship editing

Post by Old Hand Jameson »

Cody wrote:
Might one ask why? Oh... and welcome aboard.
Because I figured it's more stable that way, read somewhere that it's XP optimised. And thank you!
Cody wrote:
After your changes, did you restart Oolite with the shift key held down until the spinning Cobra appears? If not, you need to.
No, I haven't. What does it do, force the software to read from those files?
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:

Re: I need help with ship editing

Post by Cody »

I run Oolite in Win 7 Ultimate 64-bit as is - it works fine, better than XP in fact. The shift key thingy clears the cache.
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!
Old Hand Jameson
Poor
Poor
Posts: 6
Joined: Fri May 31, 2013 6:42 pm

Re: I need help with ship editing

Post by Old Hand Jameson »

Oooohhh.... you are saying that the changes will be implemented, once the cache is cleared?

I was fiddling with those last night, had a couple of resets in that time, and the game was all time taking the values from the original cache?
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:

Re: I need help with ship editing

Post by Cody »

Old Hand Jameson wrote:
Oooohhh.... you are saying that the changes will be implemented, once the cache is cleared?
<nods, grinning> It's gotta be done every time you make an internal change (adding a new OXP will flush the cache anyway).
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!
Old Hand Jameson
Poor
Poor
Posts: 6
Joined: Fri May 31, 2013 6:42 pm

Re: I need help with ship editing

Post by Old Hand Jameson »

Cody dude, thank you very much! My shift ends at midnight, and I can hardly wait to come home and try my enhanced ship!

Thank you!
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:

Re: I need help with ship editing

Post by Cody »

Old Hand Jameson wrote:
... read somewhere that it's XP optimised.
I'm curious as to where you read that. Which version of Oolite are you running, btw - 1.77?
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
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: I need help with ship editing

Post by Smivs »

Hi Old Hand Jameson, and welcome.
Re the hold, yes just change the relevant line in the shipdata.plist for the player version. I expect you've worked it out.

Code: Select all

max_cargo = 100;
I'm not sure if you can do anything about the Energy unit though, unless you are prepared to delve into the core game code. The recharge rate is not open to scripting as far as I know.
Commander Smivs, the friendliest Gourd this side of Riedquat.
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:

Re: I need help with ship editing

Post by Cody »

Smivs wrote:
The recharge rate is not open to scripting as far as I know.
I presumed he meant tweaking his ship's energy_recharge_rate in shipdata.plist - yes?
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
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: I need help with ship editing

Post by Smivs »

Ah, with you.
I thought we were talking a tweak of the actual Naval Energy Unit itself.
Commander Smivs, the friendliest Gourd this side of Riedquat.
Old Hand Jameson
Poor
Poor
Posts: 6
Joined: Fri May 31, 2013 6:42 pm

Re: I need help with ship editing

Post by Old Hand Jameson »

This works fine. I've changed some data in shipdata.plist, and "the shift thingy" did it's job. I can change cargo hold size, toughnes of the ship etc etc, but the recharge rate is not there.

I've done hex editing before, but here it's hard - there's no comparable data on laser power (the actual strength, so I can search for that hexadecimal numbers, clustered lines with data on various shield strengths etc). Same goes with the recharge rate and a lot of other data... they are all hardcoded in the oolite.exe. Has anyone been fiddling with that?

Regarding the "runs better on XP Compatibility", I'm not quite sure where I've read it, and it's wrong. Last night I've tried it normaly, and it runs perfect. Win7 32. And I run the 1.76,1.
User avatar
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: I need help with ship editing

Post by Fatleaf »

Old Hand Jameson wrote:
This works fine. I've changed some data in shipdata.plist, and "the shift thingy" did it's job. I can change cargo hold size, toughnes of the ship etc etc, but the recharge rate is not there.
Hi, Have a look at line 1567 of the file Oolite/oolite.app/Resources/config/shipdata.plist

You will see the line in the section
"ferdelance-player" =

Code: Select all

energy_recharge_rate = 4.5;
Change the 4.5 to something above 6 to really see a difference.
Last edited by Fatleaf on Sat Jun 01, 2013 7:37 am, edited 1 time in total.
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: I need help with ship editing

Post by Smivs »

It might be that there is a cap on base energy_recharge_rate.
The maximum base rate seems to be '5', with the extra energy unit multiplying this by 1.8 (9) and the naval energy unit by 2.6 (13). Therefor 13 might be the maximum possible rate.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Fatleaf
Intergalactic Spam Assassin
Intergalactic Spam Assassin
Posts: 1988
Joined: Tue Jun 08, 2010 5:11 am
Location: In analysis mode on Phaelon
Contact:

Re: I need help with ship editing

Post by Fatleaf »

I have my Test ship set at 7.8 and that works away fine. That's with all the bells and whistles.
I also had a look at the wiki and that states that stations are set at 100!
Find out about the early influences of Fatleaf here. Also his OXP's!
Holds the Ooniversal record for "Thread Necromancy"
Post Reply