R2API icon indicating copy to clipboard operation
R2API copied to clipboard

R2API generates broken SkinDefs

Open harbingerofme opened this issue 2 years ago • 3 comments

https://discord.com/channels/562704639141740588/562704639569428506/951884797393911899

harbingerofme avatar Mar 11 '22 16:03 harbingerofme

Well, two days of trying to figure out why skins were invisible in the game, and turns out R2API creates broken SkinDefs somehow. How it is broken? Well the skin shows up fine in lobby, but in actual game it is completely invisible. Rewrote the SkinDef the old way without R2API, and it works just fine. To be specific, was trying to make use of CreateNewSkinDef function and SkinDefInfo class. Which somehow caused invisible skins.

harbingerofme avatar Mar 11 '22 16:03 harbingerofme

Code example here https://discord.com/channels/562704639141740588/562704639569428506/951887247081345045

harbingerofme avatar Mar 11 '22 17:03 harbingerofme

I thought it was baseskins being empty after this : https://discord.com/channels/562704639141740588/562704639569428506/951901837609549854

but I just looked at miner mod currently, which defines a lot of skins, all with an empty baseskins array, and they all work. Not sure what the problem is now

xiaoxiao921 avatar Mar 11 '22 18:03 xiaoxiao921

I think this issue can be closed for now as it seems very stale, specially nowadays with the removal of the LoadoutAPI and addition of the SkinAPI

Nebby1999 avatar Oct 16 '23 04:10 Nebby1999