openMSX shortcuts and settings

Pagina 1/2
| 2

Door mars2000you

Enlighted (6014)

afbeelding van mars2000you

25-09-2012, 20:32

In order to have an extended overview of the default settings of openMSX and edit them manually, it should be interesting to be able

a) to produce a complete xml file with these settings
b) to get a similar xml or txt file for the default shortcuts

Concerning the point b), I've managed to create a screenshot (by merging 2 different views in the console) :

but I've noticed that some shortcuts are missing, especially

F7 Select
F8 Stop

I want indeed to almost all modify to make the shortcuts and settings similar to the defaut blueMSX shortcuts and settings.

(don't answer me with post on Sourceforge or come on IRC, it's not my way)

Aangemeld of registreer om reacties te plaatsen

Van OeiOeiVogeltje

Paragon (1401)

afbeelding van OeiOeiVogeltje

25-09-2012, 21:28

its not the way of the Jedi

Van Manuel

Ascended (18238)

afbeelding van Manuel

25-09-2012, 22:03

Here's the default key mapping: http://openmsx.sourceforge.net/manual/user.html#keymapping

The complete list of settings is here: http://openmsx.sourceforge.net/manual/commands.html

There's probably a way to get all the default values listed, but it'll require a small script, which I don't want to write right now :)

I hope this helps.

By the way, if you want the output of the console in a file, try this: puts stderr [bind]
You'll get the output in the last tab of Catapult and you can copy-paste it.
You can also enlarge the console, with the consolerows setting :)

Van mars2000you

Enlighted (6014)

afbeelding van mars2000you

25-09-2012, 22:06

I know these parts of the manual. Contrary to meisei and blueMSX that come with .ini files where default settings are stored, openMSX does not come with a similar file. From my point of view, the default settings.xml file should come with all the default settings in stead to be almost empty.

Van Manuel

Ascended (18238)

afbeelding van Manuel

25-09-2012, 22:11

technical mode: we made a design decision to only store settings that deviate from the defaults in the settings.xml file, to avoid duplication. Beacause for when the file is missing, you have to hardcode them anyway. So we hardcoded them in the code and only there.

To help you, can you make clear what you would like to do with a list of all default settings values?

Van mars2000you

Enlighted (6014)

afbeelding van mars2000you

25-09-2012, 22:16

Technical choices are always a matter of discussion. In meisei and blueMSX, the default values are also hardcoded, the .ini files are generated when you run the emulator for the first time or if you have deleted the files.

My goal is explained in my first post :

"I want indeed to almost all modify to make the shortcuts and settings similar to the defaut blueMSX shortcuts and settings."

Van Manuel

Ascended (18238)

afbeelding van Manuel

25-09-2012, 22:22

OK, but why do you need a list of the defaults? Just set all settings to the values you want...

Oh, and we don't generate a persistent file with all the settings because that would go wrong when we want to change the default value.

Van mars2000you

Enlighted (6014)

afbeelding van mars2000you

25-09-2012, 22:27

General overview is missing with this approach.

I'm not speaking about the file in My documents/openMSX, but in the directory where I've unzipped openMSX zipped version.

Van wouter_

Champion (469)

afbeelding van wouter_

25-09-2012, 22:49

I think the script below generates something like what mars2000you requested. It lists all settings together with the current and the default value and even a short description of the setting. Though if you run this in a typical machine you get about 1000 lines of output. I recommend to read the settings section in the manual instead.

BTW, here are two reasons why we decided not to write settings with default value to some file (xml or ini):
- Settings in openMSX are quite dynamic, e.g. if you use a turbor and insert 2 moonsound extensions (at different IO ports) and 4 SCC cartridges, you will get a lot more settings compared to using a plain msx 2. It would be impossible/useless to list all settings for all possible crazy combinations of extensions.
- Not saving default values makes it easier to upgrade to new default values in newer openmsx versions. E.g. at some point we switched the default accuracy level from 'line' to 'pixel'. If we would always put all settings in the file, we couldn't know whether the user kept the default value (and we can upgrade to the new default) or if the user explicitly override the setting and we should preferably keep his choice.
Anyway, it's mostly an historical decision, both the openmsx and the blueMSX/meisei approach have advantages/disadvantages.

proc settings_info {} {
	set result ""
	foreach setting [lsort [info globals]] {
		catch {
			set value [set ::$setting]
			set description [help set $setting]
			lassign [openmsx_info setting $setting] type default range
			append result "setting: $setting\n"
			append result "type: $setting\n"
			append result "current value: $value\n"
			append result "default value: $default\n"
			if {$range ne ""} {append result "range: $range\n"}
			append result "description: $description\n"
			append result "\n"
		}
	}
	return $result
}

save_to_file settings.txt [settings_info]

Van Manuel

Ascended (18238)

afbeelding van Manuel

25-09-2012, 22:51

That script probably helps, but I still don't get it: the web page gives a very complete overview, doesn't it? (Just not the default value, but why is that important?)

Van mars2000you

Enlighted (6014)

afbeelding van mars2000you

25-09-2012, 23:13

Thanks Wouter for the script and the explanations !

I'll try first the script in my personal boosted TurboR config, so it will be a good starting point, even if 'details' of other machines or non-included extensions will be missing (indeed, another difference with meisei and blueMSX !)

EDIT : the script works very good, it has given me a 47 kb text file. It's very interesting to see all the settings, especially with a boosted config. Of course, as openMSX has some exclusive features (I think about the musical channels), there are really many settings ! Smile

Pagina 1/2
| 2