Shop command not working
I still have to use 1.4.6 because It the chat option doesn't work, and I just spent 2 all night sessions adding all the new items and I even made all image links get the images from my own web server. Thats when I noticed 1.5.7 was available. The umod threads for this problem all say SOLVED w/o an answer, by PM or whatever, or stale with no answer. I tried to let the new version make a new config but it has no place to put npc, or chat shop. I literally don't know wtf it's supposed to do. None of the examples on the plugin page make any sense as follows:
"chat": {
"0": [
"Build Kit",
"Airdrop"
],
"description": "You currently have {0} coins to spend in this builders shop",
"name": "Build"

First of all you cant have "chat" and "0" and where would the "buy" or "sell" go? Before it was npcid, and "chat" would simply replace where npcid would go . Why not just put a small example for each thing on the instruction page? Basically I have 12 npc's in 12 shopfront stalls sellinf items exactly like it is typed in rust when you hit f1. Starting from weapon and ending with Component. This is a short example of how the instruction should look: (I cut messages to 1 line for this youtube comment)
"Message - Sold": "You've successfully sold {0}x {1}",
"Shop - Balance": false,
"Shop - Shop Categories": {
"12 Gauge Buckshot": {
"buy": "30",
"img": "https://www.YOURimageurl.com/images/gaming/rust_icons/180/ammo.shotgun.png", "item": "ammo.shotgun",
"sell": "20"
},
"Tech Trash": {
"buy": "1650",
"img": "https://YOURimageurl.com/images/gaming/rust_icons/180/techparts.png",
"item": "Tech Trash",
"sell": "1500"
}
},
"Shop - Shop Icon Url": "",
"Shop - Shop List": {
"1271510192": {
"buy": [
"Anti-Radiation Pills",
"Bandage",
"Blood",
"Medical Syringe",
"Large Medkit"
],
"description": "You currently have {0} coins to spend in this shop",
"name": "Medical",
"sell": [
"Anti-Radiation Pills",
"Bandage",
"Blood",
"Medical Syringe",
"Large Medkit"
]
}, THEN CHAT IS ALL 399 items because the old chat wouldn't do categories. I'll keep the buy/sell sections short.
"chat": {
"buy": [
"4x Zoom Scope",
"8x Zoom Scope" ], "description": "You currently have {0} coins to spend in this shop", "name": "General Store",
"sell": [
"4x Zoom Scope",
"8x Zoom Scope"
]
So that is why I would like a new version that lets me make categorized shops with 1 store or npcid. However I don't want the top GUI buttons in my 12 ALREADY categorized NPC shops. All you do is make an example that works on the plugin page. Don't PM with individuals and say SOLVED, when the solution is nowhere to be found, and the examples are incomplete, and dont even work with the new version. LOL the generated config doesn't even work with the new version because it has no NPC or Chat section. BTW my config is 4177 lines long with all items with images, all categorized stores, and the chat store with everything listed from a-z. Seriously just paste what you would do for chat store. Your umod example has no buy or sell so can't work.

Please? Pretty please with sugar on top?

Merged post

Okay, so I figured out everything here, but all the instructions need to be updated, and the solved threads need to have the answer.

I am wiling to help.

AND NO! Wiping out my(or anyones) 4000+ line config IS NOT AN ANSWER, SOLVED, OR AN OPTION!

The plugin itself is awesome, and been waiting for categorys in my chat section for years.
Obviously I would like to make a post just simply giving people my config.

I have basically 12 NPC's doing each of the categorys in the Rust F1 console.
I have 399 items referenced. I just left out the xmas crap.
I also use your new category scheme as chat, but you dont need "0" or "chat" anywhere in the config file.
All you need is the categorys set up.

so on the config end all issues were solved, except the plugin doesn't have the Misc section, button or config category.
Of course I made the category by hand in the config, then I added the misc button and the writing of the default config, in the GUIShop.cs file.
It would be awesome if you'd add that in the next update.
Heck I'd give you mmine and you can look it over.

I made each button 5 wide with 1 spacing and moved them all to the left with the Misc category button between components and traps, just like in the game. Changed the font from 14 to 12 as well.
I need the extra space on the right so the lustymap mini map in the top right corner don't need to be closed to use the component button.

So the plugin now creates the Misc category, and the button for it.

I actually like how when using NPC's selling one category has the buttons to led players browse all the categorys.

I really like your additions to the plugin, just the plugin page needs to be updated.
I also don't want to have my own version of the plugin and have to remember to add Misk and do all the button adjustments. There are things I don't know how to fix when a plugin fails to compile after a Rust update, so I would like a legit version with Misc added and about 2" of space on the right.

So anyone needs help, reply.
My config completely works with 12 npc's and chat, and has all but the xmas crap. Config is now 4273 lines long, lol.
I also have all the images, including the xmas crap i can zip up for folks, if they want to host their own images.
If you want my config, you could quickly replace my generic url line with your url.

I got away from the wiki links because they add /33/57/, and random numbers that differ for each line so I had to do 399 lines one at a time.

so here is a generic of just one of the 399:

"img": "https://www.yoursite.com/images/gaming/rust_icons/barricade.woodwire.png",

All are now the same path and can now be find/replaced in a second.
I have a problem I can use only NPC or only /shop cmd I can't use both... I named one shop as "0" but it is not working. can you give me your config to try it? Thank you!

My god, please help me, I've been trying to fix this chaos*. But the how-to section is complete lies..

Sorry? :/

But like it's true regardless. 

5e7f3953f15bd.png khan
My god, please help me, I've been trying to fix this bull shit devs crap. But the how to section is complete bs. 

Please be respectful when posting on the forums, thanks.

I find it hard to believe a plugin can even be kept on the umod site when you literally half to re-code the entire thing. just for it todo literally anything. 

The default json config file it puts out on the server is 100% different from the currently posted Default Config. Not to mention if you try to add or edit anything to it you just get "You may not use the chat shop. You might need to find the NPC shops." Which is funny cuss I don't have that one... 

5e7f3953f15bd.png khan

I find it hard to believe a plugin can even be kept on the umod site when you literally half to re-code the entire thing. just for it todo literally anything. 

This plugin has had a lot of maintainers over the years, with the current not being the original author. I'm sure a re-write is overdue for it, but that's dependent on those willing and time permitting. Developers are generally here in their free time and many may not always be as experienced as you.

Yeah I know sadly it's been around since before 2015 I think... 

unknown.png?width=1204&height=677

I'm working on a complete re-write of this broken spaghetti code... 

unknown.png?width=1204&height=677

I think as long as I list the old authors in credits or whatever it'll be fine if I just upload this as Khan's Refined Version GUIShop... 

It won't need any dependency either hopefully... I'll just merge the dependency with a skinned down version. 

5e7f3953f15bd.png khan

I think as long as I list the old authors in credits or whatever it'll be fine if I just upload this as Khan's Refined Version GUIShop... 

It won't need any dependency either hopefully... I'll just merge the dependency with a skinned down version. 

If it is completely re-written, it would be acceptable, otherwise we do not accept modified versions. If you have a suggestion for improvements, I'm sure the author would be more than willing to consider them.

Lol, you wanna get cute with me bub? First of all the owner or whatever now would half to re-register every year to try and keep that tone up. 

When I get done modifying the hell out of this and if you deny it... I'll half to take legal action for singling me out. There are people who barely make changes and upload stuff here. (I won't call them out cuss you'd probably revoke them)

1. We both know the original author is long gone and the OG code is at least 5 years old.

2. Many people have patched it or made changes.

3. No one has registered it as copyright since released.

4. I'd be uploading it as a public resource... With all the previous author's/maintainers Credits...

5. We both know that this plugin was way past an overhaul... (any basic user couldn't figure out how to use it as is.) 

6. Oh, it will be completely re-"written" But the fact is bud I bought a copy of the game like everyone else. And Oxide is free... So not everything actually will need to be "removed" just changed in a way that is different. There are only so many ways you can change something. And unity is a free open-sourced product as well. 

As far as I know, you can copyright your code. but what you copyright is exactly your code.
- You can change variable names. It is still your code. (Depending on the country.)
- If you reorder the lines, it's not the code you copyrighted any more, and you have to register it again.
This means, in your example, if someone rearranges the function calls, the code is a different one. If variable assignments change, the result of the code could be different. It would be a new code.
It really depends on details on the code, and mainly on the laws regulating copyright in the place, you register your code.

I worked many years ago for an IT services company that was a spin-off of a lawyers firm. When they changed the business model, from delivering results to its customers to delivering software to customers, they decided to copyright code.  We had to send a new copy of the whole source code every year, to renew rights properly. (In theory, we should have had to deliver a copy each time the code was changed.)

The original author is still around actually. Our guidelines and acceptance of plugins here is not black and white, and what we allow does not include randomly modified versions of existing plugins. You're free to have your own views and opinions, but the attitude and that behavior is not welcome here. Plugins would be considered "all rights reserved" unless otherwise specified, with many being under a license of some sort. The acceptance of plugins on our site is based on original work, not modified versions of others; this is for both rights and to not step on toes of other developers.

You threatened me first! and I was merely defending myself.  If you had said; as long as you follow our guidelines. Then I wouldn't have had to go so far. 

But ya okay I haven't even uploaded anything yet. but it probably won't matter now anyway I am probably getting blocked either way now. 

And like I posted above I'm basically making a completely different version anyway. that will not be the same in any way now. 

I'm sorry you got that impression, but that was not a threat, that was a simple statement of how our guidelines and submissions work here. As I said, you're welcome to submit your own, original works; not code from others or modified versions. If you have suggestions or changes for an existing plugin, you're welcome to otherwise contribute those to the existing plugin.

I'm just gonna drop this here right off your guidelines page...

unknown.png?width=1442&height=227

5e7f3953f15bd.png khan

I'm just gonna drop this here right off your guidelines page...

unknown.png?width=1442&height=227

Yup, and that follows everything I was saying above. We do not deny similar ideas, but it must be your own work and not simply a modified version. The authorization part is in respect to original work that may have been done privately or elsewhere, but still original works.

Fact. States. "Discourage" and do not accept "Direct" Copying (or Forks).  Generally, tho do not deny plugins simply on the "basis that they share any of the follow components listed below". in the above image ^

unknown.png

This ^ okay is called a GUI Shop. It's based on the Economics Plugin.+ supports NPC. It has dependency packages to even work. But requires a lot more to set up, To anyone without the knowledge, a vast majority of people couldn't use this plugin "as is". You can't do any kind of customization as far as changing categories names, moving them, changing colors, How-to section is wrong/incomplete, the config it generates is maybe 8 game items top? it has no default image for items. This is an extension plugin. Completely different. 

I'm offering a stand-alone Shop. That would have no dependencies, ya it may not support NPC. But at least it'd have RGB color support based on unity's feature they added back in 2014. It'd have its own default rust logo for items, I'm throwing out the transparency stuff, throwing out the vast majority of anything that's not apart of unity's or oxides call structures. :/ 

I'd only even list the creditors as a courtesy based on their plugin idea. I got the concept idea to make my version of what A shop going to be/should be... But you sure do make it hard to wanna do that.

 

Honestly, with the GUIShop plugin, everyone has to code there own version just to use it. There are over 500 rust ID's in the game total. Most people who can add them only use about 300 maybe 400ish. Manually entered.  It's ludicrous. My idea is to have them all already added...

 

At what point does it become My own Plugin? Just because I make a plugin based on another's work that I've seen. Doesn't make it a CopyRight. It doesn't make it Similar. The fact is all it does is make another "Unique Plugin" okay available to everyone just without all the hassle and headache.

Sincerely and apologies Khan. <3