AI Trading Assistant

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

Moderators: winston, another_commander

User avatar
Rorschachhamster
---- E L I T E ----
---- E L I T E ----
Posts: 274
Joined: Sun Aug 05, 2012 11:46 pm
Contact:

Re: AI Trading Assistant OXP 2.2.4

Post by Rorschachhamster »

Ah, this'll suite me just fine. :)
As I had to disable the Autotrading-AI anyway. I like to have some free room for scooping up criminals and canisters... :wink:
(Maybe, if there was the ability to let the AI know that... :D )
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

AI Trading Assistant OXP 2.2.5

Post by Wildeblood »

Rorschachhamster wrote:
I had to disable the Autotrading-AI anyway. I like to have some free room for scooping up criminals and canisters... :wink:
(Maybe, if there was the ability to let the AI know that... :D )
You mean if the performTrading() function took a parameter like performTrading(reserveSpace) and reserveSpace defaulted to 1 if not set? That's in there already. 8) What is not done yet is some way to set that parameter. It will need another mission screen just to set it. :roll: When I do add that I intend to offer a choice of 0, 1, 2 or 5.
User avatar
Styggron
Above Average
Above Average
Posts: 17
Joined: Sun May 27, 2012 12:09 am

Re: AI Trading Assistant OXP 2.2.5

Post by Styggron »

What a totally brilliant OXP this just gets better and better and better !!!!!! Such improvements SO fast !!!!!

WOW !!!!!!!! :D :D :D
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: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

AI Trading Assistant OXP 2.2.6

Post by Wildeblood »

Styggron wrote:
What a totally brilliant OXP this just gets better and better and better !!!!!! Such improvements SO fast !!!!!

WOW !!!!!!!! :D :D :D
Why, thank you.

I've just uploaded version 2.2.6. The changes are mostly under the bonnet: no new features, but it should run more smoothly, and has more options for customizing.
Recent changes:

2.2.6 (February 10th, 2013) Merged trading advisor & Autotrade scripts. Enabled Autotrade (slow) with marketObserver.

2.2.5 (February 9th, 2013) Compatibility with marketObserver OXP.

2.2.4 (February 1st, 2013) Tweaked interface screen.

2.2.3 (January 30th, 2013) Interface screen now added immediately after equipment bought.

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.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant OXP 2.2.6

Post by Wildeblood »

Here's a plug-in for customizing the message scripts in Trading Assistant. If you find my particular register of English (or English in general) irksome, and want to have a go at hacking the scripts to change the messages, this is for you.
AI Trading, My Advisor OXP ver. 2.2.6
Date: February 10th, 2013
Author: Wildeblood


Installation and use:

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

As supplied, the only effect of this OXP in the game is to change the form of address the Trading Assistant uses when reacting to the player buying and selling cargo, from "boss" to "your Majesty".

But, the purpose of this OXP is to provide an example for you to create your own reaction scripts. If you've thought about hacking the AI Trading Assistant OXP to improve the reaction messages, but not known where to begin, this is for you.

Simply place this OXP alongside the main AI Trading Assistant OXP in your "AddOns" folder. The scripts in here will automatically over-ride the default ones. Then start hacking away without fear: you can't break any of the essential trading or record-keeping functions by changing anything here, only the messages.
Download AI Trading, My Advisor OXP 2.2.6 here.
In your heart, you know it's flat.
User avatar
GGShinobi
---- E L I T E ----
---- E L I T E ----
Posts: 291
Joined: Tue Dec 25, 2012 7:20 pm

Re: AI Trading Assistant OXP 2.2.6

Post by GGShinobi »

Wildeblood wrote:
As supplied, the only effect of this OXP in the game is to change the form of address the Trading Assistant uses when reacting to the player buying and selling cargo, from "boss" to "your Majesty".
LOL :lol: this is getting better and better - don't know which one I like more... "boss" or "your Majesty"... :lol: or should I change it to "almighty Master"? :lol: :lol:
(this should come with a warning: "a common side effect of frequent use of this may cause megalomania, which might prove quite unhealthy in space")
忍 knowing that enough is enough, you'll always have enough.

Running Oolite 1.77 on Ubuntu Linux 12.04 LTS
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

AI Trading Assistant 2.3

Post by Wildeblood »

Wildeblood wrote:
The next step is to add... 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."
Done in version 2.3. :D

Edit: link removed in sneaky eyesight test.
Last edited by Wildeblood on Thu Feb 14, 2013 8:19 am, edited 2 times in total.
User avatar
Rorschachhamster
---- E L I T E ----
---- E L I T E ----
Posts: 274
Joined: Sun Aug 05, 2012 11:46 pm
Contact:

Re: AI Trading Assistant OXP 2.3

Post by Rorschachhamster »

Is that a preview or am I too blind to find the link? :D
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: AI Trading Assistant OXP 2.3

Post by Cody »

The link on the first page will take you to the Wiki page, and thence to the OXP link.
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Rorschachhamster
---- E L I T E ----
---- E L I T E ----
Posts: 274
Joined: Sun Aug 05, 2012 11:46 pm
Contact:

Re: AI Trading Assistant OXP 2.3

Post by Rorschachhamster »

El Viejo wrote:
The link on the first page will take you to the Wiki page, and thence to the OXP link.
Thanks!
(And I searched the whole time for a link that says 2.3... :roll: :wink: )

EDIT: Oh, and BTW, I just tried to get my Trading Assistent to speak German (I nicknamed him "Fritz" and he calls me master... 8) ), but I found no possibility to change the "I recommend buying computers, boss"-message. Am I blind again? Or do I have to go into the main script? :?:
EDIT2: As in " AI Trading, My Advisor OXP 2.2.6", of course... :oops:
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

AI Trading Assistant 2.4

Post by Wildeblood »

Rorschachhamster wrote:
Is that a preview or am I too blind to find the link? :D
You're too blind to see the link, apparently. :mrgreen: Sorry about that.

Now, where were we up to?
Wildeblood wrote:
Rorschachhamster wrote:
I had to disable the Autotrading-AI anyway. I like to have some free room for scooping up criminals and canisters... :wink:
(Maybe, if there was the ability to let the AI know that... :D )
You mean if the performTrading() function took a parameter like performTrading(reserveSpace) and reserveSpace defaulted to 1 if not set? That's in there already. 8) What is not done yet is some way to set that parameter. It will need another mission screen just to set it. :roll: When I do add that I intend to offer a choice of 0, 1, 2 or 5.
Done in version 2.4.
Rorschachhamster wrote:
I just tried to get my Trading Assistent to speak German (I nicknamed him "Fritz" and he calls me master... 8) ), but I found no possibility to change the "I recommend buying computers, boss"-message. Am I blind again? Or do I have to go into the main script?
No, the recommend sale, recommend purchase and nuisance cargo messages are buried deep in the scripts. But I'll separate them out in due course.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

AI Trading Assistant 2.6.2

Post by Wildeblood »

version 2.5: You can now have Autotrade either buying or selling only, if you want. So it can automatically buy the best discounts, and you decide when to sell, or you can decide what to buy, and Autotrade will sell them as soon as it's profitable to do so.

version 2.5.1: Autotrade now automatically finds all other OXPs that monitor trading, and notifies them of trades it makes.

version 2.6: Docking history, lists recently visited stations.

version 2.6.1: Autotrade fast selling disabled if New Cargoes OXP is present. So it won't accidentally sell your special cargoes.

version 2.6.2: Tweaked docking history screen.
Last edited by Wildeblood on Mon Mar 04, 2013 9:13 am, edited 1 time in total.
Bogatyr
---- E L I T E ----
---- E L I T E ----
Posts: 281
Joined: Sun Feb 24, 2013 11:52 am

Re: AI Trading Assistant OXP

Post by Bogatyr »

Switeck wrote:
DeathKnyte wrote:
it is so much easier to just sell everything you currently have, and then buy everything that is for sale. just two clicks, or confirmations are required, instead of depressing the arrow key many times to buy (or sell) just one at a time. Plus the game has this annoying bell ringing all the time, when you do (reason it is annoying, is because it is so loud).
The sheer loudness of this annoying bell ringing is a bug to me. I have to play Oolite at a relatively quiet level just to avoid causing my ears pain when buying/selling.
Yes it is by far one of the loudest sounds in the game, once when I was trading (playing with earphones!) someone in the room with me said "did someone leave the refrigerator door open?" (it rings with a similar sound when it is left open too long)!
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: AI Trading Assistant OXP

Post by Smivs »

Bogatyr wrote:
...the refrigerator...rings with a similar sound when it is left open too long!
My fridge has a great sense of humour - it just sits there quietly if you leave the door open and lets the food go off! :(
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: AI Trading Assistant 2.6.2

Post by Wildeblood »

I'd forgotten all about that irritating bell sound. Now I've just realized why watching autotrade do its thing still doesn't seem quite right: because it doesn't have any accompanying sound effect when it trades. I'll add it to the to-do list. (Somebody talk me out of this idea before I go ahead and do it!)
Post Reply