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

Content Replacer


Post New Thread Reply   
 
Thread Tools Display Modes
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 09-15-2009 , 05:29   Re: Content Replacer
Reply With Quote #31

Quote:
Originally Posted by ozzy8031 View Post
doesn't work...

The plugin doesn't start, however the VDF module is running...
"contentreplace.vdf" is properly placed on amxx /config folder

amxx plugins:
amxx modules:
can someone help me with that?

Using AMXX 1.8.1, trying to replace the smoke sprites to avoid nosmoke, plus some hud sprites...

EDIT: that's shown in server console

Same thing here... -> Content Replacer 1.4 ts2do contentreplace. stopped
Does anyone still supports this plugin ?

I've tried to change the smoke sprite....
Here's what I've got in contentreplace.vdf

PHP Code:
"ContentReplace"
{
 
"Models"
 
{
  
"sprites/gas_puff_01.spr" "sprites/gas_puff_blk.spr"
 
}
 
"Sounds"
 
{
 
 }

EDIT:

Works with models.
DOESN'T WORK WITH SPRITES !

Quote:
Originally Posted by ts2do View Post




Can Replace
  • All models
  • All sprites
  • Some sounds
Shouldn't this plugin use somwhere in the code the "precache_generic" function ?
Does "precache_model" supports sprites ?
And if it is where is the support ?
Nobody seems to have it setup working with sprites...

And BTW this is why the plugin is STOPPED:

PHP Code:
public plugin_init()
{
 
register_plugin("Content Replacer""1.4""ts2do");
 for(new 
i=0;i<ArraySize(g_unusedNodes);i++)
 {
  
vdf_delete_node(g_hTreeVdfNode:ArrayGetCell(g_unusedNodesi));
 }
 
ArrayDestroy(g_unusedNodes);
 if(!
vdf_get_child_node(g_hModelsNode))
 {
  
unregister_forward(FM_PrecacheModelg_iModelForwards[0]);
  
unregister_forward(FM_SetModelg_iModelForwards[1]);
  
unregister_forward(FM_ModelIndexg_iModelForwards[2]);
 }
 if(!
vdf_get_child_node(g_hSoundsNode))
 {
  
unregister_forward(FM_PrecacheSoundg_iSoundForwards[0]);
  
unregister_forward(FM_EmitSoundg_iSoundForwards[1]);
  
unregister_forward(FM_EmitAmbientSoundg_iSoundForwards[2]);
  
unregister_forward(FM_BuildSoundMsgg_iSoundForwards[3]);
 }
 
// If my life is pointless, commit suicide.
 
if(!(g_hModelsNode||g_hSoundsNode)|| // -> shouldn't be && ?
  
!(vdf_get_child_node(g_hModelsNode)||vdf_get_child_node(g_hSoundsNode)))
 {
  
server_print("No content replacement entries found");
  
pause("ad");
 }


Last edited by Costin83; 09-18-2009 at 01:37.
Costin83 is offline
Send a message via Yahoo to Costin83
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 09-19-2009 , 12:46   Re: Content Replacer
Reply With Quote #32

Code:
"ContentReplace"
{
    "Models"
    {
        "models/player/gign/gign.mdl" "models/player/xplgign/xplgign.mdl"
        "models/player/sas/sas.mdl" "models/player/xplsas/xplsas.mdl"
        "models/player/gsg9/gsg9.mdl" "models/player/xplgsg9/xplgsg9.mdl"
	"models/player/urban/urban.mdl" "models/player/xplurban/xplurban.mdl"
	"models/player/terror/terror.mdl" "models/player/xplterror/xplterror.mdl"
	"models/player/leet/leet.mdl" "models/player/xplleet/xplleet.mdl"
	"models/player/arctic/arctic.mdl" "models/player/xplarctic/xplarctic.mdl"
	"models/player/guerilla/guerilla.mdl" "models/player/xplguerilla/xplguerilla.mdl"
    }
    "Sounds"
    {
    }
}
Plugin is loaded however models aren't changed. Any ideas?
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Costin83
Senior Member
Join Date: Jul 2008
Location: Romania
Old 09-19-2009 , 17:50   Re: Content Replacer
Reply With Quote #33

Quote:
Originally Posted by kobri View Post
Plugin is loaded however models aren't changed. Any ideas?
The plugin status is Running or Stopped ? Loaded doesn't necessarely means that is running...

If it's stopped comment this line:

pause("ad");

to

// pause("ad");
Costin83 is offline
Send a message via Yahoo to Costin83
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 09-19-2009 , 18:27   Re: Content Replacer
Reply With Quote #34

[ 2] Content Replacer 1.4 ts2do contentreplace. running
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-19-2009 , 19:30   Re: Content Replacer
Reply With Quote #35

Not sure why it doesn't work, but you should use PlayerModel if you want to change player's model.
__________________
Arkshine is offline
kobri
Senior Member
Join Date: Oct 2005
Location: Bulgaria
Old 09-20-2009 , 07:44   Re: Content Replacer
Reply With Quote #36

Playermodel + autoteambalance = messed up skins
__________________
Founder of the legendary OptiLAN, MANIA and SECTOR.BG Gaming Communities
Providing everyday fun for over 15000 Bulgarian players!

http://about.me/kobri
kobri is offline
Send a message via Skype™ to kobri
Storas1337
Senior Member
Join Date: Apr 2009
Location: Lithuania
Old 12-31-2009 , 06:34   Re: Content Replacer
Reply With Quote #37

I dont understand how tu se this please help i want change some weapon sounds!?
Storas1337 is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-31-2009 , 07:39   Re: Content Replacer
Reply With Quote #38

You can't change weapon sounds except for knife.
__________________
Arkshine is offline
Stixsmaster
Veteran Member
Join Date: May 2007
Location: I am all around you...I
Old 12-31-2009 , 11:50   Re: Content Replacer
Reply With Quote #39

Yea I have in my previous post mentioned that this was and epic fail for me as well...

I did everything as I was sposed to and it only would precache never actually change anything on the server...

In my book this should be unapproved...

---Stixsmaster
__________________
Stixsmaster is offline
Send a message via AIM to Stixsmaster Send a message via MSN to Stixsmaster
urban_ninja
Senior Member
Join Date: Feb 2009
Old 03-18-2010 , 18:15   Re: Content Replacer
Reply With Quote #40

i finally got this plugin to work, thanks for weak instructions with release btw.

this plugin causes nasty conflicts with other amxx plugins and mm_plugins that precache a common model,sprite or sound. server crashes because not only dose this plugin replace content, but it removes precashing of the replaced models. removing a precached item while an onther plugin is trying to precache it is bad.
Quote:
FATAL ERROR (shutting down): Host_Error: no precache: models/p_mini2.mdl
in my opinion this plugin should be unapproved and fixed. it has too many flaws and is extremely incompatible with other amxx and meta mod plugin precaches.

not fun having to dump other plugins just for this "1" to be with out any dicey problem.
__________________

Last edited by urban_ninja; 03-18-2010 at 18:21.
urban_ninja 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 10:47.


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