New version 3.7/1.0 is available in the manager. The oxp has been split into two for maximal enjoyment and customizability now that I actually figured out how to make those custom column headers work somewhat properly with all those different custom fonts out there without the help of a custom hud.
* Market Observer 3.7 has the market stat and trader's rating functionality. Trader's rating can be viewed in the ship's manifest.
* Market Ads 1.0 adds, well, the ads to the market screen with the help of a custom hud as before. Now the trader's rating can be seen in the market screen also.
You can install either or both or neither, whatever is your preference
Hi Spara!
Just FYI, it's not a big deal but I've just noticed that the F8 screen gets a bit messed up in the witch-space when a misjump occurs.
Other than that the market observer seem to work perfectly fine.
Been using Market Observer (installed from the OXZ manager in v.1.90) for a few days now, and have noticed an anomaly - or is it a bug?
Despite making consistent and continuous profits on various 'milk runs' since starting out, Market Observer continues to insist that my commander(s) should be rated Beginner, with increasing negative scores, ie. losses. These messages on docking with main stations are starting to irritate, tempting me to remove the OXZ, which otherwise works fine and is a useful aid to trading in the Ooniverse.
Here is the relevant part of the market_observer.js script:
if (profitLoss > 0) {
worldScripts["mo-traders_rating3"].$reportProfit(-1 * profitLoss);
player.consoleMessage(formatCredits(profitLoss/10, true, true )+" worth of cargo is lost.");
I'd tweak it myself if I could figure out the variables, but the logic seems a little complicated... So I was hoping you might be able to help.
Been using Market Observer (installed from the OXZ manager in v.1.90) for a few days now, and have noticed an anomaly - or is it a bug?
Despite making consistent and continuous profits on various 'milk runs' since starting out, Market Observer continues to insist that my commander(s) should be rated Beginner, with increasing negative scores, ie. losses. These messages on docking with main stations are starting to irritate, tempting me to remove the OXZ, which otherwise works fine and is a useful aid to trading in the Ooniverse.
I, too, found exactly the same. I found Market Observer too useful to ditch - and the bug too easy to ignore.
But just yesterday, I started wondering - maybe MO includes my constant forays buying goodies for my Despondent Denizen of Digebiti in the shipyard in its overall profit and loss account for each planet? Do all Benedict's buoyant bouncing bobbleheads depress the DDD's profits?
Last edited by Cholmondely on Thu Oct 29, 2020 2:02 pm, edited 1 time in total.
I, too, found exactly the same. I found Market Observer to useful to ditch - and the bug too easy to ignore.
Indeed. With that in mind and being loath to nuke it, I assigned an empty string to the offending variable traderRank in both the docking message and the Manifest screen, commenting out the egregious lines:
if (profitLoss > 0) {
worldScripts["mo-traders_rating3"].$reportProfit(-1 * profitLoss);
// Is this is a bug? (Reval)
// player.consoleMessage(formatCredits(profitLoss/10, true, true )+" worth of cargo is lost.");
}
Save, and restart Oolite with the <shift> key held down, and no more irritation
Would still appreciate help from Spara in nailing the causes though...
I did a bit of buying and selling between two systems with basically just MO installed and did not see any anomalies . Also bought some equipment and jettisoned some cargo. So, if there's any more information you could give me, I would be most pleased. Like a chain of events that lead to the bug. Also, do you happen to have any other oxps that might fiddle with markets and ship manifest? For example hyper cargo is one known one that.
No unusual activities leading to the anomaly - just milk runs, most recently between Xexedi and Laenin short-haul. The "cargo lost" docking message occurs in both the Adder and the Cobra I and III. Not always, mind - usually at just one of the stops (Xexedi, I think).
Oh hang on a minute - I _do_ have one other trading-related: It's called SellAll, and allows you to sell all your cargo from the F4 screen (or find an alternative buyer). Doing that ends up on the F8 trading screen. I tend to use that method most of the time. Can't really see how it could conflict, though. But maybe it does. I'll try removing it and report back.
Oh hang on a minute - I _do_ have one other trading-related: It's called SellAll, and allows you to sell all your cargo from the F4 screen (or find an alternative buyer). Doing that ends up on the F8 trading screen. I tend to use that method most of the time. Can't really see how it could conflict, though. But maybe it does. I'll try removing it and report back.
Thanks, that's probably it. Seems like there's a compatibility hack in the SellAll script that checks for the script called "market_observer" and fails there since the current one is "market_observer3". You could test hacking the SellAll and changing all references from "market_observer" to "market_observer3" and see if that makes a difference. If needed, I can of course change the current script name to "market_observer", but I have no idea if that would break something else Better try to keep this contained.
Nope. Did a search/replace on "market_observer"-->"market_observer3" in SellAll's script, restarted with <shift>, and the MO "cargo lost" negative scores are still in place
That was with an existing commander. Maybe I should start a new commander and see? (I presume MO is adding an entry to the savegame?).