btw. what is the value range of relprice, I guess -1 to 1, am I correct?
The idea:
Code: Select all
<set_value name="$offer.sortvalue" exact="offer.relprice+0.25*sqrt($offer.price/$storedmaxprice)" />
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
Code: Select all
<set_value name="$offer.sortvalue" exact="offer.relprice+0.25*sqrt($offer.price/$storedmaxprice)" />
Doesn't look like there's a difference. And, yup, -1 minprice, +1 maxprice, 0 average, < -1 below min, > +1 above max.ubuntufreakdragon wrote: ↑Fri, 28. Dec 18, 19:13 is there a diffence between buy an selloffers?
so for both -1 means minprice +1 max price of the ware?
I'm not at home right now, but I thinkubuntufreakdragon wrote: ↑Fri, 28. Dec 18, 19:43 Are construction offers genereatet by the CV or the station?
If I want to get explicitly construction resource offers by <match_buyer> how would I do it.
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<aiscript name="trade.find.commander" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="aiscripts.xsd">
<params>
....
</aiscript>
Code: Select all
<?xml version="1.0" encoding="iso-8859-1" ?>
<diff xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" >
<replace sel="//aiscript">
<aiscript name="trade.find.commander" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="aiscripts.xsd">
<params>
....
</aiscript>
</replace>
</diff>
Can confirm. I've been chasing down problems with trade.find.free for the last two weeks (spoiler: 3 logic issues, and some structural stuff), so this is still pretty fresh to me.w.evans wrote: ↑Fri, 28. Dec 18, 19:26Doesn't look like there's a difference. And, yup, -1 minprice, +1 maxprice, 0 average, < -1 below min, > +1 above max.ubuntufreakdragon wrote: ↑Fri, 28. Dec 18, 19:13 is there a diffence between buy an selloffers?
so for both -1 means minprice +1 max price of the ware?
0 being average is important, i think. Would mean that if there were a ware defined so that the average price is not the mean between min and max, the points at which relprice shifts down vs up wouldn't be symmetrical.
Is match_class a valid search expression? I'm not familiar with that one.Tyrant597 wrote: ↑Fri, 28. Dec 18, 20:16I'm not at home right now, but I thinkubuntufreakdragon wrote: ↑Fri, 28. Dec 18, 19:43 Are construction offers genereatet by the CV or the station?
If I want to get explicitly construction resource offers by <match_buyer> how would I do it.
<match_class class.buildstorage
My bad <match class="class.buildstorage"/>Vim Razz wrote: ↑Fri, 28. Dec 18, 22:43
Is match_class a valid search expression? I'm not familiar with that one.
$offer.buyer.isclass.buildstorage is the Boolean. No Idea how that fits into a match expression, though.
@ubuntufreakdragon : also, buy offers are issued by the build storage unit itself, not the station or the CV.
Sure, later tonight or tomorrow after I've had a chance to clean it up a little. A the moment it's still a bit... messy... with a lot of outdated comments and stuff.ubuntufreakdragon wrote: ↑Sat, 29. Dec 18, 02:14 btw. I'm working on trade.find.comander can I see your trade.find.free?
here is mine (wip version) https://www.dropbox.com/s/hg2cf15p8760m ... er.7z?dl=1
Code: Select all
sqrt test: sqrt(2) = 1.41421 sqrt(1254/397) = 1.73205
Code: Select all
sqrt test: sqrt($AmountS/$AmountB) = 0 sqrt(($AmountS)f/($AmountB)f) = 0.310851
Hi there, I have been following this post, have you made any progressions on your script?Vim Razz wrote: ↑Sat, 29. Dec 18, 03:54Sure, later tonight or tomorrow after I've had a chance to clean it up a little. A the moment it's still a bit... messy... with a lot of outdated comments and stuff.ubuntufreakdragon wrote: ↑Sat, 29. Dec 18, 02:14 btw. I'm working on trade.find.comander can I see your trade.find.free?
here is mine (wip version) https://www.dropbox.com/s/hg2cf15p8760m ... er.7z?dl=1
EDIT: I do very much appreciate that you removed that obnoxious relative price filter from line 145 (v1.5 release). I've seen more confused complaints here and on reddit resulting from the effects that has than any other single line of code than I can think of. Aside from that, I'd been meaning to look at trade.find.commander after trade.find.free, but I haven't got there yet, so I don't know much about it.