Mechanized Assault & eXploration Reloaded



#1 Jun 01, 2011 1:40 am
mdooligan mdooligan Offline
Approved Member
Registered since: Dec 07, 2008
Posts: 36


Subject: keys.xml?
I hope this isn't a dumb newbie question again.

I've changed a couple keybindings in keys.xml and it makes no difference. The file is still sitting in $HOME/src/maxr-svn-110521/data directory, which I cd into to play the game. I've tried putting it in $HOME/.maxr and it makes no difference. I always have default keybindings, and I've been very careful to use the bindings defined in GetKeyString() from keys.cpp.

Also, if I delete keys.xml, it appears from the code in keys.cpp the game should write a new default file, but doesn't.

Am I being obtuse? I'm still familiarizing myself with the code as time permits.
Miven Dooligan
Peace and cheer
↑  ↓

#2 Jun 01, 2011 9:51 am
beko beko Offline
Developer, Administrator
Registered since: Jun 04, 2004
Posts: 2,279


Subject: Re: keys.xml?
Hi mdooligan
keys.xml does not work with $HOME/.maxr/ yet, sorry. This is on our todo list.

Any chance there's another maxr data folder install around?

Afair maxr tries to auto detect it's data folder by checking some default paths. You can override this using "MAXRDATA".

Try starting like that: "MAXRDATA=$HOME/src/maxr-svn-110521/data $HOME/src/maxr-svn-110521/src/maxr"
Bernd Kosmahl
"Sir, we are surrounded!" - "Great - we can attack in any direction."
↑  ↓

#3 Jun 04, 2011 12:36 am
mdooligan mdooligan Offline
Approved Member
Registered since: Dec 07, 2008
Posts: 36


Subject: Re: keys.xml?
Well, lo and behold! That hadn't occurred to me. I moved all my old maxr directories into an archive dir, instead of sitting around in $HOME/src/MAX/, and it works!

Thank you very much.

I was also curious why the game had the original max graphics, when I hadn't put them into the svn/data dir yet. Now, after I moved the old dirs into archive, I have the new graphics and everything from the correct directory ($PWD). A few complaints on load also disappear.

Now that I have a clue, I also notice that my max.xml has a line

<Gamedata Text="/home/miven/src/MAX/maxr-0.2.6/data//" />

Doh! Not the correct directory. That explains a few things. I guess I skimmed the file a bit too fast and thought everything was as it should be. I change this to point to symlink that points at the current project directory, because I change symlink when I download new source and successfully compile it.

Again, thank you for helping me through these small but puzzling issues.
Miven Dooligan
Peace and cheer
↑  ↓

Pages (1): 1

All times are GMT +02:00. Current time: 6:55 pm.