Jump to content


Photo

One Instance Dll


  • Please log in to reply
30 replies to this topic

#1 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 13 December 2005 - 12:16 AM

OneInstance DLL

This is a remake of my old version. I remade it in C++.

http://technosoftnet...InstanceDLL.zip

This DLL allows you to only let one instance of your game run at once.
  • 0
Posted ImagePosted Image

#2 ChIkEn AtE mY dOnUtS

ChIkEn AtE mY dOnUtS

    Pwner of barcodes

  • GMC Member
  • 2410 posts

Posted 13 December 2005 - 01:35 AM

if u rename is camdinstance.dll it would be 10/10

but 9/10 now =D
good remake
  • 0
I've moved away from GM. If you want to contact me, feel free to email ryanwebdev@gmail.com.

Thanks,
Ryan.

#3 Mousier Goatee

Mousier Goatee

    Mobile Cheese Factory

  • New Member
  • 48 posts

Posted 13 December 2005 - 02:07 AM

Nice!
I have seen requests for something like this come up in topics more than once-
a very useful DLL.

-Mousier Goatee :)

Edited by Mousier Goatee, 13 December 2005 - 02:08 AM.

  • 0

#4 bugeye999

bugeye999

    GMC Member

  • New Member
  • 260 posts

Posted 17 December 2005 - 03:04 AM

How do you use this?
  • 0

#5 tangibleLime

tangibleLime

    Lunatic

  • GMC Elder
  • 2520 posts
  • Version:GM:HTML5

Posted 25 December 2005 - 05:01 PM

Look at the example, sir.
  • 0
Posted ImagePosted Image

#6 Chirantha

Chirantha

    GMC Member

  • New Member
  • 502 posts

Posted 25 December 2005 - 07:15 PM

lol Stop calling people sir, Insted we should be calling you sir because you are our DLL maker ^_^.

Good Job Sir ::lmao::
  • 0

#7 9_6

9_6

    Guest

  • GMC Member
  • 3627 posts

Posted 25 December 2005 - 09:37 PM

i looked at the example. an empty screen. so what is the purpose of this dll Sir?

Edited by 9_6, 25 December 2005 - 09:37 PM.

  • 0

#8 ChIkEn AtE mY dOnUtS

ChIkEn AtE mY dOnUtS

    Pwner of barcodes

  • GMC Member
  • 2410 posts

Posted 25 December 2005 - 09:42 PM

try to run the example twice at once...
  • 0
I've moved away from GM. If you want to contact me, feel free to email ryanwebdev@gmail.com.

Thanks,
Ryan.

#9 Shinnoki

Shinnoki

    GMC Member

  • New Member
  • 582 posts

Posted 25 December 2005 - 10:02 PM

Funny thing roach, i have another problem with one of ur next DLLs (this one). The first one was my mistake, but i dunno where the problem is here...

Posted Image
  • 0

#10 Diveloperz

Diveloperz

    Pigment of Gaming

  • New Member
  • 119 posts

Posted 26 December 2005 - 12:44 AM

Could be useful, thanks roach. ^_^
  • 0

#11 Chirantha

Chirantha

    GMC Member

  • New Member
  • 502 posts

Posted 26 December 2005 - 08:04 AM

i looked at the example. an empty screen. so what is the purpose of this dll Sir?

<{POST_SNAPBACK}>


IF you want the user to stop running the same program twice at the same time :P
  • 0

#12 Da-Huntha

Da-Huntha

    GMC Member

  • New Member
  • 113 posts

Posted 06 March 2006 - 05:53 PM

got the same error as shinnoki
  • 0

#13 pinguinpanic

pinguinpanic

    GMC Member

  • New Member
  • 790 posts

Posted 06 March 2006 - 07:05 PM

THat problem mostly pops up when you didn't extract it.

Good job Roach, might be usefull for online games for making sure there's no multiple logging
  • 0

#14 Da-Huntha

Da-Huntha

    GMC Member

  • New Member
  • 113 posts

Posted 06 March 2006 - 09:36 PM

xcept that I did extract it, just like Shinnoki did.
  • 0

#15 Shinnoki

Shinnoki

    GMC Member

  • New Member
  • 582 posts

Posted 07 March 2006 - 02:07 PM

THat problem mostly pops up when you didn't extract it.

Good job Roach, might be usefull for online games for making sure there's no multiple logging

<{POST_SNAPBACK}>


duh, look at the screenshot, does it look like it's not extracted??!!
  • 0

#16 Dregnought

Dregnought

    Games Squad Admin

  • New Member
  • 740 posts

Posted 10 March 2006 - 09:22 AM

Assuming that this dll was remade for gm 6.1, try downlaoding gm6.1 and try again. There are a few differences, some could be creating this error...
  • 0

#17 Da-Huntha

Da-Huntha

    GMC Member

  • New Member
  • 113 posts

Posted 10 March 2006 - 02:24 PM

I have GM 6.1, and I'm pretty sure a DLL like this does work on 6.0 too.
  • 0

#18 NJCatch22

NJCatch22

    Washed up!

  • New Member
  • 253 posts

Posted 10 March 2006 - 06:47 PM

It doesn't work. I got version 6.1 and the same error happends while trying the test example.
  • 0

#19 Dregnought

Dregnought

    Games Squad Admin

  • New Member
  • 740 posts

Posted 10 March 2006 - 10:15 PM

I'm not sure if Roach will allow this (if not, just get one of the mods to delete it) but an updated version with extras can be found here
Host 1
Host 2
Host 3

Enjoy.

I don't know why you people are having troubles... but try this, it does have one or two things different.
  • 0

#20 NJCatch22

NJCatch22

    Washed up!

  • New Member
  • 253 posts

Posted 11 March 2006 - 08:12 PM

Nope. Even this updated version doesn't work.

From the log file :

ERROR in
action number 1
of Create Event
for object object0:

Error defining an external function.


Do we need an additionnal .dll or is having only OneInstance.dll fine?

Maybe it's because I only tried the example provided with the download and did not try to program my own game.

If this could get fixed & is proven stable, I will surely get it for my games since having 2 instances of the same game can really lead to problems (if you use the same files to store data and both games access it at the same moment, etc.).

Edited by NJCatch22, 11 March 2006 - 08:15 PM.

  • 0

#21 Dregnought

Dregnought

    Games Squad Admin

  • New Member
  • 740 posts

Posted 11 March 2006 - 08:26 PM

I can't help you then. It also doesn't make sence...
  • 0

#22 hawthorneluke

hawthorneluke

    GMC Member

  • New Member
  • 392 posts

Posted 14 June 2006 - 06:11 PM

the links broken, can anyone point me to where i can get this dll?
  • 0

#23 Matt13

Matt13

    GMC Member

  • New Member
  • 580 posts
  • Version:Unknown

Posted 14 June 2006 - 08:05 PM

PM roach instead of bumping old topics like this.

Thanks,

Matt
  • 0

#24 Whitt

Whitt

    GMC Member

  • New Member
  • 34 posts

Posted 18 March 2007 - 10:55 PM

Its possible to do this with a single registry value
  • 0

#25 Marchal_Mig12

Marchal_Mig12

    The Rhouan

  • GMC Member
  • 1182 posts
  • Version:GM:Studio

Posted 19 March 2007 - 12:42 AM

Nice very useful :)
10/10
  • 0

#26 PLAY: More

PLAY: More

    Press F8 to enter BIOS

  • New Member
  • 824 posts

Posted 19 March 2007 - 07:24 AM

Its possible to do this with a single registry value

<{POST_SNAPBACK}>

PLEASE do not bump old topics. And we all know that, but a lot of people don't like games messing with their registry. Also, in the event of an emergency exit (a.k.a. Ctrl+Alt+Delete) the Game End event is not triggered and the game becomes unusable.
So it is useful.
  • 0

#27 Gameblasterproductions

Gameblasterproductions

    GMC Member

  • New Member
  • 136 posts

Posted 15 October 2007 - 07:55 PM

How come it wont let me download it? I takes me to an expired godaddy domain. :) I REALLY need this dll :P
  • 0

#28 molloyboy08

molloyboy08

    pyr0t3chnic

  • New Member
  • 473 posts

Posted 15 October 2007 - 11:23 PM

did you even bother to read roach's sig
"I've recently changed my domain names. Change "technosoftnet.com" to "wowthatsawesome.com" and all of my links will work. Thanks!"
http://wowthatsaweso...InstanceDLL.zip
would be the correct link
  • 0
Returning after a break from gamemaker.
Gamemaker experience: 6,7 both paid. 8 soon to be pro
Programming knowledge: (May be missing a few currently)
C, C#, C++, java, HTML, CSS, Javascript, PHP, ASP.NET, SQL, Visual Basic, Perl, assembly, batch

Temporary sig while I figure out if I have anything worthwhile to put.

#29 Big J

Big J

    GMC Member

  • GMC Member
  • 2853 posts
  • Version:GM8.1

Posted 20 July 2010 - 10:35 AM

Wow, 4 year old topic. :tongue:

I hate to do this... but...

I found a flaw. I built an executable from the example and discovered that by dragging a file onto the game's icon, I can bypass it and run multiple instances of it. :laugh:

EDIT:
I added an else condition to the script and discovered that it was bypassed because the DLL didn't exist. :tongue: (the else condition was triggered and the game ended)
var OI_Search, OI_Set;

global.OI_Handle = -1;
global.OI_Dll = argument0;
if (file_exists(global.OI_Dll))
{
    if (argument1 != "")
    {
        OI_Search = external_define(global.OI_Dll, "search", 1, 0, 1, 1); 
        OI_Set = external_define(global.OI_Dll, "set", 1, 0, 1, 1);
        if (external_call(OI_Search,argument1) == 0)
        {
            global.OI_Handle = external_call(OI_Set, argument1);
        }
        else
        {
            OI_Stop(argument1, argument2);
        }
    }
}
else
{
    game_end();
}

I guess there isn't a problem after all. :laugh:

Edited by Big J, 29 November 2011 - 01:04 AM.

  • 0

Get your GM 8.1 Anti-Aliasing here!

2712265.png

http://www.youtube.com/Sporkinator


#30 iloveportalz0r

iloveportalz0r

    GMC Member

  • New Member
  • 25 posts

Posted 12 September 2010 - 09:51 AM

The download link doesn't work. I'm getting tired of all these broken links :angry:
  • 0
I use Posted Image Pro version.
98% of the teenage population has smoked, if you are one of the proud 2% that never will, put this in your sig.
How good are you at GML?
Posted Image

#31 poxbear

poxbear

    GMC Member

  • GMC Member
  • 35 posts

Posted 28 November 2011 - 06:58 PM

The download link doesn't work. I'm getting tired of all these broken links :angry:

Yes i know this is an old topic, but in the interest of keeping the DLL download link updated, i decided i would make another post.

New Download Link
  • 0