Jump to content


Photo

Lssg Gm Serial


  • Please log in to reply
27 replies to this topic

#1 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 15 May 2007 - 01:32 PM

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 :(.

Methods:
gmserial_create(string name, int unique_id): Create a serial code
gmserial_verify(string serial, string name, int unique_id): Verify a serial code

Download:
ZIP download
7-zip download

Results:
Here are some sample results:

Blah1 TKT44F502CF4HU2UN0MJCNDH
Blah2 TKT44F502CF4HU2LN0NJ0GXC
John Smithington FTF22905FFF0DU9UN2GGDHD5
Joe Joe Joe TKT44FF00CF4LU5NNCGGDMX0

Crediting:
Please credit me in your help file when you use this, if at all possible. Thank you.

Edited by tgohome, 15 May 2007 - 08:02 PM.

  • 0

#2 guild-power

guild-power

    GMC Member

  • New Member
  • 197 posts

Posted 15 May 2007 - 02:30 PM

ummhz i don't get the point of this o.O

Edited by guild-power, 15 May 2007 - 02:30 PM.

  • 0

#3 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 15 May 2007 - 02:39 PM

For checking serial codes and creating them. Like if you pay for a game you need to verify yourself with a code.
  • 0

#4 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 15 May 2007 - 03:37 PM

Hmm?

I click the generate key, click enter, copy serial, click enter key, click enter, paste serial key. Failed?
  • 0

#5 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 15 May 2007 - 04:22 PM

Did you enter your name?

Edit: Oh, sorry, it does appear to be broken... Let me try and fix, thanks for letting me know.

Edit II: Should be working now. Please download again.

Edited by tgohome, 15 May 2007 - 04:30 PM.

  • 0

#6 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 15 May 2007 - 06:38 PM

It does indeed work now ^_^.
  • 0

#7 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 15 May 2007 - 06:49 PM

What do you think of it?
  • 0

#8 Daniel-Dane

Daniel-Dane

    GMC Member

  • New Member
  • 3581 posts

Posted 15 May 2007 - 06:51 PM

Eh, well. It works, I am never going to need one though ^_^.
  • 0

#9 Uzaki

Uzaki

    GMC Member

  • New Member
  • 409 posts

Posted 15 May 2007 - 07:56 PM

Cool nice job works well!
  • 0

#10 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 15 May 2007 - 08:02 PM

Thanks!
  • 0

#11 Chaos In a Can

Chaos In a Can

    GMC Member

  • New Member
  • 70 posts

Posted 15 May 2007 - 09:26 PM

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.
  • 0

#12 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 16 May 2007 - 10:18 AM

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?

Any suggestions for the algorithm?

Thanks,
Tom
  • 0

#13 crashhelper

crashhelper

    GMC Member

  • GMC Member
  • 874 posts

Posted 16 May 2007 - 02:00 PM

This isn't in GEX format :)
  • 0

#14 Uzaki

Uzaki

    GMC Member

  • New Member
  • 409 posts

Posted 16 May 2007 - 02:59 PM

This isn't in GEX format :)

<{POST_SNAPBACK}>

Yes it is...It has the editable, exe, and gex.
  • 0

#15 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 16 May 2007 - 03:28 PM

There is no GEX in the 7-zip file. The ZIP file has a GEX, though. May I suggest updating your files?

EDIT: The 7-zip file contains an old version.

Edited by oakwhiz, 16 May 2007 - 03:33 PM.

  • 0

#16 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 16 May 2007 - 03:32 PM

Oh... ok, sorry.

Edit: updated 7z, please download again.

Edit 2: darn, I'll have to update it again.

Edited by tgohome, 16 May 2007 - 03:47 PM.

  • 0

#17 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 16 May 2007 - 03:34 PM

It's pretty nice. I like it and I will probably use it.
  • 0

#18 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 16 May 2007 - 04:22 PM

Yay, I think it works now!
  • 0

#19 crashhelper

crashhelper

    GMC Member

  • GMC Member
  • 874 posts

Posted 16 May 2007 - 06:13 PM

This isn't in GEX format :)

<{POST_SNAPBACK}>

Yes it is...It has the editable, exe, and gex.

<{POST_SNAPBACK}>


Oh, apparenly the 7z didnt have the gex :)
  • 0

#20 oakwhiz

oakwhiz

    GMC Member

  • New Member
  • 268 posts

Posted 18 May 2007 - 05:35 AM

The ZIP still has a different version EXE with graphics. Which download am I supposed to use?
  • 0

#21 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 18 May 2007 - 10:15 AM

Huh? I zipped them up at the same time... I'll zip them again if needed, but I can't do it at the moment.
  • 0

#22 Uzaki

Uzaki

    GMC Member

  • New Member
  • 409 posts

Posted 20 May 2007 - 02:31 PM

This isn't in GEX format :wacko:

<{POST_SNAPBACK}>

Yes it is...It has the editable, exe, and gex.

<{POST_SNAPBACK}>


Oh, apparenly the 7z didnt have the gex :wacko:

<{POST_SNAPBACK}>

Sorry I didn't look at the 7z, only the zip.

Also, I've found a use for this! I'll need it for a school project, thanx!
  • 0

#23 tgohome

tgohome

    GMC Member

  • New Member
  • 122 posts

Posted 23 May 2007 - 12:34 PM

Thanks. :P
  • 0

#24 Shadow X

Shadow X

    GMC Member

  • New Member
  • 275 posts

Posted 07 August 2007 - 03:22 AM

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.

#25 Stian Aune

Stian Aune

    GMC Member

  • New Member
  • 131 posts
  • Version:GM:Studio

Posted 09 August 2007 - 11:27 AM

Really nice work !!!!!!!
  • 0

#26 mrpeanut188

mrpeanut188

    GMC Member

  • GMC Member
  • 814 posts
  • Version:GM8

Posted 27 April 2010 - 02:12 AM

Really nice work !!!!!!!

I'd like to see how this works.Can you post the contents separately? Also because GM8 is being dumb and is giving me an error within the extension.

EDIT:Oh crud! Three year old topic! ;)

Edited by mrpeanut188, 27 April 2010 - 02:12 AM.

  • 0
Posted Image

#27 iluvfuz

iluvfuz

    GMC Member

  • GMC Member
  • 1452 posts
  • Version:GM:Studio

Posted 28 April 2010 - 03:04 AM

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 :D

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.

Anyways, nice job. I don't particularly need it but others might :)

Edited by iluvfuz, 28 April 2010 - 03:10 AM.

  • 0

#28 DefuzionGames

DefuzionGames

    GMC Member

  • GMC Member
  • 1460 posts
  • Version:Unknown

Posted 04 November 2010 - 03:42 PM

i urgentyl need the actuall DLL and if the gmm ddl calls i.e all the functions and their arguments. please email me therizzeler@yahoo.co.uk

thanks
  • 0