Page 6 of 6

Re: [Release] Market inquirer

Posted: Tue Jan 23, 2018 8:32 pm
by Nite Owl
Thank you phkb and spara. Your efforts are greatly appreciated.

Re: [Release] Market inquirer

Posted: Tue Oct 06, 2020 11:58 pm
by Cholmondely
Thank you for this - I confess to finding it inordinately useful.

There are three minor fixes which I suspect might improve the station interface (F4: Commodity Markets option):

i) Marking the current orbital station in which the interface is located (if it is indeed registered on the screen - Rock Hermits & SLAPUs allow the interface but are not of course registered on it!) - perhaps with a different colour?

ii) Indicating the Galaxial normative price for each commodity (this would probably require another column).

iii) The default setting at the bottom of the screen is Exit rather than Swap - which if one is whizzing between two pages comparing the prices over a number of different commodities leads to utter teeth-gnashing frustration. Could not one utilise the left/right arrow keys for this as one does with so many of the other screens in the game (F3/F4/F5/F7/Expansion Manager etc)?

I'm just dipping my toes into the .oxp programming thing: is there any way that I might be able to do any of this stuff myself? Any tips?

Re: [Release] Market inquirer

Posted: Wed Oct 07, 2020 3:32 am
by phkb
Cholmondely wrote: Tue Oct 06, 2020 11:58 pm
Could not one utilise the left/right arrow keys for this as one does with so many of the other screens in the game
Limitations on mission screens prevents the use of left/right/pg up/pg dn keys. The best we could do is default the menu selection to something other than "Exit"

Re: [Release] Market inquirer

Posted: Wed Oct 07, 2020 3:37 am
by phkb
Cholmondely wrote: Tue Oct 06, 2020 11:58 pm
I'm just dipping my toes into the .oxp programming thing: is there any way that I might be able to do any of this stuff myself? Any tips?
Try this out. In the "\Config\script.js" file, go to line 357. The section should look something like this:

Code: Select all

	//select correct options
	var options = {
		"0_SELECT" : "Select commodities to view",
		"1_NEXT" : "Swap",
		"2_QUIT" : "Exit"
	};
	if (stations.length <= maxCols || stations.length === 0) {
		options = {
			"0_SELECT" : "Select commodities to view",
			"2_QUIT" : "Exit"
		};
	}
	//finally, the mission screen
	mission.runScreen({
		title: "Commodity Markets of " + system.name,
		screenID:"marketinquirer-markets",
		message: text,
		choices: options,
		background: bgImage,
		exitScreen: "GUI_SCREEN_INTERFACES",
		initialChoicesKey: "2_QUIT"
	},
Change it to look like this:

Code: Select all

	//select correct options
	var options = {
		"0_SELECT" : "Select commodities to view",
		"1_NEXT" : "Swap",
		"2_QUIT" : "Exit"
	};
	var def = "1_NEXT";                    // << add this line
	if (stations.length <= maxCols || stations.length === 0) {
		options = {
			"0_SELECT" : "Select commodities to view",
			"2_QUIT" : "Exit"
		};
		def = "2_QUIT";                    // << add this line
	}
	//finally, the mission screen
	mission.runScreen({
		title: "Commodity Markets of " + system.name,
		screenID:"marketinquirer-markets",
		message: text,
		choices: options,
		background: bgImage,
		exitScreen: "GUI_SCREEN_INTERFACES",
		initialChoicesKey: def                      // << change this line
	},
And see how that goes.

Re: [Release] Market inquirer

Posted: Wed Oct 07, 2020 7:02 am
by Cholmondely
Thanking you!

Re: [Release] Market inquirer

Posted: Wed Oct 07, 2020 5:44 pm
by Cholmondely
First attempt a dismal failure (the various liners visiting the Ensoreus system disappeared from the F4 Commodities Markets screen - they were very much there in the relevant MDF)!

I assume that since I hand-typed everything that I either overlooked one of your modifications - or that I made a typo.

Will have another stab at it!

Interestingly enough the unzipping of the .oxp would not convert back to a folder when I extirpated its .oxp suffix! I'll just have to go back to my copy of your original.

On the Mighty Mac I unzip the .oxz which transmogrifies it into a folder with the various goodies in it. When I've finished vandalising the contents I then bung on a .oxp suffix

Re: [Release] Market inquirer

Posted: Wed Oct 07, 2020 9:26 pm
by phkb
I added some comments to the code above to make it clearer what changes are required. I'm sure you'd probably worked this out, but just in case.

Re: [Release] Market inquirer

Posted: Wed Oct 07, 2020 10:31 pm
by Cholmondely
Thank you.

Cholmondeley

Re: [Release] Market inquirer

Posted: Sun Oct 11, 2020 1:58 pm
by spara
Thanks phkb for providing help with issue iii. I'll update this fix to the oxp the next time I update it.

About the other questions

i) Possible to some extent for sure. Colors are not possible, but the order could be so that the first column is always the one the player is docked at. Then again, this service is envisioned as a broadcast from the central trading system for all legal stations and thus the order is static. Hmmm. Need to ponder this over a bit.

ii) Again totally possible. Maybe a link with the market observer, if that one is installed, could be established. It would be really crowded though, since for a busy system the screen is already packed with market data. I'll test this a bit, if I'll figure some nice solution.

Re: [Release] Market inquirer

Posted: Mon Oct 12, 2020 6:26 am
by Cholmondely
spara wrote: Sun Oct 11, 2020 1:58 pm
Thanks phkb for providing help with issue iii. I'll update this fix to the oxp the next time I update it.

About the other questions

i) Possible to some extent for sure. Colors are not possible, but the order could be so that the first column is always the one the player is docked at. Then again, this service is envisioned as a broadcast from the central trading system for all legal stations and thus the order is static. Hmmm. Need to ponder this over a bit.

ii) Again totally possible. Maybe a link with the market observer, if that one is installed, could be established. It would be really crowded though, since for a busy system the screen is already packed with market data. I'll test this a bit, if I'll figure some nice solution.
Faff about with the fonts (size/italics/different font...) ? Or is that also verboten?

But just to reiterate the point, I do find this .oxp very, very useful (even without every conceivable bell and whistle!): Thank you!

Re: [Release] Market inquirer

Posted: Mon Oct 12, 2020 1:16 pm
by montana05
Cholmondely wrote: Wed Oct 07, 2020 10:31 pm
Thank you.

I will instruct Benedict forthwith to order your employers to double your salary.

I beg, Sir, to remain thy obedient servant ...

Cholmondeley
May I remind you that nobody on this project is your servant and, last time I checked, nobody got any money out of that. I would strongly suggest that you think twice before posting messages like that. While your posts, once in a while, make me smile I would recommend to post problems in facts, personally I am not in the mood to read a long story before I am finally see the problem.

Re: [Release] Market inquirer

Posted: Mon Oct 12, 2020 1:25 pm
by spara
Cholmondely wrote: Mon Oct 12, 2020 6:26 am
Faff about with the fonts (size/italics/different font...) ? Or is that also verboten?

But just to reiterate the point, I do find this .oxp very, very useful (even without every conceivable bell and whistle!): Thank you!
Alas, there is no control on the font other than changing the font for the whole GUI.

Pulling the market data from the current station to the inquirer is not a big change and well worth consideration. The galactic averages (hard-coded of from the market observer) on the other hand might not be that easy to add and maybe even not that handy. I'll have to ponder a bit on those.

Re: [Release] Market inquirer

Posted: Mon Oct 12, 2020 3:12 pm
by spara
New version 1.14.1. Two small fixes.
* The station interface now always lists the current station and it's market even if the station is not registered to the system's market broadcast service.
* Implemented phkb's fix for defaulting swap over exit in the station interface.

Re: [Release] Market inquirer

Posted: Fri Jun 11, 2021 7:31 pm
by Josef
Hi everybody,
I have some questions about the Market Inquirer:
At what TL is it possible to by the Market Inquirer and what is the price?
At what TL can I buy the Market Inquirer MFD and what is the price?

Re: [Release] Market inquirer

Posted: Sun Jun 13, 2021 6:22 am
by Cholmondely
Josef wrote: Fri Jun 11, 2021 7:31 pm
Hi everybody,
I have some questions about the Market Inquirer:
At what TL is it possible to by the Market Inquirer and what is the price?
At what TL can I buy the Market Inquirer MFD and what is the price?
The MFD is paid for, but the in-station analysis is free (F4 screen, Commodities MArkets)

MFD: 1050₢. TL7