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

Entity Resources Replacement[ V 1.4 ]


Post New Thread Reply   
 
Thread Tools Display Modes
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 11-10-2015 , 12:06   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #131

Quote:
Originally Posted by panaceyya View Post
can i change entities on CZ or TEam fortress classic map to cs 1.6 ?
This only change models/sound/sprites, so if you want to change that it may work. What it needs is a a signature for TFC(current one should work in cz too) and given that I don't have the binary I can't help with that.
__________________
HamletEagle is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 12-12-2015 , 04:40   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #132

Why do you run the UnpatchMemory function during plugin_pause and more importantly during plugin_end?

Is it required or do you just feel it's best to reset default values on those cases? What happens if you don't reset the values? Does the memory stay patched with the new models until the server shuts down?
PartialCloning is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-19-2015 , 11:19   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #133

Quote:
Does the memory stay patched with the new models until the server shuts down?
Yes, this is the reason.
__________________
HamletEagle is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-11-2016 , 07:51   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #134

PHP Code:
public plugin_end()
{
    switch(
ReplacementType)
    {
        case 
1:
        {
            
UnpatchMemory()
            
Destroy .DestroyType DestroyArray
        
}
        case 
2:
        {
            
UnregisterForwards()
            
Destroy .DestroyType DestroyTrie
        
}
        default:
        {
            
UnpatchMemory()
            
UnregisterForwards()
            
Destroy .DestroyType DestroyArray
            Destroy 
.DestroyType DestroyTrie
        
}
    }

this causes server to crash when map change with the error:
FATAL ERROR (shutting down): Mod_NumForName: mdl not found
when i remove it evry thing works fine.
__________________
JusTGo is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-11-2016 , 07:57   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #135

I never got a crash, could you show your configuration files? Also, what replacement type are you using?
__________________

Last edited by HamletEagle; 02-11-2016 at 07:57.
HamletEagle is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-12-2016 , 10:16   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #136

Quote:
Originally Posted by HamletEagle View Post
I never got a crash, could you show your configuration files? Also, what replacement type are you using?
i m useing compelet replacer i change some player models and weapons models i respected the rule of length of models when i find the config file will upload it.
__________________
JusTGo is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-17-2016 , 09:32   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #137

here is the config file
PHP Code:
models/player/urban/urban.mdl models/player/u1/u1.mdl
models
/player/sas/sas.mdl models/player/u1/u1.mdl
models
/player/gsg9/gsg9.mdl models/player/u1/u1.mdl
models
/player/gign/gign.mdl models/player/u1/u1.mdl
models
/player/arctic/arctic.mdl models/player/zm1/zm1.mdl
models
/player/guerilla/guerilla.mdl models/player/zm1/zm1.mdl
models
/player/terror/terror.mdl models/player/zm1/zm1.mdl
models
/player/leet/leet.mdl models/player/zm1/zm1.mdl
models
/v_elite.mdl models/v_el1.mdl
models
/v_deagle.mdl models/v_de1.mdl
models
/v_ak47.mdl models/v_ak1.mdl
models
/v_usp.mdl models/v_us1.mdl
models
/v_glock18.mdl models/v_glock1.mdl
models
/v_m4a1.mdl models/v_m4a2.mdl
models
/v_knife.mdl models/v_kn1.mdl 
after removing code plugin_end code it now crash with new error something like /hlds_linux double link...

edit: the new crash have nothing to do with the plugin removeing plugin_end fixes my problem but i guess i need to restart the server when i change new models ?
__________________

Last edited by JusTGo; 02-17-2016 at 11:44.
JusTGo is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 02-18-2016 , 13:18   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #138

I will check this as soon as I have some free time. Could you please post some steps to reproduce the crash? Does it happens randomly?
__________________
HamletEagle is offline
JusTGo
Veteran Member
Join Date: Mar 2013
Old 02-18-2016 , 13:37   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #139

i just start the server with the plugin and this config then when i change map it crashs with:
FATAL ERROR (shutting down): Mod_NumForName: mdl not found


also why is this not replaced ?
sprites/muzzleflash1.spr sprites/muzzle1.spr
sprites/muzzleflash2.spr sprites/muzzle2.spr
sprites/muzzleflash3.spr sprites/muzzle3.spr
sprites/muzzleflash4.spr sprites/muzzle4.spr
__________________
JusTGo is offline
Jhob94
AMX Mod X Donor
Join Date: Jul 2012
Old 02-18-2016 , 14:13   Re: Entity Resources Replacement[ V 1.3 - Must See ]
Reply With Quote #140

You can replace player models with complete replacement plugin now? My last check was long time ago but i think it couldn't. If you still can't, that's probably the why it's crashing.

I think you can't replace those sprites, if i am not wrong they are client side. You can only change sprites that are server side, in example the grenade explosion sprite.
__________________
Jhob94 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 13:56.


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