CAEDES
评价数不足
CAEDES Modding - Quick Start
由 QQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQQ 制作
A quick start guide to modding! A more detailed write up can be found in the local files.
   
奖励
收藏
已收藏
取消收藏
First time setup
  • Step 1 - Download CAEDES




  • Step 2 - Download and Install Unity Hub: https://unity3d.com/get-unity/download




  • Step 3 - Run Unity Hub and Sign In: https://unity3d.com/get-unity/download




  • Step 4 - Activate your license: https://unity3d.com/get-unity/download




  • Step 5 - Back out of preferences:




  • Step 6 - Locate your local CAEDES install and inside it the "CAEDES Modding Tools":




  • Step 7 - Inside "CAEDES Modding Tools" find "CAEDESModding" and make a copy of it:
    - You should copy this folder rather than using it directly every time you want to make a mod.





  • Step 8 - In Unity Hub press "Add" and Select the folder you just copied:





  • Step 9 - Try to open it by double clicking it. It should prompt you to install Unity 2019.3.15 - Continue to step 10. Otherwise if it opens skip to Step 12:





  • Step 10 - Install with the default values:





  • Step 11 - In the projects tab try opening it again by clicking on it.





  • Step 12 - Continue to the next section of the guide!
Your first mod
  • Let's make a simple level.


  • After you've opened your CAEDESModding project in unity you should see something like this:



  • First let's make some ground for the player to stand on:
    - In the top bar press GameObject > 3D Object > Cube
    - In the inspector tab under "Transform" set the Position to X:0, Y:0, Z:0
    - Now set the scale to X:30, Y:1, Z:30



  • Let's add a source of light so it's more visually interesting:
    - In the top bar press GameObject > Light > Directional Light
    - In the inspector tab under "Light" set the "Shadow Type" to "Hard Shadows" so that it casts shadows
    - Let's lower the Strength from 1.0 to 0.5



  • In the bottom window you should see "Assets":
    - Locate the CAEDES_PREFABS folder for the next step
    - Open CAEDES_PREFABS



  • Let's define the Player starting point:
    - Locate the green "player_spawn" prefab
    - Click and drag it onto the cube we setup in the previous step
    - If done correctly you should see a green person on your cube.
    - In the inspector tab under "Transform" set the Position to X:0, Y:0.5, Z:0
    - This object symbolizes where the player will spawn.
    - There should only be one per level.
    - If this object is missing the player will not spawn.


  • Now using another cube let's make a table for the player:
    - In the top bar press GameObject > 3D Object > Cube
    - In the inspector tab under "Transform" set the Position to X:0, Y:1, Z:1.5
    - Now set the scale to X:3, Y:1, Z:1

  • Let's make it look like a wooden table:
    - Using your favorite search engine look up "wood texture"
    - Download one that you like
    - Drag the file into the CAEDES_PREFABS tab in Unity:
    - Now inside unity drag it onto our cube


  • Let's make it act like a wooden table:
    - Click on the cube again
    - In the Inspector tab click the "Tag" drop down and select "Wood"


  • Let's add some guns for the player:
    - Go into the "Guns" folder
    - Lets spawn two Mac-10s
    - Drag and Drop a Mac10 onto the table
    - Set the Position to X:-0.1, Y:1.75, Z:1.5
    - Drag and Drop another Mac10 onto the table
    - Set the Position to X:0.1, Y:1.75, Z:1.5
    - Uncheck "Physics Awake" under the "Gun (Script)"


  • Let's add some Enemies:
    - Go into the "Enemy" folder
    - Lets spawn one of each
    - Drag and Drop a pmc_enemy, survivor_enemy, and a terrorist_enemy
    - Assign a weapon to them using the weapon drop down on the "Enemy (Script)"


  • Let's add some Enemies:
    - Go into the "Enemy" folder
    - Lets spawn one of each
    - Drag and Drop a pmc_enemy, survivor_enemy, and a terrorist_enemy
    - Assign a weapon to them using the weapon drop down on the "Enemy (Script)"
    - Either set their "Stationary" checkbox to True or bake a navmesh otherwise in Co-op it will cause desyncs.


  • Let's add an end level trigger:
    - Go back into the "CAEDES_PREFABS" folder
    - Drag and drop the green "LevelChangeTrigger" into the world
    - When you play your level in CAEDES it will be invisible so let's make it big
    - Set the Position to X:0, Y:3, Z:10
    - Set the Scale to X:30, Y:5, Z:1


  • Your level should now look something like this:




  • Let's export your Mod and get it into CAEDES:
    - In the top bar press "Tools" > "ModTool" > "Verify"
    - You should see "scripts Verified!" at the bottom bar of Unity
    - In the top bar press "Tools" > "ModTool" > "Export Mod"
    - The information you fill out here will be displayed in game so make it good!
    - Setup the Output Directory to where you want the final mod to be exported
    - Find where your mod was output.
    - Look specifically for the folder with the same name as your Mod.
    - Copy this folder and put into the "Mods" folder in your CAEDES install folder.


  • Load up CAEDES and you should now see your mod in the level select screen:


  • For more advanced modding techniques:
    - Find the README.txt file in the "CAEDES Modding Tools/CAEDESModding/Assets/README.txt"
    - Join the Official Discord: https://discord.gg/bDgPQVdGSD

  • The next section will cover uploading your mod to the SteamWorkshop!
Uploading to SteamWorkshop
  • Once you're satisfied with your mod go ahead an upload it to the SteamWorkshop for others to enjoy!

  • In your CAEDES install location locate "CAEDES Modding Tools"

  • In "CAEDES Modding Tools" open "Mod Uploader"

  • In "CAEDES Modding Tools" open "Mod Uploader"

  • In "Mod Uploader" run "CAEDESUploader.exe"

  • The rest of the instructions should be self explanatory.

  • If you need help: https://discord.gg/bDgPQVdGSD