Closed Testing

by Darker Legends
[Share] [Zip]
To download this demo for your Linux/Mac installation, enter this on your command line:

DreamDownload byond://DarkerLegends.betatest##version=0

Emulator users, in the BYOND pager go to File | Open Location and enter this URL:

byond://DarkerLegends.betatest##version=0

61 downloads
Latest Version
Date added: Aug 12 2011
4 fans
Did you ever want to host your game without others connecting? Don't you know how to use Dream Daemon's built in feature? Then this demo is for you! [More]
-Version[0.1]
Initial release.

Advertisement

Comments

Dr.Penguin: (Aug 29 2012, 3:06 am)
Darker Legends wrote:
I don't know how Inever noticed that, but this should work fine.
/*
> This is a short demonstration on how to prevent people from logging in if they're not testers.
> */

> var/list/beta_testers=list("")//Put your ckey here. Your ckey is basically your key without spaces or upper-case letters.
> var/closed_beta=0//Set to one if closed beta, set to zero if public.
>
> client/New()
> if(closed_beta)
> if(!(src.ckey in beta_testers))//Check if the user's a tester or not.
> src << "You're not allowed to be testing this game, sorry!"//Tell the user he's not allowed to join.
> del src//Block the user from going any further.
> return ..()//User is a tester, continue.


Also try to put a sleep on the del src. The players dont even get to see the message.
Dr.Penguin: (Aug 29 2012, 2:51 am)
You welcome :P
Darker Legends: (Aug 29 2012, 2:50 am)
I don't know how Inever noticed that, but this should work fine.
/*
This is a short demonstration on how to prevent people from logging in if they're not testers.
*/

var/list/beta_testers=list("")//Put your ckey here. Your ckey is basically your key without spaces or upper-case letters.
var/closed_beta=0//Set to one if closed beta, set to zero if public.

client/New()
if(closed_beta)
if(!(src.ckey in beta_testers))//Check if the user's a tester or not.
src << "You're not allowed to be testing this game, sorry!"//Tell the user he's not allowed to join.
del src//Block the user from going any further.
return ..()//User is a tester, continue.
Dr.Penguin: (Aug 29 2012, 1:31 am)
Fixed the code up

var/list/beta_testers=list("")//Put your ckey here. Your ckey is basically your key without spaces or upper-case letters.
var/closed_beta=1//Set to one if closed beta, set to zero if public.

client/New()
if(closed_beta == 1)
if(!(src.ckey in beta_testers))//Check if the user's a tester or not.
src << "You're not allowed to be testing this game, sorry!"//Tell the user he's not allowed to join.
del src//Block the user from going any further.
else
return ..()//User is a tester, continue.
else
return ..()
2Saruman2: (Oct 10 2011, 1:18 pm)
short..but simple and nice