Skip to content

Module selector now working#14

Open
vladkorotnev wants to merge 4 commits intosamyuu:masterfrom
vladkorotnev:module-selector
Open

Module selector now working#14
vladkorotnev wants to merge 4 commits intosamyuu:masterfrom
vladkorotnev:module-selector

Conversation

@vladkorotnev
Copy link

Title says it all. You have to open it twice to select 2 modules though. But at least you can do it from within the game.

@vladkorotnev
Copy link
Author

Refactor proposal (at work now so can't implement, maybe later if nobody gets around to it):

  • Redefine playerData->field_140 as " byte[128] modulePossessionArray" (and delete everything until field_1c0 respectively)
  • Memset modulePosessionArray with 0xFF instead of using a for-loop

Further reference, I'm trying to keep this document up to date on the PlayerInfo struct contents as i go along researching it.

@vladkorotnev
Copy link
Author

OK, now it's fully working, fixed things:

  • Now can select customize-item too
  • Now it doesn't close after change item/module
  • Use memset instead of loop

@BINiPad1999
Copy link

any tutorial how to do this ?

@vladkorotnev
Copy link
Author

Do what?

@BINiPad1999
Copy link

the module selector, idk how to do it because i'm not pro at modding :)))

@vladkorotnev
Copy link
Author

Wait until this pull request is accepted and a new build is released or use nightly builds of @lybxlpsv's fork (experimental)

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

Successfully merging this pull request may close these issues.

2 participants