Raised This Month: $12 Target: $400
 3% 

Dota 2 Dedicated Servers


Post New Thread Reply   
 
Thread Tools Display Modes
psychonic

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

Quote:
Originally Posted by CyberStars View Post
Hello.

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).
psychonic is offline
Maxpain177
Junior Member
Join Date: Jul 2014
Old 11-22-2014 , 11:19   Re: Dota 2 Dedicated Servers
Reply With Quote #212

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
CyberStars
Senior Member
Join Date: May 2013
Old 11-24-2014 , 03:26   Re: Dota 2 Dedicated Servers
Reply With Quote #213

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?
CyberStars is offline
psychonic

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

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
CyberStars
Senior Member
Join Date: May 2013
Old 11-24-2014 , 10:14   Re: Dota 2 Dedicated Servers
Reply With Quote #215

Quote:
Originally Posted by psychonic View Post
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.
OK. Got. Thanks
CyberStars is offline
Maxpain177
Junior Member
Join Date: Jul 2014
Old 11-25-2014 , 12:27   Re: Dota 2 Dedicated Servers
Reply With Quote #216

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 #217

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
psychonic

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

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 #219

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-28-2014 , 10:35   Re: Dota 2 Dedicated Servers
Reply With Quote #220

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
Reply


Thread Tools
Display Modes

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 06:07.


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