[CF-Devel] save client settings on server

crossfire-devel-admin at archives.real-time.com crossfire-devel-admin at archives.real-time.com
Thu Jul 3 18:07:54 CDT 2003


Yua CaVan wrote:
>
     
      The philosophy behind my approach back when I did that port w/ per-character
     
     >
     
      bindings is that the keybindings are, like you pointed out, part of the
     
     >
     
      character.  I agree that the keybindings should not be kept on the server
     
     >
     
      since different computers will have different keymappings.  The reason I
     
     >
     
      chose to use the character's name as the name for the keybinding was that
     
     >
     
      the character name is unique on each server.  The issue that crops up is:
     
     >
     
      what happens when someone uses the SAME character name on other servers?
     
     >
     
      That's why I recommended that anyone who has the time to modify the code to:
     
     >
     
      1. check to see if a folder with the server name exists
     
     >
     
          if not, create that folder
     
     >
     
      2. store the character keybindings in that folder under the character's name
     
     >
     
     
     >
     
      shouldn't be that hard.  Just don't have the time w/ the projects at work.
     
     
  Your approach is reasonable.  My comment is that often, I'll want to use the 
same keybindings for different characters of the same general type.

  Eg, for majors, I'll want to set up the same keybindings for casting spells 
and whatnot - they'll learn the same spells, and it easier for me to remember 
that universally, for my wizard characters, that f12 is bound to 'cast fireball'.

  This is why I was suggesting that not tieing keybindings to characters may be 
useful - for any wizard, I might want the same keybindings - I may not want to 
have to set them up again just for the new character.  But if you do want one 
for each character, there is nothing preventing that (my idea would be an option 
to load keybindings from a file, and save keybindings to a file, so you'd have 
an unlimited number of choices).

  With this, one could also set up their generic keybinding file they use for 
all characters, and then add appropriate keybindings for the character they are 
playing, and save it to a new file.  Perhaps have some option in the editor to 
'load keybindings based on character name' or the like so that the player 
doesn't actually have to explicitly load the keybindings each time.

  Doing this probably wouldn't be that difficult - just a matter of passing a 
filename to the dialogue/file selector box.



_______________________________________________
crossfire-devel mailing list
     
     crossfire-devel at lists.real-time.com
     
     
     https://mailman.real-time.com/mailman/listinfo/crossfire-devel
     
     
    


More information about the crossfire mailing list