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

[SNIPPET] GetEngineVersionCompat (use GetEngineVersion or GuessSDKVersion as needed)


Post New Thread Reply   
 
Thread Tools Display Modes
404UserNotFound
BANNED
Join Date: Dec 2011
Old 09-25-2016 , 14:28   Re: [SNIPPET] GetEngineVersionCompat (use GetEngineVersion or GuessSDKVersion as need
Reply With Quote #21

Quote:
Originally Posted by Grey83 View Post
I don't use it, as I have on the my own servers uses SM1.8
Then why tell him he needs to update it if it's outdated and unneeded due to GetEngineVersion? I'm confused

Last edited by 404UserNotFound; 09-25-2016 at 14:40.
404UserNotFound is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 10-03-2016 , 11:51   Re: [SNIPPET] GetEngineVersionCompat (use GetEngineVersion or GuessSDKVersion as need
Reply With Quote #22

Quote:
Originally Posted by abrandnewday View Post
Then why tell him he needs to update it if it's outdated and unneeded due to GetEngineVersion? I'm confused
He didn't, he was just commenting on how to detect these particular games.

Probably wouldn't hurt to toss a wiki page up on how to detect games that don't have their own EngineVersions.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 10-03-2016 , 16:56   Re: [SNIPPET] GetEngineVersionCompat (use GetEngineVersion or GuessSDKVersion as need
Reply With Quote #23

Quote:
Originally Posted by Powerlord View Post
Probably wouldn't hurt to toss a wiki page up on how to detect games that don't have their own EngineVersions.
For example, Insurgency: Modern Infantry Combat:

PHP Code:
// Dedicated servers for Insurgency: Modern Infantry Combat use Source SDK Base 2006
// So this should be the correct choice for EngineVersion.
if(g_EngineVersion == Engine_SourceSDK2006)
{
    
char strGameName[10];
    
GetGameFolderName(strGameNamesizeof(strGameName));
    
    
// Game folder name is "insurgency"
    
if(StrEqual(strGameName"insurgency"))
    {
        
// blah blah blah
    
}

I've already submitted a thing on the SourceMod bug tracker to see if Insurgency: M.I.C. could get its own "Engine_" define.

And there's probably a few others. You can use the Dedicated Servers List article at the Valve Developer Wiki for a good starting point to help figure out what games are supported by SourceMod, and then figure out detection methods for each

Last edited by 404UserNotFound; 10-09-2016 at 19:51.
404UserNotFound 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 15:25.


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