AI Trading Assistant

Discussion and information relevant to creating special missions, new ships, skins etc.

Moderators: winston, another_commander

Post Reply
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant 2 for Oolite 1.77

Post by Wildeblood » Mon Jan 14, 2013 9:38 am

Version 2.0.1 should fix this problem.
Last edited by Wildeblood on Tue Jan 15, 2013 5:19 pm, edited 1 time in total.

User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4018
Joined: Fri Nov 11, 2011 6:19 pm

Re: AI Trading Assistant 2 for Oolite 1.77

Post by cim » Mon Jan 14, 2013 6:45 pm

The problem seems to be that guiScreenChanged doesn't actually happen for the particular transition which takes place when launching. Fixed in r5617.

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant 2 for Oolite 1.77

Post by Wildeblood » Tue Jan 15, 2013 5:18 pm

Version 2.0.2 should fix two silly bugs.
2.0.2 (January 16th, 2013) Bug fixed - giving away free advice before players bought the equipment.

2.0.1 (January 14th, 2013) Bug fixed - not switching off when launching from market screen.
Last edited by Wildeblood on Fri Jan 25, 2013 3:49 pm, edited 1 time in total.

User avatar
Styggron
Above Average
Above Average
Posts: 17
Joined: Sun May 27, 2012 12:09 am

Re: AI Trading Assistant 2 for Oolite 1.77

Post by Styggron » Thu Jan 17, 2013 12:18 am

Wildeblood wrote:Version 2.0.2 should fix two silly bugs.

https://www.box.com/s/zr7c1yixi401hbglvbri
2.0.2 (January 16th, 2013) Bug fixed - giving away free advice before players bought the equipment.

2.0.1 (January 14th, 2013) Bug fixed - not switching off when launching from market screen.

Fantastic is all works 100%. I found though that Oolite 1.77 removed the energy bomb (sigh). I understand if they did a toggle but restricting it to stronct mode only is a real nuisance. Anyway I digress.

Thank you for the trading update it works well but I'll have to go back to Oolite 1.76.1 due to the energy bomb issue :-( and I certainly don;'t expect you to write a version for 1.76.1 as that would not make too much sense and would not be the way forward. Hopefully the developers will make it an option and I don't mean strict mode only). :-)

Thanks again for your hard work it is greatly appreciated.
Elite: C64 (Tape & Disk), Amiga, Atari ST, NES, Amstrad, BBC Micro
Elite II: Amiga, CD32, Atari ST, PC
Elite III: PC (CD & Disc), French CD (Still sealed)
Oolite 1.77, Frontier GL, FFE D3D, Pioneer (August 2014 Build)
Playing Elite since 1985.

User avatar
Massively Locked
Above Average
Above Average
Posts: 28
Joined: Tue Nov 20, 2012 12:20 pm

Re: AI Trading Assistant 2 for Oolite 1.77

Post by Massively Locked » Thu Jan 17, 2013 1:06 am

Styggron- the following is from the [wiki]Energy Bomb[/wiki] wiki:
Update on Energy Bomb removal

The Energy Bomb is only available in "Strict play" mode as of Oolite 1.77 (unreleased at time of writing, but available as nightly builds). It can be made available in "Unrestricted play" by downloading and installing EnergyBombfor1.77.oxp
I haven't tried it since I'm playing sans E-bomb.

Apologies to all for going OT here.

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant 2 for Oolite 1.77

Post by Wildeblood » Thu Jan 17, 2013 5:08 am

Styggron wrote:I found though that Oolite 1.77 removed the energy bomb (sigh).
The first thing I noticed about 1.77 is that the Thargoids are actually dangerous now, not just easy money, so the energy bomb is good to have. Energy Bomb for Oolite 1.77:

https://www.box.com/s/6470a1bcc4fce34919db
Styggron wrote:I certainly don't expect you to write a version for 1.76.1 as that would not make too much sense and would not be the way forward.
Certainly not the way forward, as from 2.1 I'll use the newer market features in Oollte 1.77 that can't be simulated in Oolite 1.76. But it should be fairly straightforward to add Capt. Murphy's manifest monitor back into this version. Does anyone want to have a go?
Styggron wrote:Thanks again for your hard work it is greatly appreciated.
You're welcome. The next step is to add buy recommendations, as in Oolite 1.77 the market prices can now be checked, and tracking of how long cargo has been aboard, so you'll see nagging messages like, "We've visited 5 stations since you bought those minerals, and you still haven't sold them."

User avatar
Styggron
Above Average
Above Average
Posts: 17
Joined: Sun May 27, 2012 12:09 am

Re: AI Trading Assistant 2 for Oolite 1.77

Post by Styggron » Fri Jan 18, 2013 1:15 am

Thanks to everyone that replied, yes sorry I did find there is an OXP to put the EB's back in there I found it yesterday and corrected most of my posts everywhere but forgot this one. oooops : :?
Elite: C64 (Tape & Disk), Amiga, Atari ST, NES, Amstrad, BBC Micro
Elite II: Amiga, CD32, Atari ST, PC
Elite III: PC (CD & Disc), French CD (Still sealed)
Oolite 1.77, Frontier GL, FFE D3D, Pioneer (August 2014 Build)
Playing Elite since 1985.

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant OXP 2.1 BETA

Post by Wildeblood » Sun Jan 20, 2013 6:25 am

AI Trading Assistant OXP ver. 2.0.6 (2.1 BETA)
Date: January 19th, 2013

You should NOT just drop this into your AddOns folder at any time, like most OXPs. Read on:-

From version 2.1 as soon as you place the AI Trading Assistant OXP into your "AddOns" folder it will begin keeping a permanent, long-run account of all your trading. It will do this immediately, before you buy the equipment in game. If the equipment is damaged, record-keeping will silently continue. So, what?

If you have cargo in your ship's hold when record-keeping starts, there will be a discrepancy that cannot be accounted for. It will appear that you have sold more cargo than you bought, and this error will remain forever. You should wait for an opportune time, when your cargo hold is empty, before saving your game and installing the OXP.
Last edited by Wildeblood on Fri Jan 25, 2013 4:06 pm, edited 2 times in total.

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: AI Trading Assistant OXP 2.1 BETA

Post by Diziet Sma » Sun Jan 20, 2013 10:36 am

Wildeblood wrote:You should NOT just drop this into your AddOns folder at any time, like most OXPs. Read on:-

From version 2.1 as soon as you place the AI Trading Assistant OXP into your "AddOns" folder it will begin keeping a permanent, long-run account of all your trading. It will do this immediately, before you buy the equipment in game. If the equipment is damaged, record-keeping will silently continue. So, what?

If you have cargo in your ship's hold when record-keeping starts, there will be a discrepancy that cannot be accounted for. It will appear that you have sold more cargo than you bought, and this error will remain forever. You should wait for an opportune time, when your cargo hold is empty, before saving your game and installing the OXP.
Presumably, if, like most of us, one has several different game-saves active (such as a trader, a bounty-hunter, a pirate, and so on, it would be advisable to make sure ALL of them have empty cargo-holds before installation. Otherwise similar confusion could ensue down the track..

Is this a correct assessment of the situation?

If so, it may pay to amend the advisory to explicitly warn of this.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

AI Trading Assistant OXP 2.2.2

Post by Wildeblood » Thu Jan 24, 2013 1:46 pm

Read the instructions before installing!
AI Trading Assistant OXP ver. 2.2.3
Date: January 30th, 2013
Author: Wildeblood
Inspired by: Capt. Murphy


Installation and use:

Version 2 will work only with Oolite 1.77 or later - it will not work in Oolite 1.76.1. With this version I have promoted Capt. Murphy to emeritus author, since it has been completely re-written and no longer contains any of his original code.

You should NOT just drop this into your AddOns folder at any time, like most OXPs. Read on:-

From version 2.1 as soon as you place the AI Trading Assistant OXP into your "AddOns" folder it will begin keeping a permanent, long-run account of all your trading. It will do this immediately, before you buy the equipment in game. If the equipment is damaged, record-keeping will silently continue. So, what?

If you have cargo in your ship's hold when record-keeping starts, there will be a discrepancy that cannot be accounted for. It will appear that you have sold more cargo than you bought, and this error will remain forever. That discrepancy will not affect performance in any way, however if you are a stickler for details, you should wait for an opportune time, when your cargo hold is empty, before saving your game and installing the OXP.

When you are ready, place the AI Trading Assistant OXP into your "AddOns" folder. Head to a planet of technical level 9, or above, where you can purchase the Trading Assistant from the ship outfitters for 2012 credits. Trading Assistant will not be offered in the ship outfitters in communist systems. Being an artificial intelligence, and not heavy equipment, Trading Assistant is portable between ships, and will stay with you if you buy a new ship in the shipyard.


Features:

Once purchased, the Trading Assistant will:-

1) Monitor your cargo trades in real time, and give an immediate warning if you are paying unusually high prices, or selling for low prices that are likely to result in unprofitable trading.

2) Record the prices you pay for cargo, and display a list of the average prices paid for each cargo type.

3) Offer recommendations of which commodities to buy and sell, based on current market prices.

4) Show an information screen revealing which commodities you have traded most profitably over time.

5) AI Trading Assistant OXP now includes Autotrade ATS. Autotrade is the original and genuine fully Automatic Trading System. By default Autotrade is off, to enable it go to the trading history screen (from the F4 interfaces screen) and select either fast or slow trading mode.

Twenty-two seconds after you view the commodity market screen Autotrade will begin trading on your behalf, fully automatically. Make a nice cup of tea, sit back and watch as Autotrade takes the effort out of trading. Why press buttons yourself when Autotrade can do it for you? (You can, of course, continue to trade normally yourself while Autotrade is trading.)


Other market-related OXPs:

Recently there have been some other market-related OXPs created which are not compatible with Trading Assistant. You might wish to disable or remove AI Trading Assistant OXP temporarily while you experiment with them. Will that mean a gap in your accounts?

No. Included in the download you should find an OXP called "AI Trading Fallback Datalogger". That OXP will normally be inactive and do nothing, however if you remove the AI Trading Assistant OXP the fallback datalogger will automatically take over record-keeping functions. There will be no sign of Trading Assistant within the game, but:-
(1) record-keeping will silently continue and be up-to-date when you replace the AI Trading Assistant OXP, and:
(2) you will not have to re-purchase the equipment in the game.


Change Log:

2.2.3 (January 30th, 2013) Bug fixed - interface screen not added until after first flight. Similar destination message added to buying_advisor.js.

2.2.2 (January 29th, 2013) Changed highlight text for illegal goods from "SELL" to "Illegal".

2.2.1 (January 25th, 2013) Autotrade and advice mode (off/advise/slow/fast) selectable from interface screen.

2.2 (January 24th, 2013) Integrated Autotrade, trading mode (off/slow/fast) selectable from interface screen.
Last edited by Wildeblood on Tue Feb 12, 2013 1:54 pm, edited 3 times in total.

User avatar
Jeffers2112
Average
Average
Posts: 14
Joined: Sun Jan 13, 2013 6:52 pm

Re: AI Trading Assistant OXP 2.2.1

Post by Jeffers2112 » Mon Jan 28, 2013 12:53 pm

Hi,

Firstly can I say that I use this OXP and find it very useful.

There are a couple of points to mention.

Apart from starting to use the Trading Assistant with cargo already in the hold (which is mentioned in the instructions), you can get discrepancies in the statistics due to cargo being lost during ship damage or, alternatively, scooped up from wrecked ships.

Also, it seems to get a little confused with Slaves, Firearms and Narcotics, which don't quote an average price. I'm also a law abiding citizen so I don't want it suggesting to me that I buy contraband items. Perhaps it could check legal status and tailor the suggestions accordingly?

Keep up the good work! :D
Best regards,
Jeff

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant OXP 2.2.1

Post by Wildeblood » Mon Jan 28, 2013 2:03 pm

Jeffers2112 wrote:Apart from starting to use the Trading Assistant with cargo already in the hold (which is mentioned in the instructions), you can get discrepancies in the statistics due to cargo being lost during ship damage or, alternatively, scooped up from wrecked ships.
Yes, intentional. You should be able to look at those bought and sold numbers and say, "Hey, I must have scooped so many." But you can only do that if you start from zero.
Jeffers2112 wrote:Also, it seems to get a little confused with Slaves, Firearms and Narcotics, which don't quote an average price.
Yes, you mean where the highlight on the HUD has the word "SELL" in place of the average price for those three commodities. (The highlights are inherited from version 1.9 and Oolite 1.76 where price checking was impossible.) So if the price is low, it will say, "I recommend buying..." and highlight the appropriate line with "SELL". I haven't fixed it yet because I'm in two minds as to the best way... probably just replacing the word "SELL" with "Illegal" would be simplest and clearest.

By the way, this doesn't happen at OXP stations or rock hermits, where it does display the average prices for all commodities. Only at main stations is that information forbidden.
Jeffers2112 wrote:I'm also a law abiding citizen so I don't want it suggesting to me that I buy contraband items. Perhaps it could check legal status and tailor the suggestions accordingly?
Be careful what you wish for, that will seriously cut down your profits. But vetoing any particular commodity is easy, so check back here tomorrow for an "Ethical Trader" plug-in OXP. :D

User avatar
Jeffers2112
Average
Average
Posts: 14
Joined: Sun Jan 13, 2013 6:52 pm

Re: AI Trading Assistant OXP 2.2.1

Post by Jeffers2112 » Mon Jan 28, 2013 4:12 pm

Wow, that was a quick response!

I must confess that I'm not that squeaky-clean, as I do sell any contraband items that I happen to scoop up. Not that there's much else I could do, I mean, it'd be cruel to leave slaves floating about in space, wouldn't it? :twisted:
Best regards,
Jeff

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant OXP 2.2.1

Post by Wildeblood » Mon Jan 28, 2013 5:14 pm

AI Trading Ethical Trader OXP ver. 2.2
Date: January 29th, 2013
Author: Wildeblood


Installation and use:

This is a plug-in OXP to be used alongside AI Trading Assistant OXP, version 2.2, it will not work independently.

Once purchased, Trading Assistant with Autotrade ATS can:-

1) Offer recommendations of which commodities to buy and sell, based on current market prices.

2) If Autotrade is enabled, follow up by buying and selling cargo fully automatically.

Autotrade does not normally discriminate illegal goods when purchasing, it is concerned solely with finding the best discounts. If you wish to prevent Autotrade from recommending or buying illegal goods, simply place the AI Trading Ethical Trader OXP into your "AddOns" folder, alongside the main AI Trading Assistant OXP. No configuration is needed or possible.
Edit: download link removed, see next page.
Last edited by Wildeblood on Tue Feb 12, 2013 2:15 pm, edited 2 times in total.

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: AI Trading Assistant OXP 2.2.1

Post by Diziet Sma » Mon Jan 28, 2013 5:21 pm

Jeffers2112 wrote:Wow, that was a quick response!

I must confess that I'm not that squeaky-clean, as I do sell any contraband items that I happen to scoop up. Not that there's much else I could do, I mean, it'd be cruel to leave slaves floating about in space, wouldn't it? :twisted:
If you want to salve your conscience about selling scooped contraband, you could always take a look at the [EliteWiki] Illegal Goods Tweak OXP.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied

Post Reply