AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Source Servers (SRCDS) (https://forums.alliedmods.net/forumdisplay.php?f=130)
-   -   [TF2] Remove indexes from string table (https://forums.alliedmods.net/showthread.php?t=333126)

dietcoke 06-20-2021 14:40

[TF2] Remove indexes from string table
 
My server crashes after a while with the error:

PHP Code:

Warning:  Table DynamicModels is fullcan't add <model string> 

I dumped the string tables and noticed there is a 2048 item limit on the DynamicModels table and it appears to add a new entry every time someone equips a cosmetic that isn't already in the table, hence the crash when it reaches 2048. I tried removing an entry with:

PHP Code:

int iDynamicModelsStringTable FindStringTable("DynamicModels");
    
int index FindStringIndex(iDynamicModelsStringTable"models/player/items/Scout/Scout_spiral.mdl");
    
    if (
iDynamicModelsStringTable != INVALID_STRING_INDEX) {
        
bool bPreviousState LockStringTables(false);
        
SetStringTableData(iDynamicModelsStringTableindex""0);
        
LockStringTables(bPreviousState);
    } else {
        
SetFailState("Could not find DynamicModels string index in table.");
    } 

but it had no effect. Is there any way to clear this table without having to restart the map/server?

asherkin 06-21-2021 03:40

Re: [TF2] Remove indexes from string table
 
Stringtables are rebuilt every map change, they’re otherwise append-only.

Your code snippet there is manipulating the extra data attached to items, not the items themselves.


All times are GMT -4. The time now is 15:15.

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