Jump to content

Recommended Posts

Hi All,

First time modding, I've tried looking for documentations on this but no success. Especially considering WX-78's remake in 2022.

I'm thinking of something like below, but have no idea where or how to find out the name of the function I should be using:

    player.components.XXXX:SetCircuitLimit(num_slots)
    player.components.charge.maxcharge = maximum_charge

Can someone please help me?

Looks like they use a Tuning value for the max charge, and from what I can tell the max charge value is also used for determining max slots rather than them being two separate values. There's no function for changing the max charge value but the max_charge variable in the upgrademoduleowner component gets set to the Tuning variable and is what the game uses to track that.

Pretty much everything related to wx circuits in the files have either "upgrademodule" or "wx78_module" in the name. The component used for WX's modules is upgrademoduleowner for WX and upgrademodule for each module instance.

Also, you might have this already planned out but just in case, messing with the max charge isn't really as simple as changing that value since its connected to its own widget on the player's HUD which is built with the current max amount of slots in mind and as far as I know won't adjust itself.

48 minutes ago, Merkyrrie said:

Looks like they use a Tuning value for the max charge, and from what I can tell the max charge value is also used for determining max slots rather than them being two separate values. There's no function for changing the max charge value but the max_charge variable in the upgrademoduleowner component gets set to the Tuning variable and is what the game uses to track that.

Pretty much everything related to wx circuits in the files have either "upgrademodule" or "wx78_module" in the name. The component used for WX's modules is upgrademoduleowner for WX and upgrademodule for each module instance.

Also, you might have this already planned out but just in case, messing with the max charge isn't really as simple as changing that value since its connected to its own widget on the player's HUD which is built with the current max amount of slots in mind and as far as I know won't adjust itself.

Thanks heaps for the info. It sounds like a lot more complicated than I initially thought. But this could be interesting, I'll investigate a bit more. I just wished there's more documentation.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...