Troubleshooting Bundle Creation - Raytwo/Cobalt GitHub Wiki

Here are some issues that you may run into while trying to follow the bundle creation guide.

[!TIP] This is not an exhaustive list of issues and only meant to be a starting point! Some experimentation may be required on your part - feel free to add any issues/solutions here!

Issue: My model seems invisible when being used in game

Check how Cobalt is reading in your bundle

If you're using an emulator like Ryujinx, you should try checking the console logs.

For example, here's what it looks like when the Pyra model is being loaded in

00:00:08.949 |W| HLE.GuestThread.42 KernelSvc OutputDebugString: Internal id: Assets/Share/Addressables/Unit/Model/uBody/Pyr0AF/c000/Prefabs/uBody_Pyr0AF_c000.prefab

00:00:08.949 |W| HLE.GuestThread.42 KernelSvc OutputDebugString: Internal path after: Unit/Model/uBody/Pyr0AF/c000/Prefabs/uBody_Pyr0AF_c000

Check if you used the right path for your addressable and compare it with what the game expects.

Please make sure to keep an eye on capitalization in your bundle, prefabs that would be perfectly fine end up not being fine when they aren't properly capitalized. For instance, the "head" folder in the picture below absolutely needs to be lower case, and then make sure the custom prefab has an updated directory after changing it too.

image

Check the hierarchy of your GameObjects

Using AssetStudio, check a bundle of the same type as what you are adding. For example, if you're adding a weapon, check how the game's weapon bundles are structured.

For example, here is how an official weapon looks:

image

And here is what an incorrect hierarchy could look like:

image

You will need to unpack your prefab to fix this.

Check the scale, offset, etc of your object

It might be somewhere far off center, or could be too small, or other issues like that.

Issue: My model is all stretched out!

Does your model look something like this?

If so, make sure that the bone hierarchy of the prefab matches your model's.

Issue: Parts/all of my model disappear(s) when zooming out/in &/or during Critical/Engage Attack Combat Animations

If you observe parts of your model disappearing, something like this image image

or for example, your uBody model disappears like this during Critical/Engage Attack Combat Animations

You should check the "Update When Offscreen" box on each of the meshes in the inspector image

Issue: I made some changes to my prefab, but they don't seem to show up even when I rebuild my Addressables Groups and reload the game

Make sure to apply any changes (what Unity calls "overrides") that you make to your prefab. Select your prefab in the scene, go to the inspectors, and find the Overrides dropdown. Then, you can apply your changes and rebuild.

To learn more about how this works, see here

Issue: I pressed Build in the Divine Dragon menu, but no bundle was made!

If you don't have an existing bundle, make sure you made the prefab an Addressable.

Screenshot of the Address being assigned

If you have a bundle there and it just isn't updating, make sure it isn't open in another program like UABEA - some programs won't allow files they're using to be modified.

Issue: My oBody model is T-posing!

Make sure you set Avatar Definition to Create from this model, as mentioned in this page. Also make sure the root node is set.

image

Your model should look like this in the folder afterwards.

image

If you did do this and you're still having this issue, the Avatar may have been deleted. When you drag the model into the viewport, the Avatar will be attached to the root GameObject, so if that got deleted while fixing the c_trans/meshGP hierarchy, the Avatar will go with it. Your prefab should look like this (note the last item shown here):

image

Issue: My model is weirdly glossy ingame!

image

If you're getting the left when you want the right, it's because you haven't set your Toon Ramps.

image