AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Code Snippets/Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=83)
-   -   Fix to 'ERROR: couldn't open custom.hpk' (https://forums.alliedmods.net/showthread.php?t=334119)

baneado 08-30-2021 05:53

Fix to 'ERROR: couldn't open custom.hpk'
 
1 Attachment(s)
I have seen so many post about this and anyone hasn't got a correct answer.
Here it is, maybe some years later :)

What is custom.hpk?
Contains all custom sprays used for the users who play on your server.

Why appears this?
This happens because you delete custom.hpk from server directory, normally because you don't want custom sprays being used by players.
and your server directory hasn't got the required permissions to write a new empty file.

How to disable custom sprays?
Just add at server.cfg (and restart your server) or add at amxx.cfg:
Code:

sv_allowupload 0
sv_send_logos 0
hpk_maxsize 0.1

See info about cvars here: http://txdv.github.io/cstrike-cvarlist/
Also here: https://help.steampowered.com/fr/faq...A111-0949-C6C2

How to fix this spam error at console?
Just download the empty file 'custom.hpk' attached and upload inside cstrike folder.
Don't create by your own a new file called custom.hpk because you will have another error for unknown HPK format.

DJEarthQuake 09-19-2021 08:07

Re: Fix to 'ERROR: couldn't open custom.hpk'
 
Servers generate their own as needed. Newly installed servers do not have the file as well.

ERROR: couldn't open custom.hpk.

After map change.
Creating HPAK custom.hpk.

baneado 09-23-2021 17:34

Re: Fix to 'ERROR: couldn't open custom.hpk'
 
Quote:

Originally Posted by DJEarthQuake (Post 2758214)
Servers generate their own as needed. Newly installed servers do not have the file as well.

ERROR: couldn't open custom.hpk.

After map change.
Creating HPAK custom.hpk.

Read this
Quote:

Originally Posted by baneado (Post 2756536)
Why appears this?
and your server directory hasn't got the required permissions to write a new empty file.


DJEarthQuake 09-24-2021 08:29

Re: Fix to 'ERROR: couldn't open custom.hpk'
 
Correct the directory permissions. Clean installs do not do that.


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

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