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

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 08-30-2021 , 05:53   Fix to 'ERROR: couldn't open custom.hpk'
Reply With Quote #1

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.
Attached Files
File Type: zip customhpk_empty.zip (2.8 KB, 423 views)

Last edited by baneado; 10-08-2021 at 18:19.
baneado is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-19-2021 , 08:07   Re: Fix to 'ERROR: couldn't open custom.hpk'
Reply With Quote #2

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.
__________________
DJEarthQuake is offline
baneado
Veteran Member
Join Date: Dec 2012
Location: amxmodx-es.com
Old 09-23-2021 , 17:34   Re: Fix to 'ERROR: couldn't open custom.hpk'
Reply With Quote #3

Quote:
Originally Posted by DJEarthQuake View Post
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 View Post
Why appears this?
and your server directory hasn't got the required permissions to write a new empty file.
baneado is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 09-24-2021 , 08:29   Re: Fix to 'ERROR: couldn't open custom.hpk'
Reply With Quote #4

Correct the directory permissions. Clean installs do not do that.
__________________
DJEarthQuake 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 06:59.


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