Jump to content

crunch

Creator
  • Posts

    92
  • Joined

  • Last visited

Everything posted by crunch

  1. crunch

    Solo Notifier

    Version 1.0.0

    333 downloads

    This is a simple plugin that will notify a player if the base they hit/shoot/damage is owned by a solo player. Often it can be obvious if the player is solo if they're using a key lock, but if they decide to use code locks, or you're using a plugin like Automatic Authorization then it's not always possible to tell. Some players would rather not raid a solo because either: They don't think it'll be worth it They're nice and would rather leave the poor solo's alone (let's face it, it's 1) Optional dependencies: UINotify Notify How does it work? When a player damages a part of a base (wall, door, foundation etc) the plugin will check if the player is solo, and if so pop up the notification. The same player won’t be notified again within the time set in the config. If the attacker owns the prefab, or is authed on the tc, they are ignored. If the base is decaying, it is ignored. Config example "Cooldown time after attack": 300. (When a player is notified, how long to wait until they can be notified again) "Message to attacker": "This player is a solo" (message that will be shown to the attacker in chat or via UINotify) "Log to console when player notified": true (for the server owner to see when a player has been notified) "UINotify Type (see https://umod.org/plugins/ui-notify)": 1 (UINotify specific, and determines which message number to use) "Prefabs to check": [ (a list of prefabs that will trigger a notification when hit. These can be considered a wildcard, so door.hinged includes door.hinged.wood, door.hinged.metal etc) "door.hinged", "door.double.hinged", "window.bars", "floor.ladder.hatch", "floor.frame", "wall.frame", "shutter", "wall.external", "gates.external" ] UINotify Config example This is an example of the UINotify Type section where you would choose the icon, title, color etc of the popup. This is not required if you just want the chat message instead. "Notifications (type - settings)": { "1": { "Background Color": { "HEX": "#000000", "Opacity (0 - 100)": 98.0 }, "Enable Gradient?": true, "Gradient Color": { "HEX": "#90EE90", "Opacity (0 - 100)": 35.0 }, "Sprite": "assets/content/ui/ui.background.transparent.linearltr.tga", "Material": "Assets/Icons/IconMaterial.mat", "Icon Color": { "HEX": "#90EE90", "Opacity (0 - 100)": 100.0 }, "Icon Text": "X", "Icon Text Color": { "HEX": "#FFFFFF", "Opacity (0 - 100)": 100.0 }, "Title Key (lang)": "Just a heads up", "Title Color": { "HEX": "#FFFFFF", "Opacity (0 - 100)": 50.0 }, "Text Color": { "HEX": "#FFFFFF", "Opacity (0 - 100)": 100.0 }, "Fade Out": 1.0, "Fade In": 0.1, "Sound Effect (empty - disable)": "assets/bundled/prefabs/fx/notice/item.select.fx.prefab", "Image Settings": { "Enabled": true, "Image": "https://i.imgur.com/vfOfdU9.png", "AnchorMin": "0 0", "AnchorMax": "0 0", "OffsetMin": "12.5 12.5", "OffsetMax": "37.5 37.5" } }
    Free
  2. crunch

    Player Ranks

    Not sure if it's just my server, but landmines have had a bit of a resurgence 😄 Any chance of adding something like "landmines stepped on", or "times exploded" or something like that?
  3. Ok if any other poor soul happens across this, apparently it's just part of the game, something to do with missions.
  4. I've just noticed this in my console as well... it's super sporadic, only shows up really randomly
  5. crunch

    Player Ranks

    Brilliant, thanks, looking forward to it 🙂
  6. crunch

    Player Ranks

    Ooh, it was not happy: SaveLeaderboard Failed to call hook 'SaveBoard' on plugin 'PlayerRanks v2.1.9' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.PlayerRanks.SaveBoard (ConsoleSystem+Arg arg) [0x00007] in <e810bdb5526b4b5b9babdeec6dc58951>:0 at Oxide.Plugins.PlayerRanks.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x0173d] in <e810bdb5526b4b5b9babdeec6dc58951>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <e23ba2c0f246426296d81c842cbda3af>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <50629aa0e75d4126b345d8d9d64da28d>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <50629aa0e75d4126b345d8d9d64da28d>:0
  7. crunch

    Player Ranks

    Sorry one more thing (for now :D), I think this has come up before, but would it be possible to get the "create leaderboard" function as a console command? It'd be suuuper handy for automating it for displaying the data on websites etc
  8. There's a BP share plugin out there already, but it's just missing one useful feature to prevent abuse. Ideally I'd like it to revert a user back to only have the BP's they've learned themselves if they leave the team. So if they're in a team, they share their BP's as usual. If they leave, they lose all shared BP's and just go back to the default Rust behaviour of keeping whatever they've learned themselves. Thanks!
  9. crunch

    Button command syntax

    Hi, with the commands that can be run with buttons, is it possible to have them run / commands in game? For example, I've set up a Skinbox page, and it'd be cool to have the button open skinbox when pressed. I've tried the following but it doesn't seem to like it, not sure if there's a specific syntax required: "Setting buttons": [ { "Button unique name - [ Setting text in lang ]": "SBOpen", "OffsetMin": "-180 168.75", "OffsetMax": "-100 198.75", "TextAnchor [ Text alignment ] | 0 - 8": 4, "Command": "/skinbox", "Button color": "0.517 0.521 0.509 0.5", "Text color": "0.75 0.75 0.75 0.75", "Close menu after clicking": true } EDIT: Never mind, worked it out. For everyone else it's: "Command": "chat.say /skinbox"; For example.
  10. crunch

    XInfoMenu

    Right. Ok, well for anyone else trying to decipher this thing, you can change the text color and font size for text items in the lang file with the following tags: "RULES2.1": "<size=30>SERVER RULES</size>", "RULES2.2": "<color=#00BFFF>1.</color> No Griefing",
  11. crunch

    XInfoMenu

    Ok, but that's just the default configuration, aside from the images you've used. It'd be extremely helpful to have an example config that matches the one in your images, as adding each block of text and moving them around into position takes forever, and you have to reload the plugin every time you make a change to see if it's how you want it. Your example is, I imagine, how a lot of people would set theirs up and it would give a much easier base to work with to see how it all works. I'm sure it's easy for you, as you built it, but for a newcomer to it it's quite daunting.
  12. crunch

    XInfoMenu

    Hi, would it be possible to get an example of your config from the gif image? Would be helpful for getting the various text positions right without a lot of trial and error, as well as how to change the size of text for headings etc, as there doesn't seem to be a fontsize option? Thanks!!
  13. crunch

    Player Ranks

    Hi there, just had a player ask if resources collected from the giant excavator count towards the resources gathered stats?
  14. crunch

    Player Ranks

    Yep that seems to have sorted it out, thanks!
  15. crunch

    Player Ranks

    Ok no worries, I didn't use the wipe command, but it did wipe overnight due to the server wipe etc. I'll give it a reload and see what happens. Not a big deal as it definitely still seems to be working.
  16. crunch

    Player Ranks

    This just started happening after todays Rust update. Bit weird as it all seems to be working fine, and it does report SQL has saved (and I've verified it is saving). Always says it can't connect though. 08/04/2022 17:52:26 | [PlayerRanks] SQL saving is complete. 08/04/2022 17:52:26 | [PlayerRanks] SQL saving is complete. 08/04/2022 17:52:23 | [PlayerRanks] Please do not reload, or unload, PlayerRanks until save-completion message. 08/04/2022 17:52:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 17:52:22 | [PlayerRanks] Couldn't connect to SQL. Please check config credentials and ensure that SQL host is whitelisting Rust server IP. 08/04/2022 17:52:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 17:22:26 | [PlayerRanks] SQL saving is complete. 08/04/2022 17:22:26 | [PlayerRanks] SQL saving is complete. 08/04/2022 17:22:23 | [PlayerRanks] Please do not reload, or unload, PlayerRanks until save-completion message. 08/04/2022 17:22:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 17:22:22 | [PlayerRanks] Couldn't connect to SQL. Please check config credentials and ensure that SQL host is whitelisting Rust server IP. 08/04/2022 17:22:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 16:52:26 | [PlayerRanks] SQL saving is complete. 08/04/2022 16:52:26 | [PlayerRanks] SQL saving is complete. 08/04/2022 16:52:23 | [PlayerRanks] Please do not reload, or unload, PlayerRanks until save-completion message. 08/04/2022 16:52:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 16:52:22 | [PlayerRanks] Couldn't connect to SQL. Please check config credentials and ensure that SQL host is whitelisting Rust server IP. 08/04/2022 16:52:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 16:22:27 | [PlayerRanks] SQL saving is complete. 08/04/2022 16:22:27 | [PlayerRanks] SQL saving is complete. 08/04/2022 16:22:24 | [PlayerRanks] Please do not reload, or unload, PlayerRanks until save-completion message. 08/04/2022 16:22:22 | [PlayerRanks] PlayerRanks local database was saved. 08/04/2022 16:22:22 | [PlayerRanks] Couldn't connect to SQL. Please check config credentials and ensure that SQL host is whitelisting Rust server IP. Curious if it's just me 🙂
  17. crunch

    Bit of trouble with mysql

    Ok, well after trying a bazillion things, downgrading from mysql 8 to mysql 5 fixed it immediately. So I guess there's some compatability issue there somewhere. Working again now anyway 🙂
  18. crunch

    Bit of trouble with mysql

    I had it up and running for quite a while on a different host, but we've moved servers so I had to set up a new mysql server on a digitalocean droplet. I can connect to it fine from my laptop and a different linux vm: mysql -u myuser -h xx.xx.xx.xx -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 9 Server version: 8.0.28-0ubuntu0.20.04.3 (Ubuntu) Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | rustinated | +--------------------+ 2 rows in set (0.27 sec) mysql> But playerranks doesn't like it for some reason: "MySQL": { "useMySQL": true, "autoWipe": true, "sql_port": 3306, "sql_host": "xx.xx.xx.xx", "sql_db": "rustinated", "sql_user": "myuser", "sql_pass": "mypass", "tablename": "playerranksdb", "LBtableName": "playerranksLeaderdb" } (the IP, user and pass are the same of course). In my droplet I basically allowed all IP's to 3306 in UFW, but also specifically allowed the IP of the server box. I still just get this: playerranks.save [PlayerRanks] Couldn't connect to SQL. Please check config credentials and ensure that SQL host is whitelisting Rust server IP. [PlayerRanks] PlayerRanks local database was saved. Calling 'CmdSave' on 'PlayerRanks v2.1.9' took 590ms Not sure what I'm missing... Does the server box need mysql installed, or does this just take care of it - https://umod.org/documentation/api/database
  19. crunch

    NRE OnTeamLeave

    Was it fixed?
  20. crunch

    Possible issue?

    Ok then
  21. crunch

    NRE OnTeamLeave

    Failed to call hook 'OnTeamLeave' on plugin 'TeamFix v1.0.4' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.TeamFix.OnTeamLeave (RelationshipManager+PlayerTeam playerTeam, BasePlayer player) [0x0006d] in <08a772bea146490091e49dec4b515bfe>:0 at Oxide.Plugins.TeamFix.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x002fd] in <08a772bea146490091e49dec4b515bfe>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0 at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00060] in <dfcb48ea05694263bbc08e62a39c274c>:0
  22. crunch

    Possible issue?

    This has happened at least one more time as far as I know
1.7m

Downloads

Total number of downloads.

8k

Customers

Total customers served.

121.5k

Files Sold

Total number of files sold.

2.5m

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.