Raised This Month: $202 Target: $400
 50% 

Entity Resources Replacement[ V 1.4 ]


Post New Thread Reply   
 
Thread Tools Display Modes
NeFeroN
New Member
Join Date: Jan 2017
Old 01-22-2017 , 13:44   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #201

Quote:
Originally Posted by HamletEagle View Post
Check how the plugin is named inside plugins folder. The name from plugins.ini and the actual file name don't match. If this is not the case, recompile the plugin and check.
entities_resources_replacement.amxx is in Plugin folder and entities_resources_replacement.amxx is written in plugins.ini . Checked everything but still error. Deleted all my previous plugins like GHW_Weapon_Replacement.amxx and player_model.amxx . Still no luck . Last i compiled your plugin and still , no luck. Got new error in logs

Code:
L 01/22/2017 - 21:30:22: Start of error session.
L 01/22/2017 - 21:30:22: Info (map "de_dust2") (file "addons/amxmodx/logs/error_20170122.log")
L 01/22/2017 - 21:30:22: [AMXX] Load error 17 (invalid file format or version) (plugin "entities_resources_replacement.amxx")
UPD. v1 ) Find information that plugin must be compiled with same amx mod x version on my server. Now it's working properly !

UPD. v2 ) Got problem. Here is my lines. Only STEAM_0:0:10046xx got different knife skin , another one and TEAM_TERRORIST has default skin of cs 1.6 . Is it possible to make it work with more than one steamid ?
Code:
;Add your models below:

TEAM_TERRORIST models/v_knife.mdl models/nw/dlknife/v_knife.mdl models/nw/dlknife/p_knife.mdl NULL
STEAM_0:0:10046xx models/v_knife.mdl models/gut/v_knife.mdl models/gut/p_knife.mdl NULL
STEAM_0:0:54369xx models/p_knife.mdl models/nw/p_knife.mdl models/nw/v_knife.mdl NULL

Last edited by NeFeroN; 01-22-2017 at 15:14.
NeFeroN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-22-2017 , 15:19   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #202

It works with unlimited steam id's. But you configured it wrong.
Quote:
;STEAM_...... v_old_model v_new_model p_new_model w_new_model
After the identifier(team/steamid/etc) you have to ALWAYS put the old v_model, no matter what you will replace and after that keep the sequence: v p w
If you don't want to replace one of them, then use NULL.

The correct line would be:
Code:
STEAM_0:0:54369xx models/v_knife.mdl models/nw/v_knife.mdl models/nw/p_knife.mdl NULL
Also, check your error logs. In most of cases plugin will tell you why a resource was not replaced.
__________________

Last edited by HamletEagle; 01-22-2017 at 15:25.
HamletEagle is offline
NeFeroN
New Member
Join Date: Jan 2017
Old 01-22-2017 , 16:57   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #203

Quote:
Originally Posted by HamletEagle View Post
It works with unlimited steam id's. But you configured it wrong.

The correct line would be:
Code:
STEAM_0:0:54369xx models/v_knife.mdl models/nw/v_knife.mdl models/nw/p_knife.mdl NULL
Also, check your error logs. In most of cases plugin will tell you why a resource was not replaced.
Yeah , my mistake. I corrected this and now i got knife skin but my friend with steamid and another one who was in terror team didn't got anything. I'm confused , am i doing something wrong again ? And there isn't error logs.
Code:
TEAM_TERRORIST models/v_knife.mdl models/nw/dlknife/v_knife.mdl models/nw/dlknife/p_knife.mdl NULL
STEAM_0:0:10046617 models/v_knife.mdl models/gut/v_knife.mdl models/gut/p_knife.mdl NULL
STEAM_0:0:54369903 models/v_knife.mdl models/nw/v_knife.mdl models/nw/p_knife.mdl NULL

Last edited by NeFeroN; 01-22-2017 at 16:59.
NeFeroN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-23-2017 , 04:53   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #204

Can you upload your config file and the models?
__________________
HamletEagle is offline
NeFeroN
New Member
Join Date: Jan 2017
Old 01-23-2017 , 06:24   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #205

Quote:
Originally Posted by HamletEagle View Post
Can you upload your config file and the models?
Sure.
Attached Files
File Type: zip models.zip (3.56 MB, 15 views)
NeFeroN is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-23-2017 , 07:17   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #206

Found the issue, is a big design flaw. I'm surprised no one reported that before. It happens when you want to replace the same weapon but for different flags(like you wanted to replace knife for tero and for specific steamids). I won't go into technical details, but the issue is that only the last line will take effect, because things will get messed up when loading the configuration.

I'll fix this ASAP. Thanks a lot for reporting.
__________________
HamletEagle is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 01-31-2017 , 03:59   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #207

Looks good, but most server owners migrated to ReHLDS platform and they using ReAPI, because orpheu is not supported.
Just tried to convert this plugin to ReAPI, but no, not much expirience for this...

PS
About ReAPI and lastest builds...
__________________

Last edited by last_hope; 01-31-2017 at 03:59.
last_hope is offline
Send a message via ICQ to last_hope
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 01-31-2017 , 11:10   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #208

My answer is the same as before. I'm not going to support rehlds/regamedll.
__________________
HamletEagle is offline
last_hope
Senior Member
Join Date: Dec 2011
Old 02-01-2017 , 07:21   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #209

Quote:
Originally Posted by HamletEagle View Post
I'm not going to support rehlds/regamedll.
Well, then it must be not surprising...
Quote:
Originally Posted by HamletEagle View Post
I'm surprised no one reported that before.
Anyway, gj, man, awesome fresh idea.
__________________
last_hope is offline
Send a message via ICQ to last_hope
kristi
Senior Member
Join Date: Nov 2016
Location: Albania
Old 03-06-2017 , 09:27   Re: Entity Resources Replacement[ V 1.4 ]
Reply With Quote #210

Are these the same ?
In which one can I use flags, and have no limits on the sound path ?
Because you haven't explained well.


kristi is offline
Reply


Thread Tools
Display Modes

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 06:54.


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