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

Debuging and qualifying my f... OXP

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

Moderators: winston, another_commander

User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Debuging and qualifying my f... OXP

Post by McDjanoff »

Hello,

I am exploring the OXP world and made some tests with.

My problem is to qualify the OXP.
I've read many wiki entries and forums but don't found what I seek. There is an interesting debug.oxp, the logginf capacity of oolite itself, but not so well documented.

I think experienced OXPers have some recipes to verify how their OXP works.

Could you please expose your methods to help me ?

Regards,
B.
"In the space bar, the barbarians of all races"
User avatar
Killer Wolf
---- E L I T E ----
---- E L I T E ----
Posts: 2268
Joined: Tue Jan 02, 2007 12:38 pm

Post by Killer Wolf »

huh?
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Debuging and qualifying my f... OXP

Post by Smivs »

McDjanoff wrote:
Hello,

I am exploring the OXP world and made some tests with.

My problem is to qualify the OXP.
I've read many wiki entries and forums but don't found what I seek. There is an interesting debug.oxp, the logginf capacity of oolite itself, but not so well documented.

I think experienced OXPers have some recipes to verify how their OXP works.

Could you please expose your methods to help me ?

Regards,
B.
Hi McDjanoff,
So you've made an OXP and you want to know how to test it, is that right?
Probably a good start is to load it into your AddOns folder and actually play it to start with.
It might help a bit if you could give some more details, as this may affect how you test it. For instance is it a new ship, or variation on an existing one? Is it a mission? Is it some eye-candy to make Oolite look prettier?
If you can give us a better idea what you're doing, someone here will probably be able to help you out.
Regards,
Smivs.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Post by McDjanoff »

Hello,

Thank you for your anwers.

For my first OXP, I follow the tutorial found on the wiki : http://wiki.alioth.net/index.php/OXP_tutorial and work from ACDK's OXP : illicit unlock.

My goal is to fly with vessels not found on the market or some uniq models based on Griff's works as illicit unlock does, but with a better chance to found them.

So I've made duplicate illicit unlock directory, some haks on shipdata.plist and shipyard.plist and deploy the result in AddOns.
I code the same chance as for Adder, Python or Cobra MKI.

The logs indicate that oolite have took the OXP, but I never see one of my vessel proposed on the market.

I think there is something which don't work properly, and I don't want to spend too many hours in try and test if I can monitor my OXP process by oolite.

Regards,
B.

NB :
In my future projects I would like to have some better radar and hud functions as switching target, better target follow-up, display more informations ans so on ...
I would like also select the container to eject. A lot of small points in fact.
"In the space bar, the barbarians of all races"
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Post by Smivs »

McDjanoff wrote:
Hello,

Thank you for your anwers.

For my first OXP, I follow the tutorial found on the wiki : http://wiki.alioth.net/index.php/OXP_tutorial and work from ACDK's OXP : illicit unlock.

My goal is to fly with vessels not found on the market or some uniq models based on Griff's works as illicit unlock does, but with a better chance to found them.

So I've made duplicate illicit unlock directory, some haks on shipdata.plist and shipyard.plist and deploy the result in AddOns.
I code the same chance as for Adder, Python or Cobra MKI.

The logs indicate that oolite have took the OXP, but I never see one of my vessel proposed on the market.
The frequency of ships at shipyards is determined by the 'Chance' entry near the top of the shipyard.plist. This also determines the frequency of equipment fitted. The higher the number the more likely the ship is to appear. It is also dependent on Tech Level (near the bottom of the shipyard.plist). A lower number here will increase the frequency by making the ship available at more planets.
McDjanoff wrote:
NB :
In my future projects I would like to have some better radar and hud functions as switching target, better target follow-up, display more informations ans so on ...
I would like also select the container to eject. A lot of small points in fact.
You can already cycle through the cargo to decide what to eject. Use 'R' (Shift-r) to cycle through the cargo, then 'd' to eject what you've selected.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6884
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

McDjanoff wrote:
In my future projects I would like to have some better radar and hud functions as switching target, better target follow-up, display more informations ans so on ...
You can switch between targets now, using the Multi-Targeting System and the Target System Memory Upgrade.
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Post by McDjanoff »

Smivs wrote:

The frequency of ships at shipyards is determined by the 'Chance' entry near the top of the shipyard.plist. This also determines the frequency of equipment fitted. The higher the number the more likely the ship is to appear. It is also dependent on Tech Level (near the bottom of the shipyard.plist). A lower number here will increase the frequency by making the ship available at more planets.

[...]

You can already cycle through the cargo to decide what to eject. Use 'R' (Shift-r) to cycle through the cargo, then 'd' to eject what you've selected.
I've read the wiki documentation about "Chance" and "Tech Level" entries :), but I completely miss the Cargo Cycle command.

Thank you for your help Smivs.

Regards,
B.
"In the space bar, the barbarians of all races"
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Post by McDjanoff »

Disembodied wrote:
McDjanoff wrote:
In my future projects I would like to have some better radar and hud functions as switching target, better target follow-up, display more informations ans so on ...
You can switch between targets now, using the Multi-Targeting System and the Target System Memory Upgrade.
Correct me if I am wrong, but you may cycle between already acquired targets, and you can't select target class as ennemies, cargo or all to scan the surround ?

I'll get a try next play time and thanks for your help.

Regards,
B.
"In the space bar, the barbarians of all races"
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Post by McDjanoff »

This is what I name a good recipe :
Ahruman wrote:
Oolite has what amounts to a spell checker for shipdata.plist, called the OXP verifier. It can currently only be invoked from the command line.

On Windows or Linux:

Code: Select all

oolite.app/oolite --verify-oxp <path to OXP>
On Mac OS X:

Code: Select all

Oolite.app/Contents/MacOS/Oolite --verify-oxp <path to OXP>
How can I have missed that ???

Regards,
B.
"In the space bar, the barbarians of all races"
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6884
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

McDjanoff wrote:
Correct me if I am wrong, but you may cycle between already acquired targets, and you can't select target class as ennemies, cargo or all to scan the surround ?

I'll get a try next play time and thanks for your help.

Regards,
B.
No, you're right, you have to choose your targets manually, but once they're selected you can store them and select others, and then swap between the targets that you've picked. And you can't automatically select all cargo canisters as targets, or all enemies.
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Post by McDjanoff »

Hello,

I would like this for canister hunting because I am fed up to seek them in the dark :?.
I've check my aboard computer and I found a ... ZX-81, so I understand better the poor capacities of the tracking system. I must upgrade it.

Regards,
B.
"In the space bar, the barbarians of all races"
User avatar
Disembodied
Jedi Spam Assassin
Jedi Spam Assassin
Posts: 6884
Joined: Thu Jul 12, 2007 10:54 pm
Location: Carter's Snort

Post by Disembodied »

If you're finding it difficult tracking down cargo canisters, try zooming in the scanner when you're at close range (the default key is "z", I think). In the absence of sophisticated onboard automation it makes scooping cans a lot easier!
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 »

McDjanoff wrote:
I've check my aboard computer and I found a ... ZX-81...
:lol: :lol: :lol:
User avatar
McDjanoff
Competent
Competent
Posts: 33
Joined: Fri Apr 16, 2010 11:13 am
Location: Space Bars or somewhere in space

Get my first OXP works ! but ....

Post by McDjanoff »

Hello,

I've succeed to have my first OXP working. I thank every body for the help.
I can now fly with 'illicit vessels' which have no other interest than my curiosity.

During the tests, I've got a weird thing : the change I've made don't take effect at the next reload of the game as there is a persistant layer keeping the old data. I've seek for a cache or similar thing and don't ffind anything.

Is the normal way of working for Oolite app ?

Regards,
B.
"In the space bar, the barbarians of all races"
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Post by JensAyton »

Yes, there is a cache. It is refreshed if the immediate contents of the AddOns folder change, but not if OXP contents change. Hold down shift during startup to flush it (or use the always-flush-cache hidden setting).
Post Reply