Jump to content

Option to view NPC inventory

Closed 1.0.5 1.0.6

GooberGrape
ViolationHandler.exe

Posted

4 hours ago, GooberGrape said:

Add NPC view inventory please.

I like the idea, but how would you want the person to be able to view that inventory? Meaning, how would you expect to be able to target X NPC over Y NPC? IE a command or something else? And would you expect this to work from discord as well, or just prefer to have it in-game (though this may depend on the previous question)?

GooberGrape

Posted

discord all the way.

I bought this just for the discord option. meaning less time I have to be in game.

ViolationHandler.exe

Posted

9 minutes ago, GooberGrape said:

discord all the way.

I bought this just for the discord option. meaning less time I have to be in game.

hahaha fair enough, but I also gotta have a way to target them, so is there something you have in mind?

I'm not sure how exactly you'd expect/want to be able to target an NPC over a player, as I wouldn't wanna populate the autocomplete with NPCs if someones just trying to find a player. But I also don't know how you'd target them any other way, the other issue is, even if they are listed in the auto complete, how would you really differentiate between which is which other than them having a different ID most likely?

GooberGrape

Posted

I keep getting this error

`Loaded plugin AdminTools v1.0.5 by ViolationHandler
[DiscordExtension] [Info]: Discord socket connected!
[AdminTools] AdminTools Bot Ready
[DiscordExtension] [Info]: Your bot was found in 2 Guilds!
[AdminTools] Adding Discord Commands
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.WarnModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.UnbanModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.MuteModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.InventoryView Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.WatchlistModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.UnWatchlistModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.EditBanModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.BanModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.RenameModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.UnMuteModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.KickModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.ResetNameModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.InventoryClear Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)`

ViolationHandler.exe

Posted (edited)

38 minutes ago, GooberGrape said:

I keep getting this error

Hmm, weird, not quite sure why that's happening unless the Discord Extension changed something since my download of it, but I wouldn't think it'd break anything even if he did. I can try and look into it and see what I find out about any possible changes to the extension. Thank you for reporting this!

 

Edit:

Doesn't seem like they changed anything on Discord Extension side, but still not quite sure why you're having that error to be honest, I just deleted my templates myself and reloaded the plugin with no issues

Screenshot_2024-08-17-16-54-36-28_40deb401b9ffe8e1df2f1cc5ba480b12.jpg.40785e0e2024163050b28aeecca56461.jpg

Edited by ViolationHandler.exe
GooberGrape

Posted

28 minutes ago, ViolationHandler.exe said:

Hmm, weird, not quite sure why that's happening unless the Discord Extension changed something since my download of it, but I wouldn't think it'd break anything even if he did. I can try and look into it and see what I find out about any possible changes to the extension. Thank you for reporting this!

 

Edit:

Doesn't seem like they changed anything on Discord Extension side, but still not quite sure why you're having that error to be honest, I just deleted my templates myself and reloaded the plugin with no issues

Screenshot_2024-08-17-16-54-36-28_40deb401b9ffe8e1df2f1cc5ba480b12.jpg.40785e0e2024163050b28aeecca56461.jpg

 

Only half the commands work in discord. when I reload the AdminTools.cs it throws these errors

[DiscordExtension] [Info]: Your bot was found in 1 Guilds!
[AdminTools] Adding Discord Commands
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.UnbanModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.KickModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.UnMuteModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.InventoryView Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.RenameModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.WarnModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.UnWatchlistModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.MuteModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.BanModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.ResetNameModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.WatchlistModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.EditBanModal Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 
[DiscordExtension] [Exception]: RegisterTemplateCallback<DiscordModalTemplate>.CallbackInternal had exception. Callback Data: Template ID: Plugin: AdminTools Template: Modals.InventoryClear Language: en Type: DiscordModalTemplates (JsonException: No parameterless constructor defined for 'System.Collections.Specialized.StringEnumerator'.)
  at Newtonsoft.Json.Serialization.JsonTypeReflector+<>c__DisplayClass18_0.<GetJsonConverterCreator>b__0 (System.Object[] parameters) [0x00094] in <271c58b7a8684db5a2c92be17a81f252>:0 

GooberGrape

Posted

18:19 [Info] Unloaded plugin AdminTools v1.0.5 by ViolationHandler
18:20 [Warning] [DiscordExtension] [Warning]: Using Discord Test Version: 3.0.0.RC.1
18:20 [Info] Loaded plugin AdminTools v1.0.5 by ViolationHandler
18:20 [Info] [DiscordExtension] [Info]: Discord socket connected!
18:20 [Info] [DiscordExtension] [Info]: Your bot was found in 1 Guilds!
18:20 [Info] [AdminTools] AdminTools Bot Ready
18:20 [Info] [AdminTools] Adding Discord Commands

Then goes nuts

ViolationHandler.exe

Posted

Honestly it's weirder that only some of the commands work since they are all created the same way

GooberGrape

Posted

I even created a new bot everything set perfect, double triple checked. rebooted,,, still same error

ViolationHandler.exe

Posted

15 minutes ago, GooberGrape said:

I even created a new bot everything set perfect, double triple checked. rebooted,,, still same error

Are the commands that work always the same commands?

GooberGrape

Posted

5 minutes ago, ViolationHandler.exe said:

Hmm, font looks funky too, what operating system is the server using?

its windows server 2022 or 3

ViolationHandler.exe

Posted

4 minutes ago, GooberGrape said:

its windows server 2022 or 3

Hmm, okay, I'm sorry that you're having these issues, I wish I could help more as of right now, but am out ATM, but am trying to help any way I can while out. I messaged the creator of Discord Extension in the meantime. I should be able to look further into it once I get home, but that will be a couple hours unfortunately. Could you DM me your config (without bot token) on CF or Discord? Should be able to find me in CF discord or can search "papilicker" on discord and add me.

ViolationHandler.exe

Posted

41 minutes ago, GooberGrape said:

Hopefully that error gets figured out.

but  back to the title, would be nice to view bots Inventory also https://gyazo.com/9f127b42a691dc655575f430226747af

with Umod inventory viewer it work see here https://gyazo.com/564ba287315412c019cbfdadcb8ff526

Ohhhh, okay, yea if the bots have unique names it's probably easier, I was thinking you meant bots that are basically just numbered, but that makes more sense. Do you mind sharing which plugin you use for the NPCs? I think it may help in trying to add the feature. The downside to the way uMod one does it is that then you need to be constantly listening to the players input. That's why I have a toggle for creative, I could maybe integrate it into creative, though then you'd be required to turn on creative to view inventories via the way Inventory Viewer does it.

ViolationHandler.exe

Posted

37 minutes ago, GooberGrape said:

its windows server 2022 or 3

I'll try to look into compatibility issues with Windows servers once I get home, I think sometimes they lack a DLL which can cause issues, but not sure in this case.

ViolationHandler.exe

Posted

Update:

These errors were a result of a bad Discord Extension version (one that was originally listed in the depends on section). If you have these errors, please download the latest release in the DEPENDS ON section of the plugin. After stopping server and putting in the new DLL, your plugin should have no errors relating to modals and should work fine.

ViolationHandler.exe

Posted (edited)

Changed Status from Work in Progress to Closed

Added functionality in 1.0.6 version.

Changed Fixed In to 1.0.6

Edited by ViolationHandler.exe
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.