Game Development Community

Starting a dedicated Server troubles

by Tarly · in Technical Issues · 10/12/2006 (1:49 pm) · 17 replies

Hello all,

I am a new Torque owner (less than a month) and I am wading thru info well past my ears. :) I found Lui Yi's post on May 29th, I thought I would give it a go.

I made my changes to Main.cs to launch Starter.fps

I added the changes Pual "wedge" Delia recommended to remove the onneedredlight error as I too recieved the same error as Lui.

I used: case "-dedicated":
$userMods = $defaultGame;

I still got the error. The server opens a second command window starts to do something then, to add insult to injury, closes both command prompts.



Here is a copy of my console log:


*** Stage 2 load
Executing starter.fps\data\missions\stronghold.mis.
Illegal CodeBlock path detected (no mod directory): starter.fps\data\missions\stronghold.mis
(TypeFilename) illegal filename detected: ~/data/skies/sky_day.dml
Illegal CodeBlock path detected (no mod directory): starter.fps\data\missions\stronghold.mis
(TypeFilename) illegal filename detected: ~/data/terrains/details/detail1
Illegal CodeBlock path detected (no mod directory): starter.fps\data\missions\stronghold.mis


thinking the last line was my issue, and seeing that it was not back slashes, I changed my bat file for forward slashes. And here is my Console log after my changes where made:

*** Stage 1 load
*** Stage 2 load
Executing starter.fps/data/missions/stronghold.mis.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.
onNeedRelight: Unknown command.

*** Mission loaded

--------- Initializing: Torque Creator ---------
Loading compiled script creator/editor/editor.cs.
Loading compiled script creator/editor/particleEditor.cs.
Loading compiled script creator/scripts/scriptDoc.cs.
Loading compiled script creator/ui/creatorProfiles.cs.
Loading compiled script creator/ui/InspectDlg.gui.

I still got the error. The server opens a second command window starts to do something then, closes.

I could use some help please. My wife tells me if I cannot behave, I will have to put my new hobby away until I can behave better. (She finds it irratating that I throw napkins at the computer and discuss it abiltity to make me mad.) Does ANYone have ideas that can help me out? I would hate to have to move to the computer to the garage as it is starting to get cold outside and I LIKE my computer where it is now.

Thank you all for taking the time to read this, and for any ideas/help you may have.

OR LINK to ARTICLES would be even better... GIVE US LINKS GOOD PEOPLE!


Respectfully,
Clifford

I have used the article http://tdn.garagegames.com/wiki/Torque/vs2k5. As I was under the impression it did something else. It seems it updated my torque game though.

#1
10/13/2006 (7:30 pm)
Are you using windows?
If so, you can make a shortcut from the exe and change it to:
C:\YourPathTo\tge.exe  -dedicated -mission control/data/maps/YourMission.mis
and it will work.
This is from the 3d Programming all in one series of books.
#2
10/14/2006 (12:16 am)
I try this but i have a error....I have a modify for select team and type of player....If i use this my modify not function...I i use a normal multiplayer game with torque the modify function...Why this....?
#3
10/14/2006 (2:09 am)
Just remove/rename your creator directoy or add IF dedicated = false -> load creator
This is how i got it to work.
#4
10/14/2006 (2:16 am)
"or add IF dedicated = false -> load creator"
To try this? i modify what?
#5
10/14/2006 (3:46 am)
Mike,

Thank you for your reply. My short cut properties looks like this: C:\Torque\SDK\example\torqueDemo.exe -dedicated -mission control/data/maps/stronghold.mis My main.cs is pointed to starter.fps when I double click on the shoort cut on the desktop, I get a brief MS dos window,some quick activity and it closes again.
ON looking at the console log: I see I had a bit of an issue. I changed my short cut to this:
C:\Torque\SDK\example\torqueDemo.exe -dedicated -mission starter.fps/data/missions/stronghold.mis
and now I get the this:

*** Stage 1 load
*** Stage 2 load
Executing starter.fps/data/missions/stronghold.mis.
onNeedRelight: Unknown command.
78 repeats of this onNeedrelight" <--error
onNeedRelight: Unknown command.
*** Mission loaded

--------- Initializing: Torque Creator ---------
Loading compiled script creator/editor/editor.cs.
Loading compiled script creator/editor/particleEditor.cs.
Loading compiled script creator/scripts/scriptDoc.cs.
Loading compiled script creator/ui/creatorProfiles.cs.
Loading compiled script creator/ui/InspectDlg.gui.

And it still closes the command prompt.
#6
10/14/2006 (3:49 am)
Robin.

thank you for your idea. Both Cimo Duqu and I are having trouble it seems identifying where that "IF dedicated = false -> load creator" line should go. If I have any clue or undertsanding of what I am doing, I htinkit should go in the Main.cs. I will look in the other posts as I htink I saw a post concerning this under other Network server questions.. Let me read some more and see what I can come up with. If you see this before I havea chance to find it online, could you give usa better idea of where to look please?

thank you for your time.

Cliff
#7
10/14/2006 (4:04 am)
OK.. in this post http://www.garagegames.com/mg/forums/result.thread.php?qt=44935 Paul /wedge/ Delia asks to have this line added in the main.cs in the case statements:

case "-dedicated":
$userMods = $defaultGame;

So, I added it. and here is what it looks like now:

//--------------------
case "-jDebug":
$argUsed[$i]++;
if ($hasNextArg)
{
playJournal($nextArg,true);
$argUsed[$i+1]++;
$i++;
}
else
error("Error: Missing Command Line argument. Usage: -jDebug ");

//-------------------
case "-help":
$displayHelp = true;
$argUsed[$i]++;
//------------------- added this line
case "-dedicated":
$userMods = $defaultGame;

//-------------------
default:
$argUsed[$i]++;
if($userMods $= "")
$userMods = $arg;

and it works. I can see it both on the lan and the master server.

I do have a numberr of errors in the console.. But, I will work thru those in time. Thank you all for yout help in this. I appre. you time and ideas.

Cliff
#8
10/14/2006 (4:05 am)
I create a file.nat with this:
TorqueDemo.exe -dedicated -mission starter.fps/data/missions/online/1/online1.mis
And i try t lunch this...All ok see in server but when connect in this mode my modify not function...
If i connect in normale mode with TGE my modify function .... uff why...Where is a problem?
#9
10/14/2006 (4:57 am)
switch$ (%arg)
      {
         //--------------------
         case "-dedicated":
            $Server::Dedicated = true;
            enableWinConsole(true);
            $argUsed[%i]++;
I have this in main.cs----I try to put a false in Dedicated but not function...
I try this $userMods = $defaultGame; but the my problem persist..
My modifu not function with the my master server with file.BAT
If i use a normal TGE multy player function....Uff dam!!!
#10
10/14/2006 (4:57 am)
Cimo,

if you installed the SDK in the default directory. please open the example folder and right click on the TorqueDemo.exe icon. Choose send to desktop. close all folders to come back to the desktop.
Right click the torque desktop icon and choose properties, and try pasting this in the target line without the qoutes:

"C:\Torque\SDK\example\torqueDemo.exe -dedicated -mission starter.fps/data/missions/stronghold.mis"

I hope that helps you out.


Cliff
#11
10/14/2006 (5:07 am)
But this is impossible....Windows not consent this...I try but not function...Have a incorrect destination if i use this in "properties - Destination"....
#12
10/14/2006 (6:05 am)
Cimo,

Do you have the short cut on your desktop that is the red torque icon? if so, right click the icon on your sdesktop and click properties.. in the target field erase it all, and put in:

C:\Torque\SDK\example\torqueDemo.exe -dedicated -mission starter.fps/data/missions/stronghold.mis

click apply then click on the red torque icon on the desktop and let's see if that works.
#13
10/14/2006 (6:21 am)
My error sorry...Function now but a error persist...My modify not function...
Not function olny i use a master server....
If i use a normal multiplayer game Function....Uff where is the problem...Why not function...Uff
#14
10/14/2006 (7:39 am)
Cimo,
I don't know. You may need to look at your mod to see why its' not working thru the server.

Clifford,
To get rid of the "onNeedRelight" error is simple.

in starter.fps/server/scripts/game.cs (at the very end of the file..add:)
//Added to Kill the "On need relight" error in the console.
   function onNeedRelight() { }
#15
10/14/2006 (7:42 am)
No no i don't have this error thanks =) my mod is this:

File doc:
File 1 .doc
File 2 .doc
#16
10/14/2006 (12:11 pm)
Mike,

I added: function onNeedRelight() { } to starter.fps/server/scripts/game.cs
under

//-----------------------------------------------------------------------------
// Support functions
//-----------------------------------------------------------------------------

function pickSpawnPoint()

at the very bottom, and it looks like this:

// Could be no spawn points, in which case we'll stick the
// player at the center of the world.
return "0 0 300 1 0 0 0";
// Added to Kill the "On need relight" error in the console.
function onNeedRelight() { }
}

when I run the server, connect a client, log off, then open the console. I still get the relight error.

Cim,

I am sorry. I don't know how else to help as I am new to this.
#17
10/14/2006 (12:15 pm)
.....
oh thanks....