nhok0169 / Anime-Game-Remap

Anime Game Remap/Fix/Convert
https://anime-game-remap.readthedocs.io/en/latest/
Apache License 2.0
20 stars 13 forks source link

Add support for mega merged mods #14

Closed Alex-Au1 closed 1 year ago

Alex-Au1 commented 1 year ago

For merged mods, the script creates the [CommandListRaidenShogunRemapBlend] mapping function to all *RemapBlend.buf by binding all the those files to the $swapvar variable

eg.

[CommandListRaidenShogunRemapBlend]
if $swapvar == 0
   vb1 = ResourceRaidenShogunRemapBlend.0
   ...
else if $swapvar == 1
   vb1 = ResourceRaidenShogunRemapBlend.1
   ...
else if $swapvar == 2
   vb1 = ResourceRaidenShogunRemapBlend.2
   ...
...
...
endif

For "mega merged mods" (mods with multiple swap keys), need to follow the same if...else template from [CommandListRaidenShogunBlend] instead of creating the conditions ourselves

eg.

[CommandListRaidenShogunRemapBlend]
if $swapvar == 0 && $swapvarn == 0
   vb1 = ResourceRaidenShogunRemapBlend.0
   ...
else if $swapvar == 1 && $swapvarn == 0
   vb1 = ResourceRaidenShogunRemapBlend.1
   ...
else if $swapvar == 2 && $swapvarn == 0
   vb1 = ResourceRaidenShogunRemapBlend.2
   ... 
else if $swapvarn == 1
   vb1 = ResourceRaidenShogunRemapBlend.3
   ...
endif
Alex-Au1 commented 1 year ago

Going to use Issues as a backlog for any incoming feature/bug requests (since going to be busy for a while)

Alex-Au1 commented 1 year ago

Now in development...

Alex-Au1 commented 1 year ago

Completed: https://github.com/nhok0169/Fix-Raiden-Boss/pull/15