[Request] Police Area Default Behaviour
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
Re: [Request] Police Area Default Behaviour
I think I found a solution, I just reduced patrol area to 2-4km and my ships stopped flying away from the station.
Thanks.
Thanks.
-
- Posts: 12
- Joined: Tue, 17. Nov 20, 16:47
Re: [Request] Police Area Default Behaviour
Hello IXmus,
how did you achieve this?
did you edit the "min" and "max" values from the file "aiscripts/order.move.recon.police.xml" :
Code: Select all
<param name="radius" type="length" default="if this.ship.isplayerowned then 20km else null" text="{1041, 10093}" comment="Radius">
<input_param name="min" value="0m"/>
<input_param name="max" value="350km"/>
<input_param name="step" value="1km"/>
</param>
Re: [Request] Police Area Default Behaviour
Sorry to bring up this old thread.
I have been using j.harshaw's script for quite some time. But now I have the following situation. I wanted to set the scan radius of the police ship around a station. Only stupidly this station is below the ecliptic. Unfortunately I can't move the scanner area with the mouse, so it is not possible to set a scanner area whose center is below or above the ecliptic.
@j.harshaw could you maybe look at this again? Otherwise the script is really good.
It should only be possible to move the scanner area with the mouse, so that you can also adjust the Y-axis.
I have been using j.harshaw's script for quite some time. But now I have the following situation. I wanted to set the scan radius of the police ship around a station. Only stupidly this station is below the ecliptic. Unfortunately I can't move the scanner area with the mouse, so it is not possible to set a scanner area whose center is below or above the ecliptic.
@j.harshaw could you maybe look at this again? Otherwise the script is really good.
It should only be possible to move the scanner area with the mouse, so that you can also adjust the Y-axis.
Re: [Request] Police Area Default Behaviour
I confess, I forgot about this after reverting to vanilla to test v6.0, for some reason it's not made it back into my mod list.
I don't think I ever previously thought about the lack of vertical movement, as I always place my stations at the default "0" position vertically.
I know J.Harshaw was kind enough to do this as a favour, but perhaps it warrants releasing as a full mod, if not able to become a standard game feature.
Edit: I just read through this thread again and it looks like I went radio silence after my post above saying I hoped to have time to test it later. I guess I didn't get time to test for a while, and then neglected to post again. Sorry about that J.Harshaw, I do really appreciate you creating this.
I don't think I ever previously thought about the lack of vertical movement, as I always place my stations at the default "0" position vertically.
I know J.Harshaw was kind enough to do this as a favour, but perhaps it warrants releasing as a full mod, if not able to become a standard game feature.
Edit: I just read through this thread again and it looks like I went radio silence after my post above saying I hoped to have time to test it later. I guess I didn't get time to test for a while, and then neglected to post again. Sorry about that J.Harshaw, I do really appreciate you creating this.
Re: [Request] Police Area Default Behaviour
Tracked it down. Making the order icon draggable would require modding the UI which I'll have to call out of scope for this mod. Sorry.
Re: [Request] Police Area Default Behaviour
Too bad, there's probably nothing you can do. Seems to be more complicated.
Thanks anyway. Maybe there is another modder who could implement this function. Because the way the police behavior is in Vanilla at the moment, it makes no sense to use this default command.
Thanks anyway. Maybe there is another modder who could implement this function. Because the way the police behavior is in Vanilla at the moment, it makes no sense to use this default command.
Re: [Request] Police Area Default Behaviour
Please try if this works for you, 'SirNukes Mod Support APIs' is required as a dependency. Of course, any extension that also handles the functions I've patched will have to be adapted via callbacks or just adopting the code.
https://github.com/DjFRedy/X4-Extension ... ag_support
https://github.com/DjFRedy/X4-Extensions/releases
EDIT: link update
https://github.com/DjFRedy/X4-Extension ... ag_support
https://github.com/DjFRedy/X4-Extensions/releases
EDIT: link update
Last edited by Dj_FRedy on Sun, 28. May 23, 13:30, edited 1 time in total.
"All my contributions to the Technical Support and Public Beta Feedback sections will be concise and to the point, no diatribes, that's what the other sections are for".
Thank you for your efforts.
Thank you for your efforts.
Re: [Request] Police Area Default Behaviour
Cool, thank you very much. I just read your post. I'll try it out and let you know.
Re: [Request] Police Area Default Behaviour
Works perfect, just drag and drop the radius with the mouse, as with the other commands. That's how I imagined it. Now I can finally put a stop to the illegal activity in my sectors.
The police also adheres nicely to the set radius, have tried it with different radii.
Maybe the two mods could be packaged together and released as Enhanced Police Behavior on Steam and / or Nexus, if j.harshaw also agrees? It would be a real shame if there are others who don't benefit from reading the thread here and so the mods don't get lost at some point.
Many many thanks to both of you for the mods.
The police also adheres nicely to the set radius, have tried it with different radii.
Maybe the two mods could be packaged together and released as Enhanced Police Behavior on Steam and / or Nexus, if j.harshaw also agrees? It would be a real shame if there are others who don't benefit from reading the thread here and so the mods don't get lost at some point.
Many many thanks to both of you for the mods.
Re: [Request] Police Area Default Behaviour
Not for nothing, but I'd really rather not, I simply responded to your request because I knew how to deal with your problem on paper, but from there to uploading it as a combined mod to various sites I think I'll pass. Still, I'm glad to have been of help.
"All my contributions to the Technical Support and Public Beta Feedback sections will be concise and to the point, no diatribes, that's what the other sections are for".
Thank you for your efforts.
Thank you for your efforts.
Re: [Request] Police Area Default Behaviour
Ok, I see. Thanks again anyway.
-
- Posts: 231
- Joined: Wed, 6. Nov 02, 20:31
Re: [Request] Police Area Default Behaviour
Hi, thank you from my side as well. Now the police works as hoped. Would be nice if Egosoft could make this permanent.
Has anyone actually experienced the ship captains throwing out illegal wares and cooperating?
With me, the ships that were caught so far always became hostile.
Has anyone actually experienced the ship captains throwing out illegal wares and cooperating?
With me, the ships that were caught so far always became hostile.