Jump to content

Having issues with getting skins to work on custom items/recipies

Closed 1.2.8

Mirabel

I'm creating my own items and recipes and am I running into an issue with the skins. I watched your video on creating them and followed what you did, I also have the custom icon program, but they either load odd, see the truffle oil, or don't load at all and cause an error, see the bear wellington.

I made sure that each image I used was under 500 x 500 pixels and the file sizes are well under 1 mb. 

I've also run into issues getting the image to replace with another, after changing the skin ID and reloading the plugin, it just doesn't seem to want to update.

This is the first time I'm trying anything like this, so I apologize if the answer is really simple, I'm just out of ideas on how to fix it atm.

Thankfully the crafting works just fine, as does the buff, and the imgur links, it's just the skins that I'm stuck on.

Thanks.

Screenshot 2022-03-22 171651.png

Screenshot 2022-03-22 164049.png

Screenshot 2022-03-22 171635.png

Share this comment


Link to comment
5 hours ago, Mirabel said:

I'm creating my own items and recipes and am I running into an issue with the skins. I watched your video on creating them and followed what you did, I also have the custom icon program, but they either load odd, see the truffle oil, or don't load at all and cause an error, see the bear wellington.

I made sure that each image I used was under 500 x 500 pixels and the file sizes are well under 1 mb. 

I've also run into issues getting the image to replace with another, after changing the skin ID and reloading the plugin, it just doesn't seem to want to update.

This is the first time I'm trying anything like this, so I apologize if the answer is really simple, I'm just out of ideas on how to fix it atm.

Thankfully the crafting works just fine, as does the buff, and the imgur links, it's just the skins that I'm stuck on.

Thanks.

Screenshot 2022-03-22 171651.png

Screenshot 2022-03-22 164049.png

Screenshot 2022-03-22 171635.png

Can you link me to the imagur links and give me the skin IDs for both please?

Share this comment


Link to comment

I think I may of fixed it in the last few minutes, I changed the icon size to exactly 500x500 and they work perfectly! Am going to try it with the other items now.

One other thing I'd like to ask, the drop weights, how do they work? Does a higher number equal more or less drop chance? I've been testing all day and cannot work it out 😅

unknown.png

Share this comment


Link to comment
Just now, Mirabel said:

I think I may of fixed it in the last few minutes, I changed the icon size to exactly 500x500 and they work perfectly! Am going to try it with the other items now.

One other thing I'd like to ask, the drop weights, how do they work? Does a higher number equal more or less drop chance? I've been testing all day and cannot work it out 😅

unknown.png

Think of it this way:

Each item adds its drop weight value to a running total

IE:

- Tomatoes - 100

- Truffles - 100

- Oregano - 100

 

If these are the 3 items that can drop from a potential source, the values would total 300. We then roll a random number between 1 and 300, and then go through the list and add the values together until we are within our number range.

TL;DR; higher numbers mean more chance to drop.

Share this comment


Link to comment

Ahh so, each source is its own pool, so to speak. So with chickens, they have the same drops as the other animals, just with the addition of eggs. If the other four drops are set to say 50, would I have to set the eggs to 4x50=200 to be double the chance, or just to 100?

Sorry for all the questions, I love this plugin so much, it is amazing! Just really want to learn it properly 🙂

Share this comment


Link to comment
19 minutes ago, Mirabel said:

Ahh so, each source is its own pool, so to speak. So with chickens, they have the same drops as the other animals, just with the addition of eggs. If the other four drops are set to say 50, would I have to set the eggs to 4x50=200 to be double the chance, or just to 100?

Sorry for all the questions, I love this plugin so much, it is amazing! Just really want to learn it properly 🙂

The way it works with all animals or specific animals, is that the loot table from all animals is added to the loot tables for specific animals if assigned in the config when the plugin is initialized.

For example, we have the following animals in our config

  "Animals that are considered part of the Animals gather source": [
    "boar",
    "horse",
    "stag",
    "chicken",
    "wolf",
    "bear"
  ],

We then have the following ingredients assigned to the "Animals" drop source.

    "milk": {
      "enabled": true,
      "base_shortname": "blood",
      "skin": 2572181796,
      "gathered_from": 17,
      "dropWeight": 100,
      "max_count": 10,
      "imageURL": "https://i.imgur.com/SfsQzD7.png",
      "market_enable": true,
      "market_buy_price": 10.0,
      "market_sell_price": 5.0,
      "market_quantity": 0
    },
    "intestines": {
      "enabled": true,
      "base_shortname": "chicken.spoiled",
      "skin": 2572181484,
      "gathered_from": 17,
      "dropWeight": 100,
      "max_count": 4,
      "imageURL": "https://i.imgur.com/4CkjVQU.png",
      "market_enable": true,
      "market_buy_price": 10.0,
      "market_sell_price": 5.0,
      "market_quantity": 0
    },
    "blood": {
      "enabled": true,
      "base_shortname": "blood",
      "skin": 0,
      "gathered_from": 17,
      "dropWeight": 100,
      "max_count": 0,
      "imageURL": "https://rustlabs.com/img/items180/blood.png",
      "market_enable": true,
      "market_buy_price": 10.0,
      "market_sell_price": 5.0,
      "market_quantity": 0
    },
    "offal": {
      "enabled": true,
      "base_shortname": "chicken.spoiled",
      "skin": 2572182127,
      "gathered_from": 17,
      "dropWeight": 100,
      "max_count": 3,
      "imageURL": "https://i.imgur.com/S2ZjhAQ.png",
      "market_enable": true,
      "market_buy_price": 10.0,
      "market_sell_price": 5.0,
      "market_quantity": 0
    },

Each of these ingredients will be added to the drop table for each animal that is listed in our animals list, using the configured drop weight.

Example: A chicken has 1 item on its drop table by default - eggs. Since we have chickens in our animals list, it will also receive offal, blood, milk and intestines to its drop table, with their inherited weight values. This means that the chance to obtain eggs is reduced, unless you set the eggs weight value to be higher.

Edited by imthenewguy
  • Like 1

Share this comment


Link to comment

Sorry to bring this up again but I'm still not understanding, I appreciate you running through it all but it doesn't seem to work when I try it

I'm testing it on fish, they can drop 3 items, it should be a 25% chance, but they seem to drop every single time for some reason.

In the pic I set the weights to the following:

seaweed: 100 max drop 1
fish eyes: 50 max drop: 3
fish oil: 9000 max drop: 10

Then gutted 1000 sardines and got this, the max drops work but the weights seem to do nothing.
I tried it in reverse, so with fish oil at a really low number and seaweed at a high number, and got the same result.

It feels like there is another value overriding the weights. There is something not right about this.

I can share my config file if that would help.

Screenshot 2022-03-24 021312.png

Share this comment


Link to comment
8 minutes ago, Mirabel said:

Sorry to bring this up again but I'm still not understanding, I appreciate you running through it all but it doesn't seem to work when I try it

I'm testing it on fish, they can drop 3 items, it should be a 25% chance, but they seem to drop every single time for some reason.

In the pic I set the weights to the following:

seaweed: 100 max drop 1
fish eyes: 50 max drop: 3
fish oil: 9000 max drop: 10

Then gutted 1000 sardines and got this, the max drops work but the weights seem to do nothing.
I tried it in reverse, so with fish oil at a really low number and seaweed at a high number, and got the same result.

It feels like there is another value overriding the weights. There is something not right about this.

I can share my config file if that would help.

Screenshot 2022-03-24 021312.png

Add me on discord. im the new guy#0001

 

Share this comment


Link to comment
1.1m

Downloads

Total number of downloads.

5.8k

Customers

Total customers served.

83.8k

Files Sold

Total number of files sold.

1.6m

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.