pjf / masterwork-dwarf-fortress

Patches and bugfixes applied to Meph's amazing Masterwork Dwarf Fortress
33 stars 22 forks source link

Settings manager strings? #102

Open pjf opened 10 years ago

pjf commented 10 years ago

Hey @splintermind,

I know that the settings manager changes a lot of YES strings to NO strings (and vice-versa) in the raws. Is there a definitive list of these somewhere? I'd love to provide a cmdline utility for flipping options for folks on Linux/Mac machines for whom dotnet40 may be tricky (I tried it yesterday on a Mac, and was completely unsuccessful).

If there isn't a definitive list, that's cool, I can write code to find them. :)

Many thanks!

~ pjf

splintermind commented 10 years ago

No there isn't, and due to shoddy naming conventions in the original, some are very obscure. I can see about getting a list exported from the GUI though.

pjf commented 10 years ago

Thank you! :)

pjf commented 10 years ago

Oh, I like the export list! I can definitely use that in a stand-alone shell/perl script, although I don't quite recognise the format it's in...

For what it's worth, I'd suggest JSON as an export format. It's lightweight and easily read by both humans and machines.

Many thanks again!

splintermind commented 10 years ago

Since there isn't really a reason to make it serializable I just used an arbitrary format for easy readability.

pjf commented 10 years ago

Aaah! I have a reason for it to be serialisable. Then I can write code that reads the file, knows which things to flip in which files, and if the Settings GUI updates, then I don't need to change my code. :)

I can definitely work with what I've got, but if I know it's auto-exporting in a known format, then I can feel safe my code is going to experience slower bit-rot than it may otherwise. :)

Keep being awesome! :)

~ Paul

splintermind commented 10 years ago

Alright, well I'll see about getting it into a JSON formatting then sometime.