[BUG?] with scavenger ships

General discussion about X³: Farnham's Legacy.

Moderators: Moderators for English X Forum, Moderators for the X3:FL Forums

Post Reply
HoboHat
Posts: 3
Joined: Sun, 17. Oct 21, 17:19

[BUG?] with scavenger ships

Post by HoboHat » Fri, 12. Nov 21, 06:28

Wanted to report a possible bug: I noticed ships with !job.scavenge scripts will sit idle (usually near gates) after some time. After doing some testing I believe the issue is with the following WHILE LOOP in sub.DumpWares:

Code: Select all

while [DOCKEDAT] != $base
	skip if $base -> exists
		break
	[THIS] ->set destination to $base
	[THIS] ->set command: COMMAND_DOCKAT  target=$base target2=null par1=null par2=null
	@       = [THIS] -> call script !move.movetostation :  station=$base
	@       = wait 100 ms
end
The script !move.movetostation returns FLRET_INVALIDPARMS because

Code: Select all

skip if [THIS] -> is docking allowed at $targetstation
fails and the above WHILE lOOP runs forever and the ship will just sit there till the end of time. For whatever reason scavenger ships (hidden pirates looking to dock at pirate stations) are not allowed to dock at a pirate station. As a test I changed $base in !job.scavenge to a non pirate station, restarted the script on a scavenger ship and all seemed to be work as intended. The ship would fly around sectors, collecting wares, move to a station, dump the wares, and so on. It just doesn't work if the station to dump wares to is a pirate station.

Thanks.

Post Reply

Return to “X³: Farnham's Legacy”