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

About patching WeaponDef XAsset and precaching #55

Closed
T-Maxxx opened this issue Aug 28, 2016 · 1 comment
Closed

About patching WeaponDef XAsset and precaching #55

T-Maxxx opened this issue Aug 28, 2016 · 1 comment

Comments

@T-Maxxx
Copy link
Contributor

T-Maxxx commented Aug 28, 2016

As I can see, there is no reallocation for items (aka WeaponDef xassets). But during RE configstring types I have found few functions where used limit to 128 items so If you have patched xasset up to, for example, 256 items - precache will not work and game will throw "item not precached" errors.
I know, that's a common problem for many mods when you can't get more than 128 weapons at the time and it'll be great to see that reallocation. As I know, in usercmds there's field called "byte weapon" so looks like its ok to increase limit to 256.
Also there's a lot of xrefs to these arrays and that's the reason why there's no allocations for now?

@IceNinjaman
Copy link
Collaborator

I know about the weapon asset issue. Well there are a shit load of references and arrays involved into it. I have patched in iw3mp.exe around 300 base offsets I believe. Now there are also arrays with 128 entries in playerState_t struct. you can hardly expand them here. You need some kind of compression I think. Anyway because I would have to do that time consuming patching on the server side program as well I kinda gave up with it. You can only load 128 weapon assets and that is it atm.

@T-Maxxx T-Maxxx closed this as completed Aug 30, 2016
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