MagicStakes

Moved

Total Downloads: 210 - First Release: Jun 4, 2017 - Last Update: Jun 7, 2017

0/5, 0 likes
  1. Norn submitted a new resource:

    Magic Stakes - Set which stake you spawn at via command.

    Read more about this resource...
     
  2. Norn updated Magic Stakes with a new update entry:

    0.1.1

     
  3. Seems pretty rare thus far, but this shows up sometimes
    Code:
    11:30 [Error] Failed to call hook 'SetSpawnCommand' on plugin 'MagicStakes v0.1.1' (NullReferenceException: Object reference not set to an instance of an object)
    11:30 [Stacktrace]   at Oxide.Plugins.MagicStakes.SetSpawnCommand (IPlayer player, System.String command, System.String[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.MagicStakes.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (HookMethod method, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Core.Plugins.Plugin.CallHook (System.String hook, System.Object[] args) [0x00000] in <filename unknown>:0
    11:30 [Warning] Calling 'SetSpawnCommand' on 'MagicStakes v0.1.1' took 218ms
     
    Last edited by a moderator: Jun 5, 2017
  4. Haven't been able to replicate, if it happens again and you're active. Try and find out exactly what individuals typed to make it occur? Would be much appreciated :)
     
  5. After more testing I have located what causes it. It is caused when a player respawns but their spawn is gone. For example when you place a stake, setspawn at it, and then chop it out and suicide - you will see this issue.

    Another issue, which I think you probably know about, is that stakes are only cleaned out of the list when server restarts. Perhaps you could add some sort of pruning timer we could set (for example prune every 1 hour) to clean lists of old stakes. Would require a data file probably though.
     
  6. All this literally does it add your name to the spawn list. If a stake is broken it resets the spawn itself I thought? As there's literally no communication between the plugin and server when it comes to respawning etc.
     
  7. ---=== SpawnStakes ===---
    You are authorized at number: {count} Name: {territory}
    Number: 1,2,3,4,5,6,7,8
     
  8. Huh? You want the way the text is displayed to be changed?
     
  9. For me the stakes all stay in the list, even chopped down ones, until restart. Very odd. Thankfully players can not spawn at them even if they stay on the list.
     
  10. Oh really, that's very odd but I guess it's how hurtworld works. Thanks for letting me know will update in a bit.
     
  11. Norn updated Magic Stakes with a new update entry:

    0.1.2

     
  12. Norn updated Magic Stakes with a new update entry:

    0.1.2

     
  13. Yes, you can make a form? to chat no lags
     
  14. In MagicStakes.json in the oxide/lang folder, delete all <color=___> and </color> and leave the rest of the messages in tact. This will remove the colors
     
  15. No, I need this form. And that is not repeated in the chat
    ---=== SpawnStakes ===---
    You are authorized at number: {count} Name: {territory}
    Number: 1,2,3,4,5,6,7,8
     
  16. You can change that in the same file. Just re-arrange the {count}, {territory}, etc the way you want and change the normal text to what you want. If you want it to jump to the next line just hit shift-enter and make sure the next line is still within the quotes of the entry you are trying to edit. But no matter what you do any additional formatting will have a CHANCE of increasing chat lag
     
  17. Problem with that is that people with need the territory name to identify the stake id, as the id's are never the same. Just how they're displayed.
     
  18. Yep that's how it is for now. Perhaps creator can add hook to enable search by territory AND id.
     
  19. ---=== SpawnStakes ===---
    You are authorized at number: {count} Name: {territory}
    ------------- List ----------------
    [ Number: {stake} | Name: {territory} ]
    [ Number: {stake} | Name: {territory} ]
    [ Number: {stake} | Name: {territory} ]
    [ Number: {stake} | Name: {territory} ]
    [ Number: {stake} | Name: {territory} ]
    [ Number: {stake} | Name: {territory} ]