[SCRIPT] Automatic Ship Renamer : V1.01 : 2023-09-16
Moderators: Moderators for English X Forum, Scripting / Modding Moderators, Moderators for the X3:FL Forums
[SCRIPT] Automatic Ship Renamer : V1.01 : 2023-09-16
===================================================
Script: Automatic Ship Renamer
Version: V1.01
Author: Cycrow
Created: 2023/09/16
Game: X3: Farnhams Legacy
===================================================
Downloading Install via the Plugin Manager
Introduction:
The Automatic Ship Renamer allows you to rename ships that are homebased on your factories buy using various variables/expressions.
Usage:
To use the script, you simply need to run it in one of your stations command slots, it will keep updating the homebase ships while the command remains running.
When you start the command, the menu will first appear allowing you to configure the renaming.
Configure Menu
The Global settings will apply uses the same value for all stations, you only have to set it once, and changing it in any station will change it for all of them
Using the option "Edit Name String" allows you to type in the exact value you want to use, all the text in [brackets] will be replaced with various parameters
You can also use the "Add Variable" option to view a list of available variables. Selecting one will add it to the current name
All ships that are homebased can be assigned an ID number which can be used to display a different id for each ship, using the variable [shipid]
Once everything is all setup, use "Start Command" to start it running
Script: Automatic Ship Renamer
Version: V1.01
Author: Cycrow
Created: 2023/09/16
Game: X3: Farnhams Legacy
===================================================
Downloading Install via the Plugin Manager
Introduction:
The Automatic Ship Renamer allows you to rename ships that are homebased on your factories buy using various variables/expressions.
Usage:
To use the script, you simply need to run it in one of your stations command slots, it will keep updating the homebase ships while the command remains running.
When you start the command, the menu will first appear allowing you to configure the renaming.
Configure Menu
The Global settings will apply uses the same value for all stations, you only have to set it once, and changing it in any station will change it for all of them
Using the option "Edit Name String" allows you to type in the exact value you want to use, all the text in [brackets] will be replaced with various parameters
You can also use the "Add Variable" option to view a list of available variables. Selecting one will add it to the current name
All ships that are homebased can be assigned an ID number which can be used to display a different id for each ship, using the variable [shipid]
Once everything is all setup, use "Start Command" to start it running
You do not have the required permissions to view the files attached to this post.
Re: [SCRIPT] Automatic Ship Renamer : V1.00 : 2021-10-30
Can I run this script with RSWE or will the two clash?
Also I'll ask you the next question rather than posting on the appropriate thread as I don't think the author is around the forums anymore.
RSWE used the custom command to rename ships directly from their menu, that way one can use the function even if the target ship is docked, in FL the custom menu has gone. Could that command be moved to some other place? For example the additional commands or the community plugin configuration?
Or if I maybe excused for making a bold request, could you make the modification yourself? If is not too much trouble.
As far as I tell it is the only thing that is needed to make RSWE fully functional in FL.
Cheers
Also I'll ask you the next question rather than posting on the appropriate thread as I don't think the author is around the forums anymore.
RSWE used the custom command to rename ships directly from their menu, that way one can use the function even if the target ship is docked, in FL the custom menu has gone. Could that command be moved to some other place? For example the additional commands or the community plugin configuration?
Or if I maybe excused for making a bold request, could you make the modification yourself? If is not too much trouble.
As far as I tell it is the only thing that is needed to make RSWE fully functional in FL.
Cheers
Re: [SCRIPT] Automatic Ship Renamer : V1.00 : 2021-10-30
I dont know how RSWE does the renaming, so dont know if they will clash.
However if they both try to rename the same ship then that could be an issue as they will both try to keep changing the name.
if you use it on separate ships, i cant see why they wouldn't work together.
For the custom menu, do you mean the custom command group in the ships command console ? that should still exist in FL.
the script may just need to be changed to register the command correctly. As in FL you can register custom commands and define the menu they appear in (rather than just always in the Custom Group)
Currently this mainly works on stations rather than ships, i may look at adding a separate ship naming function sometime
However if they both try to rename the same ship then that could be an issue as they will both try to keep changing the name.
if you use it on separate ships, i cant see why they wouldn't work together.
For the custom menu, do you mean the custom command group in the ships command console ? that should still exist in FL.
the script may just need to be changed to register the command correctly. As in FL you can register custom commands and define the menu they appear in (rather than just always in the Custom Group)
Currently this mainly works on stations rather than ships, i may look at adding a separate ship naming function sometime
Re: [SCRIPT] Automatic Ship Renamer : V1.00 : 2021-10-30
Ok I could give it a try and see if they coexist. As far as the custom command menu goes, yes it is the one I mean but in my game it doesn't show at all, I don't know if it is a problem with my game or it's actually meant to be that way.
How hard would it be to make the command appear somewhere else? That is what I had in mind and in my ignorance I thought in the additional command menu would be best, thinking that it would not clash with any present, future or past scripts. If you are going to answer that question keep in mind it will have to be in a way that a child could understand it, like Sesame Str. style, so if it is a complicated process I don't want to waste your time explaining it as I wont understand it for sure.
I will certainly look forward to any update to this or any other scripts of yours.
How hard would it be to make the command appear somewhere else? That is what I had in mind and in my ignorance I thought in the additional command menu would be best, thinking that it would not clash with any present, future or past scripts. If you are going to answer that question keep in mind it will have to be in a way that a child could understand it, like Sesame Str. style, so if it is a complicated process I don't want to waste your time explaining it as I wont understand it for sure.
I will certainly look forward to any update to this or any other scripts of yours.
-
- Posts: 401
- Joined: Fri, 2. Apr 21, 21:06
Re: [SCRIPT] Automatic Ship Renamer : V1.00 : 2021-10-30
Is there a way to save one of rename strings to presets, so I can easily use same naming scheme for all of my stations?
Re: [SCRIPT] Automatic Ship Renamer : V1.00 : 2021-10-30
it is present in FL. However it will only show up if you any available commands there. Any groups that have no available commands will be hidden
Re: [SCRIPT] Automatic Ship Renamer : V1.00 : 2021-10-30
Ok, so as RSWE used the custom menu in the previous versions of X3 and yet the menu does not show in my game, I am guessing the script is not setup right for FL, I am quoting you:
Presuming that is the case, I have not the capacity to fix this issue by doing what is quoted above, so as a workaround I am going to ask you what is probably a stupid question:the script may just need to be changed to register the command correctly. As in FL you can register custom commands and define the menu they appear in (rather than just always in the Custom Group)
if I would install another script that "calls up" the custom group by putting a command there, would I also find the commands for RSWE in it?