Make trial game???

Game Editor comments and discussion.

Make trial game???

Postby Bee-Ant » Sat Jun 23, 2007 3:07 am

Do you know how to make game with trial mode???
Sgt. Sparky...!!!where's your demo for me???!!!
To restore player's variables with type our name first...!!!
User avatar
Bee-Ant
 
Posts: 3723
Joined: Wed Apr 11, 2007 12:05 pm
Location: http://www.instagram.com/bee_ant
Score: 210 Give a positive score

Postby Troodon » Sat Jul 07, 2007 7:08 pm

There is functions to read the computer clock (like the real trial games) but I don't remember how it works. I'm also needing it.
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Caaz Games » Sat Jul 07, 2007 8:17 pm

I was thinking of this too, but not with times, with the number of times you have started the game. and by using the save and load variables to do it. i think it would be like
Code: Select all
if(Usage==10)
{
      Exitgame();
}
And for another actor
Code: Select all
Create Actor ->
Usage ++;
this code probably wont work tho.
You are welcome to join my forum. 4 active members lol but it's a cool place. active... much talking :D it's fun!
http://caaz.freeforums.org/
User avatar
Caaz Games
 
Posts: 729
Joined: Wed Feb 14, 2007 9:09 am
Location: California....knows how to party!
Score: 25 Give a positive score

Postby Troodon » Sat Jul 07, 2007 8:26 pm

But the create actor isn't good if you want to have trial period(for example 1 week). The one-run trial could be made simply with timer. (for example)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Jay S. » Sun Jul 08, 2007 12:14 am

tekdino wrote:There is functions to read the computer clock (like the real trial games) but I don't remember how it works. I'm also needing it.

Code: Select all
stTime t = getTime();

hour.textNumber   = t.hour;
minute.textNumber = t.min;
second.textNumber = t.sec;

year.textNumber   = t.year;
month.textNumber  = t.mon;
day.textNumber    = t.mday;

day_week.textNumber = t.wday;
day_year.textNumber = t.yday;

total_seconds.textNumber = t.sec_utc;


NOTE: Everything that comes before a ".textNumber" is the name of a text actor. (OR you could set them all as variables.)

As for guessing how a trail period could be used, sorry, but I have no suggestions. :(

EDIT: Ah.... Game A Gogo beat me. :P :)
Last edited by Jay S. on Sun Jul 08, 2007 12:18 am, edited 2 times in total.
User avatar
Jay S.
 
Posts: 118
Joined: Thu Apr 26, 2007 6:51 pm
Location: My computer desk. :P
Score: 9 Give a positive score

Postby Game A Gogo » Sun Jul 08, 2007 12:16 am

@ tekdino: There is a demo for this in the Documentation, just go on Scripting, Script reference, and find the function "GetTime()"
Programming games is an art,
    Respect it.
User avatar
Game A Gogo
 
Posts: 3466
Joined: Wed Jun 29, 2005 10:49 pm
Location: French Canada *laughs*
Score: 181 Give a positive score

Postby Sgt. Sparky » Sun Jul 08, 2007 3:54 am

I can make a Demo. :D
Image
Random Links:
viewtopic.php?p=19474#19474
Right now (10/14/2009) I'm working on some C++ projects, but I might be able to help if you have some Game Editor questions. :)
User avatar
Sgt. Sparky
 
Posts: 1850
Joined: Sat Oct 07, 2006 5:28 pm
Location: Somewhere out there, beneath the pale blue sky...
Score: 236 Give a positive score

Postby Troodon » Sun Jul 08, 2007 5:08 pm

Ah, so the documentation was the place where I found the GetTime() first time. And I searched only the forum...like always. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Troodon » Sun Jul 08, 2007 5:20 pm

And here is a simple trial system:

just save the starting day (by yday) and year (by year) into a array file. Then the game checks first if the array file exists (by checking if one number is correct). Then it checks should it set the trial start date (with one simple 0/1 variable in the same array)
If the data is 0, it sets the current yday and year to the starting date and makes the data to 1.
If the data is 1, it checks if a number of days has been complete after the start date saved.

What do you think?
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Jay S. » Sun Jul 08, 2007 7:14 pm

If it's done via variables, wouldn't you think that, if someone knew, they could delete the saved file holding the variable values? They could do this repeatedly and have an infinite trial. :(

That's something I thought of earlier... Of course, forgive me if I'm misinterpreting your suggestion. :)
User avatar
Jay S.
 
Posts: 118
Joined: Thu Apr 26, 2007 6:51 pm
Location: My computer desk. :P
Score: 9 Give a positive score

Postby Troodon » Sun Jul 08, 2007 7:29 pm

But the game checks if the file is there!
There is one random number in array for example 1007. If it doesn't find that number (if the file is missing the number in that array is 0) it automaticly closes the game. :)
I can't die, I already tried
~on the forums since GE 1.3.3~
User avatar
Troodon
 
Posts: 1539
Joined: Thu Jan 12, 2006 3:29 pm
Location: HELL
Score: 56 Give a positive score

Postby Jay S. » Sun Jul 08, 2007 9:58 pm

Ah, very well then. That's wise... :wink:
User avatar
Jay S.
 
Posts: 118
Joined: Thu Apr 26, 2007 6:51 pm
Location: My computer desk. :P
Score: 9 Give a positive score

save it to.

Postby kyensoftware » Mon Jul 09, 2007 12:51 pm

Save it to $WINDOWSPATH/System32/restoresystem......434.bakup
and no one will know...
I used things wit $ in front of it in Visual Basic! i think it is $WINPATH tho..
Games for Windows, Linux, and PPC
Bin dosnt stand for "Binary";
it stands for Bin.
You know, where the junk goes...
User avatar
kyensoftware
 
Posts: 198
Joined: Thu Oct 26, 2006 7:49 am
Score: 5 Give a positive score


Return to GE - General

Who is online

Users browsing this forum: No registered users and 1 guest

cron