when I was used the label of <set_owner object faction> to change the station's faction, there are some strange situation, that bothers me a lot. So I hope to get help.
The target station's faction has changed, Production and shipbuilding can also proceed normally.
But the station no more attacks, when attacked also only once warning , no counterattack, no release of defense drones, no response at all...
Also, some right-click menu commands are ineffective for these stations.
I don't know what the problem is. Do the station's defenses need to be set up separately?
Please help
the question about <set_owner> Label usage problems
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: the question about <set_owner> Label usage problems
There are scripts running on entities (NPCs and/or computers) accociated with a station. Those scripts manage the trade and defense. I think this is what causes the problems you have.
Cheers Euclid
Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
Re: the question about <set_owner> Label usage problems
Thank you so much for your advice, The problem was really about entitys.
The mod code I used removed all of the default control_entitys of the the station. And then added new ones, but the added ones have no effect on defense.
This change seems irreversible, and I have yet to figure out how to restore the defensive behavior by adding entities.
But I have been able to avoid the occurrence more of such problems. thanks for your help again
Re: the question about <set_owner> Label usage problems
If the station is your own then just hire new manager, engineer and defense officer . Otherwise I know of two ways to run the corresponding scripts on them: Either viahxsgame wrote: ↑Fri, 20. Jan 23, 05:57Thank you so much for your advice, The problem was really about entitys.
The mod code I used removed all of the default control_entitys of the the station. And then added new ones, but the added ones have no effect on defense.
This change seems irreversible, and I have yet to figure out how to restore the defensive behavior by adding entities.
......
Code: Select all
<assign_control_entity object="insert station here" actor="insert npc here" post="controlpost.X" transfer="true" />
Code: Select all
<start_script object="insert NPC here"" name="'insert script here'"/>
Cheers Euclid
"In any special doctrine of nature there can be only as much proper science as there is mathematics therein.”
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786
- Immanuel Kant (1724-1804), Metaphysical Foundations of the Science of Nature, 4:470, 1786