[SCRIPT] Dead Ships Revival Script
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
[SCRIPT] Dead Ships Revival Script
Have you encountered 'dead' ships (see this tech support thread and also this one in the German tech support forum)? Then this script is for you
Download link
Just copy both files into your script folder. Whenever you load a game the script searches for dead ships and starts a job on them. You will find a message in your log on the number of revived ships.
Edit: dead link revived - thx Merroc
Cheers Euclid
Download link
Just copy both files into your script folder. Whenever you load a game the script searches for dead ships and starts a job on them. You will find a message in your log on the number of revived ships.
Edit: dead link revived - thx Merroc
Cheers Euclid
Last edited by euclid on Wed, 5. Feb 14, 17:58, edited 2 times in total.
Each spawned NPC ship runs a script defined in jobs.txt. "Dead ship" no longer runs a script it is supposed to run forever. This script regognizes those halted ships and probably restarts the command that the ship is supposed to run.
I guess this is the same script, which the germans include in the X3plus script collection?
I guess this is the same script, which the germans include in the X3plus script collection?
jlehtone wrote:..........no longer runs a script it is supposed to run forever.
not completelly correct as most scripts are designed to shut down on almost any "dunno" ...
its the job-scripts that generally are supposed to run forever and some, mostly "follower" scripts, again shut down on specific conditions (those ships are generally revived by their job-leader when in specific conditions)
G
-
- Posts: 113
- Joined: Fri, 23. Mar 07, 23:32
Technical stuff aside, all I know is that the script revived several dozen "dead" ships in my game the first time I loaded after installing, and continues to do so every time I load subsequent games (generally one or two ships per session).
"The most beautiful thing we can experience is the mysterious. It is the source of all true art and science."
-
- Posts: 3144
- Joined: Sun, 19. Dec 04, 02:41
What does
do?
(That is in 'setup.freetrader.xml' included in X3plus. Apparently a oneshot restarter more geared to get X3plus version of freetrader running.)
Code: Select all
039 $Ship -> beginne Arbeit
(That is in 'setup.freetrader.xml' included in X3plus. Apparently a oneshot restarter more geared to get X3plus version of freetrader running.)
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.
Insanity included at no extra charge.
There is no Box. I am the sand.
- ninjitsumonk
- Posts: 1874
- Joined: Thu, 1. Mar 07, 09:21
errmm... No.Lancefighter wrote:From what i understand, it is a NPC ship without a command - IE, Not the un-polited ships you can 'steal', but just random ships that aren't doing anything.
There are hundreds of ships not running commands in game, mainly civilian ones but there are others, a dead ship should be one that doesn't have a "task 0", yet is owned by somebody, ie non-capturable.
Though I haven't looked at the script so I could be wrong.
Archeo Avis wrote:So what you're saying is, if you ignore everything that's different and focus only on the one thing that's the same, they're same.if you take out phrasing and root notes and just look at the notes, they are the same
Good God.
@moggy, I don't have euclid's version, so can you say how much this X3plus (Lucike's) version differs?
Ie, would it fail the same way?
Code: Select all
...
033 $TaskUse = $Ship -> is task 0 in use
034 $Command = $Ship -> get command
035 $JobID = $Ship -> get job id
036 $Pilotname = $Ship -> get pilot name
037 $NoPilot = read text: page=35 id=21
038 skip if not $Command == COMMAND_NONE AND $JobID == 0 AND $Pilotname != $NoPilot AND ! $TaskUse
039 $Ship -> beginne Arbeit
...
Goner Pancake Protector X
Insanity included at no extra charge.
There is no Box. I am the sand.
Insanity included at no extra charge.
There is no Box. I am the sand.
-
- Posts: 933
- Joined: Fri, 5. Mar 04, 17:23