I have borked demographic auto-shortcuts

Okay, on the game I’m working on there’s no like “groups” or “factions” – individuals organize organically, not in chargen. Sooo, that means I just ripped out most of the demographics config.

I am left with:

https://gist.github.com/ixokai/fa616f01319f8961eb4587a9026629bd

Now, “demographics” returns Huh? so that global shortcut on the bottom isn’t working, additionally, “fullname Test One” does as well. But, “demographic/set fullname=Test One” works fine.

Now, in the log it says:
2018-06-30 22:43:53 ERROR - Error parsing shortcuts: AresMUSH::Demographics undefined method `keys’ for false:FalseClass

So clearly I need to specify that there’s no “groups” in a different way then just leaving it blank.

Side question, where are the default config files stored? I can’t find them anywhere and have on a couple occasions wanted to revert or refer to the originals :slight_smile:

The groups list can’t be false. The code is expecting a hash. You should be able to make it an empty one by specifying groups: {}. Give that a try and if it’s still messed up, it’s probably a bug.

Oh - and the original config files live under install/game.distr/config for reference.

Yeah I figured the false was bad, that’s just what the non-advanced editor sets an empty page to. I tried using advanced to set it to {} (i had previously tried []) and get this:

2018-07-01 00:21:39 DEBUG - AresMUSH::Demographics::DemographicsListCmd: ID=18 Enactor=Test1 Cmd=demographic
2018-07-01 00:21:42 ERROR - Error parsing shortcuts: AresMUSH::Demographics undefined method `keys' for [nil]:Array

Hmmm…

That’s puzzling. I copied your demographics and just changed the groups to {} and it works just fine for me.

https://pastebin.com/vfn5PTQC

Did you load config after changing it to an empty hash? (I only ask because I forgot that myself just now when testing this :slight_smile: )

That explains it! I thought it did that automatically because it seemed to take my changes earlier without any intervention!

Works now :slight_smile:

Standard setup does a load config automatically. The advanced config editor might not - but it really should. I’ll check to be sure it does.

Incidentally, you can put in empty hash/array values in the standard editor too. You just have to be explicit about it with {} instead of just leaving it blank. (the config editor doesn’t really know data types)

Yeah I see that now, thanks for the info!

BTW, its pretty amazing how out of the box easy Ares is to run an FS3 game and be ‘done’, even one that leans a little against your stated ideal-use-case. I think this game will open for players in a matter of a couple weeks, its just building that’s really going to keep us from being ready. (Though I expect +combat balancing; statting swords vs daggers vs the various low-fantasy weapons with my inexperience with the numbers will take some time. But that’s okay!)

Thanks for the feedback!

Btw if you want to submit your finished combat config as an Ares Extra I think having a balanced fantasy list would be helpful for the community.

Sure, I’ll make a point of doing that.

1 Like