Plugin connect script help
asdf
|
1. You can't check if file exists on client.
2. You can't precache zip files. |
Ok, wait. Isn't that what that plugin above does? !if file_exists()? What's that then? How does STEAM know to make you download the file if it doesn't know whether or not you have the file?
And if you can't use sv_downloadurl with zip files that doesn't matter since I can still add an empty ini or cfg or something in the zip that when extracted I can use to for detection. |
file_exists() checks to see if the server has the file. The engine decides when a client needs to download a file if a file has been precached, and the file is not found in the specifed location.
Based on the statement above, I think you mis-understood EKS's code. Code:
The following code checks to see if the file exists on the server. If the file is not detected, then the plugin will make output a message to the log file (log_amx()) The reason for this if-statement is to make sure the file exists before precaching it, or else if we do this and the file isn't there, the server will crash. Code:
If the if-statement's requirements above are not meet, it then go to the else statement, meaning the file was found. The plugin then tells the engine to precache the file. As stated before, if the engine does not detect the file on a connecting client, it will download it. Hope this clears everything up |
brawr
|
To precache a sprite you would use precache_model.
|
???
I don't want to precache a sprite. Since apparently you can't use zip files for sv_downloadurl I want to be able to give people a message before they try to download shit so I can redirect them to download the zip. There must be some way to do this. |
Sorry. There isn't an easy way.
|
| All times are GMT -4. The time now is 05:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.