This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
cw4:custom_units [2021/01/29 14:08] – Karsten75 | cw4:custom_units [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
[[cw4: | [[cw4: | ||
- | ===== Documenting Custom Units ===== | + | ====== Overview ====== |
- | :!: <color # | + | The basic steps in creating a custom unit needs the following: |
+ | - A [[cw4: | ||
+ | - A [[4rpl: | ||
+ | - [[cw4:wiki_help|Documentation]]. | ||
- | An [[wiki help|extensive Help system]] has been built into the game so that custom units (CMOD) and their container (CPACK) can be documented in the wiki that is accessible from inside the game. This allows for an explanation of how to use the unit both for the map maker and for the players. | + | The first two things are packaged in a CPACK. Each CPACK can have one or more units and scripts. Note that each model can also have multiple sub-units. A model also needs a " |
+ | Documentation is provided via the wiki. | ||
+ | ====== Documenting Custom Units ====== | ||
+ | :!: <color # | ||
- | ===== Getting Started ===== | + | An extensive [[wiki help|Help]] system has been built into the game so that custom units (CMOD) and their container (CPACK) can be documented in the wiki that is accessible from inside the game. This allows for an explanation of how to use the unit both for the map maker and for the players. |
- | * [[http:// | + | ====== Models ====== |
+ | |||
+ | ===== Modeling tools ===== | ||
+ | Anyone could use [[https:// | ||
+ | |||
+ | Following is a list of some free and perhaps easier tools to use. | ||
+ | |||
+ | ==== Microsoft 3D Builder ==== | ||
+ | 3D Builder is about as simple as it gets, can load some geometry and simplify it. | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ==== Tinkercad ==== | ||
+ | Tinkercad is a good way to make units. | ||
+ | |||
+ | https:// | ||
+ | |||
+ | ==== MagicaVoxel ==== | ||
+ | |||
+ | |||
+ | |||
+ | [[http:// | ||
* It's free, and doesn' | * It's free, and doesn' | ||
- | * When you export, export as an " | + | * When you export, export as an " |
* .vox files created by MagicaVoxel can be directly imported an in many instances result in a much smaller model with fewer vertexes - this is good for performance. <wrap info> The .vox file that can be imported is the **exported** version, not the save. It is confusing that Magica Voxel does not differentiate between the two .vox file types</ | * .vox files created by MagicaVoxel can be directly imported an in many instances result in a much smaller model with fewer vertexes - this is good for performance. <wrap info> The .vox file that can be imported is the **exported** version, not the save. It is confusing that Magica Voxel does not differentiate between the two .vox file types</ | ||
- | | + | ==== Qubicle ==== |
+ | Another good voxel tool is [[http:// | ||
- | * The full version isn't free. It was used for the prototype units in CW4. | + | The full version isn't free. It was used for the prototype units in CW4. |
- | * Anyone could also use [[https:// | + | ==== AssetForge ==== |
- | | + | A paid tool that is fully supported in the game (some units have been made with this tool) is [[http:// |
+ | ===== Importing Units/ | ||
- | ==== What ==== | + | Models exported from many external tools (Magica Voxel, Blender, etc.) can usually be imported into the game editor. **The guiding principle here is that units should be simple**((After import, the game will report on the number of vertices that the model contains.)) - Animation and many of the more advanced features are not suported. Since the game utilizes a 3rd-party package ([[https:// |
+ | |||
+ | The following website may be useful in converting one type of exported model into a different format. | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | ===== What ===== | ||
The game needs both the .obj for the actual model and the texture file (usually a .png file, so make sure you have both available for import into the C-Pack editor. | The game needs both the .obj for the actual model and the texture file (usually a .png file, so make sure you have both available for import into the C-Pack editor. | ||
Line 36: | Line 71: | ||
The CPACK editor can also directly import the .vox files created by MagicaVoxel and this usually results in a more efficient model. If you import the .vox file, the model and texture will both be imported into the CPACK editor. | The CPACK editor can also directly import the .vox files created by MagicaVoxel and this usually results in a more efficient model. If you import the .vox file, the model and texture will both be imported into the CPACK editor. | ||
- | ==== Links to Image Repositories ==== | + | ===== Considerations ===== |
+ | From a Discord conversation where @knucracker provided some insight into the import process (for a model exported from Blender) | ||
+ | |||
+ | //Things like submeshes aren't supported. | ||
+ | |||
+ | |||
+ | //For your green vs black edges, I would guess that the texture associated with the mesh is ' | ||
+ | |||
+ | |||
+ | //The game uses a 3rd party model import package that attempts to create an object hierarchy from what is in the model file. The game then tries to extract meshes from that object hierarchy. | ||
+ | |||
+ | ===== Links to Image Repositories | ||
Please don't use images that you do not have the rights to use, that are the property of others, have licensing fees or require attributions. Links to repositories that are not family-safe are not welcome. The sole right of decision-making rests with Knuckle Cracker. | Please don't use images that you do not have the rights to use, that are the property of others, have licensing fees or require attributions. Links to repositories that are not family-safe are not welcome. The sole right of decision-making rests with Knuckle Cracker. | ||
Line 52: | Line 98: | ||
* Google image search -> Tools -> Usage Rights -> Labeled for reuse | * Google image search -> Tools -> Usage Rights -> Labeled for reuse | ||
- | ==== Converting units/ | ||
- | [[http:// | ||
- | ==== Ownership rights ==== | + | ===== Ownership rights |
Anything you upload to knucklecracker.com website or the affiliated game servers transfers a royalty-free license to knuckle Cracker LLC. for future use in any form. You retain the copyright information, | Anything you upload to knucklecracker.com website or the affiliated game servers transfers a royalty-free license to knuckle Cracker LLC. for future use in any form. You retain the copyright information, | ||
Line 72: | Line 116: | ||
- | ===== Random notes ===== | + | ====== Random notes ====== |
---- | ---- |