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

possible to increase stringtable size?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 07-20-2021 , 08:03   possible to increase stringtable size?
Reply With Quote #1

like the L4D MeleeWeapons table(16)
i try to use dhook to increase it, but it not work, maybe it needs to be modified client?

PHP Code:
public MRESReturn CB_CreateStringTable(Address pThisDHookReturn hReturnDHookParam hParams)
{
    
char tableName[64];
    
hParams.GetObjectVarString(10ObjectValueType_StringtableNamesizeof(tableName));
    
int size hParams.Get(2);

    
PrintToServer("tableName: %s, Size: %d"tableNamesize);

    if (
strcmp(tableName"MeleeWeapons") == 0)
    {
        
hParams.Set(232); // increase meleeweapons table size to 32
        
return MRES_ChangedHandled;
    }

    return 
MRES_Ignored;

Code:
MeleeWeapons: 14/32 (44% full) //after modification
ProjectSky is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: Chocolate Factory
Old 07-20-2021 , 11:46   Re: possible to increase stringtable size?
Reply With Quote #2

While the method you're using would work on the server, the client will still use the default 16 limit so there's not much you can do. Maybe someone can prove me wrong.
cravenge is offline
ProjectSky
AlliedModders Donor
Join Date: Aug 2020
Old 07-20-2021 , 12:04   Re: possible to increase stringtable size?
Reply With Quote #3

Quote:
Originally Posted by cravenge View Post
While the method you're using would work on the server, the client will still use the default 16 limit so there's not much you can do. Maybe someone can prove me wrong.
needs to be modified synchronously on the client and server, maybe there are other ways
ProjectSky is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 07-23-2021 , 03:23   Re: possible to increase stringtable size?
Reply With Quote #4

Check out this idea by gubka, you might be able to adopt something. Not sure if you can increase the size of the whole table though.
https://forums.alliedmods.net/showthread.php?t=314962
__________________
Peace-Maker 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 07:58.


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