Question: what is Order 5 ?

Freeform discussion about anything related to modding Transcendence.
Post Reply
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

I know alot of orders : like take out the trash, wash the dishes ; but this on has me curious :)

Code: Select all

	Unable to continue due to program error.

program state: OnAnimate
program state: updating object
obj class: CShip
obj name: EI100/M-class missileship
obj pointer: 574a8b0
CStandardShipAI
Order: 5
m_State: 32
m_pDest: none
m_pTarget: none
m_pNavPath: FROM: 534bbd8 NavBeacon Eridani-790 (CStation) TO: 532e3e0 Travel Advisory (CStation)
game state: in game
strangest code I ever got :)
I have since removed the ship from the traffic calls : I THINK it was attacked near the gate but the Ronin have about the same qualities and I rarely mess up with them.
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

Here is the list of order codes. These are useful only for debugging. For mods you can just use the order name.

Code: Select all

1 = "guard"
2 = "dock"
3 = "attack"
4 = "wait"
5 = "gate"
6 = "gateOnThreat"
7 = "gateOnStationDestroyed"
8 = "patrol"
9 = "escort"
10 = "scavenge"
11 = "followPlayerThroughGate"
12 = "attackNearestEnemy"
13 = "tradeRoute"
14 = "wander"
15 = "loot"
16 = "hold"
17 = "mine"
18 = "waitForPlayer"
19 = "attackPlayerOnReturn"
20 = "follow"
21 = "navPath"
22 = "goto"
23 = "waitForTarget"
24 = "waitForEnemy"
25 = "bombard"
26 = "approach"
27 = "aim"
28 = "orbit"
29 = "holdCourse"
30 = "turnTo"
31 = "attackHold"
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Thanks for the list George. Will all of those work for shpOrder?
Get your own Galactic Omni Device
Get it now. It's free!!
Image
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Oh nice, I've always been wondering what those orders meant. Is there any way to get this though debuglog or transdata by any chance? (*goes off to add this to wiki)
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

RPC wrote:Oh nice, I've always been wondering what those orders meant. Is there any way to get this though debuglog or transdata by any chance? (*goes off to add this to wiki)
RPC, can we agree to add this to the function legend part on orders? If we get a confirmation from george that they all can be used for the shpOrder function then it would be a natural fit
Get your own Galactic Omni Device
Get it now. It's free!!
Image
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Ok, go ahead alterecco. I'll add it to the "From George" section in the meantime.
Note: I tried to add the list the way it was done in the other sections, using <code>, but it ended up looking messy so I just used "\\ " in the meanwhile to keep everything in line.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
shanejfilomena
Fleet Officer
Fleet Officer
Posts: 1533
Joined: Tue Mar 22, 2011 8:43 pm
Location: Alaska
Contact:

THANK YOU :)

* note for others: I have used most of these orders on ships in the game during testing of bad ideas .

' NavPath i never used: I have instead used " traderoute" ( basically it is TAFN )

Code: Select all

<Events>
<OnAttacked>
;we can not go out like a wimp
(block Nil
							(shpCancelOrders gSource)
							(shpOrder gSource 'attack aAttacker)
                                                           
                                                          (shpOrder gSource "traderoute")     ))
</OnAttacked>
		</Events>
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
george moromisato
Developer
Developer
Posts: 2998
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

alterecco wrote:Thanks for the list George. Will all of those work for shpOrder?
I'm not 100% sure what works and what doesn't, so I think this should go on the Wiki and we can edit it as we discover more. I know for a fact the following:

1. followPlayerThroughGate, waitForPlayer, and attackPlayerOnReturn are designed to handle wingmen gating with the player. They may or may not work if you issue the order manually.

2. navPath works, but it expects a navPathID, which there is no way to generate currently.

3. "mine" is only implemented by the Ferian ship controller. The default controller does not understand the order. [Long term I want to deprecate these kinds of complex orders and implement it all in script at a higher level. That includes orders like scavenge, tradeRoute, and wander.]

4. The remaining orders should all work (and are very likely used in the source code--search for the order in the source [put a leading single-quote to help disambiguate]).

5. I'm happy to answer more detailed questions as they come up.
User avatar
alterecco
Fleet Officer
Fleet Officer
Posts: 1658
Joined: Wed Jan 14, 2009 3:08 am
Location: Previously enslaved by the Iocrym

Thanks! Right now i can not think of any specific questions, but if you want to add some info on the wiki that would be awesome. I updated the list here: http://wiki.neurohack.com/transcendence ... hip_orders
Get your own Galactic Omni Device
Get it now. It's free!!
Image
User avatar
Arisaya
Fleet Admiral
Fleet Admiral
Posts: 5535
Joined: Tue Feb 05, 2008 1:10 am
Location: At the VSS Shipyards in the frontier, designing new ships.

Ah, so that would explain the order number displayed in the crash logs.
(shpOrder gPlayership 'barrelRoll)

<New tutorials, modding resources, and official extension stuff coming to this space soon!>
Post Reply