Raised This Month: $ Target: $400
 0% 

Sourcemod for Dota 2?


Post New Thread Closed Thread   
 
Thread Tools Display Modes
psychonic

BAFFLED
Join Date: May 2008
Old 07-24-2013 , 21:13   Re: Sourcemod for Dota 2?
#621

Quote:
Originally Posted by sparkey View Post
Did the release of the mac/linux version of dota improve the chances of seeing a linux version of dota2 with SM anytime soon?
Linux SM for it will be fairly easy, but there's nothing to run it on.

For Windows, we borrow the srcds.exe from Alien Swarm, which we are lucky is compatible. Unfortunately, there is no linux server version of swarm, and thus no compatible srcds_linux binary.

What the Mac and Linux releases have improved are stability of and time necessary to create updates for the existing MM:S and SM Dota versions.

Last edited by psychonic; 07-24-2013 at 21:16.
psychonic is offline
slayeroflight
New Member
Join Date: Mar 2013
Old 07-27-2013 , 06:23   Re: Sourcemod for Dota 2?
#622

Quote:
Originally Posted by psychonic View Post
Linux SM for it will be fairly easy, but there's nothing to run it on.

For Windows, we borrow the srcds.exe from Alien Swarm, which we are lucky is compatible. Unfortunately, there is no linux server version of swarm, and thus no compatible srcds_linux binary.

What the Mac and Linux releases have improved are stability of and time necessary to create updates for the existing MM:S and SM Dota versions.
Is there an easy way to learn whether or not a srcds binary is compatible, besides installing and trying?

Last edited by slayeroflight; 07-27-2013 at 06:24.
slayeroflight is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-27-2013 , 08:25   Re: Sourcemod for Dota 2?
#623

Quote:
Originally Posted by slayeroflight View Post
Is there an easy way to learn whether or not a srcds binary is compatible, besides installing and trying?
No, that is the easiest way, but I'll save you some time. I already checked all of the ones from released games of similar engine versions.

Last edited by psychonic; 07-27-2013 at 08:25.
psychonic is offline
G.R.A.D.I.
New Member
Join Date: Jul 2013
Old 07-28-2013 , 09:33   Re: Sourcemod for Dota 2?
#624

Hello. I am trying to make plugin for Dota 2 using Metamod:Source and hl2sdk-dota from this page(http://hg.alliedmods.net/hl2sdks/) and i've got some problem at the beginning. I made base class of plugin and base implementation of that class.

Code:
#include "ISmmPlugin.h"

class Hook001 : public ISmmPlugin
{
public:
	bool Load(PluginId id, ISmmAPI *ismm, char *error, size_t maxlength, bool late);
	bool Unload(char *error, size_t maxlen);
	bool Pause(char *error, size_t maxlen);
	bool Unpause(char *error, size_t maxlen);
	const char *GetAuthor();
	const char *GetName();
	const char *GetDescription();
	const char *GetURL();
	const char *GetLicense();
	const char *GetVersion();
	const char *GetDate();
	const char *GetLogTag();
};
extern Hook001 *s_Hook001;
PLUGIN_GLOBALVARS();


I also added paths:

$(MMSOURCE10)\core; - path to source code of Metamod:Source 1.10
$(MMSOURCE10)\core\sourcehook;
$(DOTA2)\public; - path to hl2sdk-dota
$(DOTA2)\public\engine;
$(DOTA2)\public\game\server;
$(DOTA2)\public\tier0;
$(DOTA2)\public\tier1;
$(DOTA2)\public\vstdlib;

But when i am trying to compile that simple plugin i am getting many errors.
http://pastebin.com/2dKcNxTk

How can i compile plugin?

P.s.
I also added
$(DOTA2)\lib\public\tier0.lib
$(DOTA2)\lib\public\vstdlib.lib
into linker.


Thank you in advance.
Sorry for my poor english.
G.R.A.D.I. is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-28-2013 , 09:43   Re: Sourcemod for Dota 2?
#625

The SDK requires that COMPILER_MSVC and COMPILER_MSVC32 be defined when compiling on Windows.

Depending on the features you use, you will probably have to also link interfaces.lib and tier1.lib.

Edit: while there isn't yet a Dota configuration in the sample plugin project files, the Alien Swarm one already has these and maybe other changes necessary. You would only need to change the include paths to point to the correct SDK.

Last edited by psychonic; 07-28-2013 at 09:56.
psychonic is offline
G.R.A.D.I.
New Member
Join Date: Jul 2013
Old 07-28-2013 , 12:11   Re: Sourcemod for Dota 2?
#626

I don't understand. How can i hook dota 2 functions if i use Alien Swarm SDK? How did you compile Dota 2 Fixups?

P.s. I managed to compile plugin for HL2SDKOB and for HL2SDK-swarm and run it.
G.R.A.D.I. is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-28-2013 , 12:33   Re: Sourcemod for Dota 2?
#627

Quote:
Originally Posted by G.R.A.D.I. View Post
I don't understand. How can i hook dota 2 functions if i use Alien Swarm SDK? How did you compile Dota 2 Fixups?

P.s. I managed to compile plugin for HL2SDKOB and for HL2SDK-swarm and run it.
I said to modify the include paths to point to the Dota sdk.
psychonic is offline
punitx
Junior Member
Join Date: Jul 2013
Old 07-30-2013 , 09:57   Re: Sourcemod for Dota 2?
#628

Hi,
After this new update (600+mb), i am unable to start my server. It crashes right after a few seconds. please help.

P.S : I have updated my steam.inf file
punitx is offline
psychonic

BAFFLED
Join Date: May 2008
Old 07-30-2013 , 10:08   Re: Sourcemod for Dota 2?
#629

Quote:
Originally Posted by punitx View Post
Hi,
After this new update (600+mb), i am unable to start my server. It crashes right after a few seconds. please help.

P.S : I have updated my steam.inf file
I haven't seen any crashes after it with just D2Fixups and MM:S.

The server will however exit gracefully shortly after start if the update reverts your gameinfo.txt, causing MM:S (and thus, D2Fixups) not to load.
psychonic is offline
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 07-30-2013 , 20:20   Re: Sourcemod for Dota 2?
#630

Quote:
Originally Posted by psychonic View Post
Linux SM for it will be fairly easy, but there's nothing to run it on.

For Windows, we borrow the srcds.exe from Alien Swarm, which we are lucky is compatible. Unfortunately, there is no linux server version of swarm, and thus no compatible srcds_linux binary.

What the Mac and Linux releases have improved are stability of and time necessary to create updates for the existing MM:S and SM Dota versions.
You can't modify this * to work for linux?
* "Source Dedicated Server for Mac OS X"
klausenbusk is offline
Closed Thread



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 09:30.


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