Search Unity

Space Combat Kit (VSXGames) [RELEASED]

Discussion in 'Works In Progress' started by Billy4184, Jul 14, 2015.

  1. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Feel free to ask questions any time! There are plenty more tutorial videos and features coming. I appreciate the kind words and I'm glad it's helping you put your game together :)
     
  2. Wetw0rx

    Wetw0rx

    Joined:
    Jun 30, 2017
    Posts:
    109
    So I got the weapons to work (sort of) but still no HUD or radar visible. Its not a layer mask issue. I cant figure it out though. Works fine in the demo.
    I tried what you suggested but I'm not sure if my calls to the game agent are registering properly (I dont know a good way to check).

    1. In a fresh, empty scene, I dragged in my player controller and my vehicle controller.
    2. I dragged in the SpaceFighterFriendly prefab as a base.
    3. I attached a game agent component to my player, a vehicle camera to my main camera and a vehicle component to my vehicle. I have an event that fires when getting on/off my vehicle controller so I set that to call the game agent enterVehicle().
    4. I deleted the rigidbody and any components dependent on it from the SpcaeFighterFriendly prefab (not needed 99% sure) since it conflicts with my vehicle controller, set all the references in the inspectors of all the components and pressed play...

    At this point, nothing happened. My vehicle controller took possesion of the SpaceFighterFriendly prefab as expected and all my camera and vehicle controls were still intact but nothing to indicate any activity from SCK.

    5. Using the Space Fighter demo scene as reference, I dragged in all the scene scripts present there and then childed a triggerables controls and targeting controls to my player controller gameobject which still has the game agent attached.

    This brought me to where I'm at now (a bit stuck).
    Passing "none" to the game agent upon exiting the vehicle throws an exception (ArgumentException: Object of type 'UnityEngine.Object' cannot be converted to type 'VSX.UniversalVehicleCombat.Vehicle'.). It sees me when I get on but not off (Is there a proper way to pass "null" that I'm unaware of? Or should I write a little script for this?).
    This causes the SCK weapons on the ship to still fire when mouse clicked even after I get off the ship.
    On the other hand, when getting on the ship, I expect the HUD to activate but it doesn't. Activating it manually makes the 3Dradar sphere visible but still no UI (targeting boxes, etc). I really am at a loss as to why. I played with the camera references on the various components but I just broke it more.
    I can hear the radar acquire targets and even cycling them with the N,M,comma and period buttons. I can shoot the guns and missiles hit targets no problem. This indicates that at least the triggerables manager in scene and also the triggerables controls and targeting controls on the game agent are set up and working right. I think I added all the components needed but I have no way to be sure other than bothering you (sorry). Aaaand it still doesn't work.
    Please help Obi-Wan, you're our only hope...
     
  3. Wetw0rx

    Wetw0rx

    Joined:
    Jun 30, 2017
    Posts:
    109
    Sorry if I seem advanced in some areas and a caveman in others, I'm primarily an artist and game designer with limited coding skills on a massively ambitious solo project. I know my way around Unity pretty well though so any wisdom laid out by you will be thoroughly studied and applied. I'm actually loving SCK despite the hardknocks brought on by my own boneheadedness. Your tutorial vids are on repeat in my office since last night. Thanks again, bro. I patiently await the next breadcrumbs lol
     
    Billy4184 likes this.
  4. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Well this kit is for you then! My goal is to make the process of building a game less about raw coding and more about putting blocks (components) in the scene and wiring them (with Unity events) together. Something like unreal's blueprints but using Unity's inspector.

    Sometimes I have to break a big block up into small blocks, so that it gives people the flexibility and customization they need. So it's definitely not a '1-click' game solution but if customers can build unique, highly customized games with this kit without writing code, I think I will have achieved the goal.

    Many more tutorial videos and documentation to come!
     
    Wetw0rx likes this.
  5. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Hey everyone, here's a new tutorial video showing how to create enemy waves! This is a new feature added today, if you have bought the kit PM me to get your hands on it now!



    I have also recently added:
    • Burst fire mode for projectile launchers (guns and missiles).
    • Introduced the Health Modifier component (previously named Damage Emitter) which allows projectile and beam weapons to do both damage and healing.
    • On each Team (scriptable object asset) you can specify which other teams are hostile to it.
    • Ships now appear on radar with the Team of the game agent that is flying them.
    • When a game agent enters a ship, the target selectors automatically switch to looking for the teams that are hostile to the team of that game agent.
    • Hit layer mask added for beam and projectile hits (specify which layers the raycast ignores).
     
    Wetw0rx and francoiscoiscois like this.
  6. Wetw0rx

    Wetw0rx

    Joined:
    Jun 30, 2017
    Posts:
    109
    Success!! I made an extra camera and set it as the vehicle camera rendering depth only and masking UI and turrets layers for the radar. This allows me to keep my own vehicle and camera control while SCK calls the dummy cam when entering vehicle. When exiting, I made a dummy vehicle named "On Foot" and just set that and its dummy cam via events, etc. It only took a few days of obsessing over it but SCK is now fully integrated into my project. AIs, SCK weapons and full radar with the holographic thingy all working flawlessly along side my own systems. The key was nailing down all the necessary SCK components and placing them precisely in the hierarchy and setting up the right references and events. Not so east since I had to tailor it to fit what I already got. It took a ton of trial and error but epic space battles are now erupting in the outer rim colonies, lol.
    I may have some questions about extending the power management system but for now I'm way too busy dogfighting and testing different ship and weapons set ups/tweaks (mega fun, btw). Thanks again for the great tutorials and stellar asset. I'll leave a great review on the asset store for sure.
     
  7. frankadimcosta

    frankadimcosta

    Joined:
    Jan 14, 2015
    Posts:
    176
    [OT] A missed masterpiece:

     
  8. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Glad you got that working, and I appreciate the review!

    I didn't quite understand why you needed that extra camera. If you would like to comment here or PM me with details of the specific things that were most troublesome for setting up the parts of the kit that you needed, I will try to make them easier to do.

    EDIT @Wetw0rx I didn't see one of your earlier comments. Here's a video showing how to release control of the camera when the player exits a vehicle, highlighting a couple of changes I had to make.

    Here's a link to the SCK discord where you can find a channel with a link to the latest version of the kit (the channel can be accessed by PM'ing me your invoice numbers):
    https://discord.gg/BxfQfKZ

     
    Last edited: Jan 2, 2020
    Wetw0rx likes this.
  9. Roachie

    Roachie

    Joined:
    Aug 2, 2009
    Posts:
    66
    Its been awhile since i have used this project and i am excited to checkout all the new features.

    I have a fresh install of Unity 2019.3.0f3

    fresh install of space combat kit gives me a ton of compile errors

    Assets\SpaceCombatKit\TextMesh Pro\Examples & Extras\Scripts\TextConsoleSimulator.cs(84,33): error CS0246: The type or namespace name 'TMP_Text' could not be found (are you missing a using directive or an assembly reference?)

    If i install text mesh pro it gives me namespace errors

    Am i missing something ? Did not see anything in the documentation about what other assets are required e.t.c

    Any help would be much appreciated.
     
  10. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    @Roachie you'll have a lot of fun with it!

    I recommend deleting the TextMesh Pro folder under the Space Combat Kit, and reimporting the examples and extras when you install it again.

    Looks like Unity changed a namespace in one of their updates.
     
  11. Roachie

    Roachie

    Joined:
    Aug 2, 2009
    Posts:
    66
    @Billy4184 Thanks for the tip Billy. I deleted the folder, then reimported via the Unity editor (Windows->TextMeshpro->Essentials and Extras and that fixed it.
     
    Billy4184 likes this.
  12. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Sent an update to the store:

    - Vehicle Class and Module Type are now scriptable objects, not enums. Now, you can easily create new ones in your project by Right-Click -> Create in the Project tab!

    - Made it easier to display stats for different types of modules in the loadout by adding a base class for general module stats, as well as derived classes for guns and missile module stats. You can derive from the base class to display specific info for your own modules.

    - Added the CameraTarget component to store CameraViewTargets on a vehicle. Previously they were stored in the Vehicle component, which made the vehicle and camera system unnecessarily dependent.

    Check out the Space Combat Kit now!

    img.jpg
     
    Adrad likes this.
  13. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Hey everyone, a big step toward making this kit even more powerful and easy to use with the addition of Condition Triggers!

    Condition Triggers allow you to check a set of conditions (functions that return True or False) before running a function. They can be used anywhere in your game to make sure functions are running only when they should.

    Check out this example where a weapon checks if ammo is available before firing:



    Happy developing!
     
  14. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Hello everyone! To make all sorts of stuff in this kit easier to create, I am adding wizards that allow you to define specific properties of an item and then have it created for you instantly!



    Don't forget to pick up your copy of the Space Combat Kit here!
     
    Silvermurk, JFI66 and hjohnsen like this.
  15. JimTheHermit

    JimTheHermit

    Joined:
    Oct 24, 2019
    Posts:
    3
    Um, is there anymore to the User Guide besides the 8.5 pages? My ship flops around in a circle in Scene view. Also, how do you fly the ships? W and S control thrust, but it doesn't stop the rotating
     
  16. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Hello and thanks for purchasing the kit!

    This is the link to the current documentation (28 pages so far). I am working on creating online documentation as it will be much easier to maintain and always up-to-date.

    https://www.dropbox.com/s/5rfhkpu9vkuw0xm/SpaceCombatKit_2.0_UserGuide.pdf?dl=0

    What do you mean when you say the ship 'flops around'? Is this the demo scene or your own scene?

    In the demos, the steering is controlled by the mouse, but you can disable mouse steering and use axes from Unity's Input Manager instead (by default set up with Horizontal and Vertical which are the arrow keys).
    upload_2020-2-2_10-38-32.png
     
  17. JimTheHermit

    JimTheHermit

    Joined:
    Oct 24, 2019
    Posts:
    3
    My own scene. I was following the manual. It tumbles in a small circle constantly. Increasing the thrust makes the circle bigger. I'll take a look at the updated manual
     
  18. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    Check out this tutorial video which will definitely help you out!

     
    HeadClot88 likes this.
  19. magique

    magique

    Joined:
    May 2, 2014
    Posts:
    3,751
    @Billy4184 I just tried the WebGL demo of the latest version and was surprised to find the first person controller feature. However, it does seem a bit primitive and doesn't have any bobbing, swaying, footstep sounds, gun animations, etc. Are there plans to improve this part?

    In the event the fps controller won't be getting major updates soon, how easy is it to take another FPS controller, like the standard assets one, and adapt it to work with SCK?
     
  20. Levellers

    Levellers

    Joined:
    Jan 2, 2014
    Posts:
    8
    Trying to get Rewired integration and I'm running into a bunch of namespace errors. They all seem related to input systems.

    Code (CSharp):
    1. Assets\SpaceCombatKit\Systems\InputSystem\Scripts\GeneralInput.cs(10,18): error CS0101: The namespace 'VSX.UniversalVehicleCombat' already contains a definition for 'GeneralInput
    2. Assets\SpaceCombatKit\Systems\VehiclesSystem\Scripts\VehicleInput\VehicleInputType.cs(10,17): error CS0101: The namespace 'VSX.UniversalVehicleCombat' already contains a definition for 'VehicleInputType'
    3. Assets\SpaceCombatKit\Systems\VehiclesSystem\Scripts\Modules\ModuleManager.cs(20,32): error CS0111: Type 'ModuleManager' already defines a member called 'Awake' with the same parameter types
    4. Assets\SpaceCombatKit\Systems\VehiclesSystem\Scripts\VehicleInput\VehicleInput.cs(26,33): error CS0111: Type 'VehicleInput' already defines a member called 'Start' with the same parameter types
     
  21. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    It sounds like you must have duplicated some of the scripts in the Project folder. The Rewired integration does not contain any duplicate scripts from the rest of the kit.

    If you import the kit into a fresh project, and then install the Rewired integration, do you still get errors?
     
  22. Levellers

    Levellers

    Joined:
    Jan 2, 2014
    Posts:
    8
    I tried re-importing SCK and Rewired into the existing project and it has thrown even more errors. Most of them are NullReferenceExcemptions and fixable. I than ran into a Keynotfoundexception

    Code (CSharp):
    1. KeyNotFoundException: The given key was not present in the dictionary.
    2. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (TKey key) (at <437ba245d8404784b9fbab9b439ac908>:0)
    3. VSX.UniversalVehicleCombat.PlayerAIVehicleManager.UpdateTrackables (VSX.UniversalVehicleCombat.GameAgent gameAgent) (at Assets/SpaceCombatKit/Unsorted/Utility/PlayerAIVehicleManager.cs:66)
    4. VSX.UniversalVehicleCombat.PlayerAIVehicleManager.OnVehicleEntered (VSX.UniversalVehicleCombat.GameAgent gameAgent) (at Assets/SpaceCombatKit/Unsorted/Utility/PlayerAIVehicleManager.cs:91)
    5. UnityEngine.Events.InvokableCall`1[T1].Invoke (T1 args0) (at <f38c71c86aa64e299d4cea9fb7c715e1>:0)
    6. UnityEngine.Events.UnityEvent`1[T0].Invoke (T0 arg0) (at <f38c71c86aa64e299d4cea9fb7c715e1>:0)
    7. VSX.UniversalVehicleCombat.Vehicle.OnEntered (VSX.UniversalVehicleCombat.GameAgent newOccupant) (at Assets/SpaceCombatKit/Systems/VehiclesSystem/Scripts/Vehicles/Vehicle.cs:217)
    8. VSX.UniversalVehicleCombat.GameAgent.EnterVehicle (VSX.UniversalVehicleCombat.Vehicle newVehicle) (at Assets/SpaceCombatKit/Systems/VehiclesSystem/Scripts/GameAgents/GameAgent.cs:145)
    9. VSX.UniversalVehicleCombat.GameAgent.Start () (at Assets/SpaceCombatKit/Systems/VehiclesSystem/Scripts/GameAgents/GameAgent.cs:110)
    10.  
    It's worth noting that this started after I updated Rewired. Before the update all was fine.

    I'm going to keep messing around. Just hopes this helps you in some way too since SCK is actually quite good.
     
  23. longroadhwy

    longroadhwy

    Joined:
    May 4, 2014
    Posts:
    1,462
    Are you both (@Levellers and @Billy4184) using the same version of Unity and Rewired?
     
    Billy4184 likes this.
  24. Billy4184

    Billy4184

    Joined:
    Jul 7, 2014
    Posts:
    4,911
    I just imported SCK and the Rewired integration into a new project in Unity 2019.3.0f5, and there were no errors. What version of Unity are you using? Also, does it happen in a fresh project or is it only the existing one that has problems?

    Glad you like the kit! :)
     
  25. Levellers

    Levellers

    Joined:
    Jan 2, 2014
    Posts:
    8
    Billy4184 likes this.
  26. Levellers

    Levellers

    Joined:
    Jan 2, 2014
    Posts:
    8
    Got a solution in case anyone else needs it:
    -Removed rewired and SCK from the project
    -Then went to Help/Reset packages to default. (found in this thread)
    -Reimported Rewired then SCK and all is fine
     
    Billy4184 likes this.
unityunity