AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   precache_generic (https://forums.alliedmods.net/showthread.php?t=209578)

naven 02-27-2013 04:11

precache_generic
 
I've got a map, that kicks with .wad error so i wrote that:
PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Files DL fix"
#define VERSION "1.0"
#define AUTHOR "naven"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
// Add your code here...
}
public 
plugin_precache()
{
    
precache_generic("deathrun_siano2.wad")


It doesn't work. It won't download that file for client.

I've found deathrun_siano2.wad folder in my cstrike_downloads folder, after i removed it, there was downloading but it stopped after 1 sec and folder is there again, but .wad file is not. What could be the problem?

simanovich 02-27-2013 04:16

Re: precache_generic
 
The problem is with the map - it doesn't precache the WAD files.

naven 02-27-2013 05:08

Re: precache_generic
 
Quote:

Originally Posted by simanovich (Post 1902891)
The problem is with the map - it doesn't precache the WAD files.

Wow.
I said that already. That's why I wrote this plugin. This is not map related topic, this is a scripting related topic.

lgund 02-27-2013 05:47

Re: precache_generic
 
if you want that the client download a .wad file then you need to add a .res file in the maps folder.

The .res file need the same name like the map (for example: de_dust2.res) and there you write your attachments like deathrun_siano2.wad.

You dont need to write a plugin for that :)

(That Link can also help you maybe:
http://www.cstrike-planet.com/tutori...es-with-RESGen)

naven 02-27-2013 06:35

Re: precache_generic
 
Quote:

Originally Posted by lgund (Post 1902910)
if you want that the client download a .wad file then you need to add a .res file in the maps folder.

The .res file need the same name like the map (for example: de_dust2.res) and there you write your attachments like deathrun_siano2.wad.

You dont need to write a plugin for that :)

(That Link can also help you maybe:
http://www.cstrike-planet.com/tutori...es-with-RESGen)


I know that. .res file exists and all files are there, including .wad.

bibu 02-27-2013 11:35

Re: precache_generic
 
I think right now its a bug from the CS updates.

ConnorMcLeod 02-27-2013 13:31

Re: precache_generic
 
You can use HLBox17b tool from http://www.17buddies.net/17b2/Tools.html to create .res files.

naven 02-27-2013 17:30

Re: precache_generic
 
No mate, this is my deathrun_siano2.res file
Code:

halflife.wad
deathrun_siano2.wad
gfx/env/badlandsup.tga
gfx/env/badlandsdn.tga
gfx/env/badlandslf.tga
gfx/env/badlandsrt.tga
gfx/env/badlandsft.tga
gfx/env/badlandsbk.tga
models/deathrun_siano2/kaktus.mdl
sound/nm_goodbadugly.wav
models/deathrun_siano2/duzy_kaktus.mdl
models/deathrun_siano2/flaga.mdl
models/deathrun_siano2/beczka.mdl
models/deathrun_siano2/bone.mdl
sound/deathrun_siano2/kon.wav
sound/deathrun_siano2/kogut.wav
sound/deathrun_siano2/krowa.wav
sound/deathrun_siano2/owca.wav
maps/deathrun_siano2.txt
maps/deathrun_siano2.res

And 17buddies is the site where I got this map.

ConnorMcLeod 02-28-2013 00:37

Re: precache_generic
 
Than, as bibu said, should be a beta bug.

naven 02-28-2013 02:56

Re: precache_generic
 
Allright then. Is there any other method you can think of to fix that?


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

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