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: 2997
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: 2997
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
Aury
Fleet Admiral
Fleet Admiral
Posts: 5421
Joined: Tue Feb 05, 2008 1:10 am
Location: Somewhere in the Frontier on a Hycrotan station, working on new ships.

Ah, so that would explain the order number displayed in the crash logs.
(shpOrder gPlayership 'barrelRoll)
(plySetGenome gPlayer (list 'Varalyn 'nonBinary))
Homelab Servers: Xeon Silver 4110, 16GB | Via Quadcore C4650, 16GB | Athlon 200GE, 8GB | i7 7800X, 32GB | Threadripper 1950X, 32GB | Atom x5 8350, 4GB | Opteron 8174, 16GB | Xeon E5 2620 v3, 8GB | 2x Xeon Silver 4116, 96GB, 2x 1080ti | i7 8700, 32GB, 6500XT
Workstations & Render machines: Threadripper 3990X, 128GB, 6900XT | Threadripper 2990WX, 32GB, 1080ti | Xeon Platinum 8173M, 48GB, 1070ti | R9 3900X, 16GB, Vega64 | 2x E5 2430L v2, 24GB, 970 | R7 3700X, 32GB, A6000
Gaming Systems: R9 5950X, 32GB, 6700XT
Office Systems: Xeon 5318Y, 256GB, A4000
Misc Systems: R5 3500U, 20GB | R5 2400G, 16GB | i5 7640X, 16GB, Vega56 | E5 2620, 8GB, R5 260 | P4 1.8ghz, 0.75GB, Voodoo 5 5500 | Athlon 64 x2 4400+, 1.5GB, FX 5800 Ultra | Pentium D 3.2ghz, 4GB, 7600gt | Celeron g460, 8GB, 730gt | 2x Athlon FX 74, 8GB, 8800gts 512 | FX 9590, 16GB, R9 295x2 | E350, 8GB | Phenom X4 2.6ghz, 16GB, 8800gt | random core2 duo/atom/i5/i7 laptops
Post Reply