Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > CopperCube > Feature requests and bug reports
Time Restricted Gameplay

DouweDabbe
Guest
Quote
2021-08-22 17:14:52

Is it possible to implement some time restricted gameplay in javascript., as we can't write expired time to exe / bin/ apk files.

Idea is to give game for free, then after playing 5 hours at level one automatically progress to next level, play another 5 hours at level 2 and then free time is up and player must pay if he wants to game for real.


just_in_case
Moderator
Quote
2021-08-22 18:08:20

yes, you can. but the ned user might hack it easily.


ngame
Registered User
Quote
2021-08-23 11:45:15

Yes, you can do this using the server. You should get some device id and record the time in the game on the server.


DouweDabbe
Guest
Quote
2021-08-24 04:27:32

ney,
my question it intended for offline usage

thanks


just_in_case
Moderator
Quote
2021-08-24 06:52:34

As I mentioned yes, it is possible, but the user might change it, you can either the save the time as variable to the disk and along with that you can do a simple trick so that if the user even change or delete the regkey the game will still remain unplayable.

I don't have enough time to write the whole trick here, but maybe I will provide you a sample ccb file which does this.

I don't recommend online server trick, they can be useful only if you have multiplayer integration, as the user can simply turn off his internet or let the app go through firewall and disable net for the app, and it will run on the system for forever.

But yeah, most multiplayer games uses server time to check the trial period.


DouweDabbe
Guest
Quote
2021-08-24 19:59:31

yes if you write the *.cfg file in octal / binary or hex format. that would work on windows. can maybe also zip it.

thanks

have to explore further but basic idea is there


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Inter?ational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact