Jump to content

Industrial Custom Skins Fix 1.1.2

   (6 reviews)

1 Screenshot

Recommended Comments

Flammable

Posted

This bug is critical and can cause a lot of damage on our servers if players start to dupe the custom items we have. I was about to say THANK YOU for your fix plugin but it's not compiling and gives an error. Please take a look as soon as possible. We're using Carbon, maybe that's the issue. Also it broke our whole server instantly. No plugins are working (/commands) as everyone complains now. We'll try a restart... Oooof

Ghosty

Posted

Using this plugin has some bad side effects, all our harmony mods wont load on server boot, with RustServerMetrics loaded players get Rejecting connection - You are already connected as a player!, and in general it has caused some other weird issues and before using this all was smooth

Tangerine

Posted

7 hours ago, Flammable said:

This bug is critical and can cause a lot of damage on our servers if players start to dupe the custom items we have. I was about to say THANK YOU for your fix plugin but it's not compiling and gives an error. Please take a look as soon as possible. We're using Carbon, maybe that's the issue. Also it broke our whole server instantly. No plugins are working (/commands) as everyone complains now. We'll try a restart... Oooof

5 hours ago, Ghosty said:

Using this plugin has some bad side effects, all our harmony mods wont load on server boot, with RustServerMetrics loaded players get Rejecting connection - You are already connected as a player!, and in general it has caused some other weird issues and before using this all was smooth

I'm sorry to hear that, seems harmony work in a bit weird way, I already made an update for that!

  • Love 1
Mario

Posted

Thanks for the plugin. Seems items using the same skin but different custom items/names still have the same issue. Specifically the kits from ItemPerks plugin. Any chance for a check to make sure the item has the same custom name? Seems clone genes are also still broke. Thanks.

  • Like 1
Tangerine

Posted

1 hour ago, Mario said:

Thanks for the plugin. Seems items using the same skin but different custom items/names still have the same issue. Specifically the kits from ItemPerks plugin. Any chance for a check to make sure the item has the same custom name? Seems clone genes are also still broke. Thanks.

Okay, will add checks for that.

  • Like 1
Tangerine

Posted

2 hours ago, Mario said:

Thanks for the plugin. Seems items using the same skin but different custom items/names still have the same issue. Specifically the kits from ItemPerks plugin. Any chance for a check to make sure the item has the same custom name? Seems clone genes are also still broke. Thanks.

Made an update.

Mario

Posted (edited)

1 hour ago, Tangerine said:

Made an update.

Yea it works now. It also fixed skulls. Only bug I noticed is when pulling an item from a stack it won't update the number it shows on the stack until you close the box UI and re open. But I am just happy the custom item duping is fixed. Thanks again.

Edit: The stack numbers not updating is only happening on the custom item kit that share the same skin, not on default rust items that share the same skin.

Edited by Mario
imthenewguy

Posted

Hey mate, are you able to add the item.text field to your checks as well?

Tangerine

Posted

3 hours ago, imthenewguy said:

Hey mate, are you able to add the item.text field to your checks as well?

Done, checkout the update.

  • Love 1
Bad Cop

Posted

Attachments disappear from guns when moved via conveyor. Not sure if vanilla behavior or due to this

Tangerine

Posted

10 hours ago, Bad Cop said:

Attachments disappear from guns when moved via conveyor. Not sure if vanilla behavior or due to this

I'll check that

Tangerine

Posted

12 hours ago, Bad Cop said:

Attachments disappear from guns when moved via conveyor. Not sure if vanilla behavior or due to this

I've checked attachments and it seems to be working fine. Can you contact me in discord to show what happens: metangerine?

Bad Cop

Posted

13 hours ago, Tangerine said:

I've checked attachments and it seems to be working fine. Can you contact me in discord to show what happens: metangerine?

I'll have to confirm this , something reported to me but haven't had a chance to test out fully

m3dus4

Posted (edited)

ive an issue with that plugin. it wont start  after server reboot

IndustrialCustomSkinsFix - Patching exception in method null

 [Error] Failed to initialize plugin 'IndustrialCustomSkinsFix v1.1.2' (ArgumentException: Undefined target method for patch method static System.Boolean Oxide.Plugins.Item_CanStack_Patch::Prefix(Item __instance, Item item, System.Boolean& __result))
  at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x0006e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0

Edited by m3dus4
Tangerine

Posted (edited)

2 hours ago, m3dus4 said:

ive an issue with that plugin. it wont start  after server reboot

IndustrialCustomSkinsFix - Patching exception in method null

 [Error] Failed to initialize plugin 'IndustrialCustomSkinsFix v1.1.2' (ArgumentException: Undefined target method for patch method static System.Boolean Oxide.Plugins.Item_CanStack_Patch::Prefix(Item __instance, Item item, System.Boolean& __result))
  at HarmonyLib.PatchClassProcessor.PatchWithAttributes (System.Reflection.MethodBase& lastOriginal) [0x00047] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0
  at HarmonyLib.PatchClassProcessor.Patch () [0x0006e] in <6c906b4f1de440f3a86cb0ebb3f48ea6>:0

Could you please provide the specifications of your server, i'm interested in mod(oxide,carbon) and its version.

Edited by Tangerine
m3dus4

Posted

sure im using trhe latest fp update + oxide version v2.0.6204

 

ive fixxed the issue and changed line 16

from:
   void Init()

to:
  private void OnServerInitialized()

Tangerine

Posted (edited)

18 minutes ago, m3dus4 said:

sure im using trhe latest fp update + oxide version v2.0.6204

 

ive fixxed the issue and changed line 16

from:
   void Init()

to:
  private void OnServerInitialized()

Looks like you have another plugin that tries to patch same method at the same time.

Edited by Tangerine
m3dus4

Posted

3 hours ago, Tangerine said:

Looks like you have another plugin that tries to patch same method at the same time.

oh yes ive the same issues with 2 other plugins damn it ^^

ChristopherS

Posted (edited)

I use Epic Loot among a few other things. They've shown me that if you have an enhanced item, lets use a satchel as an example, along with a regular satchel but with the same skin, it will dupe.

Does anyone know if there's a way I can fix this?

EDIT: The player has just let me know that the name of the item changed to the Epic Loot naming scheme, but you cannot get the Epic Loot bonuses from it. 

Edited by ChristopherS
ChristopherS

Posted (edited)

A player on my server has discovered that he can dupe skinned "radiationresisttea.pure" items. I use VIP tokens, and even with this installed, he was able to dupe a boat load of those tokens 😞

EDIT: I should add that he was able to consume these, and get the bonuses from the token.

EDIT2: I've made a slight change to the code and it's fixed. The issue was that "
item._condition" and "toTransfer.maxCondition" seemed to be mismatched. I changed that check and it's working as intended 🙂 I'm not very good with code, so I may have messed something else up, but it's working for me haha!

Basically from this:

if (item.skin != toTransfer.skin ||
    item.name != toTransfer.name ||
    item.text != toTransfer.text ||
    (item.hasCondition && ((int)item?._condition != (int)toTransfer.maxCondition || (int)toTransfer?._condition != (int)item.maxCondition)) ||
    item.contents?.itemList.Count > 0 ||
    item.instanceData?.dataInt != toTransfer.instanceData?.dataInt ||
    (item.contents?.capacity ?? 0) != (toTransfer.contents?.capacity ?? 0))
    continue;


To this:

if (item.skin != toTransfer.skin ||
    item.name != toTransfer.name ||
    item.text != toTransfer.text ||
    (item.hasCondition && ((int)item._condition != (int)toTransfer._condition || (int)toTransfer._condition != (int)item._condition)) ||
    (item.contents?.itemList.Count > 0) ||
    item.instanceData?.dataInt != toTransfer.instanceData?.dataInt ||
    (item.contents?.capacity ?? 0) != (toTransfer.contents?.capacity ?? 0))
    continue;

 

Edited by ChristopherS
  • Like 1
RICK

Posted (edited)

Industrial Crafter also has issues with copying skin items, can you add a fix for that?

Edited by RICK

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 1
  • Love 2

User Feedback

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.3k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.