Raised This Month: $ Target: $400
 0% 

Dota 2 Dedicated Servers


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
psychonic

BAFFLED
Join Date: May 2008
Old 11-24-2014 , 06:40   Re: Dota 2 Dedicated Servers
Reply With Quote #1

Quote:
Originally Posted by CyberStars View Post
Quote:
Originally Posted by psychonic View Post
You can read the value of the -ip parameter on the command line. (CommandLine()->ParmValue() in an MM:S plugin or SM extension, or GetCommandLineParam in SM 1.7-dev or later).
Thanks for response Psy.
Isn't it possible from SM plugin? If not, will be it fixed?
As I said, GetCommandLineParam("-ip", buffer, size) should work in SM. If the hostip convar was removed, or is no longer used, there is nothing more for SM to do with it.
psychonic is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-27-2014 , 09:22   Re: Dota 2 Dedicated Servers
Reply With Quote #2

Quote:
Originally Posted by psychonic View Post
Quote:
Originally Posted by CyberStars View Post
After last Dota 2 update I'm not able to get server IP in my plugin.
Before I took it by reading "hostip" convar, but now it doesn't work.
Fix please somehow.
You can read the value of the -ip parameter on the command line. (CommandLine()->ParmValue() in an MM:S plugin or SM extension, or GetCommandLineParam in SM 1.7-dev or later).
I now believe that your issue reading the convar is caused by engine networking now initializing later than previously. It now initializes after ServerActivate/OnMapStart (in the same function that calls those). If you use SM's RequestFrame native in OnMapStart, you can get a callback exactly 1 frame later, still close to start but after networking has initialized and when hostip/hostport are populated.
psychonic is offline
CyberStars
Senior Member
Join Date: May 2013
Old 11-28-2014 , 09:47   Re: Dota 2 Dedicated Servers
Reply With Quote #3

Quote:
Originally Posted by psychonic View Post
I now believe that your issue reading the convar is caused by engine networking now initializing later than previously. It now initializes after ServerActivate/OnMapStart (in the same function that calls those). If you use SM's RequestFrame native in OnMapStart, you can get a callback exactly 1 frame later, still close to start but after networking has initialized and when hostip/hostport are populated.
Clear. I'll try that.

P.S.
For the "hostport" cvar it works correctly. I'm able to read it in "OnPluginStart" method.
CyberStars is offline
Maxpain177
Junior Member
Join Date: Jul 2014
Old 11-22-2014 , 11:19   Re: Dota 2 Dedicated Servers
Reply With Quote #4

Dear psychonic, please help!

I tried to use linux version of srcds dota server with your dedicated.so on dedicated server (debian 7, libgc v.2.15, metamod and sourcemod -last snapshots, and d2fixups 2.0.0) and i get errors when two players connect to server:

Code:
Uploading dump (out-of-process) [proxy '']
PreMinidumpCallback: updating dump comment
/tmp/dumps/assert_20141122181923_1.dmp
/home/maxpain/srcds/builds/dota/srcds_run: line 356:  8457 Segmentation fault      $HL_CMD
Add "-debug" to the /home/maxpain/srcds/builds/dota/srcds_run command line to generate a debug.log to help with solving this problem
Sat Nov 22 18:22:05 MSK 2014: Server restart in 10 seconds

Last edited by Maxpain177; 11-22-2014 at 11:20.
Maxpain177 is offline
Maxpain177
Junior Member
Join Date: Jul 2014
Old 11-25-2014 , 12:27   Re: Dota 2 Dedicated Servers
Reply With Quote #5

Is there a way to start the server without errors on linux?
Maxpain177 is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-25-2014 , 22:04   Re: Dota 2 Dedicated Servers
Reply With Quote #6

Both the Linux and Mac packages on the first post have now been updated with the new dedicated.so/dylib that fixes the port binding issue. (The Linux binary is the same one that I posted a couple of pages back).

Last edited by psychonic; 11-25-2014 at 22:04.
psychonic is offline
Maxpain177
Junior Member
Join Date: Jul 2014
Old 11-28-2014 , 10:35   Re: Dota 2 Dedicated Servers
Reply With Quote #7

On ubuntu 14.10 server works perfectly, but on debian 7.7 (with same glibc 2.19) it crashes.

Code:
PreMinidumpCallback: updating dump comment
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20141128182951_1.dmp
/home/maxpain/dota/srcds_run: line 356:  9809 Segmentation fault      (core dumped) $HL_CMD
BFD: Warning: /home/maxpain/dota/core is truncated: expected core file size >= 408358912, found: 2150400.
Cannot access memory at address 0xf77e691c
Cannot access memory at address 0xf77e6918
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0xffea7f30:
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xffea7f30
Post about crashes or other issues at https://forums.alliedmods.net/showthread.php?t=236635
Fri Nov 28 18:33:52 MSK 2014: Server restart in 10 seconds
Maxpain177 is offline
rageguyph
New Member
Join Date: Nov 2014
Old 11-28-2014 , 13:44   Re: Dota 2 Dedicated Servers
Reply With Quote #8

Please help me i just tried your server thingy but i cannot get it to work. i have done all the steps but i cannot host a server localy.

The last console messages are opening port e.g. 27007 then the close message then it cmd window closes.

HELP
rageguyph is offline
papanoah
New Member
Join Date: Dec 2014
Old 12-01-2014 , 10:08   Re: Dota 2 Dedicated Servers
Reply With Quote #9

Hello,

my problem with the server is, that it crashes when i'm just few minutes in the game.
I get a lot of "Error in .VMT file" erros and DataTable warning because of "Out-of-range value (inf) in SendPropFloat".
In srcds_run line 356, I get an 13392 memory access error and it says that my dota 2 beta/core i truncated because it didnt find the correct file size.

Thank you for your help
papanoah is offline
papanoah
New Member
Join Date: Dec 2014
Old 12-15-2014 , 09:06   Re: Dota 2 Dedicated Servers
Reply With Quote #10

Hi,

i followed the instructions from the beginning but just few minutes in the game, the server crashes.
I use it on Ubuntu Server 14.04

Can someone help me?

Errorlog:
Code:
Uploading dump (out-of-process) [proxy '']
/tmp/dumps/assert_20141215145612_1.dmp
/home/steam/Steam/steamapps/common/dota 2 beta/srcds_run: Zeile 356: 18539 Memory Access Error  (Speicherabzug geschrieben) $HL_CMD
BFD: Warning: /home/steam/Steam/steamapps/common/dota 2 beta/core is truncated: expected core file size >= 409817088, found: 2048000.
Cannot access memory at address 0xb77cb928
Cannot access memory at address 0xb77cb924
Python Exception <class 'gdb.MemoryError'> Cannot access memory at address 0xbfc5c650: 
debug.cmds:1: Error in sourced command file:
Cannot access memory at address 0xbfc5c650
Serverlog:
Code:
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_hero_skeleton_king: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_hero_skeleton_king: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_hero_luna: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_flPlaybackRate', clamping.
DataTable warning: npc_dota_creep_lane: Out-of-range value (inf) in SendPropFloat 'm_Post about crashes or other issues at https://forums.alliedmods.net/showthread.php?t=236635
Mo 15. Dez 15:01:04 CET 2014: Server restart in 10 seconds
Quote:
Originally Posted by papanoah View Post
Hello,

my problem with the server is, that it crashes when i'm just few minutes in the game.
I get a lot of "Error in .VMT file" erros and DataTable warning because of "Out-of-range value (inf) in SendPropFloat".
In srcds_run line 356, I get an 13392 memory access error and it says that my dota 2 beta/core i truncated because it didnt find the correct file size.

Thank you for your help
papanoah is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:33.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode