Author Topic: [XP][VX] One Game Instance  (Read 6153 times)

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
[XP][VX] One Game Instance
« on: August 04, 2011, 02:52:05 PM »
One Game Instance
Authors: game_guy
Version: 1.0
Type: Cheating Prevention
Key Term: Misc System

Introduction

Was reading this thread. http://www.hbgames.org/forums/viewtopic.php?f=12&t=74963&start=0 The guy who resolved it made it way overcomplicated. I decided to make a smaller more compact version.

This script is to prevent multiple instances of your game. This is really only for online games so players can't cheat.

Features

  • Prevents Multiple Instances
  • Custom File/Error
  • XP/VX Compatible

Screenshots

N/A

Demo

N/A

Script

Place at very top!
(click to show/hide)

Instructions

In script.

Compatibility

Works with everything.
XP/VX compatibility.

Credits and Thanks

  • game_guy ~ For creating it.
  • ZenVirZan ~ For requesting it.

Author's Notes

Prevent dem hackahs! >:U
« Last Edit: February 29, 2012, 07:10:20 AM by game_guy »

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP][VX] One Game Instance
« Reply #1 on: August 04, 2011, 04:52:36 PM »
And the beauty of the script is that you can put it anywhere! :O
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline GamerGeeks

  • Trained Member
  • *
  • Posts: 21
  • LV: -1
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #2 on: August 21, 2011, 03:44:25 PM »
i think i gonna need this for my RMX-OS server. Thanks!

Offline Apidcloud

  • Ethereal Devastator
  • ****
  • Posts: 258
  • LV: -10
  • Gender: Male
  • Epic pony is epic'
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #3 on: August 21, 2011, 04:09:16 PM »
And the beauty of the script is that you can put it anywhere! :O

Roflmao  :O.o:  :facepalm:  :uhm:

Great snippet g_g ^^
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."

Gibbo Glast 2D Engine - The sky is no longer a limit

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP][VX] One Game Instance
« Reply #4 on: August 21, 2011, 05:15:43 PM »
No, seriously. This is a rare script that can be put anywhere in the script editor, the order doesn't matter.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Apidcloud

  • Ethereal Devastator
  • ****
  • Posts: 258
  • LV: -10
  • Gender: Male
  • Epic pony is epic'
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #5 on: August 21, 2011, 05:38:51 PM »
lol, if it doesn't need any class that is on the editor, it can be used in everywhere(as you said previously) xD

A great script really =)
« Last Edit: August 21, 2011, 05:50:38 PM by Apidcloud »
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."

Gibbo Glast 2D Engine - The sky is no longer a limit

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #6 on: August 21, 2011, 06:35:56 PM »
Thanks guys. :3 I don't think it can be placed under main though. It'll start the loop before it'll reach the script. Then when the loop ends it'll make a derp moment.

Offline Apidcloud

  • Ethereal Devastator
  • ****
  • Posts: 258
  • LV: -10
  • Gender: Male
  • Epic pony is epic'
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #7 on: August 21, 2011, 06:55:56 PM »
I think you're entirely correct.
I ever heard that scripts under main won't work, although, as your script only uses 'begin' I think it won't be a problem even if it is placed under main.
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."

Gibbo Glast 2D Engine - The sky is no longer a limit

Offline G_G

  • Green Gmod Game_Guy AKA G4 AKA hyper-G AKA G-force
  • Global Moderator
  • Chaos Ultimate
  • ****
  • Posts: 6591
  • LV: 407
  • Gender: Male
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #8 on: August 21, 2011, 07:00:23 PM »
It would be a problem. Main is a loop. When the game is ran, it loads scripts from top to bottom so its going to hit main before mine. When it hits main, it loops and updates $scene until it becomes nil. After that it would then hit  my script, then close. Thats what happens to any script put below main.

Offline Apidcloud

  • Ethereal Devastator
  • ****
  • Posts: 258
  • LV: -10
  • Gender: Male
  • Epic pony is epic'
    • View Profile
Re: [XP][VX] One Game Instance
« Reply #9 on: August 21, 2011, 07:20:43 PM »
XD thanks for explaining ^^
Instead of wanting to be somebody else, rather become somebody else



"I will treasure the knowledge like a squirrel treasures acorns."

Gibbo Glast 2D Engine - The sky is no longer a limit

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 20005
  • LV: 651
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP][VX] One Game Instance
« Reply #10 on: August 21, 2011, 07:39:27 PM »
Scripts under main are run when you do a clean game exit (that means no "exit", no ALT+F4 and no pressing the X to close the window). Obviously you can put it wherever you want above main. :roll:
« Last Edit: August 21, 2011, 07:42:35 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.