Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Basic File Licence Checker Protection
#1
Basic File Licence Checker Protection
by EdwardJH
Nov 11 2006

This is a locked, single-post thread from Creation Asylum. Archived here to prevent its loss.
No support is given. If you are the owner of the thread, please contact administration.


EDIT :: Improvement! Validating file existence now requires ONE section. One more thing to my RGSS knowledge! [^.^]

OK, this is my first ever script, so don't expect it to be of SephirothSpawn's quality, or that great at all for that matter, but still, here it is... File check protection:

This is for retail games, so say, the creator can make a text file called 'rubberducky', and the game will only work if 'rubberducky.txt' is present. Thus you can keep tabs on who gave illegal copies, since the file has their name in it!


Instructions


Limitations


Future Plans


I don't expect you to give credit, but don't claim it as yours either... If you do, my ducky shall claim your soul...
Code:
#==============================================================================
# ** Liscense Check
#------------------------------------------------------------------------------
# A Licence file must be present in order for the game to work!
#------------------------------------------------------------------------------
# xmukoux (nKrYpTeD)
# Version 1.0
# 11.11.2006
#------------------------------------------------------------------------------
# Note :: * If you use this system, you must give credit. Failure to do so is
# breaching copyright laws which could ultimately result in legal
# action!
# * You may not modify this header or the contents in any way
# whatsoever! Only if you have express written permission from the
# 'nKrYpTeD' staff!
#==============================================================================

#------------------------------------------------------------------------------
# * SDK Log Script
#------------------------------------------------------------------------------
SDK.log('License Check', 'xmukoux', 1, '2006-11-11')

#------------------------------------------------------------------------------
# * Begin SDK Enable Test
#------------------------------------------------------------------------------
if SDK.state('License Check')

begin
  # Locate Database
  if not FileTest.exist?("FILENAME.EXT")
    # Show error if script not found
    print ('ERROR MESSAGE')
    # Quit game
    exit
  end
end
#------------------------------------------------------------------------------
# * End SDK Enable Test
#------------------------------------------------------------------------------
end

Non-SDK logged version ::
Code:
#==============================================================================
# ** License Check
#------------------------------------------------------------------------------
# A Licence file must be present in order for the game to work!
#------------------------------------------------------------------------------
# xmukoux (nKrYpTeD)
# Version 1.0
# 11.11.2006
#------------------------------------------------------------------------------
# Note :: * If you use this system, you must give credit. Failure to do so is
# breaching copyright laws which could ultimately result in legal
# action!
# * You may not modify this header or the contents in any way
# whatsoever! Only if you have express written permission from the
# 'nKrYpTeD' staff!
#==============================================================================

begin
  # Locate Database
  if not FileTest.exist?("FILENAME.EXT")
    # Show error if script not found
    print ('ERROR MESSAGE')
    # Quit game
    exit
  end
end
}




Users browsing this thread: