Jump to content

Underwear Selection 1.0.4

   (3 reviews)

3 Screenshots

  • 28.8k
  • 1.5k
  • 23.04 kB
This area is intended for discussion and questions. Please use the support area for reporting issues or getting help.

Recommended Comments



funky nugget

Posted

i cant equip rapido, also players that have different underwear native, cant select those anymore

☜Марат☞

Posted

3 hours ago, funky nugget said:

i cant equip rapido, also players that have different underwear native, cant select those anymore

I know about it. This happens because the plugin disables UnderwearValidationTime which checks the license to purchase underwear. If this is not done, the laundry will be reset by default.

MyOrangeSoJuicy

Posted

the 1.0.1 update is getting a compiling error and shows and the /wear command reports back as unknown in the server

Quote

 

[Error] Failed to call hook 'OnServerInitialized' on plugin 'UnderwearSelection v1.0.1' (ArgumentException: Could not cast or convert from System.Int64 to Oxide.Plugins.UnderwearSelection+Data.)

at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable (System.Object value, System.Type initialType, System.Type targetType) [0x00062] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast (System.Object initialValue, System.Globalization.CultureInfo culture, System.Type targetType) [0x00031] in <271c58b7a8684db5a2c92be17a81f252>:0

at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo culture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x0008d] in <271c58b7a8684db5a2c92be17a81f252>:0

 

 

☜Марат☞

Posted

3 hours ago, MyOrangeSoJuicy said:

обновление 1.0.1 получает ошибку компиляции и показывает, а команда /wear сообщает, что на сервере она неизвестна.

 

The date file has been changed. Before updating, unload the plugin and delete the old data file.

TOP-ic

Posted

Errors often appear. The errors have different steam IDs each time.

[05.11.2023 19:37:55] [Oxide] 19:37 [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'UnderwearSelection v1.0.1' (KeyNotFoundException: The given key '76561198257839809' was not present in the dictionary.)
   at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <47fc8c70fa834cbf8141d7c1a7589125>:0 
   at Oxide.Plugins.UnderwearSelection.UnderwearChange (BasePlayer player, System.UInt32 id) [0x00000] in <0a1e5dab1bc1493e90f390cdb9871413>:0 
   at Oxide.Plugins.UnderwearSelection.OnPlayerRespawned (BasePlayer player) [0x00091] in <0a1e5dab1bc1493e90f390cdb9871413>:0 
   at Oxide.Plugins.UnderwearSelection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00238] in <0a1e5dab1bc1493e90f390cdb9871413>:0 
   at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
   at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
   at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0

☜Марат☞

Posted

3 hours ago, TOP-ic said:

Errors often appear. The errors have different steam IDs each time.

[05.11.2023 19:37:55] [Oxide] 19:37 [Error] Failed to call hook 'OnPlayerRespawned' on plugin 'UnderwearSelection v1.0.1' (KeyNotFoundException: The given key '76561198257839809' was not present in the dictionary.)
   at System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) [0x0001e] in <47fc8c70fa834cbf8141d7c1a7589125>:0 
   at Oxide.Plugins.UnderwearSelection.UnderwearChange (BasePlayer player, System.UInt32 id) [0x00000] in <0a1e5dab1bc1493e90f390cdb9871413>:0 
   at Oxide.Plugins.UnderwearSelection.OnPlayerRespawned (BasePlayer player) [0x00091] in <0a1e5dab1bc1493e90f390cdb9871413>:0 
   at Oxide.Plugins.UnderwearSelection.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00238] in <0a1e5dab1bc1493e90f390cdb9871413>:0 
   at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <cd9a02fd331347bd82d550bb1a9c8e9f>:0 
   at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <b76ec77c47d1449e92b2baab8603843d>:0 
   at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <b76ec77c47d1449e92b2baab8603843d>:0

unload the plugin and delete the old data file.

MyOrangeSoJuicy

Posted

that worked, sorry I missed the note to do that. Thank you

 

TOP-ic

Posted

And so I did. Stopped the plugin, deleted the date, threw a new version.... And the error still appears.

☜Марат☞

Posted

2 hours ago, TOP-ic said:

And so I did. Stopped the plugin, deleted the date, threw a new version.... And the error still appears.

show which config you are using

TOP-ic

Posted

47 minutes ago, ☜Марат☞ said:

show which config you are using

{
  "Commands": [
    "wear"
  ],
  "Forced underwear skin when a player connects": 3797783720,
  "Random underwear skin upon respawn": false,
  "Image and description": [
    {
      "Title": "Scribble",
      "Id": 792014640,
      "UrlMale": "https://i.ibb.co/cvFYv4B/scribble-male.png",
      "UrlFemale": "https://i.ibb.co/mHLj0FP/scribble-female.png"
    },
    {
      "Title": "Gradient",
      "Id": 241501709,
      "UrlMale": "https://i.ibb.co/MG5GMKh/gradient-male.png",
      "UrlFemale": "https://i.ibb.co/b70811b/gradient-female.png"
    },
    {
      "Title": "PalmLeaves",
      "Id": 1756736103,
      "UrlMale": "https://i.ibb.co/YQFnzZm/palmleaves-male.png",
      "UrlFemale": "https://i.ibb.co/z6dhs5R/palmleaves-female.png"
    },
    {
      "Title": "Bikini/Rapido",
      "Id": 359039573,
      "UrlMale": "https://i.ibb.co/42pYF1D/rapido-male.png",
      "UrlFemale": "https://i.ibb.co/j3wZXF4/pink-bikini.png"
    },
    {
      "Title": "Coconut",
      "Id": 3797783720,
      "UrlMale": "https://i.ibb.co/5RcSNsW/coconut-female-male.png",
      "UrlFemale": "https://i.ibb.co/5RcSNsW/coconut-female-male.png"
    },
    {
      "Title": "MummyWraps",
      "Id": 1154108357,
      "UrlMale": "https://i.ibb.co/3SWCyj2/mummywraps-male.png",
      "UrlFemale": "https://i.ibb.co/p15j3cD/mummywraps-female.png"
    },
    {
      "Title": "Purple",
      "Id": 1967073602,
      "UrlMale": "https://i.ibb.co/yVCBwSD/purple-male.png",
      "UrlFemale": "https://i.ibb.co/0QnjzKT/purple-female.png"
    },
    {
      "Title": "GrassSkirt",
      "Id": 4122325535,
      "UrlMale": "https://i.ibb.co/8XvwtzS/grassskirt-male.png",
      "UrlFemale": "https://i.ibb.co/T4Yg0Cm/grassskirt-top-female.png"
    }
  ]
}

☜Марат☞

Posted

2 minutes ago, TOP-ic said:

{
  "Commands": [
    "wear"
  ],
  "Forced underwear skin when a player connects": 3797783720,
  "Random underwear skin upon respawn": false,
  "Image and description": [
    {
      "Title": "Scribble",
      "Id": 792014640,
      "UrlMale": "https://i.ibb.co/cvFYv4B/scribble-male.png",
      "UrlFemale": "https://i.ibb.co/mHLj0FP/scribble-female.png"
    },
    {
      "Title": "Gradient",
      "Id": 241501709,
      "UrlMale": "https://i.ibb.co/MG5GMKh/gradient-male.png",
      "UrlFemale": "https://i.ibb.co/b70811b/gradient-female.png"
    },
    {
      "Title": "PalmLeaves",
      "Id": 1756736103,
      "UrlMale": "https://i.ibb.co/YQFnzZm/palmleaves-male.png",
      "UrlFemale": "https://i.ibb.co/z6dhs5R/palmleaves-female.png"
    },
    {
      "Title": "Bikini/Rapido",
      "Id": 359039573,
      "UrlMale": "https://i.ibb.co/42pYF1D/rapido-male.png",
      "UrlFemale": "https://i.ibb.co/j3wZXF4/pink-bikini.png"
    },
    {
      "Title": "Coconut",
      "Id": 3797783720,
      "UrlMale": "https://i.ibb.co/5RcSNsW/coconut-female-male.png",
      "UrlFemale": "https://i.ibb.co/5RcSNsW/coconut-female-male.png"
    },
    {
      "Title": "MummyWraps",
      "Id": 1154108357,
      "UrlMale": "https://i.ibb.co/3SWCyj2/mummywraps-male.png",
      "UrlFemale": "https://i.ibb.co/p15j3cD/mummywraps-female.png"
    },
    {
      "Title": "Purple",
      "Id": 1967073602,
      "UrlMale": "https://i.ibb.co/yVCBwSD/purple-male.png",
      "UrlFemale": "https://i.ibb.co/0QnjzKT/purple-female.png"
    },
    {
      "Title": "GrassSkirt",
      "Id": 4122325535,
      "UrlMale": "https://i.ibb.co/8XvwtzS/grassskirt-male.png",
      "UrlFemale": "https://i.ibb.co/T4Yg0Cm/grassskirt-top-female.png"
    }
  ]
}

check if the latest version fixes the error

TOP-ic

Posted

16 hours ago, ☜Марат☞ said:

check if the latest version fixes the error

Great! Not a single mistake during the night. Thanks!

abcderanzi

Posted

I updated to new version, removed old data. But still underwear reset to default whenever player reconnect(not respawn).

☜Марат☞

Posted

3 hours ago, abcderanzi said:

I updated to new version, removed old data. But still underwear reset to default whenever player reconnect(not respawn).

What config settings do you use and what permissions do you give to players?

abcderanzi

Posted

38 minutes ago, ☜Марат☞ said:

What config settings do you use and what permissions do you give to players?

Thanks for replying, but nevermind, my bad. I thought setting "Forced underwear skin when a player connects" to 1 will allow player to spawn with underwear they selected cause I saw we you created data file containing user's skin selection.

I just saw the plugin's description. Looks like I can only set 1 underwear's ID so player can spawn with it.

I'm guessing this plugin don't allow player to spawn with the skin they selected yet?

☜Марат☞

Posted

3 hours ago, abcderanzi said:

Thanks for replying, but nevermind, my bad. I thought setting "Forced underwear skin when a player connects" to 1 will allow player to spawn with underwear they selected cause I saw we you created data file containing user's skin selection.

I just saw the plugin's description. Looks like I can only set 1 underwear's ID so player can spawn with it.

I'm guessing this plugin don't allow player to spawn with the skin they selected yet?

I don't quite understand what you want to do. If you want to install a specific skin for the player when connecting to the server, then set it in the "Forced underwear skin when a player connects" variable.

abcderanzi

Posted

9 hours ago, ☜Марат☞ said:

I don't quite understand what you want to do. If you want to install a specific skin for the player when connecting to the server, then set it in the "Forced underwear skin when a player connects" variable.

Sorry I didn't explain myself clearly. When a player reconnect to the server, I want them to auto wear whatever skin they selected before disconnecting.

☜Марат☞

Posted

1 hour ago, abcderanzi said:

Sorry I didn't explain myself clearly. When a player reconnect to the server, I want them to auto wear whatever skin they selected before disconnecting.

You just need to give permission to the player and when connected, the skin selected by the player in the menu will be applied.

aimacak

Posted

@☜Марат☞
hi, thanks for the plugin, I have the rights, the skin is selected, I pressed the ON button, but when I reconnect, the skin is not applied automatically, I don’t want to use any specific or random one, I would like the one that the player selected in the menu before to be used shutdown, can I do this somehow? Thank you

aimacak

Posted

5 minutes ago, aimacak said:

@☜Марат☞
hi, thanks for the plugin, I have the rights, the skin is selected, I pressed the ON button, but when I reconnect, the skin is not applied automatically, I don’t want to use any specific or random one, I would like the one that the player selected in the menu before to be used shutdown, can I do this somehow? Thank you

Oh, its work, if:
  "Random underwear skin upon respawn": true,

i think this option must be looks like:
"Apply the selected player skin when reconnecting"
sorry, and thanks again ❤️

  • Love 1
aimacak

Posted

@abcderanzi
oh, I confused both myself and you, the setting is called correctly, but it’s a rather strange choice of options..
is it possible to make it so that under any circumstances, the player’s chosen underwear is saved forever until he changes it himself or the date is cleared? Thanks a lot

☜Марат☞

Posted

6 hours ago, aimacak said:

@abcderanzi
oh, I confused both myself and you, the setting is called correctly, but it’s a rather strange choice of options..
is it possible to make it so that under any circumstances, the player’s chosen underwear is saved forever until he changes it himself or the date is cleared? Thanks a lot

if the player has permission, the underwear that the player has set in the menu will be used. Variables in the config need to be changed only if you want players to have only a specific skin when connecting or a random skin each time a player respawns, without the ability to change it through the menu.

aimacak

Posted (edited)

7 hours ago, ☜Марат☞ said:

if the player has permission, the underwear that the player has set in the menu will be used. Variables in the config need to be changed only if you want players to have only a specific skin when connecting or a random skin each time a player respawns, without the ability to change it through the menu.

if it were like that, I wouldn't be here 😄 ok, look how it works for me, the rights are issued:
1) if the config is standard, then while I’m on the server, the selected skin does not change even after respawn, but as soon as I rejoin the server, the skin becomes my standard
2) if I set random in the config, then after respawn the skin changes to random, BUT, when I rejoin to the server, the skin selected in the menu remains

As a result, for now I commented out the contents of the OnPlayerRespawned hook and turned on random in the config, so I got the skin saved while the player is on the server, and the skin saved when rejoin to the server, thank you)
like this, but with /* */ (I didn’t post part of the code, although the plugin is currently free) :

        private void OnPlayerRespawned(BasePlayer player)
        {}

 

Edited by aimacak
KILL-TO-HEAL

Posted

Привет , можно тебя попросить сделать одну опцию ?

Мне нужна опция чтоб админ мог принудительно ставить скин определенным игрокам через серверную комманду , например :

wear {steamid} {wear id от 0 до 8}
 

ппимерно так ^^ буду очень благодарен !

☜Марат☞

Posted

2 hours ago, KILL-TO-HEAL said:

Привет , можно тебя попросить сделать одну опцию ?

Мне нужна опция чтоб админ мог принудительно ставить скин определенным игрокам через серверную комманду , например :

wear {steamid} {wear id от 0 до 8}
 

ппимерно так ^^ буду очень благодарен !

можно. Нужно будет блокировать этому игроку смену скина из игрового интерфейса?

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 3
  • Love 3

User Feedback

1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.4k

Files Sold

Total number of files sold.

2.3m

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.