(WIP) Elite Trader
Moderators: winston, another_commander
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Thanks for those two. But I'm sure I remember there being one that completely reorganized and revamped the Oolite Market. (And I suddenly have it in mind to try something similar: maybe another Frontier First Encounters facsimile...)
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: (WIP) Elite Trader
I would just keep an weighted average price for each commodity and use that to judge if a buy or sale where good.montana05 wrote: ↑Thu Nov 12, 2020 1:54 pmI do agree with spara, there is no importance for the core-game to log all prices a player bought goods. Are you aware that several OXP's add a lot of stations to every system ? All of them will have slightly different prices so if you intend to log all buyer-prices how you will do ? Average price per system or a single entry for every transaction ? Btw however you plan to solve it, you need to save every call for that, I would suggest to build an array.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
That's a great idea. Perhaps for a future update. I'm satisfied with the way it works ATM - and it does work. No frills, hehe.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: (WIP) Elite Trader
Things to keep in mind if trying to track buys/sells/profit:
- cargo can be destroyed in-flight;
- cargo can be scooped in flight;
- cargo can be dumped in flight;
- cargo can be dumped and then re-scooped in-flight (dumped to free space to scoop something else, re-scooped after discovering that the something else was worth less than the dumped cargo);
- cargo can be mined in-flight (from derelicts, from asteroids);
- cargo can be stored in Equipment Storage at the Main Station;
- cargo can be stored in-ship but not be part of the manifest: smuggler compartments, Hyper Cargo, Vortex/Maelstrom cargo bays...
- cargo can be destroyed in-flight;
- cargo can be scooped in flight;
- cargo can be dumped in flight;
- cargo can be dumped and then re-scooped in-flight (dumped to free space to scoop something else, re-scooped after discovering that the something else was worth less than the dumped cargo);
- cargo can be mined in-flight (from derelicts, from asteroids);
- cargo can be stored in Equipment Storage at the Main Station;
- cargo can be stored in-ship but not be part of the manifest: smuggler compartments, Hyper Cargo, Vortex/Maelstrom cargo bays...
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Thanks a lot. Well, then, all I need to do to avoid those contingencies is read the number of units currently in the hold on docking and if it doesn't tally with the $etBoughtUnits from the last station, ET drops the whole batch and doesn't attempt to process it. And it's still (almost) as simple as before.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
Re: (WIP) Elite Trader
The most extensive commodity OXZ is NEW CARGOES which adds over 100 additional commodities to Oolite.
Humor is the second most subjective thing on the planet
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Thank you! That's the one I was thinking of.Nite Owl wrote: ↑Thu Nov 12, 2020 11:37 pmThe most extensive commodity OXZ is NEW CARGOES which adds over 100 additional commodities to Oolite.
The docs seem to indicate that NEW CARGOES doesn't actually modify the core Oolite commodities list, bit adds, and allows users to add, new cargoes via an API/script as what we might call 'aliases', so ET will probably function as before with that installed.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: (WIP) Elite Trader
One more thing to ponder about is that some missions will empty your cargohold to fill it with special cargo, which may or may not be profitable depending on how you handle it.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Yes indeed - there are so, so many contingencies to deal with here. Best, in ET's case I think, simply to concentrate on conventional trades (Milk Runs), invalidating all the others by a simple unit count tally. Those who indulge in the more recondite trade practices are probably experienced Ooliters anyway and will have lots of kills under their belt. This one is more for tyros and the keyboard/joystick-challenged
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Slightly off-topic: could someone remind me which key to press to export an OXZ from the Manager?
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: (WIP) Elite Trader
The 'x' key.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Sage advice. That's exactly what I've decided to do...
I will institute a manifest count on docking and then compare it with the # bought units from the last station, though.
I will institute a manifest count on docking and then compare it with the # bought units from the last station, though.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
- Reval
- ---- E L I T E ----
- Posts: 402
- Joined: Thu Oct 29, 2020 3:14 am
- Location: At home in the Xexedi Cluster, driving an FE Asp II, Laenina's Flux.
Re: (WIP) Elite Trader
Attempting to implement the following:
Latest.log throws this exception:
05:33:07.718 [script.javaScript.exception.notDefined]: ***** JavaScript exception (Elite Trader 0.1 Beta): ReferenceError: GUI_SCREEN_MARKET is not defined
I simply pasted GUI_SCREEN_MARKET in from the Wiki.
Code: Select all
this.guiScreenChanged = function(to, from) {
if (to == GUI_SCREEN_MARKET) {
player.consoleMessage("In hold: "+this._etPodCount+" pods ( "+formatCredits(((this.$etBoughtPrice)/10),true,true)+" )");
}
}
05:33:07.718 [script.javaScript.exception.notDefined]: ***** JavaScript exception (Elite Trader 0.1 Beta): ReferenceError: GUI_SCREEN_MARKET is not defined
I simply pasted GUI_SCREEN_MARKET in from the Wiki.
Dor 'call me Grocer' Reval (a Xexedian Laver) was always considered a little backward.
-
- Quite Grand Sub-Admiral
- Posts: 6683
- Joined: Wed Feb 28, 2007 7:54 am
Re: (WIP) Elite Trader
I think it's meant to be a string: "GUI_SCREEN_MARKET".