Skip to content
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

[Linker] [T6] Some weapon files within mod aren't being linked correctly #103

Closed
Jbleezy opened this issue Jan 30, 2024 · 2 comments
Closed

Comments

@Jbleezy
Copy link
Contributor

Jbleezy commented Jan 30, 2024

If you link bowie_knife_zm from zm_buried.ff, it works fine. However, if you take that same weapon file from the unlinker and add it to your mod folder with no changes made to the weapon file and link with that weapon file, the viewmodel for that weapon does not show.

I also noticed a few other weapons were not showing the weapon name when trying to override them on a Plutonium dedi if they were also linked from your mod even though I didn't see any noticeable issues with the weapons, so they are probably also not linking correctly: insas_mp, vector_mp, sig556_mp

@Jbleezy Jbleezy changed the title [Linker] Some weapon files within mod aren't being linked correctly [Linker] [T6] Some weapon files within mod aren't being linked correctly Jan 30, 2024
@Laupetin
Copy link
Owner

For clarification:

OAT build from original fastfile - works
OAT build from mod - doesn't work
Plutonium raw weapon override - works

@Laupetin
Copy link
Owner

Laupetin commented Feb 4, 2024

The issue with the bowie knife should be solved now after #108 was merged.
The problem was that OAT did not correctly make a distinction between an empty string and a non-existing string (nullptr).

In the case of hideTags this made the game believe that it is supposed to hide a bone with the name "" (so an empty string).
The bowie knife model has exactly one bone with has an empty string as its name.

This is now fixed, OAT now handles an empty string as "no string", which is how the game does it as well.

I did not test the other weapons you listed but i suppose those must have had the same problem

@Jbleezy Jbleezy closed this as completed Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants