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

How to add DispatchKeyValue and friends for hl2ctf


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
foo bar
AlliedModders Donor
Join Date: Dec 2012
Location: Canada
Old 09-04-2013 , 14:47   How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #1

Hello,

(Updated)

I'm trying to add signatures for DispatchKeyValue, DispatchKeyValueFloat and DispatchKeyValueVector for hl2ctf - at present any calls to these functions throw a "not supported by mod". hl2ctf is SDK 2006 afaik.

I'm not sure where to add a custom game data file, I've tried a few variations in gamedata/custom and gamedata/custom/sdkhooks.games. What's the correct file I should add these to?

The contents are:

PHP Code:
"Games"
{
        
"hl2ctf"
        
{

                
"Signatures"
                
{

                        
"DispatchKeyValue"
                        
{
                                
"library" "server"
                                "linux" "@_ZN11CBaseEntity8KeyValueEPKcS1_"
                        
}
                        
"DispatchKeyValueFloat"
                        
{
                                
"library" "server"
                                "linux"  "@_ZN11CBaseEntity8KeyValueEPKcf"
                        
}
                        
"DispatchKeyValueVector"
                        
{
                                
"library"       "server"
                                "linux" "@_ZN11CBaseEntity8KeyValueEPKc6Vector"
                        
}

                }
        }

Update: When I add these signatures to gamedata/sdktools.games/game.hl2ctf.txt I start seeing:

Quote:
L 09/04/2013 - 12:199: [SM] Native "DispatchKeyValue" reported: Entity 1702127986 is not valid
Guidance please? Thanks!
__________________
[foo] bar
foo-games.com Game Mods, Plugins and Tools for Game Masters | My Github

Last edited by foo bar; 09-04-2013 at 15:26.
foo bar is offline
foo bar
AlliedModders Donor
Join Date: Dec 2012
Location: Canada
Old 09-04-2013 , 17:59   Re: How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #2

I ended up using these virtual offsets instead. Seems to work on linux. Haven't tested on windows:

gamedata/sdktools.games/game.hl2ctf.txt:
Quote:
"DispatchKeyValue"
{
"windows" "28"
"linux" "29"
}
"DispatchKeyValueFloat"
{
"windows" "29"
"linux" "30"
}

"DispatchKeyValueVector"
{
"windows" "30"
"linux" "31"
}
I still don't know where in gamedata/custom I should have put this instead of editing a core gamedata file.

Any chance these offsets could be included in a future gamedata update?
__________________
[foo] bar
foo-games.com Game Mods, Plugins and Tools for Game Masters | My Github
foo bar is offline
psychonic

BAFFLED
Join Date: May 2008
Old 09-05-2013 , 08:32   Re: How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #3

The best way to get official gamedata support added for a mod is to file a bug (login with forum email and password), linking to where it can be downloaded. It's even more helpful if you can just give direct links to the server.dll and server_i486.so files there.
psychonic is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-05-2013 , 08:45   Re: How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #4

I've attached updated gamedata to the old hl2ctf support bug.
__________________
Peace-Maker is offline
psychonic

BAFFLED
Join Date: May 2008
Old 09-05-2013 , 10:23   Re: How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #5

Quote:
Originally Posted by Peace-Maker View Post
I've attached updated gamedata to the old hl2ctf support bug.
Whoops! I hadn't realized that we already had partial support for it. Awesome. I'll make sure that that gets looked at today.
psychonic is offline
foo bar
AlliedModders Donor
Join Date: Dec 2012
Location: Canada
Old 09-05-2013 , 22:31   Re: How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #6

Create ticket. Wait a short while, see it get marked as dup. See updates on forum. Success!

Thanks for the update

I'd still like to understand how exactly to put in my own custom gamedata though. I tried a number of variants in gamedata/custom/<subfolder> and gamedata/custom/<something>.txt.

In this case with needing the Dispatch* keys for hl2ctf, where should I have put it? The docs are not clear on this.
__________________
[foo] bar
foo-games.com Game Mods, Plugins and Tools for Game Masters | My Github
foo bar is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 09-06-2013 , 09:11   Re: How to add DispatchKeyValue and friends for hl2ctf
Reply With Quote #7

In gamedata/sdktools.games/custom/game.hl2ctf.txt.
You're only able to use the custom folder to override keys if the game data is using the advanced way through own sub folders. Luckily sdktools and sdkhooks do just that
__________________
Peace-Maker 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 14:28.


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