[SCRIPT] [2012.04.02] Universal Best Buys/Sells Locator v2.51a

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Moderators for English X Forum, Scripting / Modding Moderators

User avatar
Sesk
Posts: 441
Joined: Fri, 17. Nov 06, 21:09
x4

Post by Sesk »

Thanks a ton for this, was hoping to see it for X3TC!
Hyppe
Posts: 63
Joined: Wed, 2. Nov 05, 13:42
x3tc

Post by Hyppe »

I love this script, gets buying everything so easy compared to hassle earlier to manually check every place! :)
xiriod
Posts: 1131
Joined: Wed, 6. Nov 02, 20:31
x3tc

Post by xiriod »

Is it just me, or is this file no longer available at Filefront?
User avatar
ThomasAH
Posts: 147
Joined: Wed, 3. Sep 08, 10:46
x4

Post by ThomasAH »

xiriod wrote:Is it just me, or is this file no longer available at Filefront?
I can't download or find the files (spk and zip) on filefront, too.
alex2069
Posts: 205
Joined: Thu, 22. Dec 05, 21:19
x3tc

Post by alex2069 »

Apparently FileFront saw fit to delete all my uploads - they must have some sort of expire or bandwidth limit on them or something (they were all far from inactive, so it wasn't that).
Anyways, they've been uploaded, and links fixed.
User avatar
ThomasAH
Posts: 147
Joined: Wed, 3. Sep 08, 10:46
x4

Post by ThomasAH »

alex2069 wrote:Anyways, they've been uploaded, and links fixed.
Thanks, the download works now and I've installed (though not yet tried) your script.

Yesterday I tried Ware Hunter (http://forum.egosoft.com/viewtopic.php?t=239956) which is quite nice, but since it presents all wares in a long list a little bit cumbersome to use.
ThisIsHarsh
Posts: 1135
Joined: Sun, 19. Oct 08, 18:46
x3tc

Post by ThisIsHarsh »

Found a slight issue... It seem that stations can be found even if you haven't discovered them. I traced the problem to a2069.lib.getstations, the parameter $arg.onlyKnown isn't used for anything. Added a 'skip if $ware.station is known; continue' and robert is your father's brother, or possibly your mother's brother, noone knows, a terrible mix up at the hospital, quite a coincidence really how it all turned out.
User avatar
ThomasAH
Posts: 147
Joined: Wed, 3. Sep 08, 10:46
x4

Post by ThomasAH »

ThomasAH wrote:Thanks, the download works now and I've installed (though not yet tried) your script.

Yesterday I tried Ware Hunter ...
Replying to myself: Having compared both I now mostly use your script.
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

To alex2069

I would just like to ask if you have any ojection to me using the ware selection screen and possibly something similar to the reporting page layout from your script in a script i'm working on, of course i will credit you with that part of the script in the script as you have done to others that you have borrowed their script ideas.

regards

MarCon
alex2069
Posts: 205
Joined: Thu, 22. Dec 05, 21:19
x3tc

Post by alex2069 »

mark_a_condren wrote:To alex2069

I would just like to ask if you have any ojection to me using the ware selection screen and possibly something similar to the reporting page layout from your script in a script i'm working on, of course i will credit you with that part of the script in the script as you have done to others that you have borrowed their script ideas.

regards

MarCon
Go for it. :)
If you want to see a little more on the specifics of a few others:
http://forum.egosoft.com/viewtopic.php?t=226793
mark_a_condren
Posts: 1468
Joined: Wed, 3. Aug 05, 05:05
x3tc

Post by mark_a_condren »

alex2069

Thanks for the go ahead.

Checked your lib scripts and might put some of them to use, thanks.
I hate having to reinvent the wheel if someone has got one they will let me borrow.

I use uni.bb/bs quite a bit, thats were i got the idea for my script.

thanks
MarCon
kelmen
Posts: 308
Joined: Tue, 9. Dec 08, 15:11

Post by kelmen »

2 improvements can make this script over other trade scripts i been using

1. not using message, instant report/display the result in menu
- the message system didn't come with a management system and interface, its just combersome to further clog it

2. if the result sorting can be change, either after the result poped or specify the sorting order 1st.
- include in an extra sorting feature can help the player find the decision more faster
alex2069
Posts: 205
Joined: Thu, 22. Dec 05, 21:19
x3tc

Post by alex2069 »

I've finish University for the year (<- Australian), so I have time to play! Yay! lol
So, a belated update, but an update none the less!
This update contains pretty much everything people have asked for/complained about. If there's anything else, ask away - I've a fair amount of free time at the moment.

v2.30 - 2009.11.30
  • Added ability to change sorting order for the Jumps, Price, and Quantity.
    Added ability to select/send a ship to a station result (uses standard !moveto.station script at the moment).
    Gave the results system an overhaul - No longer uses messages, columns neater, etc
    Added a hotkey setup - This currently *requires* Cycrow's Hotkey Manager (http://forum.egosoft.com/viewtopic.php?t=226805)
    Fixed a bug where unknown stations would be returned (thanks ThisIsHarsh).
    Modified a lot of the t-file usage. It should be a lot easier to completely translate now.
Just a quick note about the send ship functionality. It uses the inbuilt scripts, so it *should* use the auto-jump functionality, etc.
I've found this to be pretty dodgy some times, but eventually I plan on using my more advanced jump script from my Automated Satellite Network script. I just need to tweak it a bit to make it more "library" friendly kind of thing.
Roady1976
Posts: 92
Joined: Wed, 29. Apr 09, 09:59
x4

Post by Roady1976 »

Thanks for this update :)

This is one of a few scripts that stay with me when re-arranging mods / scripts
User avatar
alt3rn1ty
Posts: 3745
Joined: Thu, 26. Jan 06, 19:45
x4

Post by alt3rn1ty »

:) Thank you alex for making this, I have been wondering if there was an X3R Product Finder equivalent for X3TC, looks like this will be another essential.
alex2069
Posts: 205
Joined: Thu, 22. Dec 05, 21:19
x3tc

Post by alex2069 »

In case anyone had a weird library error message pop up the first time you loaded after installing this: (quoting myself from my Auto Sat Net script)

"Ok, I tested this on a clean install, and yea, it has a fit - but only the *first* time. So for all those that were getting there error, you shouldn't have received it in future loads, and it should be working fine (since by the second load, the setup lib script would have run). <- Is this not so for anyone?

Apparently setup script order isn't governed entirely by name. A minor update to v1.31 will alleviate this need and forcefully run it if it hasn't run first. Those that aren't having this problem don't need to update."

So I've applied a similar fix to this (v2.31). If you aren't having any problems you don't need to install this.
alex2069
Posts: 205
Joined: Thu, 22. Dec 05, 21:19
x3tc

Post by alex2069 »

It was a little disconcerting having no results turn up for things you knew should (due to notoriety restrictions; for me at least anyways), so I've enhanced the output a bit to include them:
  • v2.40 - 2009.12.02
    • Added a Race column to the results.
      Added a Notoriety column to the results (Green = Can Buy, Red = Can't, 'E' = Enemy Station; e.g. Argon Sector M148).
      Fixed a bug where not-known stations would be added to the list (correctly fixed this time).
      Fixed a player relations bug where many items would turn up as not sold anywhere.
Enjoy.
User avatar
vampirecosmonaut
Posts: 329
Joined: Thu, 17. Aug 06, 21:23
x4

Post by vampirecosmonaut »

I was just about to post that this wasn't working for me at all.
I couldn't find any lasers or missiles in any search I tried, but it works now.
Thanks. :wink:

Got a readtextid error above the number of jumps in the ship select menu.
It also doesn't seem to work, I select a ship and nothing happens. :oops:

EDIT:
I messed with some more and I found that it does work, it just states the ship command as "command_none", but the ship flies off and buys the ware.
The first documented attempt in human history to use a rocket for spaceflight
was made in the 16th century by a Chinese Ming dynasty official named Wan Hu.
The resultant explosion presumably killed him.
alex2069
Posts: 205
Joined: Thu, 22. Dec 05, 21:19
x3tc

Post by alex2069 »

vampirecosmonaut wrote:Got a readtextid error above the number of jumps in the ship select menu.
It also doesn't seem to work, I select a ship and nothing happens. :oops:
Bah, loading wrong id. Fixed now (v2.41).
vampirecosmonaut wrote:EDIT:
I messed with some more and I found that it does work, it just states the ship command as "command_none", but the ship flies off and buys the ware.
Yea... It's kind of crappy at the moment... It works, but it uses the standard !move.movetostation script which is limited at best. But it works! (most of the time, lol)
Once I "libraryize" my intelligent jump script (that I'm using on the Sat Net), I'll use that instead.
User avatar
Reisser
Posts: 764
Joined: Mon, 28. Feb 05, 15:39
x4

Post by Reisser »

Just catched your new version ;)

One thing: it is possible to change this "notority"-value to a significant phrase? A number like 4534 doesn't say anything to me (else than it is higher than 3500 :D ).

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”