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

[EXTENSION] CustomKeyValues


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 02-16-2018 , 14:45   [EXTENSION] CustomKeyValues
Reply With Quote #1

Note: Use the plugin version instead: https://forums.alliedmods.net/showthread.php?p=2588562

This extension was made with the idea of allowing easy transfer of information between maps/mappers and plugins.

Mappers can add keys/values for entities through hammer by clicking "Smart Edit" and filling in the boxes:


Then, once the map is loaded on the server, the extension will pick up any keys/values that the server tries to throw out, and provides a native to allow plugins to easily get them.
Following from the example of the image above:
PHP Code:
char tier[8];
bool success GetCustomKeyValue0"mod_tier"tiersizeoftier ) );
PrintToServer"Map tier: %i (%s)"StringToInttier ), success "success" "failure" );
    
// output: "Map tier: 3 (success)" 

Last edited by hmmmmm; 10-27-2019 at 08:54. Reason: Bigger banner for plugin
hmmmmm is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 02-23-2018 , 05:28   Re: [EXTENSION] CustomKeyValues
Reply With Quote #2

so uhh... this is useful as shit.
Drixevel is offline
Drixevel
AlliedModders Donor
Join Date: Sep 2009
Location: Somewhere headbangin'
Old 03-13-2018 , 07:30   Re: [EXTENSION] CustomKeyValues
Reply With Quote #3

Any chance for TF2 support?
Drixevel is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 03-13-2018 , 08:00   Re: [EXTENSION] CustomKeyValues
Reply With Quote #4

Sure
hmmmmm is offline
404UserNotFound
BANNED
Join Date: Dec 2011
Old 03-19-2018 , 12:55   Re: [EXTENSION] CustomKeyValues
Reply With Quote #5

Perfect. Like Drix said, this is immensely useful.
404UserNotFound is offline
VsX
AlliedModders Donor
Join Date: Jul 2007
Old 03-30-2018 , 18:06   Re: [EXTENSION] CustomKeyValues
Reply With Quote #6

Great Job !!! That's what I'm looking for!
Can I ask for Linux version?
VsX is offline
hmmmmm
Great Tester of Whatever
Join Date: Mar 2017
Location: ...
Old 03-30-2018 , 18:10   Re: [EXTENSION] CustomKeyValues
Reply With Quote #7

Quote:
Originally Posted by VsX View Post
Great Job !!! That's what I'm looking for!
Can I ask for Linux version?
Thanks, It'll take a bit of set up to get a linux build since (I think) it needs to be done on either a linux machine or a linux VM.

I'll try to get it done in a VM sometime within the next week, but no promises. If anyone else thats more experienced can do the linux builds would be appreciated.
hmmmmm is offline
VsX
AlliedModders Donor
Join Date: Jul 2007
Old 03-30-2018 , 18:18   Re: [EXTENSION] CustomKeyValues
Reply With Quote #8

Thank You in advance for linux build.
This extensions is so useful. Once again - thanks!
VsX is offline
VsX
AlliedModders Donor
Join Date: Jul 2007
Old 04-03-2018 , 14:15   Re: [EXTENSION] CustomKeyValues
Reply With Quote #9

Bump.
If someone could help and compile for linux - I would be grateful. I have no experience with configuring ambuild. I have tried by only get errors like 'no sdk found' and so one.
Much appreciate.
VsX is offline
blacklagoon
Senior Member
Join Date: Jun 2012
Old 04-04-2018 , 04:09   Re: [EXTENSION] CustomKeyValues
Reply With Quote #10

compiled on linux untested though
Attached Files
File Type: so customkeyvalues.ext.2.csgo.so (1.26 MB, 239 views)
File Type: so customkeyvalues.ext.2.css.so (1.10 MB, 210 views)
File Type: so customkeyvalues.ext.2.tf2.so (1.10 MB, 246 views)

Last edited by blacklagoon; 04-04-2018 at 04:10.
blacklagoon 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 17:00.


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