Author |
Message |
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Game UUID
If you log into the wrong game or even view the high scores of another game, it can corrupt your helper's database. It would be helpful if the game displayed a UUID when logging in or displaying scores.
_________________ Suddenly you're Busted!
|
Tue Oct 04, 2011 1:19 pm |
|
|
Cruncher
Ambassador
Joined: Fri Feb 23, 2001 3:00 am Posts: 4016 Location: USA
|
Re: Game UUID
What is a UUID?
_________________
BOTE 1998 Champs: Team Fament HHT 2015 Champs: Cloud09 Big Game 2016 Champs: Draft team HHT 2018 Champs: Rock Stars Big Game 2019 Champs: Draft Team
Classic Style Games Here: telnet://crunchers-twgs.com:2002 Web page from 1990's: https://web.archive.org/web/20170103155645/http://tradewars.fament.com/Cruncher/tradewar.htm Blog with current server info: http://cruncherstw.blogspot.com Discord: https://discord.gg/4dja5Z8 E-mail: Cruncherstw@gmail.com FaceBook: http://www.facebook.com/CrunchersTW
|
Tue Oct 04, 2011 6:19 pm |
|
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Re: Game UUID
Universally Unique ID. Basically a 128-bit random number, expressed as a hex string, like this: 067e6162-3b6f-4ae2-a171-2470b63dff00.
It's safe to count on them being unique even without any central coordination. If you generated a thousand of them every second, it would take several times the age of the universe to have a 50% chance of getting the same one twice. (Provided the random number generator is truly random... a whole other issue.)
My suggestion is for each game to have one assigned at bigbang.
_________________ Suddenly you're Busted!
|
Tue Oct 04, 2011 6:38 pm |
|
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
Re: Game UUID
In the program I am working on, I use the server domain, game letter, and BigBang date to determine the correct database to use. I agree that having a UUID (aka GUID) to identify the game would be more reliable.
They are not always random though. Some versions are based on the machine address and current time, and there are a variety of algorithms that can be used.
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Tue Oct 04, 2011 7:10 pm |
|
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3150 Location: USA
|
Re: Game UUID
Delphi has a GUID generator that I've used in the past. I don't know about putting that on general displays, but maybe put it on the @ command?
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
Thu Oct 06, 2011 2:21 pm |
|
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Re: Game UUID
I think it should be displayed when you press 'H', 'T', and maybe '*' from the "Enter your choice:" prompt outside the game.
_________________ Suddenly you're Busted!
|
Thu Oct 06, 2011 2:40 pm |
|
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Re: Game UUID
Micro wrote: In the program I am working on, I use the server domain, game letter, and BigBang date to determine the correct database to use. Yeah, that's about the best we can do for now. But the game letter could be swapped, the domain could change...
_________________ Suddenly you're Busted!
|
Thu Oct 06, 2011 2:43 pm |
|
|
Micro
Ambassador
Joined: Wed Apr 20, 2011 1:19 pm Posts: 2559 Location: Oklahoma City, OK 73170 US
|
Re: Game UUID
Mongoose wrote: I think it should be displayed when you press 'H', 'T', and maybe '*' from the "Enter your choice:" prompt outside the game. Since it wouldn't be used by humans, I would just include it in the $ and * output. Can you do the High Scores in XML?
_________________ Regards, Micro Website: http://www.microblaster.net TWGS2.20b/TW3.34: telnet://twgs.microblaster.net:2002
ICQ is Dead Jim! Join us on Discord: https://discord.gg/zvEbArscMN
|
Thu Oct 06, 2011 8:23 pm |
|
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Re: Game UUID
I was thinking it would serve as a sentinel for data the helper is going to incorporate. In SWATH, for example, if you view the high scores of a different game (say you happen to be checking out the other games on a server to see if you want to join), it puts all those traders' names in the current database. And if you log into the wrong game by mistake, it adds everything you see to the database until it notices a sector number higher than the database is configured for. You could argue that these are helper bugs, and I would agree... but they'd be much easier to avoid if the game displayed a GUID during login and on the high scores screen.
_________________ Suddenly you're Busted!
|
Thu Oct 06, 2011 8:46 pm |
|
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1837 Location: Guam USA
|
Re: Game UUID
The problem is your investigating game settings with a helper that stores that info for in game use (Swath) The solution .. use twx and telnet or twx and putty .. or twx and zoc ..for instance.
None of these store that info , therefore no problems with corrupt data. I have been thinking to make a twx script for the * gathering of each game on a server to help decide if that game is to my liking.
But Swath is not the thing to use when looking that stuff over. No extra fix for TWGS is needed .. just a little lesson on what to use is all it took/takes.
my 2¢
_________________ TWGS V2 Vids World on Guam Port 2002 Telnet://vkworld.ddns.net:2002 Discord @ DiverDave#8374 Vid's World Discord
Founding Member -=[Team Kraaken]=- Ka Pla
Winners of Gridwars 2010 MBN Fall Tournament 2011 winners Team Kraaken Undisputed Champions of 2019 HHT Just for showing up!
The Oldist , Longist Running , Orginal Registered Owner of a TWGS server : Vids World On Guam
|
Fri Oct 07, 2011 12:21 am |
|
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Re: Game UUID
Vid Kid wrote: The solution .. use twx and telnet or twx and putty .. or twx and zoc ..for instance. Yes, we know, Vid... you think TWX is the best thing since sliced bread. But I've written scripts that make use of that '*' data SWATH stores for in-game use. I guess that means they'd be impossible to port to TWX, huh?
_________________ Suddenly you're Busted!
|
Fri Oct 07, 2011 12:43 am |
|
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1837 Location: Guam USA
|
Re: Game UUID
Actually , I have it imported to twx but in an ansi file ... text file.
But what your suggesting is J.P. put something into TWGS and Stein to also add to Swath to do something you already can do and accomplish.
Please don't fool yourself , TWX is the bomb.
_________________ TWGS V2 Vids World on Guam Port 2002 Telnet://vkworld.ddns.net:2002 Discord @ DiverDave#8374 Vid's World Discord
Founding Member -=[Team Kraaken]=- Ka Pla
Winners of Gridwars 2010 MBN Fall Tournament 2011 winners Team Kraaken Undisputed Champions of 2019 HHT Just for showing up!
The Oldist , Longist Running , Orginal Registered Owner of a TWGS server : Vids World On Guam
|
Fri Oct 07, 2011 12:52 am |
|
|
Mongoose
Commander
Joined: Mon Oct 29, 2001 3:00 am Posts: 1096 Location: Tucson, AZ
|
Re: Game UUID
Vid Kid wrote: But what your suggesting is J.P. put something into TWGS and Stein to also add to Swath to do something you already can do and accomplish. It cannot be reliably accomplished, because game letters, IP addresses for servers without domain names, and even domain names themselves can and do change. There is currently nothing that can serve as a primary key to uniquely identify a game.
_________________ Suddenly you're Busted!
|
Fri Oct 07, 2011 1:35 am |
|
|
Vid Kid
Commander
Joined: Sun Feb 25, 2001 3:00 am Posts: 1837 Location: Guam USA
|
Re: Game UUID
Servers that use IP #'s most likely also has "Registered to" in one or more of their screens.
Putting a time stamp in the file will also eliminate the issue of a game letter changing or signify it could be out dated info.
I know it is difficult to keep tabs on all or most of the servers out there. Many players keep a text file of telnet addresses but not the game stats.
All of that might be done later in the JumpGate feature in the future when that part is explored.
That in itself will probably do what your looking for as a place to compare edits and such.
I look forward to this myself.
_________________ TWGS V2 Vids World on Guam Port 2002 Telnet://vkworld.ddns.net:2002 Discord @ DiverDave#8374 Vid's World Discord
Founding Member -=[Team Kraaken]=- Ka Pla
Winners of Gridwars 2010 MBN Fall Tournament 2011 winners Team Kraaken Undisputed Champions of 2019 HHT Just for showing up!
The Oldist , Longist Running , Orginal Registered Owner of a TWGS server : Vids World On Guam
|
Fri Oct 07, 2011 1:42 am |
|
|
John Pritchett
Site Admin
Joined: Sun Dec 24, 2000 3:00 am Posts: 3150 Location: USA
|
Re: Game UUID
I think the suggestions you're making are fine, Vid, but I do want to remind you that the feature request forum is a place where people can ask for features and we can discuss how such a feature might be implemented, but it's not meant to be a place to debate whether or not a feature should be considered. I don't want people to feel they have to defend their requests here. It's fine to open the discussion in another area if you want, but I don't want these threads breaking down into arguments about what's a good feature and what isn't in anyone's opinion. My concern is that people will be reluctant to offer their ideas for fear of being attacked. We get plenty of that in other areas.
_________________ John Pritchett EIS --- Help fund the TradeWars websites! If you open a hosting account with A2 Hosting, the service EIS uses for all of its sites, EIS will earn credits toward its hosting bill.
|
Fri Oct 07, 2011 2:33 am |
|
|
|