CaptureTheFlag

Capture the flag event for EventManager

Total Downloads: 1,284 - First Release: Dec 24, 2016 - Last Update: Oct 27, 2017

5/5, 4 likes
  1. capture the flag is not showing up in my event manager. im guessing because of the update.
     
  2. It's been out of order for over a week. It's a drag too. I miss it. I miss it so much.
     
  3. (15:21:26) | Error while compiling: CaptureTheFlag.cs(994,67): error CS1503: Argument `#1' cannot convert `System.IO.MemoryStream' expression to type `byte[]'

    :'''(
     
  4. Thank you for making the plugin it was so much fun to play our community misses it and we do hope there will be a fix soon.
     
  5. I was able to fix the above error and get capture the flag running

    change
    uint textureID = FileStorage.server.Store(stream, FileStorage.Type.png, CommunityEntity.ServerInstance.net.ID);

    to
    uint textureID = FileStorage.server.Store(www.bytes, FileStorage.Type.png, CommunityEntity.ServerInstance.net.ID);

    However the event is still buggy I'm having other problems I cant figure out
     
  6. Without a timer it works fine, when a timer is set after the time is up you respawn with no kit and other players can't see you. No commands work and can't type kill in console.


    Code:
    10:54 [Error] Failed to call hook 'GiveKit' on plugin 'Kits v3.2.9' (NullReferenceException: )
    10:54 [Stacktrace]   at (wrapper managed-to-native) UnityEngine.Component:get_transform ()
      at BaseEntity.get_currentTemperature () [0x00000] in <filename unknown>:0
      at PlayerInventory.ServerUpdate (Single delta) [0x00000] in <filename unknown>:0
      at PlayerInventory.OnClothingChanged (.Item item, Boolean bAdded) [0x00000] in <filename unknown>:0
      at ItemContainer.Insert (.Item item) [0x00000] in <filename unknown>:0
      at Item.SetParent (.ItemContainer target) [0x00000] in <filename unknown>:0
      at Item.MoveToContainer (.ItemContainer newcontainer, Int32 iTargetPos, Boolean allowStack) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.GiveItem (.PlayerInventory inv, .Item item, .ItemContainer container) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.GiveKit (.BasePlayer player, System.String kitname) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.Kits.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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
    10:54 [Error] Failed to call hook 'OnEventKitGiven' on plugin 'CaptureTheFlag v0.1.62' (NullReferenceException: )
    10:54 [Stacktrace]   at (wrapper managed-to-native) UnityEngine.Component:GetComponentFastPath (System.Type,intptr)
      at UnityEngine.Component.GetComponent[CTFPlayer] () [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CaptureTheFlag.GiveTeamShirts (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CaptureTheFlag.OnEventKitGiven (.BasePlayer player) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CaptureTheFlag.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.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 
     
  7. Still showing this error when loading:

    Error while compiling: CaptureTheFlag.cs(994,67): error CS1503: Argument `#1' cannot convert `System.IO.MemoryStream' expression to type `byte[]'
     
  8. I posted a fix to that above
     
  9. Wulf

    Wulf Community Admin

    Wulf updated Capture The Flag with a new update entry:

    0.1.63

     
  10. I would love some help setting up spawn files.. I think I created a spawn file, named it Flag with 1 spawn point, I created by looking at where I wanted it doing the add command. Then I saved it.. I created another spawn file with 2 spawn points, 1 on each side of the arena. I did event start after I set up the event and it says starting.. nothing happens. Its only me testing it out. I have min players on 1.. But I can figure out..

    Thanks in advanced!
     
  11. When setting your spawn points, you need 2 spawn files 1 named CTF_ASpawns and the other named CTF_BSpawns (you can change these names in the config, but these are the defaults).

    When creating each spawn file, the FIRST spawn point, will be the flag spawn, so make the very first spawn point on each spawn file the point you want the flag to spawn, make sure to make a few extra spawn points also, for the player spawns, in each spawn file, you need minimum 2 spawn points, one for each flag, and one for player spawns.
     

  12. Another note: You have to stand on the exact place you want the spawn to be set, not by looking from distance!
     
  13. Correct
     
  14. Is this plugin working? When I set it up I get only one flag and nowhere to return it to and the flags are on the players even after the event.
     
  15. Did you set up 1 or 2 spawnfiles?
     
  16. Yes the spawns work fine but only one teams flag spawns in and the other teams flag location just have a little glitchy spot you get stuck on. Also once the person picks up the flag that does spawn where do they take it we tried the other flag spawn and the player spawn and neither worked. After killing the person with the flag they will spawn with a flag on their head randomly and only some people can see it.
     
  17. You did not answer the question. It sounds like you have 1 spawnfile set up for CTF.
    If the flag spawns on a glitchy location, you set it up wrong.
     
  18. No i have two spawn files and they work and the two teams only spawn on the spawn markers that are not #1 for each file. So spawn files are both setup correctly. issue is that the second spawn file location #1 is just a glitchy area on the map when the event starts instead of an actual flag. I did change the names of the spawn files to flag1 and flag2 and updated the config as well to match. I am also placing the flags at the top of a tower i build so i dont know if that causes any issues. Also where do you take the flag once you have it?
     
  19. lol, do not place your own flags. This can cause problems!
    If every spawnoint is set up correctly, the flag should spawn on #1 spawn of each team.
    If team a captures team b flag, they have to return it to their own flag on #1 spawn point.
    If the enemy has your flag and you want to deliver a flag, your team first has to kill the other teams flag holder and your flag has to return on your #1 place untill you can deliver the flag.

    If you end up stuck spawning on a spawn point, you have to set the spawnpoints up correctly and try it again. For more info you can pm me.
     
  20. When i say placing the flags i mean that is where spawn #1 is for the spawn file i do not actually place anything there during the event. I do have a zone covering my arena area is there any zone functions that will break it?