[SCRIPT]Station Administrator-New Version v1.07c
Posted: Sun, 4. Feb 07, 21:34
Since I got the ok to use Naffarin's script as a base of mine, I'm letting out some of the details to see what people think.
FEATURES
Ability to set the maximum buying price and the minimum selling price.
Yes if you set energy to buy 14 and sell 17 the traders working for the Admin will only buy at 14 or below or sell at 17 or more.
Added dockware.manager to the script. I added it because, I added functions to it, ones I felt it was lacking. The traders pay attention to the settings set by dockware manager, or Station Admin (same variables, I just didn't want to hack apart the original so I used it for the base)
More features might be added, should say will...
All features of the original script are intact, traders use a jump drive, etc etc...
Command Slots
MENU_COMMAND_STATION_57
MENU_COMMAND_STATION_58
Text file 7529
WARNING YOU *MUST* UNINSTALL STATION TRADER. BEFORE INSTALLING THIS SCRIPT. THIS MEANS UNINSTALL COMPLETELY STOP ALL STATION TRADERS. BEFORE INSTALLING THIS SCRIPT. THIS SCRIPT INCLUDES STATION TRADER BUT THE VERSIONS ARE DIFFERENT FROM EACH OTHER.
Update Version see below for explanation.
Station Administrator v1.07c
UPDATE Version 1.07c
Minor buy routine fixes.
Some menu updates.
UPDATE Version 1.07b
Dummy me left some debug stuff on that prints to logbook. Turned off now.
Good news is this version also has the revamped buying routine.
UPDATE Version 1.07
Added support back in for Trade Docks and EQ docks. Mainly for Trade Docks though.
Improved the Sell Products routine, it is now sorted to try to sell the Wares you have the most of. This should improve speed as I also slimmed the routine a bit.
Fixed a Small Bug pointed out to me by -Boron - Ol Fh'art
Added a new commands:
List JumpFuel Settings: All Stations This command will list JumpFuel Reserves for all stations.
List JumpFuel Settings: One Station This command will list JumpFuel Reserves for one station.
Set JumpFuel: All Stations This command will set JumpFuel Reserves for all stations you own. -1 will remove JumpFuel Setting, Traders will use default 15%.
Set JumpFuel: One Station This command will set JumpFuel Reserves for one station you own. -1 will remove JumpFuel Setting, Traders will use default 15%.
These commands do what they say, All Station Administrator Traders will use the settings to determine the amount of Energy they will stock. Useful if they're jumping far.
As a result of this I revamped the selection screen. Enjoy.
UPDATE Version 1.06b
Minor changes:
Lists will now display a-z and by types. -Thanks once again to Boron - Ol Fh'art, I was up for over 40 hours and couldn't think right. He helped me see the light.
Didn't update the version on the file for download as this was a minor change and I just repacked the two files I changed.
UPDATE Version 1.06
Removed support of Cargo settings on EQ and Trade Docks. There are some problems with this, as Trade Docks and EQ Docks don't have Cargo settings. Next version will include support for these docks for sell percents and max buy max sell settings. Right now they function normally. I left the command remove all cargo command open so people can remove these settings if they wish as they mean nothing. It doesn't hurt to leave it on the station but they're not used for anything.
Cleaned up some small errors in buying and selling wares for PHQs.
Fixed a couple of messages that could get cut off if to long.
Added listings with ware types in List all prices command. Should make it even easier to find Wares.
Need to do:
Fix listings to go from a - z instead of z - a
Make the list all percents list by type.
Allow players to choose what type of wares are listed.
Make PHQ build and outfit escorts for Traders.
UPDATE Version 1.05
Added in support for Trade Docks and EQ docks, this should be complatable with mods.
Corrected some errors in the messages and reformatted messages for easier understanding.
Now sorts lists making it easier to find a ware in the list. -Thanks to Boron - Ol Fh'art and the use of his sort script.
New command Cargo set command
Set Cargo: All Wares by Type This command will set the cargo space based on the amount of wares you wish to store by TYPE of ware. This is done by selecting Station then amount for then amount for SHIELDS|LASERS|MISSILES|REST OF WARES. If you wish to skip a ware type and keep old values set amount to -1.
General improvments to some commands.
UPDATE Version 1.04
Ok, no more letters, versions will now be in the form of numbers. Yet again A friend pointed out that something wasn't right. Corrected a place I missed where the price was passed from PHQ to find out it if wanted to buy. It was causing ships to make dead runs, not causing loss of income, unless you count the cells for the jump.
You shouldn't have to stop the traders for this to take affect. Just remove the previous files and slap the new ones in. If you see a Trader acting strange that is under the control of Admin then just stop and restart it.
UPDATE Version 1c
Located an error that didn't calculate the PHQ avalible space correctly. This would stop you from setting individual cargo spaces. Fixed remove and install newer version. No need to stop the traders as nothing on them has changed, just update the script.
Version 1.0 BETA please test and look for bugs. -02/08/07
I have ran this for the past two days and have had no problems. But I'm not perfect. So please report any problems.
WARNING YOU *MUST* UNINSTALL STATION TRADER.
Make sure you uninstall Station Trader if you're useing it. Stop all the process on the ships using it. This replaces some of the files. You can restart the traders once you get Station Administrator installed.
BEFORE you start the traders on your PHQ (more support for other docks later). Set all setting as you want them, if you don't you can and will loose money and ware you might not want traded.
This script is menu driven, Yes a pain, but for how I wanted this set up I found in easier for people. Just pick the command Station Administrator from the stations menu and select what you want from the menu that pops up. This causes the Stations Setting button to function differently.
Read the menu people, for the love of God. It will explain most of it. If all else fails read the readme, I have included the Station Trader and Station Administrator readmes.
No, I didn't put the 49 language files in because I had to change somethings and I only speak english. By all means if someone wants to translate the two text files and readmes do so and email them to me.
One more thing, A warning. Using these command on anything else than a PHQ right now might get unexpected results. They will NOT work on a regular station. They MIGHT work half way on one of the docks. By commands I mean the price settings and such, not the import, export and maintain commands from the Station Trader Scripts.
Let me know if something isn't clear or needs a better explanation.
Siath
FEATURES
Ability to set the maximum buying price and the minimum selling price.
Yes if you set energy to buy 14 and sell 17 the traders working for the Admin will only buy at 14 or below or sell at 17 or more.
Added dockware.manager to the script. I added it because, I added functions to it, ones I felt it was lacking. The traders pay attention to the settings set by dockware manager, or Station Admin (same variables, I just didn't want to hack apart the original so I used it for the base)
More features might be added, should say will...
All features of the original script are intact, traders use a jump drive, etc etc...
Command Slots
MENU_COMMAND_STATION_57
MENU_COMMAND_STATION_58
Text file 7529
WARNING YOU *MUST* UNINSTALL STATION TRADER. BEFORE INSTALLING THIS SCRIPT. THIS MEANS UNINSTALL COMPLETELY STOP ALL STATION TRADERS. BEFORE INSTALLING THIS SCRIPT. THIS SCRIPT INCLUDES STATION TRADER BUT THE VERSIONS ARE DIFFERENT FROM EACH OTHER.
Update Version see below for explanation.
Station Administrator v1.07c
UPDATE Version 1.07c
Minor buy routine fixes.
Some menu updates.
UPDATE Version 1.07b
Dummy me left some debug stuff on that prints to logbook. Turned off now.
Good news is this version also has the revamped buying routine.
UPDATE Version 1.07
Added support back in for Trade Docks and EQ docks. Mainly for Trade Docks though.
Improved the Sell Products routine, it is now sorted to try to sell the Wares you have the most of. This should improve speed as I also slimmed the routine a bit.
Fixed a Small Bug pointed out to me by -Boron - Ol Fh'art
Added a new commands:
List JumpFuel Settings: All Stations This command will list JumpFuel Reserves for all stations.
List JumpFuel Settings: One Station This command will list JumpFuel Reserves for one station.
Set JumpFuel: All Stations This command will set JumpFuel Reserves for all stations you own. -1 will remove JumpFuel Setting, Traders will use default 15%.
Set JumpFuel: One Station This command will set JumpFuel Reserves for one station you own. -1 will remove JumpFuel Setting, Traders will use default 15%.
These commands do what they say, All Station Administrator Traders will use the settings to determine the amount of Energy they will stock. Useful if they're jumping far.
As a result of this I revamped the selection screen. Enjoy.
UPDATE Version 1.06b
Minor changes:
Lists will now display a-z and by types. -Thanks once again to Boron - Ol Fh'art, I was up for over 40 hours and couldn't think right. He helped me see the light.
Didn't update the version on the file for download as this was a minor change and I just repacked the two files I changed.
UPDATE Version 1.06
Removed support of Cargo settings on EQ and Trade Docks. There are some problems with this, as Trade Docks and EQ Docks don't have Cargo settings. Next version will include support for these docks for sell percents and max buy max sell settings. Right now they function normally. I left the command remove all cargo command open so people can remove these settings if they wish as they mean nothing. It doesn't hurt to leave it on the station but they're not used for anything.
Cleaned up some small errors in buying and selling wares for PHQs.
Fixed a couple of messages that could get cut off if to long.
Added listings with ware types in List all prices command. Should make it even easier to find Wares.
Need to do:
Fix listings to go from a - z instead of z - a
Make the list all percents list by type.
Allow players to choose what type of wares are listed.
Make PHQ build and outfit escorts for Traders.
UPDATE Version 1.05
Added in support for Trade Docks and EQ docks, this should be complatable with mods.
Corrected some errors in the messages and reformatted messages for easier understanding.
Now sorts lists making it easier to find a ware in the list. -Thanks to Boron - Ol Fh'art and the use of his sort script.
New command Cargo set command
Set Cargo: All Wares by Type This command will set the cargo space based on the amount of wares you wish to store by TYPE of ware. This is done by selecting Station then amount for then amount for SHIELDS|LASERS|MISSILES|REST OF WARES. If you wish to skip a ware type and keep old values set amount to -1.
General improvments to some commands.
UPDATE Version 1.04
Ok, no more letters, versions will now be in the form of numbers. Yet again A friend pointed out that something wasn't right. Corrected a place I missed where the price was passed from PHQ to find out it if wanted to buy. It was causing ships to make dead runs, not causing loss of income, unless you count the cells for the jump.
You shouldn't have to stop the traders for this to take affect. Just remove the previous files and slap the new ones in. If you see a Trader acting strange that is under the control of Admin then just stop and restart it.
UPDATE Version 1c
Located an error that didn't calculate the PHQ avalible space correctly. This would stop you from setting individual cargo spaces. Fixed remove and install newer version. No need to stop the traders as nothing on them has changed, just update the script.
Version 1.0 BETA please test and look for bugs. -02/08/07
I have ran this for the past two days and have had no problems. But I'm not perfect. So please report any problems.
WARNING YOU *MUST* UNINSTALL STATION TRADER.
Make sure you uninstall Station Trader if you're useing it. Stop all the process on the ships using it. This replaces some of the files. You can restart the traders once you get Station Administrator installed.
BEFORE you start the traders on your PHQ (more support for other docks later). Set all setting as you want them, if you don't you can and will loose money and ware you might not want traded.
This script is menu driven, Yes a pain, but for how I wanted this set up I found in easier for people. Just pick the command Station Administrator from the stations menu and select what you want from the menu that pops up. This causes the Stations Setting button to function differently.
Read the menu people, for the love of God. It will explain most of it. If all else fails read the readme, I have included the Station Trader and Station Administrator readmes.
No, I didn't put the 49 language files in because I had to change somethings and I only speak english. By all means if someone wants to translate the two text files and readmes do so and email them to me.
One more thing, A warning. Using these command on anything else than a PHQ right now might get unexpected results. They will NOT work on a regular station. They MIGHT work half way on one of the docks. By commands I mean the price settings and such, not the import, export and maintain commands from the Station Trader Scripts.
Let me know if something isn't clear or needs a better explanation.
Siath