Open pp2amd6 opened 2 years ago
Unfortunately the game does not allow overriding/replacing existing CWeaponComponent*
entries using this method. Internally the game will store both the old and new entries and the component referenced by the game will be inconsistent and dependent upon other factors (e.g., how many components are loaded).
A long-term solution here could be to research whether it is possible to create a pseudo WEAPONCOMPONENTSINFO_FILE_PATCH
manifest entry to allow overriding components of the same name and type. In the meantime it may be possible to use WEAPONINFO_FILE_PATCH to override the AttachPoints
to have them reference custom components. Others tend to just re-stream everything.
Is this still an issue you are experiencing?
Is this still an issue you are experiencing?
Unfortunately I cannot say whether the problem remains in the current stable version. I'll check it later and let you know.
Regarding the version that I wrote about earlier: I solved the problem, but in a not entirely obvious way. The new taxi model was loaded on the production server only when I placed the resource in the root of the "resources" directory.
Is there no plan to solve this issue?
Hi all!
I have a problem with two resources and am stuck.
I have a lot of resources, but the problem is only with those that replace the standard resources.
The first problematic resource replaces the taxi car. The second problematic resource replaces the gun (weapon_pistol).
Taxi resource
Resource content:
fxmanifest.lua:
On the local server, the resource loads and works without problems (the car with the replaced model will be spawned), but on production, the car with the standard model is loaded.
Resources with cars are in directories as categories:
Weapon resource
There is also a weapon resource. I am replacing the w_pi_pistol model and weaponcomponents.meta which changes ammo count from 12 to 17. On the local server, I have a model and a modified file loaded, there are 17 rounds in the gun. On the local server, I have a model loaded, but the modified file does not work, there are 12 rounds in the gun.
Resource content:
fxmanifest.lua content:
Resources with weapons are in directories as categories:
What I did?
I cleared the client’s cache, the cache on both servers, but the problem remained. I changed the game version to 2545, but it had no effect. I changed the server versions to earlier ones, but this had no effect.
The weapon and car resource worked on the production server before the transition to build 2612 and the server FX build update, but I can’t confirm that.
Servers
Production server:
Local server:
How to reproduce?
I don't know how to reproduce this behavior. The local server and the production server differ in the number of resources included and the included Onesync infinity.
I turned off a large number of resources - interiors, clothes, framework, weapons and other cars, so that the number was about the same as on the local server, but this did not help.
Temporary solution to the problem
Resources start to work correctly if placed in the root of the resource directory - the car will be replaced, and the weapon will have 17 rounds.
weapon_pistol.zip taxi.zip