Insurgency

Insurgency

Missing Computer Texture Fix
server side error 2
DeltakMike & Me got same issue on this specific item to be used via subscribed files ids . txt


ouput:
CServerUGCManager] Connected to Steam for Workshop! [CServerUGCManager] Got 4 file ID(s) [CServerUGCManager] Queueing file 3526488794 for download [CServerUGCManager] 3526488794 progress: 0.00%... [CServerUGCManager] 3526488794 progress: 0.00%... [CServerUGCManager] 3526488794 progress: 0.00%... [CServerUGCManager] 3526488794 progress: 0.00%... [CServerUGCManager] 3526488794 progress: 0.00%... [CServerUGCManager] Item 3526488794 failed to download (eResult = 2). [CWorkshopItem] Missing Computer Texture Fix [3526488794] failed to install. [CServerUGCManager] Item 3526488794 failed to download. Skipping the item.

#include <sourcemod> #include <sdktools> #define _BUF_SIZE 1024 int _FindStringIndex2( int tableidx, const char[] str ) { char buf[ _BUF_SIZE ]; int numStrings = GetStringTableNumStrings( tableidx ); for ( int i = 0; i < numStrings; i++ ) { ReadStringTable( tableidx, i, buf, sizeof( buf ) ); if ( StrEqual( buf, str ) ) { return i; } } return INVALID_STRING_INDEX; } int _AddFileToParticlesTable( const char[] file ) { static int particleFileNames = INVALID_STRING_TABLE; if ( particleFileNames == INVALID_STRING_TABLE ) { if ( ( particleFileNames = FindStringTable( "ExtraParticleFilesTable" ) ) == INVALID_STRING_TABLE ) { return INVALID_STRING_INDEX; } } int index = _FindStringIndex2( particleFileNames, file ); if ( index == INVALID_STRING_INDEX ) { int numStrings = GetStringTableNumStrings( particleFileNames ); if ( numStrings >= GetStringTableMaxStrings( particleFileNames ) ) { return INVALID_STRING_INDEX; } AddToStringTable( particleFileNames, file ); index = numStrings; } return index; } public Plugin myinfo = { name = "MissingComputerTextureFix", author = "blxckdreadful", description = "Adds custom vpk upon game client restart", version = "1.0", url = "" }; public void OnPluginStart() { } public void OnMapStart() { AddFileToDownloadsTable( "custom/compfix.vpk" ); _AddFileToParticlesTable( "custom/compfix.vpk" ); }


save code as name of the plugin . sp

then compile itt as smx

vpk must be in insurgency/custom server side

and also on the fast dl (web server) same format!

ie: https://sbxlife.mygamingedge.online/insurgency/custom/

this is a workaround and only applies upon game full restart for end user!
Last edited by SHOUBI; 17 Jul @ 7:21am