Results 1 to 5 of 5

Thread: Login System

  1. #1

    Default Login System

    How would i implement a login system. how would i link my site's database to my novashell game so the game can check if the login is correct? and if this is not possible is there any other way to protect my game so it cant be leaked or spread?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Novashell has no built-in support for authentication or anti-piracy protection, but because you have the source code it's fairly easy to apply any method you want.

    Personally, I've removed all my complex authentication based protection from my software last year, didn't find it worth the hassle.

    PS: If you're concerned with beta versions in the wild, you can set them up to "expire" after a certain date is reached.
    Seth A. Robinson
    Robinson Technologies

  3. #3

    Default hmm

    how would i make betas expire and do you have any suggestions or recommendations for authentication methods? i was planning on selling my game once it was finished and would need an authentication method, thanks!

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    Well, you'd have to get into the source code and code 'er up. If you do, this may be helpful to you (for Win anyway..):

    Code:
    #include <ctime>
    
    //month is 1-12 btw
    int GetDaysSinceDate(int month,int day, int year)
    {
    	time_t ltime;
    	time( &ltime );
    
    	tm expire = { 0, 0, 0, day, month-1, year-1900, 0 };	 //Month is 0-11 btw
    	tm today = *localtime( &ltime );
    
    	long time_now = (long)today.tm_mday + (long)today.tm_mon * 30 + today.tm_year*365;
    	long time_exp = (long)expire.tm_mday +(long)expire.tm_mon * 30 + expire.tm_year * 365;
    	long time_passed = time_now - time_exp;
    
    	//now let's convert it back to days
    	if (time_passed == 0) return 0; //avoid divide by 0
    	return time_passed;
    }
    Seth A. Robinson
    Robinson Technologies

  5. #5

    Default thanks

    thanks and do you have any idea how i can do an authentication system? i was thinking cd keys but im not sure how i would get lua to check for it, i was also thinking HWID protection but agian im not sure how i would get lua to check for it.

Similar Threads

  1. 2D Collision System
    By Lars in forum Official ClanLib SDK Forums
    Replies: 2
    Last Post: 05-03-2011, 06:31 AM
  2. Using GUI system
    By JoseMan in forum Official ClanLib SDK Forums
    Replies: 1
    Last Post: 05-26-2010, 05:53 AM
  3. gui system
    By koloska in forum Novashell Game Creation System
    Replies: 2
    Last Post: 06-08-2009, 11:57 PM
  4. Dialog System?
    By rgrwkmn in forum Novashell Game Creation System
    Replies: 5
    Last Post: 12-22-2008, 12:29 AM
  5. Can't login to any?
    By in forum Funeral Quest
    Replies: 3
    Last Post: 11-22-2005, 11:17 AM

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •