[SCRIPT] [2012.04.02] Universal Best Buys/Sells Locator v2.51a
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
I've uploaded it again on FileFront (now called GameFront apparently):
UniversalBestBuysSells_251.spk
http://www.gamefront.com/files/20899745 ... ls_251.spk
UniversalBestBuysSells_251.zip
http://www.gamefront.com/files/20899746 ... ls_251.zip
I have no idea if this still works on the latest version or not, I just uploaded my latest version of the files (didn't remake/rebuild or anything) - I make an "agreement" with myself to not play games during Uni periods (or I get addicted and well... As I'm sure you can guess this adversly affects my grades... Quite significantely so, lol).
Thankfully the holiday period is approaching (<- Australian) so I can get back into it again.
UniversalBestBuysSells_251.spk
http://www.gamefront.com/files/20899745 ... ls_251.spk
UniversalBestBuysSells_251.zip
http://www.gamefront.com/files/20899746 ... ls_251.zip
I have no idea if this still works on the latest version or not, I just uploaded my latest version of the files (didn't remake/rebuild or anything) - I make an "agreement" with myself to not play games during Uni periods (or I get addicted and well... As I'm sure you can guess this adversly affects my grades... Quite significantely so, lol).
Thankfully the holiday period is approaching (<- Australian) so I can get back into it again.
Hey, welcome back. Thanks for the update.alex2069 wrote:I've uploaded it again on FileFront (now called GameFront apparently):
UniversalBestBuysSells_251.spk
http://www.gamefront.com/files/20899745 ... ls_251.spk
UniversalBestBuysSells_251.zip
http://www.gamefront.com/files/20899746 ... ls_251.zip
I have no idea if this still works on the latest version or not, I just uploaded my latest version of the files (didn't remake/rebuild or anything) - I make an "agreement" with myself to not play games during Uni periods (or I get addicted and well... As I'm sure you can guess this adversly affects my grades... Quite significantely so, lol).
Thankfully the holiday period is approaching (<- Australian) so I can get back into it again.
alex2069 I made changes to your script files, adding isbb checks and or title args as needed, so as to maintain a different title on the menu screens (titles according to respective hotkey command launched: 'Universal Buy Locator' or 'Universal Sell Locator') so it is easier for me to confirm whether I was in buy or sell mode.
If you are interested in these changes let me know.
I am also going to remove the ship ID from the ship select screen (will makes it easier for me to identify ships) as well as look into converting the ship command to display a more human readable form ie None instead of COMMAND_NONE. I may also color the word None to green or something so that the idle ships stand out more from the rest.
It also won't hurt to try to limit the overall length of the command text so it doesn't run into another columns data.
These are probably trivial changes to you. I am new to scripting and as I really like your script decided to use it as a basis to learn a little bit.
If you are interested in these changes let me know.
I am also going to remove the ship ID from the ship select screen (will makes it easier for me to identify ships) as well as look into converting the ship command to display a more human readable form ie None instead of COMMAND_NONE. I may also color the word None to green or something so that the idle ships stand out more from the rest.
It also won't hurt to try to limit the overall length of the command text so it doesn't run into another columns data.
These are probably trivial changes to you. I am new to scripting and as I really like your script decided to use it as a basis to learn a little bit.
Those are some pretty useful fixes. alex2069 isnt on anymore really. If he doesnt respond I would love a copy of the changes you made. You can PM me for an address.dblade wrote:alex2069 I made changes to your script files, adding isbb checks and or title args as needed, so as to maintain a different title on the menu screens (titles according to respective hotkey command launched: 'Universal Buy Locator' or 'Universal Sell Locator') so it is easier for me to confirm whether I was in buy or sell mode.
If you are interested in these changes let me know.
I am also going to remove the ship ID from the ship select screen (will makes it easier for me to identify ships) as well as look into converting the ship command to display a more human readable form ie None instead of COMMAND_NONE. I may also color the word None to green or something so that the idle ships stand out more from the rest.
It also won't hurt to try to limit the overall length of the command text so it doesn't run into another columns data.
These are probably trivial changes to you. I am new to scripting and as I really like your script decided to use it as a basis to learn a little bit.
-
- Posts: 3206
- Joined: Thu, 16. Jul 09, 12:24
be nice if those changes could be released for everyone to use especially if its fixes.joelR wrote:Those are some pretty useful fixes. alex2069 isnt on anymore really. If he doesnt respond I would love a copy of the changes you made. You can PM me for an address.dblade wrote:alex2069 I made changes to your script files, adding isbb checks and or title args as needed, so as to maintain a different title on the menu screens (titles according to respective hotkey command launched: 'Universal Buy Locator' or 'Universal Sell Locator') so it is easier for me to confirm whether I was in buy or sell mode.
If you are interested in these changes let me know.
I am also going to remove the ship ID from the ship select screen (will makes it easier for me to identify ships) as well as look into converting the ship command to display a more human readable form ie None instead of COMMAND_NONE. I may also color the word None to green or something so that the idle ships stand out more from the rest.
It also won't hurt to try to limit the overall length of the command text so it doesn't run into another columns data.
These are probably trivial changes to you. I am new to scripting and as I really like your script decided to use it as a basis to learn a little bit.
It's all cosmetics and I only did like half of what I planned. The screenshot will show this: http://cloud.steampowered.com/ugc/59695 ... D8F91D418/
The rest of the 400+ hours was spent playing.
I sent alex2069 an email.
The rest of the 400+ hours was spent playing.
I sent alex2069 an email.
Gah - I've been meaning to reply to this for some time now, and kept forgetting or putting it off (Uni/study takes priority lol). I don't always respond to board-notifications so much; usually put it off and plan to "do it later" lol, but emails grab my attention pretty quickly.joelR wrote:Those are some pretty useful fixes. alex2069 isnt on anymore really. If he doesnt respond I would love a copy of the changes you made. You can PM me for an address.
So, the way I see it - we can put what you've done up now, or a little more polish and then put that up.dblade wrote:alex2069 I made changes to your script files, adding isbb checks and or title args as needed, so as to maintain a different title on the menu screens (titles according to respective hotkey command launched: 'Universal Buy Locator' or 'Universal Sell Locator') so it is easier for me to confirm whether I was in buy or sell mode.
If you are interested in these changes let me know.
I am also going to remove the ship ID from the ship select screen (will makes it easier for me to identify ships) as well as look into converting the ship command to display a more human readable form ie None instead of COMMAND_NONE. I may also color the word None to green or something so that the idle ships stand out more from the rest.
It also won't hurt to try to limit the overall length of the command text so it doesn't run into another columns data.
These are probably trivial changes to you. I am new to scripting and as I really like your script decided to use it as a basis to learn a little bit.
If possible, could you change the rest of the COMMAND_ fields to a nicer text - something I'd been planning to do for ages now (though as white still - very much like that Green for Idle highlighting).
Secondly, the ship IDs some people find useful (though primarily used in debugging, I did use them a bit during actual play as well) - depending on your scripting abilities, add in a switch to turn this on/off.
The former would be nice at least; the latter if you want to/can be bothered heh.
Feel free to not do it if you can't be bothered or something - I'm a bit of a perfectionist and like things done to completion, so please don't read this as a "you must do this" lol.
All I did was use hardcoded text. The idea of hardcoding everything didn't seem right so I stopped there. I am not sure if there is some way of deriving the text id so as to pull the text using 'read text', sprintf, or something.If possible, could you change the rest of the COMMAND_ fields to a nicer text
I'm sure I could copy what you did, but I recall that the switches you've already created as having a default and they reverted each time you pulled up the mod. My vote would be that this defaulted to OFF be it ever implemented
Secondly, the ship IDs some people find useful (though primarily used in debugging, I did use them a bit during actual play as well) - depending on your scripting abilities, add in a switch to turn this on/off.
Here's the thing, I'm not playing TC/AP right now and won't have time to do this any time soon. I've sent you my updates via email.
P.S. Thanks for creating this mod, it's one of the best.
Alrighty - update v2.51a has been added to first post, courtesy of dblade.
Maybe I'll do that at some point, though I wouldn't hold my breath x.x.
As much as I really want to run through X3AP, and get back and update all my scripts, I really don't have the time... It's on my "todo" list for now.
Ah, yea - definitely would want that using read-text stuff (the people that maintain the translated versions wouldn't be happy with me if it wasn't lol).dblade wrote: All I did was use hardcoded text. The idea of hardcoding everything didn't seem right so I stopped there. I am not sure if there is some way of deriving the text id so as to pull the text using 'read text', sprintf, or something.
Can't remember how I did it... Coming on a few years now lol.dblade wrote:I'm sure I could copy what you did, but I recall that the switches you've already created as having a default and they reverted each time you pulled up the mod. My vote would be that this defaulted to OFF be it ever implemented
Maybe I'll do that at some point, though I wouldn't hold my breath x.x.
As much as I really want to run through X3AP, and get back and update all my scripts, I really don't have the time... It's on my "todo" list for now.
-
- Posts: 56
- Joined: Fri, 6. Apr 12, 01:40
I apologize before hand if someone already did this since I didn't read the entire 10 page post. And hopefully this will be useful to someone.
There comes a time when you have so many ships that it is impossible to find the ship you want to send. This small change to a2069.uniloc.station does 2 things
1) show only TL if ware interested is dock or factory
2) if best sell show only the ships with ware to sell
Replace
at around line 47 of a2069.uniloc.station with
You will also need to pass arg.isbb from a2069.uniloc.main to a2069.uniloc.station for this to work.
There comes a time when you have so many ships that it is impossible to find the ship you want to send. This small change to a2069.uniloc.station does 2 things
1) show only TL if ware interested is dock or factory
2) if best sell show only the ships with ware to sell
Replace
Code: Select all
$ships = get ship array: of race {Player} class/type={Moveable Ship 2134}
Code: Select all
* 5:DOCK
* 6:FACTORY
* 7:SHIP
* 8:LASER
* 9:SHIELD
* 10:MISSILE
* 11:ENERGY
* 12:NATURAL
* 13:BIO
* 14:FOOD
* 15:MINERALS
* 16:TECH
* 17:ASTEROID
$ware.maintype = get maintype of ware $arg.ware
if $ware.maintype <= 6
$ships = get ship array: of race {Player} class/type={TL 2032}
else
$ships = get ship array: of race {Player} class/type={Moveable Ship 2134}
if not $arg.isbb
* Best sell
if $ware.maintype >= 8 AND $ware.maintype <= 16
$ships.size = size of array $ships
$shipswithware = array alloc: size=0
$ships.i = 0
while $ships.i < $ships.size
$ship = $ships[$ships.i]
* Ships with ware regardless whether it is equipped
$ship.wareamount = $ship->get amount of ware $arg.ware in cargo bay
if $ship.wareamount > 0
append $ship to array $shipswithware
end
inc $ships.i =
end
$ships = $shipswithware
end
end
end
-
- Posts: 56
- Joined: Fri, 6. Apr 12, 01:40