Sunlol wrote:Hello
My server dont execute this command /addobj 520 "School (wooden)"
I'm doing this
/addobj 520 "School (wooden)" Does not work new update (0.2.0.0)....
Also have ids that does not work on command
exemple
27 Chainmail armors
/setmyskill 27 10
Hassanpasa wrote:Kobiwaldi wrote:Hm... tried it via console to become a GM. Working. (/gm password)
*edit*
Work on Dedi Server
I tried with /gm password in console but i get Invalid password message... Anyone can help
Inxane wrote:Sunlol wrote:Hello
My server dont execute this command /addobj 520 "School (wooden)"
I'm doing this
/addobj 520 "School (wooden)" Does not work new update (0.2.0.0)....
Also have ids that does not work on command
exemple
27 Chainmail armors
/setmyskill 27 10
/addobj 520
That should work on it's own, only type that in the chat. Don't forget to turn on GM mode first. The "School (wooden)" They just told you the ID is that building.
/setmyskill "Chainmail armors" 27
That should work.
Hope it works for you, if anyone have any questions, i could try to help you all.
Sunlol wrote:Inxane wrote:Sunlol wrote:Hello
My server dont execute this command /addobj 520 "School (wooden)"
I'm doing this
/addobj 520 "School (wooden)" Does not work new update (0.2.0.0)....
Also have ids that does not work on command
exemple
27 Chainmail armors
/setmyskill 27 10
/addobj 520
That should work on it's own, only type that in the chat. Don't forget to turn on GM mode first. The "School (wooden)" They just told you the ID is that building.
/setmyskill "Chainmail armors" 27
That should work.
Hope it works for you, if anyone have any questions, i could try to help you all.
/addobj 520 dont work man help
//AUTO-CONNECT TO (FAVORITE/OWN) SERVER FROM TITLE SCREEN WITH ALT+M - AVOIDING SERVER LIST DELAY
GlobalActionMap.bindCmd(keyboard, "alt m", "", "joinToRemoteServer(\"###.###.###.###:28000\",\"\");");
//Z = TOGGLE GM MODE
moveMap.bindCmd(keyboard, z, "doSlashCommand(\"/GM password\");");
//ALT+N = NEWBIE PACK TO PASS OUT
GlobalActionMap.bind(keyboard, "alt n", newbiePack);
//ALT+Z = NEW GM CHAR. ALL SKILLS & STATS
GlobalActionMap.bind(keyboard, "alt z", allSkills);
function allSkills()
{
warn("ALL SKILLS");
doSlashCommand("/setmystat 0 110");
doSlashCommand("/setmystat 1 110");
doSlashCommand("/setmystat 2 110");
doSlashCommand("/setmystat 3 110");
doSlashCommand("/setmystat 4 110");
for(%i = 1; %i < 66; %i++)
{
%commandToSend = "/setmyskill " @ %i @ " 90";
doSlashCommand(%commandToSend);
}
}
function newbiePack()
{
warn("NewbiePack");
doSlashCommand("/ADD 458 1"); //backpack
doSlashCommand("/ADD 40 1 100 50000"); //shovel
doSlashCommand("/ADD 555 1 100 50000"); //practice sword
doSlashCommand("/ADD 48 1 100 50000"); //pickaxe
doSlashCommand("/ADD 45 1 100 50000"); //primitive axe
doSlashCommand("/ADD 51 1 100 50000"); //saw
doSlashCommand("/ADD 33 1 100 50000"); //sickle
doSlashCommand("/ADD 974 25 50 50000"); //semiSuperAppleBuns
doSlashCommand("/ADD 885 1 50"); //helm
doSlashCommand("/ADD 886 1 50"); //chest
doSlashCommand("/ADD 887 1 50"); //arms
doSlashCommand("/ADD 888 1 50"); //gaunlets
doSlashCommand("/ADD 889 1 50"); //leggings
doSlashCommand("/ADD 890 1 50"); //boots
}
Indianbay wrote:Anyone have a list of the skill tree codes? When I try and mod a skill w/ multiple words it doesn't work... any suggestions?
Godcomplex wrote:Has anyone worked out any terraforming commands yet, would love to collapse a mine tunnel
Zoneg wrote:/addobj - no work. How ON this command? I want spawn horses
function RestartServer(%minutes)
{
CancelRestart();
%shutdown = %minutes * 60000;
%one = %shutdown - 60000;
%two = %shutdown - 120000;
%five = %shutdown - 300000;
%ten = %shutdown - 600000;
hack("Initiating server restart in " @ %minutes @ " minutes.");
centerPrintAll("Server going down for restart in " @ %minutes @ " minutes.\n\nPlease ensure you are in a safe area.",15,2);
if (%minutes > 12)
{
$TIMER_TEN = schedule(%ten, 0, "onTimerAnnounce","Server going down for restart in 10 minutes.\n\nPlease ensure you are in a safe area.");
}
if (%minutes > 7)
{
$TIMER_FIVE = schedule(%five, 0, "onTimerAnnounce","Server going down for restart in 5 minutes.\n\nLog out at your earliest convenience.");
}
if (%minutes > 3)
{
$TIMER_TWO = schedule(%two, 0, "onTimerAnnounce","Server going down for restart in 2 minutes.\n\nLog out now!");
}
if (%minutes > 1)
{
$TIMER_ONE = schedule(%one, 0, "onTimerAnnounce","Server going down for restart in 1 minute.\n\nLog out now!");
}
$TIMER_Shutdown = schedule(%shutdown, 0, "onTimerShutdown");
}
function CancelRestart()
{
cancel($TIMER_TEN);
cancel($TIMER_FIVE);
cancel($TIMER_TWO);
cancel($TIMER_ONE);
cancel($TIMER_SHUTDOWN);
}
CancelRestart();
function OnTimerAnnounce(%str)
{
hack("Sending server restart message:" SPC %str);
centerPrintAll(%str,10,2);
}
function onTimerShutdown()
{
hack("Server restart initiated.");
shellExecute("check_server.cmd",$cm_config::worldID);
Quit();
}
@echo off
REM Delay until server process is closed...
<nul (set/p _any_variable=Waiting for server to exit.)
:WAITCLOSE
<nul (set/p _any_variable=.)
ping ::1 -n 3 >NUL 2>NUL
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL && goto :WAITCLOSE
echo done.
ping ::1 -n 5 >NUL 2>NUL
:LOOP
REM If server is started, exit batch file.
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL && goto :END
REM If not, try to start it.
echo Launching WorldID %1.
start ddctd_cm_yo_server.exe -WorldID %1
REM Wait 30 seconds before next check to give server time to initialize titlebar with world ID.
echo Waiting 30 seconds to ensure server has started.
PING ::1 -n 30 >NUL 2>NUL
REM Loop to check if server is initialized.
GOTO :LOOP
:END
Vamyan wrote:Not exactly a GM command, unless someone can help me understand Torque 3D enough to make this a client-initiated option, but here's a serverside script to restart the server.
Executed by calling RestartServer(15); (for example) in the server console, can be canceled by calling CancelRestart();
The following code can be inserted into whatever serverside scripts you have loading, i.e. any script with an exec() line in main.cs, or a new script added as an exec() line there.
- Code: Select all
function RestartServer(%minutes)
{
CancelRestart();
%shutdown = %minutes * 60000;
%one = %shutdown - 60000;
%two = %shutdown - 120000;
%five = %shutdown - 300000;
%ten = %shutdown - 600000;
centerPrintAll("Server going down for restart in " @ %minutes @ " minutes.\n\nPlease ensure you are in a safe area.",15,3);
if (%minutes > 12)
{
$TIMER_TEN = schedule(%ten, 0, "onTimerAnnounce","Server going down for restart in 10 minutes.\n\nPlease ensure you are in a safe area.");
}
if (%minutes > 7)
{
$TIMER_FIVE = schedule(%five, 0, "onTimerAnnounce","Server going down for restart in 5 minutes.\n\nLog out at your earliest convenience.");
}
if (%minutes > 3)
{
$TIMER_TWO = schedule(%two, 0, "onTimerAnnounce","Server going down for restart in 2 minutes.\n\nLog out now!");
}
if (%minutes > 1)
{
$TIMER_ONE = schedule(%one, 0, "onTimerAnnounce","Server going down for restart in 1 minute.\n\nLog out now!");
}
$TIMER_Shutdown = schedule(%shutdown, 0, "onTimerShutdown");
}
function CancelRestart()
{
cancel($TIMER_TEN);
cancel($TIMER_FIVE);
cancel($TIMER_TWO);
cancel($TIMER_ONE);
cancel($TIMER_SHUTDOWN);
}
CancelRestart();
function OnTimerAnnounce(%str)
{
centerPrintAll(%str,10,3);
}
function onTimerShutdown()
{
hack("Server restart initiated.");
launchExternalApplication("check_server.cmd",$cm_config::worldID);
Quit();
}
and the check_server.cmd batch file:
- Code: Select all
@echo off
REM Delay about 60 seconds...
PING ::1 -n 30 >NUL 2>NUL
:LOOP
PING ::1 -n 30 >NUL 2>NUL
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL && goto :END
start ddctd_cm_yo_server.exe -WorldID %1
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL || goto :LOOP
:END
<EDIT> Tweaked code for functionality with multiple worlds.
Adamld85 wrote:
Thanks man. I couple questions - does it check whether the server is alive even if it has crashed with the MUTEX error? I've got it detecting when it isn't running but when that MUTEX lock error appears it just halts the server and it doesn't know to restart until you click ok to the error box.
Also, is there a way to send global messages at certain intervals? This would be very useful for serverwide messages about the rules, where to find help, etc.
// schedule(ms delay,0,callback function,callback args...)
schedule(100,0,"SpamInfo","The information line goes here.\nBackslash-n inserts a line break.",10,2,120000);
// This auto-starts the SpamInfo() timer, with the above line, to stay on screen for 10 seconds.
// Two lines of background will be reserved, and the timer will repeat every 120 seconds (120000 ms)
function SpamInfo(%str,%seconds,%lines,%repeat)
{
centerPrintAll(%str,%seconds,%lines);
schedule(%repeat,0,"SpamInfo",%str,%seconds,%lines,%repeat);
}
Vamyan wrote:Not exactly a GM command, unless someone can help me understand Torque 3D enough to make this a client-initiated option, but here's a serverside script to restart the server.
Executed by calling RestartServer(15); (for example) in the server console, can be canceled by calling CancelRestart();
The following code can be inserted into whatever serverside scripts you have loading, i.e. any script with an exec() line in main.cs, or a new script added as an exec() line there.
- Code: Select all
function RestartServer(%minutes)
{
CancelRestart();
%shutdown = %minutes * 60000;
%one = %shutdown - 60000;
%two = %shutdown - 120000;
%five = %shutdown - 300000;
%ten = %shutdown - 600000;
centerPrintAll("Server going down for restart in " @ %minutes @ " minutes.\n\nPlease ensure you are in a safe area.",15,3);
if (%minutes > 12)
{
$TIMER_TEN = schedule(%ten, 0, "onTimerAnnounce","Server going down for restart in 10 minutes.\n\nPlease ensure you are in a safe area.");
}
if (%minutes > 7)
{
$TIMER_FIVE = schedule(%five, 0, "onTimerAnnounce","Server going down for restart in 5 minutes.\n\nLog out at your earliest convenience.");
}
if (%minutes > 3)
{
$TIMER_TWO = schedule(%two, 0, "onTimerAnnounce","Server going down for restart in 2 minutes.\n\nLog out now!");
}
if (%minutes > 1)
{
$TIMER_ONE = schedule(%one, 0, "onTimerAnnounce","Server going down for restart in 1 minute.\n\nLog out now!");
}
$TIMER_Shutdown = schedule(%shutdown, 0, "onTimerShutdown");
}
function CancelRestart()
{
cancel($TIMER_TEN);
cancel($TIMER_FIVE);
cancel($TIMER_TWO);
cancel($TIMER_ONE);
cancel($TIMER_SHUTDOWN);
}
CancelRestart();
function OnTimerAnnounce(%str)
{
centerPrintAll(%str,10,3);
}
function onTimerShutdown()
{
hack("Server restart initiated.");
launchExternalApplication("check_server.cmd",$cm_config::worldID);
Quit();
}
and the check_server.cmd batch file:
- Code: Select all
@echo off
REM Delay about 60 seconds...
PING ::1 -n 30 >NUL 2>NUL
:LOOP
PING ::1 -n 30 >NUL 2>NUL
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL && goto :END
start ddctd_cm_yo_server.exe -WorldID %1
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL || goto :LOOP
:END
<EDIT> Tweaked code for functionality with multiple worlds.
Vamyan wrote:The commands need to be entered into the server console, not from a client console... that may be where you're going wrong?
in the server console, entering:
RestartServer(15);
will send a global notice to everyone connected to the server and start the timers for more notices and shutdown/restart.
Also in the server console, entering:
centerPrintAll("text to send",<seconds>);
will display a global notice to everyone.
I'm sure there's a way to implement these as a client function that calls the server function through the network, but I don't know how.
Vamyan wrote:Not exactly a GM command, unless someone can help me understand Torque 3D enough to make this a client-initiated option, but here's a serverside script to restart the server.
Executed by calling RestartServer(15); (for example) in the server console, can be canceled by calling CancelRestart();
The following code can be inserted into whatever serverside scripts you have loading, i.e. any script with an exec() line in main.cs, or a new script added as an exec() line there.
- Code: Select all
function RestartServer(%minutes)
{
CancelRestart();
%shutdown = %minutes * 60000;
%one = %shutdown - 60000;
%two = %shutdown - 120000;
%five = %shutdown - 300000;
%ten = %shutdown - 600000;
centerPrintAll("Server going down for restart in " @ %minutes @ " minutes.\n\nPlease ensure you are in a safe area.",15,3);
if (%minutes > 12)
{
$TIMER_TEN = schedule(%ten, 0, "onTimerAnnounce","Server going down for restart in 10 minutes.\n\nPlease ensure you are in a safe area.");
}
if (%minutes > 7)
{
$TIMER_FIVE = schedule(%five, 0, "onTimerAnnounce","Server going down for restart in 5 minutes.\n\nLog out at your earliest convenience.");
}
if (%minutes > 3)
{
$TIMER_TWO = schedule(%two, 0, "onTimerAnnounce","Server going down for restart in 2 minutes.\n\nLog out now!");
}
if (%minutes > 1)
{
$TIMER_ONE = schedule(%one, 0, "onTimerAnnounce","Server going down for restart in 1 minute.\n\nLog out now!");
}
$TIMER_Shutdown = schedule(%shutdown, 0, "onTimerShutdown");
}
function CancelRestart()
{
cancel($TIMER_TEN);
cancel($TIMER_FIVE);
cancel($TIMER_TWO);
cancel($TIMER_ONE);
cancel($TIMER_SHUTDOWN);
}
CancelRestart();
function OnTimerAnnounce(%str)
{
centerPrintAll(%str,10,3);
}
function onTimerShutdown()
{
hack("Server restart initiated.");
launchExternalApplication("check_server.cmd",$cm_config::worldID);
Quit();
}
and the check_server.cmd batch file:
- Code: Select all
@echo off
REM Delay about 60 seconds...
PING ::1 -n 30 >NUL 2>NUL
:LOOP
PING ::1 -n 30 >NUL 2>NUL
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL && goto :END
start ddctd_cm_yo_server.exe -WorldID %1
tasklist /FI "imagename eq ddctd_cm_yo_server.exe" /V | find "world ID %1" >NUL || goto :LOOP
:END
<EDIT> Tweaked code for functionality with multiple worlds.