Jump to content

DLC Toggle, Commands & Lang File

Pending 2.2.30

Tikomatura
  • in Kits
Tikomatura

Posted (edited)

Hey there,

I'll be making this quick for you. I'd love to be able to use commands such as kits.give using the ingame chat instead of just the console.
Additionally, there doesn't seem to be a toggle for dis-/allowing DLC Skins in kits for players, who do not own them leading to the items just being removed entirely rather than just removing the skins.
Moreover, when editing "UI.Title" in the Lang File, nothing changes. <---! while this still does not seem to bring any visual change, i found the proper variable inside the lang file to edit for my needs.
Lastly, the description displayed for individual kits does cut out after a few too many words. No apparent config value to increase the box/amount of lines used or change its size (other than making the text very small). Maybe take some inspiration from uMod Kits.

A bonus suggestion: Have an option to hide the "all" category or at least an option to hide kits from the all category which have been assigned into a different category.

Cheers!

Edited by Tikomatura
Clarification
MeventSupport

Posted

Hi. We're looking into your problem, we'll get back to you later

Tikomatura

Posted

Thank you for looking into it.

In the meanwhile, I've stumbled upon the text clipping differently for available and unavailable kits as seen in the screenshot.grafik.png.9fc2d87fe12854f52d83d08f7325efcf.png

As seen, only the text for available kits is higher than the one for unavailable kits which leads to clipping issues with the image depending on the image used. Regardless of image, the unalignment still looks unpleasing to the eye once noticed.

 

Kindest regards
Tikomatura

Tikomatura

Posted

I haven't changed any offsets permanently other than when testing around, trying to find the right values hence the config should be default for the most part.

Kits.json

Tikomatura

Posted

Forgot to mention another actual issue:

Migrated Kits can not be properly edited using the ingame UI. You can edit blank fields and the description etc but you can't edit existing items. Trying to do so will just close the Edit Interface.

 

Tikomatura

Posted

Hey there - I couldn't find a place to change the "purchase this kit at servername.gg" description on a per-kit basis rather than just for all of them in the lang file. As you can tell, I've got different sources for optionally unlockable kits which would lead to irritating results. 

Thank you!

grafik.png.b5a8581591a6bebb6a8f57381a2897f2.png

 

 

MeventSupport

Posted

23 hours ago, Tikomatura said:

Forgot to mention another actual issue:

Migrated Kits can not be properly edited using the ingame UI. You can edit blank fields and the description etc but you can't edit existing items. Trying to do so will just close the Edit Interface.

 

Thanks for telling us, we'll check it out

  • Like 1
Tikomatura

Posted

Hey, its me again. Found another very annoying issue.

  "Auto Kits": [
    "autokit_default"
  ],
this currently just defines which kits are autokits - duh. all kits listed here, are given automatically during spawn regardless of kit permissions specifically. this however disables us to have different autokits per user/rank (permission). id instead suggest an approach as following:

----- oxide group example -----
default: kits.autokit,default (...)
donator: kits.donatorautokit (...)
------- 

------ config example --------
  "Auto Kits": [
//    "autokit_example_name" : "kits.<permission>",
       "autokit_default" : "kits.autokit.default", <----- Will be reffering to this as autokit 1 or 1 further on as its the 1st place in the array
       "autokit_jackhammer" : "kits.whateveridlikeofcourse", <--- Will be reffering to this as autokit 2 or 2 further on as its the 2nd place in the array. 
       "autokit_donator" : "kits.donatorautokit" <----- Will be reffering to this as autokit 3 or 4 further on as its the 3rd place in the array
  ],

now with this config, its clear what a user like me would be assuming to be doing. giving different autokits per permission. a user in the default group would spawn with A whereas a donator would spawn with D. however, in the current version of the plugin the donator would spawn with both, A and D as there is no configuration option to only give a player the highest array entry. 
additionally, users may want to merge different autokits. if we assume autokit 1 and autokit 3 are full spawn kits and autokit 2 is only a jackhammer for someone who wouldve bought/unlocked this perk somehow, youd end up giving a donator only the jackhammer instead of the full kit or vice versa, if the jackhammer would be further down in the array.
hence id suggest a per-kit config value which lets configurators either have an autokit overwrite all prior autokits a user may have access to or to add onto the autokit(s) a user may have access to (the way it works right now at the moment). this is the quickest and cleanest solution i could think of though its 3AM and i surely am not anywhere as experienced as a coder as you are. if you find a better solution to this issue, you'll surely implement it wisely.

Thank you for your attention - hope to have a working change for this soon!


PS.: after reinstalling the plugin on another server (copied it from my test server to production) and copypasting the data + config instead of migrating from umod kits and redoing everything from scratch again (duh), the offsets in the text boxes i reported earlier on were gone hence id assume this was a sideeffect of migrating. 

2.2m

Downloads

Total number of downloads.

10.1k

Customers

Total customers served.

146.2k

Files Sold

Total number of files sold.

3.1m

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.