How do I? .... (on Debug Console)

For test results, bug reports, announcements of new builds etc.

Moderators: another_commander, winston, Getafix

User avatar
Cholmondely
Archivist
Archivist
Posts: 6573
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: How do I? .... (on Debug Console)

Post by Cholmondely »

Just to say: I've put a summary of everything I've so far found at the top of this thread, together with links to Hiran's indispensible databases (useful for names of equipment/ships recognisable by the debug console).
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
phkb
Impressively Grand Sub-Admiral
Impressively Grand Sub-Admiral
Posts: 5633
Joined: Tue Jan 21, 2014 10:37 pm
Location: Writing more OXPs, because the world needs more OXPs.

Re: How do I? .... (on Debug Console)

Post by phkb »

A couple of notes:

Code: Select all

P.credits = 1000
This will set your credit balance to 1000, not add to it. To add credits, you need to do this:

Code: Select all

P.credits += 1000
On awarding self another ship, I would recommend only doing this while docked, not when in flight.
User avatar
Cholmondely
Archivist
Archivist
Posts: 6573
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: How do I? .... (on Debug Console)

Post by Cholmondely »

phkb wrote: Mon Jan 24, 2022 1:19 am
A couple of notes:

Code: Select all

P.credits = 1000
This will set your credit balance to 1000, not add to it. To add credits, you need to do this:

Code: Select all

P.credits += 1000
On awarding self another ship, I would recommend only doing this while docked, not when in flight.
Umm.. thank you!
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Cholmondely
Archivist
Archivist
Posts: 6573
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: How do I? .... (on Debug Console)

Post by Cholmondely »

Cause a docked dockable (liner, behemoth) etc to buzz off to another system with you inside:

PS.dockedStation.exitSystem(insert number of an adjacent system here).

From https://bb.oolite.space/viewtopic.ph ... 44#p174544 (Commander McLane 2012)
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
User avatar
Cholmondely
Archivist
Archivist
Posts: 6573
Joined: Tue Jul 07, 2020 11:00 am
Location: The Delightful Domains of His Most Britannic Majesty (industrial? agricultural? mainly anything?)
Contact:

Re: How do I? .... (on Debug Console)

Post by Cholmondely »

Copied from elsewhere:

Spawning a ship:

Code: Select all

:spawn <roleOfEntityYouWantToSpawn>
e.g. to spawn a pirate you execute :spawn pirate. List of roles: [EliteWiki] Oolite Ship Roles

If you want a specific ship, you can use its [EliteWiki] shipdata.plist key enclosed in square brackets e.g. :spawn [cobra3-trader]. Note the colon as the first character of the command, in this case it is required.

With the above you can spawn pirate coves, pirates, traders and whatever else you may want to in order to do a test. This way you reduce the 'good luck' factor a lot and hopefully you will be able to perform your tests much faster than having to wait for the game to generate the ideal conditions for you.

Source: another_commander (2016)
Comments wanted:
Missing OXPs? What do you think is missing?
Lore: The economics of ship building How many built for Aronar?
Lore: The Space Traders Flight Training Manual: Cowell & MgRath Do you agree with Redspear?
Post Reply