Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SUGGESTION] Tool to manage player ID keys

#1
Post-split EDIT: This thread was split from the one the quoted message links to. Below, you'll find asyy's suggestion for a tool that manages player IDs to ease porting your ID to other xonotic installs.


(10-19-2012, 12:52 PM)hutty Wrote: We may need some account system in xonstat first ... seeing as when you switch computers (or start xonotic from my windows boot ) xonstat thinks you are a different person ... thus your hard earned trophies will be gone D:

If you don't like being considered as two people, you should port your keys from one install to the other. It's something that you have control of, even though it's something to do manually because it's so variable from one OS to the other (location of data dir).
Reply

#2
oh ... i just have to move the key ... thats seems easy ...
Reply

#3
(10-19-2012, 10:08 PM)hutty Wrote: oh ... i just have to move the key ... thats seems easy ...

Yep. They are the files that start with key_0 in the parent of your personal data directory (so, ~/.xonotic/key_0* in Linux systems).
Reply

#4
I have to agree with hutty on this one, asking the user to move a file out of some hidden directory (once again) is horrible qua usability. Maybe someone could write a little graphical application that allows the user to save a copy of the key file anywhere / load a key file from anywhere?
Reply

#5
(10-20-2012, 05:36 AM)asyyy Wrote: Maybe someone could write a little graphical application that allows the user to save a copy of the key file anywhere / load a key file from anywhere?

Maybe someone could write and maintain three little graphical applications (...)

FTFY
Reply

#6
Just one actually, written in some cross platform toolkit (qt, java, python, whatever).... hey, maybe I could write this, hmm... :-)

(ETA: a few weeks to a few months - I'm not a too efficient coder :-P I'll write this in qt, make it work for linux and windows, mac probably later)
My contributions to Xonotic: talking in the forum, talking some more, talking a bit in the irc, talking in the forum again, XSkie
Reply

#7
Welcome to the age of crossplatform Mr. Bougo Smile
What it needs is:
1. A way to select the userdir, defaults to the default location per OS (e.g. ~/.xonotic/ for linux and %userprofile%\Saved Games\xonotic for Windows).
2. An "export key" button which then asks for the output file.
3. An "import key" button which then asks for the input file (put a "make backup of old key" checkbox next to it, default 1).
4. A small textbox giving basic instructions.
5. Confirmation dialogs ("Do you really want to replace the keyfile").

I mean with something like QT or Java you reach 99% of all players. Those who are tech savvy enough to run Xonotic on their C64 shouldn't need such a tool anyway.
Reply

#8
^ it also needs:
6: a well designed interface.

maybe

7: synchronisation with cloud services like dropbox, ubuntu one, skydrive, etc.
Reply

#9
(10-20-2012, 10:41 AM)s1lencer Wrote: maybe

7: synchronisation with cloud services like dropbox, ubuntu one, skydrive, etc.

Don't forget the mail client, too.

asyyy, Cyber Killer, point taken. Make sure to read fs.c from the darkplaces sources to get the idea of how the basedir userdir is picked. I don't think it's fully straightforward.

EDIT: not basedir, userdir.
Reply

#10
(10-21-2012, 04:30 AM)Mr. Bougo Wrote: Don't forget the mail client, too.

Haha! Good one! xd
Reply

#11
(10-20-2012, 10:41 AM)s1lencer Wrote: 7: synchronisation with cloud services like dropbox, ubuntu one, skydrive, etc.

This is not needed - you can easily sync the whole Xonotic data dir with cloud storage using the usual method of moving it to the sync dir and symlinking (junction in windows) to the original place.
My contributions to Xonotic: talking in the forum, talking some more, talking a bit in the irc, talking in the forum again, XSkie
Reply

#12
(10-22-2012, 01:42 AM)Cyber Killer Wrote: BTW: Mr. Bougo - maybe you could split this topic so we can continue to talk about achievements ;-)
(plz delete this post after)

Done and done. Good suggestion.
Reply

#13
I collect such people as long they keep their nicks and are not anonymous and the get togehter merged by Antibody at the moment.
Reply

#14
(10-22-2012, 02:42 PM)Mirio Wrote: I collect such people as long they keep their nicks and are not anonymous and the get togehter merged by Antibody at the moment.

That's not a solution in the long term, though.
Reply

#15
Why don't we use the cross platform tools at our disposal? In this case, the game itself? Player Settings -> Export Key, which saves a file on a location that the user can find again. Then a button Player Settings -> Import to load the old file? Userdir problem solved, because the game will most likely already know where that is Tongue

I'm probably missing something Tongue

What neither of these solutions solve is the case where people have reinstalled their OS and installed Xonotic fresh. The old key is lost. Manual merging seems unavoidable there?
"Yes, there was a spambot some time ago on these forums." - aa
Reply

#16
Great idea PinkBot! Smile
Reply

#17
I've said it before and it bears repeating here: XonStat is not going to have user accounts, ever. That's by design. We're going to have to live with the key system and develop workarounds for these types of things. FWIW I think PinkRobot's proposal is the best one here.

I would strongly encourage players to back up their data. This applies equally to games and other personal data, on Linux and Windows. If people lose their data for whatever reason, that is unfortunate, but we don't provide guarantees that you'll be merged.
asyyy^ | are you releated to chuck norris?
Reply

#18
(10-23-2012, 02:51 AM)PinkRobot Wrote: Why don't we use the cross platform tools at our disposal? In this case, the game itself? Player Settings -> Export Key, which saves a file on a location that the user can find again. Then a button Player Settings -> Import to load the old file? Userdir problem solved, because the game will most likely already know where that is Tongue

I'm probably missing something Tongue
Except that currently, DP does no file access outside of its own directories, and there's no framework ready to use to implement file movement and such. I don't think it's reasonable to implement all this just to move a file from one directory to another.

(10-23-2012, 02:51 AM)PinkRobot Wrote: What neither of these solutions solve is the case where people have reinstalled their OS and installed Xonotic fresh. The old key is lost. Manual merging seems unavoidable there?
You could say the same about all the settings, and also configuration for other software, documents etc. It's the owner's responsibility to backup and restore data they deem precious. If there's a feature to export keys, I think that's more than enough.
Reply

#19
(10-23-2012, 12:41 PM)Mr. Bougo Wrote: Except that currently, DP does no file access outside of its own directories, and there's no framework ready to use to implement file movement and such. I don't think it's reasonable to implement all this just to move a file from one directory to another.

Alright, so there is actually a point in creating a separate tool - I'll start this weekend. (Yeah - I'll finally get to post some screenshots in the 'screenshots of what you're doing' thread :-D )
My contributions to Xonotic: talking in the forum, talking some more, talking a bit in the irc, talking in the forum again, XSkie
Reply

#20
Gl hf! Smile
Reply

#21
(10-23-2012, 11:56 PM)Cyber Killer Wrote:
(10-23-2012, 12:41 PM)Mr. Bougo Wrote: Except that currently, DP does no file access outside of its own directories, and there's no framework ready to use to implement file movement and such. I don't think it's reasonable to implement all this just to move a file from one directory to another.

Alright, so there is actually a point in creating a separate tool - I'll start this weekend. (Yeah - I'll finally get to post some screenshots in the 'screenshots of what you're doing' thread :-D )

Good luck Cyber Killer, would be awesome if you could pull it off. Smile
Reply

#22
That weekend didn't work out, but I'm finally on it!

Starting with the project site & documentation (as blueprints and milestones): https://launchpad.net/xonstatkeyimportexport

Anybody feel free to watch and help out if you want.
My contributions to Xonotic: talking in the forum, talking some more, talking a bit in the irc, talking in the forum again, XSkie
Reply

#23
Would like to help, but I do only know a little bit of Python and I can't program yet.
Reply

#24
I've seen your image CyberKiller: http://imageshack.us/f/820/ckdesktop20120631.png/

It looks easy to use and well laid out. I think it will be a great little tool to have. Smile
Reply

#25
In such a small project (I doubt if I'll break 50kB of code) there is usually no need for help with programming. But there are other tasks where help is much appreciated, like...

- project docs (I think I already done those, look in the blueprints section, see if I forgot anything), thx goes to asyyy for specifying this some posts above
- translations (coming later, planned for later project stages, I'll make this fast & easy to make, I promise ;-) )
- 2 functionalities need to set the Xonotic user directory based on the detected OS, I need to know how the game sets this (in version 0.6 as I'm targeting the last stable release, though I doubt this'll change over time) - relevant game code or at least some info directly from the dev team is needed to determine this - if you could get this info and put it in the relevant blueprints whiteboard (1 2) or just send it to me it would save me a good amount of time
My contributions to Xonotic: talking in the forum, talking some more, talking a bit in the irc, talking in the forum again, XSkie
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [SUGGESTION] Event keys clanclanclan 9 7,698 05-21-2010, 06:03 AM
Last Post: clanclanclan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-