capture the flag is not showing up in my event manager. im guessing because of the update.

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
-
-
(15:21:26) | Error while compiling: CaptureTheFlag.cs(994,67): error CS1503: Argument `#1' cannot convert `System.IO.MemoryStream' expression to type `byte[]'
:'''( -
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.
-
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 -
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
-
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[]' -
I posted a fix to that above
-
Wulf Community Admin
Wulf updated Capture The Flag with a new update entry:
0.1.63
-
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! -
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. -
Another note: You have to stand on the exact place you want the spawn to be set, not by looking from distance! -
-
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.
-
-
-
If the flag spawns on a glitchy location, you set it up wrong. -
-
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. -