Forums Index >> Technical Support >> Dedicated Server crashes
Page : <1> :
GoldLightTank.## ##maxspeed= 30;
There should be no space between the. And the maxspeed. The ## signs are telling you where to look. Same for all the other properties. Got to watch for that if you copy anything off the forums here, since the grammar/spellchecker will add spaces after periods.
LightTank. DeccelRate= 300
GoldLightTank. DeccelRate= 300
Those lines are missing their semicolon ; at the end.
:)
Last edited: Thursday, March 11, 2004 at 3:42:23 AM
- Do What 56 man said and...
Also make sure u use correct case as C# is case sensitive. I think Lighttank should = LightTank. I think TT uses camel coding which is microsoft standard. First letter not capitalized but each letter that starts a new word is capitalized. Objects, templates, classes, namespaces, etc always start with a capital.... Ex. Int myInt = new Integer(); (myInt is normal case and Integer is capitalized cause it is an object)
Pasted from above:
Lighttank. Turnrate= 90;
LightTank. DeccelRate= 300
Sounds good. I was wondering about the case. Wasn't sure if it made any difference, but should have know better. It ALWAYS does. Lol. XD
I've had VERY basic experience with any kind of scripting, so it's been a lot of fun to play around with this.
I've tried out both your suggestions, and it's made a huge difference. Thanks for all the help!
Anytime KBC...glad somebody appreciates it...
Actually, capitalization doesn't matter. It's not actually C#, it's "Torque Script." That said, following the capitalization coding conventions Bolo mentions is always a good habit.
Page : <1> :
I should probably be in the modding forum, but his seems as good a place as any to ask about this. Recently I've been try to host a dedicated server for the MOD I made. It will run perfectly for an hour or so with no problems, and then It crashes with the following report;
*** LOADING MISSION: game/data/missions/TT1_2.mis
*** Stage 1 load
Refreshing master server list
Sending heartbeat to master server [IP:216.116.32.49:28002]
*** Stage 2 load
Executing game/data/missions/TT1_2.mis.
Game/data/missions/TT1_2.mis Line: 3196 - Syntax error.
>>> Advanced script error report. Line 6352.
>>> Some error context, with ## on sides of error halt:
Lighttank. Turnrate= 90;
LightTank. DeccelRate= 300
GoldLightTank.## ##maxspeed= 30;
GoldLightTank. Accelrate= 25;
GoldLightTank. Antisliderate= 20;
>>> Error report complete.
#> Segmentation fault
Any ideas? Seems like it would crash right away if there was a problem, but like I said, it will run fine for an hour or so before it decides to kick everyone. Here's what I have at the end of my.mis file;
Lighttank. Maxspeed= 30;
Lighttank. Accelrate= 25;
Lighttank. Antisliderate= 20;
Lighttank. Turnrate= 90;
LightTank. DeccelRate= 300
GoldLightTank. Maxspeed= 30;
GoldLightTank. Accelrate= 25;
GoldLightTank. Antisliderate= 20;
GoldLightTank. Turnrate= 90;
GoldLightTank. DeccelRate= 300