weird things happing

Post ideas & suggestions you have pertaining to the game here.
Post Reply
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

when i put this code in the <oncreate> of a station it spawns this http://yfrog.com/5zweirdthingsp instad of this http://yfrog.com/2pweirdthings2p


Code: Select all

; Create ares delta ares fleet
(setq pos (sysVectorPolarOffset gSource (random 10) 120))

(setq aresdeltaLeader (sysCreateShip &scChasm; pos &svaresf; "aresfleetcommand"))
	(shpOrderWait aresdeltaLeader 0)
	(objSetObjRefData gSource "deltaaresfleet" aresdeltaLeader)
	(objRegisterForEvents gSource aresdeltaLeader)

	(for i 0 35
		(block (ship)
	(setq ship (sysCreateShip &scTundra; pos &svaresf; "aresfleet"))
	(shpOrderEscort ship aresdeltaLeader i)
							)
						)
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
User avatar
digdug
Fleet Admiral
Fleet Admiral
Posts: 2620
Joined: Mon Oct 29, 2007 9:23 pm
Location: Decoding hieroglyphics on Tan-Ru-Dorem

because shpOrderEscort works on ships, and not on stations.
As a solution use a hybrid station-ship like the CSC, then it should work.
sdw195
Militia Captain
Militia Captain
Posts: 779
Joined: Wed Nov 18, 2009 1:01 am
Location: Still looking for the csc Antarctica
Contact:

digdug wrote:because shpOrderEscort works on ships, and not on stations.
As a solution use a hybrid station-ship like the CSC, then it should work.
i made a hybrid station-ship and it still did what it did on the station
Image
Image
Image
Image
"Dash_Merc - George is a genius, in that he created this game engine that is infinitely extendable"
"<@sheepluva>Good night everybody, may the source be with you." <-- FOSG dev
"You only need THREE tools in life - WD-40 to make things go, Duct Tape to make things stop And C-4 to make things go away"
speedofsquid
Commonwealth Pilot
Commonwealth Pilot
Posts: 55
Joined: Wed Aug 27, 2008 6:30 pm
Location: USA

When creating the ships with sysCreateShip, the controller argument (you used "aresfleetcommand" and "aresfleet") is not an arbitrary label. I think it is a hardcoded AI setting. "fleetcommand" and "fleet" are valid controller settings and are used for both Commonwealth and Ares ships in Point Juno.
Post Reply