Archived copy of warcraft-source.com, the Warcraft: Source (WCS) forum (2007–2011), rebuilt from the Internet Archive by wc3mods.net. This page was captured on 2010-04-12 (original capture). Home · Forum · All archived topics · Downloads

Author Topic: Server problem?  (Read 207 times)

Offline Broken7447

  • Level 0 Beginner
  • Posts: 7
Server problem?
« on: February 22, 2008, 05:48:26 PM »
My server keeps crashing when its got around 20 members in it. Iv contacted  lvl 4 admin on my gameserver provider and they told me what the problem was but I cant make ends out on this

Unknown command ";if (racealias in server_var(wcs_val)) then alias server_var(wcs_val) server_var(wc
s_tmp) "
./srcds_run: line 344: 5562 Segmentation fault $HL_CMD

Offline Broken7447

  • Level 0 Beginner
  • Posts: 7
Re: Server problem?
« Reply #1 on: February 24, 2008, 06:36:59 AM »
Does anyone know what could be causing this error?

I know where the code is but dont know technically why its happening...

Offline kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1110
    • http://wc3source.de
Re: Server problem?
« Reply #2 on: February 24, 2008, 01:38:30 PM »
this part creates the race aliases.
Did you add any custom races?
Maybe a racealias is too long or has bad syntax, so this crashes the whole server -.-
[spoiler=Buy me a ...]  :mrgreen:[/spoiler]

Offline Broken7447

  • Level 0 Beginner
  • Posts: 7
Re: Server problem?
« Reply #3 on: February 25, 2008, 12:39:09 AM »
Custom races as in races added other than the stock races from a fresh install..
Could you tell me more about this alias thing how can we fix this issue?

And yes its a dedicated server and we have 24 slots lol I pay $2 a slot due to it being a 100 tick. We have had problems with it crashing before we upgraded to a 100 tick so its not that.....

Offline kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1110
    • http://wc3source.de
Re: Server problem?
« Reply #4 on: February 25, 2008, 11:18:14 AM »
only tickrate 33 is bad for WCS, 66 and 100 is fine.

can you show us the racefile?

Each race can create an alias, which is a shortcut for a list of commands, used for skills.
It could happen that the string is malformed or too long, and so crash the server.

But, segfaults are really evil bugs, because they are very hard to remove. It could also be that a few bytes in the server RAM are corrupted and causes the crash. I restart the whole server if this occurs, but I guess you cannot, because you rented a server...

You can also try to stop your server, delete ES+EST .dll/.so files, upload them again, and restart server.
[spoiler=Buy me a ...]  :mrgreen:[/spoiler]

Offline kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1110
    • http://wc3source.de
Re: Server problem?
« Reply #5 on: February 25, 2008, 03:13:17 PM »
one alias is created twice...this will not work, it overwrites any alias with the same name. Also, this may cause crash Oo
(race 1 and 5)

"racealias_uds1"    "es es_xsetinfo wcs_dmg event_var(dmg_health);es es_xif (server_var(wcs_game) != server_var(wcs_game_css)) then es_xrand wcs_dmg 1 20;es_xmath wcs_dmg float;es es_xmath wcs_dmg / server_var(wcs_divider);es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0;es est_Health event_var(attacker) + server_var(wcs_dmg);wcs_getlanguage wcs_lng wcs_lng_r_vampiric1;es es_xformat wcs_lng server_var(wcs_lng) server_var(wcs_dmg);esnq est_csay event_var(attacker) server_var(wcs_lng);wcs_getlanguage wcs_lng wcs_lng_r_vampiric2;es es_xformat wcs_lng server_var(wcs_lng) server_var(wcs_dmg);esnq est_csay event_var(userid) server_var(wcs_lng)"

"racealias_uds1"    "es_set wcs_dmg event_var(dmg_health);if (server_var(wcs_game) != server_var(wcs_game_css)) then es_xrand wcs_dmg 1 20;es_xmath wcs_dmg float;es_math wcs_dmg / server_var(wcs_divider);es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0;es est_Health event_var(attacker) + server_var(wcs_dmg);wcs_getlanguage wcs_lng wcs_lng_r_vampiric1;es_format wcs_lng server_var(wcs_lng) server_var(wcs_dmg);esnq est_csay event_var(attacker) server_var(wcs_lng);wcs_getlanguage wcs_lng wcs_lng_r_vampiric2;es_format wcs_lng server_var(wcs_lng) server_var(wcs_dmg);esnq est_csay event_var(userid) server_var(wcs_lng)"

also, "grenadier" uses racealias_oh2, this is from orcish horde and will overwrite its alias!!
That leads to bad side-effects

....

you have a huge racefile.
I guess you should go though it and check for double named aliases  :(

if you rename an alias, be sure to rename it also in the skill_ field.
[spoiler=Buy me a ...]  :mrgreen:[/spoiler]

Offline killsign

  • Level 7 Expert
  • *****
  • Posts: 166
    • Clan page
Re: Server problem?
« Reply #6 on: February 25, 2008, 05:50:33 PM »
Ok so if i go trough my whole racetxt and there are alias's doubled up like you said they are the same in 2 dif races can i just change one of them from say _oh1 to _oh6 ? And some races i have show more then 1 racealias in the race like orc has oh1 oh 2 and oh 3 should all alias's be the same in the whole race? Sorry i am new to all this and i think you for your help
« Last Edit: February 25, 2008, 06:00:11 PM by killsign »
He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss the abyss also gazes into you...

Offline kryptonite

  • <WCS coder>
  • Administrator
  • Level 7 Expert
  • *****
  • Posts: 1110
    • http://wc3source.de
Re: Server problem?
« Reply #7 on: February 25, 2008, 06:10:56 PM »
all races can have several racealias_ but they need an unique name!

- you should read through the file (strg+f for find): racealias
- remember the race, search on.
- if a alias is named the same on a different race, change it like this:
this is for the 1st conflict:
change for Undead lord
Quote
    "racealias_lord1"    "es es_xsetinfo wcs_dmg event_var(dmg_health);es es_xif (server_var(wcs_game) != server_var(wcs_game_css)) then es_xrand wcs_dmg 1 20;es_xmath wcs_dmg float;es es_xmath wcs_dmg / server_var(wcs_divider);es est_RoundDecimal wcs_dmg server_var(wcs_dmg) 0;es est_Health event_var(attacker) + server_var(wcs_dmg);wcs_getlanguage wcs_lng wcs_lng_r_vampiric1;es es_xformat wcs_lng server_var(wcs_lng) server_var(wcs_dmg);esnq est_csay event_var(attacker) server_var(wcs_lng);wcs_getlanguage wcs_lng wcs_lng_r_vampiric2;es es_xformat wcs_lng server_var(wcs_lng) server_var(wcs_dmg);esnq est_csay event_var(userid) server_var(wcs_lng)"
    "skill1_cmd"        "es es_xif (server_var(wcs_dice) <= 60) then racealias_lord1"

as you see, I renamed racealias_uds1 to racealias_lord1 on (at least) two places. The race 1 and 5 have now unique racealias_ names :)

I know its hard work...
but thats the problem if you pick many custom races, since some copy&paste coders don't think of UNIQUE racealias names, they just copy the one from default/other races :(
[spoiler=Buy me a ...]  :mrgreen:[/spoiler]

Offline killsign

  • Level 7 Expert
  • *****
  • Posts: 166
    • Clan page
Re: Server problem?
« Reply #8 on: February 26, 2008, 12:12:53 AM »
ok ithought i understod it but i guess i didnt . im thinking i should remove all races that share and alias at this point. im new to this all and i didnt get it right lol
ty agian for your time
He who fights with monsters should look to it that he himself does not become a monster... when you gaze long into the abyss the abyss also gazes into you...