How do you use the J from SysFindObject?

Freeform discussion about anything related to modding Transcendence.
Post Reply
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?

What it says in topic.
The one instance it's used isn't any help either :/ (setq homeBase (sysFindObject gSource "TAFJN")).
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:

RPC wrote:What it says in topic.
The one instance it's used isn't any help either :/ (setq homeBase (sysFindObject gSource "TAFJN")).
1.0 RC3 (20 December 2009) : wiki :
Added 'J' flag to include only objects from a given sovereign.
Personally, while it is " ok " , TAF , TAFN works well enough because setting the J is , I think, mostly useful for Defenders or the Pirate Frigates. I never saw the reason in anything I have tinkered with to actually need the J , but in the traffic codes you find the basic way of not using the J but get the "same" result :

Code: Select all

(if (not (setq homeObj (objGetObjRefData gSource "home")))
						(block Nil
							(setq homeObj (sysFindObject gSource "TAFN +commonwealth; +primary;"))
							(if (not homeObj)
								(setq homeObj (sysFindObject gSource "TAFN +populated; -occupation;"))
								)

							(objSetObjRefData gSource "home" homeObj)
							)
						)
Flying Irresponsibly In Eridani......

I don't like to kill pirates in cold blood ..I do it.. but I don't like it..
Post Reply