Raised This Month: $ Target: $400
 0% 

precache_generic


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-27-2013 , 04:11   precache_generic
Reply With Quote #1

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?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 02-27-2013 , 04:16   Re: precache_generic
Reply With Quote #2

The problem is with the map - it doesn't precache the WAD files.
__________________
simanovich is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-27-2013 , 05:08   Re: precache_generic
Reply With Quote #3

Quote:
Originally Posted by simanovich View Post
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.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
lgund
Senior Member
Join Date: Jul 2009
Location: Berlin
Old 02-27-2013 , 05:47   Re: precache_generic
Reply With Quote #4

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)
__________________
You need help on Coding ?? Look on my Homepage: http://First-Coder.de/
You want FUN in Counter-Strike ;) ?? Look on my Community:
http://deathmanns.first-coder.de/
lgund is offline
Send a message via MSN to lgund Send a message via Skype™ to lgund
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-27-2013 , 06:35   Re: precache_generic
Reply With Quote #5

Quote:
Originally Posted by lgund View Post
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.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 02-27-2013 , 11:35   Re: precache_generic
Reply With Quote #6

I think right now its a bug from the CS updates.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-27-2013 , 13:31   Re: precache_generic
Reply With Quote #7

You can use HLBox17b tool from http://www.17buddies.net/17b2/Tools.html to create .res files.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-27-2013 , 17:30   Re: precache_generic
Reply With Quote #8

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.
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 02-28-2013 , 00:37   Re: precache_generic
Reply With Quote #9

Than, as bibu said, should be a beta bug.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
naven
Veteran Member
Join Date: Jun 2008
Location: Poland, Cieszyn
Old 02-28-2013 , 02:56   Re: precache_generic
Reply With Quote #10

Allright then. Is there any other method you can think of to fix that?
__________________
naven.com.pl
"At the end of the day, there are always going to be mental disorders and people who cause violence for no other reason than the fact that they're fucked up and lost. And all we can do is try to learn from it." Corey Taylor.
naven is offline
Reply



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 21:44.


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