Lssg Gm Serial

I was searching for a way to create serial codes. This is not necessarily for the pretense of selling games, but free software and games can also be given away, requiring free registration. This system allows creation and verification of serial codes.

This system currently uses a unique id (which could be the game_id, and object id, or anything, really) to create the serial code, as well as a name and some obfuscation methods. The serial code length usually tends to be the same length, about 20-35 characters, but can vary on very long strings. Most of the resulting serial code is sometimes the same depending on the actual string. So far I can't find any holes in it.

License: This serial code mechanism is released under the GPL or LGPL, whichever suits your needs best, and the mechanism is patent free, as far as I know .

Nice. I only found one problem with it while telling it to generate a key from one of its scripts. I doubt many people will be giving this 1000+ characters to create a key from, but I thought I'd tell you anyways.

The letter generation script doesn't like negative numbers (which the key generator will give it if it gets too many characters) because "-" isn't a number, but that's solved easily enough with an abs(). You could also have the letter generator strip all non-numbers from the string it gets.

Besides that, I haven't found anything that doesn't work. I might actually use this, although not really for game registration.

Thanks for the complements. The problem does happen with extremely large strings, such as 200+ letter strings which get the internal integer up quite high so it wraps around to negative numbers. This can cause a problem, but the only thing I've noticed when it does this is crash the game, instead of opening a hole and letting the attackers, or a user, enter a 250 letter string and no serial code. Which is better than letting them open it easily, right?

I'm no good with scripts. I don't understand how to work this... Usually you can just give someone a serial number when someone does free registration (or paid) on a site or inside the program and then it gives them a serial number but usually, you just give them a serial number and that goes into the program, not generated right in front of them. Also, does this stop serial numbers being used if those serial numbers have already been used X amount of times (with a way to change X)?

EDIT: I mean, how do ou put his in your game without the right clicking stuff and so on?

Edited by Shadow X, 07 August 2007 - 03:23 AM.

0

I'm remaking a Japanese-only NES game. More details coming soon. Which means in a few years. Deal with it.

I'm no good with scripts. I don't understand how to work this... Usually you can just give someone a serial number when someone does free registration (or paid) on a site or inside the program and then it gives them a serial number but usually, you just give them a serial number and that goes into the program, not generated right in front of them. Also, does this stop serial numbers being used if those serial numbers have already been used X amount of times (with a way to change X)?

EDIT: I mean, how do ou put his in your game without the right clicking stuff and so on?

I think you're supposed to generate a code using--if the GEX provides--parameters and settings to make them unique. That way this will verify the code while allowing you generate unique keys. Doesn't prevent distribution of the key, but in a small community like GM, commercial key sharing isn't a problem.

I'll go try it out now

EDIT: Yep, this is pretty cool. Set your unique ID to a long, random number that nobody would guess. If you were serious on using this for a GM commercial game, this would be a decent way if you're not particularly concerned about people sharing keys. TBH, I wish the program allowed the change for constant characters, like the first three letters, and the ability to generate a unique system for its unique ID.