Raised This Month: $32 Target: $400
 8% 

problem with tickrate


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Malak044
Member
Join Date: Feb 2011
Location: héhéhé
Old 04-19-2011 , 14:04   problem with tickrate
Reply With Quote #1

Hello boyz,

Ive got a huge question about tickrate and Metamod ...

You know there is a plugin (tickrate_enabler) witch can make your server with tickrate 100 !

Every thing is ok ... it's running but when you add the line :
Code:
GameBin                                              |gameinfo_path|addons/metamod/bin
into gameinfo.txt and reboot the server ... Then tickrate 100 doenst work :s

so my question is : Is it possible that metamod leads problems to Tickrate Enabler ?

P.S.: Here is the code of TickrateEnabler (file.cpp) :
PHP Code:
#include "igameevents.h"
#include "eiface.h"
#include "tier0/icommandline.h"

#include "sourcehook/sourcehook_impl.h"


// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/memdbgon.h"

//---------------------------------------------------------------------------------
// Purpose: a sample 3rd party plugin class
//---------------------------------------------------------------------------------
class CEmptyServerPlugin: public IServerPluginCallbacks, public IGameEventListener
{
public:
    
CEmptyServerPlugin();

    
// IServerPluginCallbacks methods
    
virtual bool            Load(    CreateInterfaceFn interfaceFactoryCreateInterfaceFn gameServerFactory );
    
virtual void            Unloadvoid );
    
virtual const char     *GetPluginDescriptionvoid );
    
virtual void            SetCommandClientint index );
    
virtual PLUGIN_RESULT    ClientConnectbool *bAllowConnectedict_t *pEntity, const char *pszName, const char *pszAddresschar *rejectint maxrejectlen );
    
virtual PLUGIN_RESULT    ClientCommandedict_t *pEntity, const CCommand &args );
    
virtual PLUGIN_RESULT    NetworkIDValidated( const char *pszUserName, const char *pszNetworkID );

    
// IGameEventListener Interface
    
virtual int GetCommandIndex() { return m_iClientCommandIndex; }
private:
    
int m_iClientCommandIndex;
};


//
// The plugin is a static singleton that is exported as an interface
//
CEmptyServerPlugin g_EmtpyServerPlugin;
EXPOSE_SINGLE_INTERFACE_GLOBALVAR(CEmptyServerPluginIServerPluginCallbacksINTERFACEVERSION_ISERVERPLUGINCALLBACKSg_EmtpyServerPlugin );

//---------------------------------------------------------------------------------
// Purpose: constructor/destructor
//---------------------------------------------------------------------------------
CEmptyServerPlugin::CEmptyServerPlugin()
{
    
m_iClientCommandIndex 0;
}

SourceHook::Impl::CSourceHookImpl g_SourceHook;
SourceHook::ISourceHook *g_SHPtr = &g_SourceHook;
int g_PLID 0;

SH_DECL_HOOK0(IServerGameDLLGetTickInterval, const, 0float);

float GetTickInterval()
{
    
float tickinterval DEFAULT_TICK_INTERVAL;

    
tickinterval 1.0f 100;


    
RETURN_META_VALUE(MRES_SUPERCEDEtickinterval );
}


IServerGameDLL *gamedll NULL;

//---------------------------------------------------------------------------------
// Purpose: called when the plugin is loaded, load the interface we need from the engine
//---------------------------------------------------------------------------------
bool CEmptyServerPlugin::Load(    CreateInterfaceFn interfaceFactoryCreateInterfaceFn gameServerFactory )
{
    
gamedll = (IServerGameDLL*)gameServerFactory("ServerGameDLL006",NULL);
    if(!
gamedll)
    {
        
Warning("Failed to get a pointer on ServerGameDLL006.\n");
        return 
false;
    }

    
SH_ADD_HOOK(IServerGameDLLGetTickIntervalgamedllSH_STATIC(GetTickInterval), false);

    return 
true;
}

//---------------------------------------------------------------------------------
// Purpose: called when the plugin is unloaded (turned off)
//---------------------------------------------------------------------------------
void CEmptyServerPlugin::Unloadvoid )
{
    
SH_REMOVE_HOOK(IServerGameDLLGetTickIntervalgamedllSH_STATIC(GetTickInterval), false);
}

//---------------------------------------------------------------------------------
// Purpose: the name of this plugin, returned in "plugin_print" command
//---------------------------------------------------------------------------------
const char *CEmptyServerPlugin::GetPluginDescriptionvoid )
{
    return 
"Tickrate_Enabler 0.1, Didrole";
}

//---------------------------------------------------------------------------------
// Purpose: called on level start
//---------------------------------------------------------------------------------
void CEmptyServerPlugin::SetCommandClientint index )
{
    
m_iClientCommandIndex index;
}

//---------------------------------------------------------------------------------
// Purpose: called when a client joins a server
//---------------------------------------------------------------------------------
PLUGIN_RESULT CEmptyServerPlugin::ClientConnectbool *bAllowConnectedict_t *pEntity, const char *pszName, const char *pszAddresschar *rejectint maxrejectlen )
{
    return 
PLUGIN_CONTINUE;
}

//---------------------------------------------------------------------------------
// Purpose: called when a client types in a command (only a subset of commands however, not CON_COMMAND's)
//---------------------------------------------------------------------------------
PLUGIN_RESULT CEmptyServerPlugin::ClientCommandedict_t *pEntity, const CCommand &args )
{
    return 
PLUGIN_CONTINUE;
}

//---------------------------------------------------------------------------------
// Purpose: called when a client is authenticated
//---------------------------------------------------------------------------------
PLUGIN_RESULT CEmptyServerPlugin::NetworkIDValidated( const char *pszUserName, const char *pszNetworkID )
{
    return 
PLUGIN_CONTINUE;

And if there is a problem, can you please do something because metamod + sourcemod + tickrate enabler is awsome for trikz or bunny (css) and i have maked script in pawn for my own purpose on sourcemod ... without tick100 ... we will change for ES and that, i really doesnt want at all
__________________
Malak044 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 04-20-2011 , 02:45   Re: problem with tickrate
Reply With Quote #2

You shouldn't be loading MM:S via gameinfo.txt, use the VDF method.
http://wiki.alliedmods.net/index.php...Metamod:Source
__________________
asherkin is offline
Zephyrus
Cool Pig B)
Join Date: Jun 2010
Location: Hungary
Old 04-21-2011 , 17:25   Re: problem with tickrate
Reply With Quote #3

and you shouldnt change to es either ^^
Zephyrus is offline
zeroibis
Veteran Member
Join Date: Jun 2007
Old 04-22-2011 , 22:00   Re: problem with tickrate
Reply With Quote #4

Strange, I run 100tick and load via gameinfo.txt and have no issues...

Is there any advantage to not loading by gameinfo.txt btw? As the last time I tried using the VDF method (back when it came out) it crashed my server so I never tried it again.
__________________
zeroibis is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 04-22-2011 , 22:10   Re: problem with tickrate
Reply With Quote #5

gameinfo.txt just allows for early loading (before the server has started). Where as loading via VDF loads after the server starts. (I could be wrong.)

As for the issue at hand. This is not an MM:S plugin. I have no conflicts using this VSP with MM:S and SM.
KyleS 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 23:36.


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