View previous topic :: View next topic |
Author |
Message |
oVi
|
Posted: Fri May 02, 2008 2:07 am Post subject: subdomain restrictions |
|
|
hi,
i will create a subdomain with 3 games/mods and the user of the subdomain can only start one game of the subdomain game pool.
when the user stopped the running mod/game he could start another game/mod.
how can i do this ? |
|
Back to top |
|
 |
adbot
|
Posted: Thu Mar 31, 2011 3:57 am |
|
|
|
|
|
Steve Mammoth
|
Posted: Fri May 02, 2008 3:02 pm Post subject: |
|
|
You could use the server booking options and/or limit the tokens on the host to allow only one booking at a time, or possibly limit users to x amount of booking per day/week.
This isn't really ideal, but it may be the best way to handle what you want to do. |
|
Back to top |
|
 |
oVi
|
Posted: Tue May 06, 2008 8:43 am Post subject: |
|
|
great idea but,
how can i change/set the tokens for a subdomain ? |
|
Back to top |
|
 |
Steve Mammoth
|
Posted: Tue May 06, 2008 4:46 pm Post subject: |
|
|
You can't set tokens per subdomain, only by host.
There isn't many options available for what you're trying to achieve. |
|
Back to top |
|
 |
oVi
|
Posted: Tue May 06, 2008 9:45 pm Post subject: |
|
|
there are planned any solutions for this problem in near future ? |
|
Back to top |
|
 |
Steve Mammoth
|
Posted: Thu May 08, 2008 4:03 pm Post subject: |
|
|
No. At the current time there'll be no active development on this. |
|
Back to top |
|
 |
larasoft
|
Posted: Wed Feb 17, 2010 7:54 pm Post subject: |
|
|
I'm interested in this, too.
Is this possible nowadays or is there any workaround? |
|
Back to top |
|
 |
hyperprotagonist
|
Posted: Wed Feb 17, 2010 8:04 pm Post subject: |
|
|
Not via GC. Unless you build your own control panel in a language to interpret the GC API.
One question though. Is there a way to remotely configure a servers command line for perm or temp servers? |
|
Back to top |
|
 |
Andrew Mammoth
|
Posted: Wed Feb 17, 2010 9:56 pm Post subject: |
|
|
This problem is solvable, if you can clarify what you would like to do.
I assume you have 3 servers:
* Server A, B and C
And you want to make it so only one server may be online at a time.
To do this, you could:
* Write a script that uses the GameCreate Web Services (http://doc.gamecreate.com/ManualWebService) to check which servers are online. If more than 1 server out of the group are online, issue a STOP command to the other servers using the Web Service's SetServerRunning method.
This way, you can write an external script that constantly (say, every 5 minutes or so) checks to see what servers are online.
If you find too many servers online, using your script, you can tell GameCreate to please shutdown one of the servers.
This will make starting the servers useless, because they will just shutdown every few minutes.
You could also remove the user's permission to Start/Stop servers entirely, and instead make them access a page on your website to choose what server to run - and then use the Web Services again to start/stop the right server.
Quote: | . Is there a way to remotely configure a servers command line for perm or temp servers? |
Yes. See the 'Modify server' Web Service command (http://doc.gamecreate.com/ManualWebService) which allows you to change the configuration of a booking. You can then issue a RestartServer web command to restart the server after you've made changes. |
|
Back to top |
|
 |
hyperprotagonist
|
Posted: Thu Feb 18, 2010 12:47 am Post subject: |
|
|
Andrew wrote: | Yes. See the 'Modify server' Web Service command (http://doc.gamecreate.com/ManualWebService) which allows you to change the configuration of a booking. You can then issue a RestartServer web command to restart the server after you've made changes. |
Sorry my mistake, I meant permanent servers only. I know this is achievable with bookings, but not permanent? |
|
Back to top |
|
 |
Andrew Mammoth
|
Posted: Thu Feb 18, 2010 7:56 am Post subject: |
|
|
Yep, that ModifyServer command will work for permanent servers too. |
|
Back to top |
|
 |
larasoft
|
Posted: Fri Feb 19, 2010 11:04 pm Post subject: |
|
|
thanks for the feedback. I will give it a try!! |
|
Back to top |
|
 |
|