The Daily Click ::. Forums ::. Klik Coding Help ::. Cd required / play from cd
 

Post Reply  Post Oekaki 
 

Posted By Message

Vilsuu



Registered
  21/07/2012 10:38:17
Points
  3
21st July, 2012 at 21/07/2012 11:14:41 -

I've been using klik products since klik 'n' play, so I'm quite advance on this, but I need some help making this one thing I couldn't figure out. So, I have a game I'd like to burn on some CD's and sell to my friends, but without protection that would mean that I sell one copy and the they'll copy it to each other. So I'm thinking about either the game would require the cd in tray to work or so that the game would paly from the cd. I can make the sevond one work BUT I can''t figure out how can I make it find the games ini files from the palyers hard disk, since the player can install the anywhere... Am I missing something really basic here or what?

So alltogether, I need help making either the cd required on tray or game played from cd SO THAT IT CAN USE THE INSTALLED INI FILES FROM HARD DISK. I'm using MMF2 dev

 
n/a

nim



Registered
  17/05/2002
Points
  7234
21st July, 2012 at 21/07/2012 11:59:59 -

Instead of hard coding the path to the ini file, you can use Apppath$ [plus symbol] "data.ini". Apppath$ is the game directory, wherever the exe is being run from.

 
//

nim



Registered
  17/05/2002
Points
  7234
21st July, 2012 at 21/07/2012 12:44:21 -

Is there any chance we could fix the forum so that we can use things like plus symbols to help people?

 
//

Vilsuu



Registered
  21/07/2012 10:38:17
Points
  3
21st July, 2012 at 21/07/2012 12:52:54 -


Originally Posted by nim
Instead of hard coding the path to the ini file, you can use Apppath$ [plus symbol] "data.ini". Apppath$ is the game directory, wherever the exe is being run from.



This I do know, but it doesn't solve the problem that the exe file is going to be in the CD and the ini files on the HARD DISK.

Edited by Vilsuu

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
21st July, 2012 at 21/07/2012 14:32:49 -

I think you're wasting your time. What's to stop your friends just burning copies of the disc anyway?

 
n/a

nim



Registered
  17/05/2002
Points
  7234
21st July, 2012 at 21/07/2012 16:16:07 -


Originally Posted by Vilsuu
I can''t figure out how can I make it find the games ini files from the palyers hard disk, since the player can install the anywhere...



Does the player install the game, or what? Explain further about how the player saves these ini files, or installs the game, or whatever you were trying to say above.

I'm thinking that the File object and a little creative thinking might help you in the end. If you're trying to stop people from copying the CD then I think you're wasting your time.

 
//

Vilsuu



Registered
  21/07/2012 10:38:17
Points
  3
21st July, 2012 at 21/07/2012 16:28:52 -

Actually I got it already working so that the game is played from the cd after you have installed the needed ini files to you computer. I know it isn't much of a protection, but my friends ain't any potential hackers, and this prevents it to be played WITHOUT a disk. Of course they can copy files to another disc and play it like that, but I know that for them, it too much hassle Thanks to you all anyways (:

 
n/a

Windybeard Games



Registered
  14/04/2005
Points
  219

You've Been Circy'd!VIP MemberCandy Cane
21st July, 2012 at 21/07/2012 17:33:04 -

cant be great mates if they are pirating your work...

 
n/a

Duncan

Thelonious Dunc

Registered
  18/05/2002
Points
  552

VIP Member
21st July, 2012 at 21/07/2012 20:04:45 -

I buy games I already own on steam because I'm too lazy to put the discs in

 
n/a

-Liam-

Cake Addict

Registered
  06/12/2008
Points
  556

Wii OwnerIt's-a me, Mario!Hero of TimeStrawberry
22nd July, 2012 at 22/07/2012 16:34:47 -

Agreed with the last guy. For some reason, I really, REALLY dislike the energy it takes to put a disc in. I'm not joking. I always legitimately purchase my games, but putting disc in (even in consoles) annoys me. :/

 
Image

Tell 'em Babs is 'ere...

The_Antisony

At least I'm not Circy

Registered
  01/07/2002
Points
  1341

VIP MemberStarSnow
27th July, 2012 at 27/07/2012 20:57:22 -

You could just ensure that the appdrive$ doesn't equal "C:" then use the file object to test file modification date and file writability on any random file on the CD. So long as it reports unwritable and the modification date matches, I think you might have a secure game. Maybe. lol.

 
ChrisD> Employer: Say, wanna see a magic trick?
ChrisD> Employee: Uhh… sure, boss.
ChrisD> Employer: Your job! It just disappeared! Pack your things and leave! Pretty good trick, huh?
   

Post Reply



 



Advertisement

Worth A Click