-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rpak Pilot Model Importing #159
Draft
SenorGeese
wants to merge
14
commits into
R2Northstar:main
Choose a base branch
from
SenorGeese:modelDocs
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 10 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f4f57df
the dirtiest and quickest documentation at 4am
SenorGeese 66bacdb
Adding Version0 SS
SenorGeese 9a81d46
Nested folder test with .png
SenorGeese 2133f70
Sss in _static folder with .png
SenorGeese 537f4a9
Images and Links added
SenorGeese b335975
Good enough for merge
SenorGeese 8a6c55a
Merge branch 'main' into modelDocs
SenorGeese 22c7465
update tools
SenorGeese 7a44d42
Merge branch 'modelDocs' of https://github.com/SenorGeese/ModdingDocs…
SenorGeese 8b11311
Fixed my mess.
SenorGeese 078a0b1
Apply suggestions from Spoon's code review
SenorGeese c79fd82
Update docs/source/guides/tools/rpakpilotmodding.rst
SenorGeese 7f2652f
Merge branch 'main' into modelDocs
SenorGeese 54a284d
Merge branch 'main' into modelDocs
uniboi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,236 @@ | ||
.. _importpilotmodel: | ||
|
||
Pilot Model Importing | ||
===== | ||
|
||
Tools: | ||
^^^^^ | ||
|
||
.. _Blender: https://www.blender.org/ | ||
.. _Blender Source Tools: http://steamreview.org/BlenderSourceTools/ | ||
.. _Titanfall VPK Tools: https://retryy.gitbook.io/tf2/Wiki/Tools/vpk-tools | ||
.. _Crowbar: https://steamcommunity.com/groups/CrowbarTool | ||
.. _Legion+: https://github.com/r-ex/LegionPlus | ||
.. _RePak: https://github.com/r-ex/RePak | ||
.. _mdlshit: https://github.com/headassbtw/mdlshit-binaries | ||
.. _Text Editors: https://retryy.gitbook.io/tf2/Wiki/Tools/general-pc-tools#text-editing | ||
|
||
Download each tool. | ||
|
||
`Text Editors`_ - Just a text editor | ||
|
||
`Titanfall VPK Tools`_ - VPK viewer, extractor, and repacker. | ||
"Titanfall VPK Tool" is the vpk tool used. Made by cra0. | ||
|
||
`Crowbar`_ - Decompile, recompile, and a ton of other model and source asset stuff | ||
|
||
`Blender`_ - 2D/3D Workspace | ||
|
||
`Blender Source Tools`_ - Source Tools plugin for Blender | ||
|
||
`Legion+`_ - Texture, audio, shaderset, and material exporter | ||
"Normal" Legion doesn't work | ||
|
||
`RePak`_ - Create Apex and Titanfall 2 .rpak for textures | ||
|
||
`mdlshit`_ - Magically convert .mdl to "titanfall 2" .mdl | ||
|
||
Exporting the pilot model from the vpk | ||
^^^^^ | ||
|
||
Locate your Titanfall 2 game folder | ||
----- | ||
|
||
For Origin you should find it in this directory ``Origin Games\Titanfall2``. | ||
|
||
For Steam you should find it in this directory ``Steam\steamapps\common\Titanfall2``. | ||
|
||
Open Titanfall VPK Tool | ||
----- | ||
|
||
At the top left press the ``Open`` button. | ||
Open the vpk folder then open ``englishclient_mp_common.bsp.pak000_dir.vpk``, | ||
Expand the ``models`` folder, then the ``humans`` folder, then click on the ``pilots`` folder. | ||
|
||
The files have different names that correspond to their pilot classes. Below is a clarifying table to help. | ||
|
||
==================== ===== | ||
VPK .mdl name Name | ||
==================== ===== | ||
pilot_light_jester Stim | ||
pilot_light_ged Phase Shift | ||
pilot_medium_stalker Holo Pilot | ||
pilot_medium_reaper Pulse Blade | ||
pilot_medium_geist Grapple | ||
pilot_heavy_roog A-Wall | ||
pilot_heavy_drex Cloak | ||
==================== ===== | ||
Export the pilot model to any location you desire. | ||
|
||
Exporting the POV model | ||
^^^^^ | ||
|
||
Do the following to view your model from a outside perspective. | ||
|
||
- Expand the models folder, | ||
- then the weapons folder, | ||
- then open the arms folder | ||
- Repeat "Exporting the pilot model from the vpk" but with the POV file instead. | ||
|
||
|
||
Decompiling the pilot model | ||
^^^^^ | ||
|
||
Open Crowbar | ||
----- | ||
|
||
Select ``Decompile`` at the top | ||
Click on the ``browse`` button next to ``MDL input`` then locate and select your exported pilot model. | ||
Click on the ``browse`` button next to ``Output to`` then choose any location you want the decompiled model to go to. | ||
|
||
Modifying the model with Blender | ||
^^^^^ | ||
|
||
Open Blender | ||
----- | ||
|
||
- Select ``Edit`` then ``Preferences`` | ||
- Press ``Install`` at the top right | ||
- Locate the ``Blender Source Tools.zip`` zip file and select it (Make sure to enable it too) | ||
- Select ``File`` at the top left, import, then ``Source Engine`` | ||
- Locate and select the decompiled pilot model | ||
|
||
Make any changes you want. This is the customization part. | ||
|
||
- The head of your model should be separate from the rest of the body. | ||
- You can use the bisect tool in edit mode to separate the head if it isn’t already. | ||
- Make sure the body and head of your model match the names of the pilot model | ||
|
||
Drag your model’s head and body into the correct collection. | ||
Delete the pilot models head and body after doing so. | ||
Renaming and putting your model in the correct collection. | ||
|
||
- Rig the model to match the bones of the armature that came with the pilot model | ||
- Create an armature modifier for your model’s body and head | ||
|
||
.. image:: /_static/importpilotmodel/ss0-pilotBlenderArmature.png | ||
:align: center | ||
:class: screenshot | ||
|
||
|
||
Attach the model’s body and head to the armature. | ||
The video does not have the model properly aligned with the armature. Please make sure your model is aligned with the armature before attaching the model to it. | ||
A properly rigged model should look like this: | ||
|
||
.. image:: /_static/importpilotmodel/ss1-pilotBlender.png | ||
:align: center | ||
:class: screenshot | ||
|
||
If you have multiple textures on your model, you would create several materials that match the name of the textures for the pilot you are modifying. | ||
If you only have one texture for your model, create one material for your entire model. | ||
Use LegionPlus to view paths for materials. Scroll below a little bit to learn how to use Legion+. | ||
|
||
.. image:: /_static/importpilotmodel/ss2-pilotBlenderMatl.png | ||
:align: center | ||
:class: screenshot | ||
|
||
Once you have made all the changes you wanted to, select ``Scene Properties``, ``Source Engine Export``, then set the export format to ``SMD`` and set your export path. | ||
|
||
.. image:: /_static/importpilotmodel/ss3-BlenderQcModifier.png | ||
:align: center | ||
:class: screenshot | ||
|
||
Copy the qc file to the same location where you exported the model. | ||
|
||
Modifying the POV model | ||
^^^^^ | ||
|
||
- Select ``File`` in Blender, then select ``Save Copy`` | ||
- Choose any name, save the copy, then open the copy | ||
- Delete everything except for the body, the body collection, and the skeleton | ||
- Add ``pov_`` to the beginning of your body model and armature | ||
- Repeat the process of exporting the model with ``Source Engine Export`` | ||
|
||
Using Legion+ to view paths | ||
^^^^^ | ||
|
||
Open `Legion+`_ | ||
----- | ||
|
||
Select ``Load File`` | ||
Follow the directory that matches your launcher. | ||
|
||
1. Steam: ``Steam\steamapps\common\Titanfall2\r2\paks\Win64\common.rpak`` or | ||
2. Origin: ``Origin Games\Titanfall2\r2\paks\Win64\common.rpak`` | ||
|
||
Type the file name of the pilot into the search bar to view **texture and material paths**. | ||
View file paths to create paths in RePak | ||
|
||
Recompiling the model | ||
^^^^^ | ||
|
||
Install compatible Source game | ||
---- | ||
|
||
You need a compatible Source game installed when using Crowbar. | ||
Compatible Source games in order of preference: | ||
|
||
Compatible Source games | ||
##### | ||
|
||
1. Portal 2 | ||
2. Alien Swarm | ||
3. Source FilmMaker | ||
|
||
Open `Crowbar`_ | ||
----- | ||
|
||
Select ``Compile`` | ||
Click on the Browse button next to ``QC input`` then locate and select your modified model. | ||
Next, Click on the Browse button next to ``Output to`` then choose a location to output the model to. | ||
|
||
Making a Pak file | ||
^^^^^ | ||
|
||
Follow this `tutorial <https://r2northstar.readthedocs.io/en/latest/guides/rpakmodding.html>`_ to create a pak file | ||
|
||
Making changes to the qc file (Optional) | ||
^^^^^ | ||
|
||
Open any text editor | ||
If you want to prevent camos from being used on your model, delete any textures that have skn31 in the texture group | ||
|
||
.. figure:: /_static/importpilotmodel/ss4-qcFileChanges.png | ||
:align: center | ||
|
||
.. figure:: /_static/importpilotmodel/ss5-qcFileChanges2.png | ||
:align: center | ||
|
||
Creating a Northstar mod | ||
^^^^^ | ||
|
||
Follow the "Getting Started" guide to create a Northstar mod | ||
Create a folder that matches the below file structure | ||
|
||
.. note:: Only create the ``weapons`` folder with everything else inside it if you made a pov model | ||
|
||
.. Directory Structure for Northstar Mod | ||
:: | ||
|
||
AuthorName.Mod | ||
├──mod | ||
| └──models | ||
| └──humans | ||
| └──pilots | ||
| └──customModel | ||
├──paks | ||
| ├──rpak.json | ||
| ├──example.rpak | ||
| └──preloadexample.rpak | ||
└──mod.json | ||
|
||
Credits: | ||
^^^^^ | ||
|
||
Base guide from Harb. | ||
Edited by Modder. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the same as rpakpilotmodding.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An order version, yes.
I didn't know this file existed. I'll clear it up, thanks for pointing it out.