wungasaurus Posted May 30, 2018 Share Posted May 30, 2018 as an example, stonekeeper.m2 in your screenshot has the following AFID data: {anim_id = 0x004a, sub_anim_id = 0x0000, file_id = 0x000752c5} {anim_id = 0x0054, sub_anim_id = 0x0000, file_id = 0x000752c7} {anim_id = 0x0061, sub_anim_id = 0x0000, file_id = 0x000752c8} {anim_id = 0x0062, sub_anim_id = 0x0000, file_id = 0x000752c3} {anim_id = 0x0060, sub_anim_id = 0x0000, file_id = 0x000752c9} aggramar_original.m2 has the following entries (i.e. the same anim_id, sub_anim_id pair) as well (note: all sub_anim_ids are 0 so omitted) 0x54 0x4a 0x61 0x60 0x62 it additionally has 0x4b 0x3c I don't know which way around you want to "convert", but well.. if you replace aggramar_original.m2 with stonekeeper.m2, you just have to change stonekeeper.m2's file_id values to those of the respective aggramar_original.m2 AFID entries and just replace the files. The other way around, you will have to find two additional files you can safely override (e.g. the unused old stormwind wmo files world/wmo/azeroth/buildings/stormwind/stormwind_221.wmo etc) and use the filedataid of those. Link to comment Share on other sites More sharing options...
Daethas Posted May 30, 2018 Author Share Posted May 30, 2018 Just now, wungasaurus said: as an example, stonekeeper.m2 in your screenshot has the following AFID data: {anim_id = 0x004a, sub_anim_id = 0x0000, file_id = 0x000752c5} {anim_id = 0x0054, sub_anim_id = 0x0000, file_id = 0x000752c7} {anim_id = 0x0061, sub_anim_id = 0x0000, file_id = 0x000752c8} {anim_id = 0x0062, sub_anim_id = 0x0000, file_id = 0x000752c3} {anim_id = 0x0060, sub_anim_id = 0x0000, file_id = 0x000752c9} aggramar_original.m2 has the following entries (i.e. the same anim_id, sub_anim_id pair) as well (note: all sub_anim_ids are 0 so omitted) 0x54 0x4a 0x61 0x60 0x62 it additionally has 0x4b 0x3c I don't know which way around you want to "convert", but well.. if you replace aggramar_original.m2 with stonekeeper.m2, you just have to change stonekeeper.m2's file_id values to those of the respective aggramar_original.m2 AFID entries and just replace the files. The other way around, you will have to find two additional files you can safely override (e.g. the unused old stormwind wmo files world/wmo/azeroth/buildings/stormwind/stormwind_221.wmo etc) and use the filedataid of those. ..Woah. How'd you find all of that? Also, how would I go about changing stonekeeper.m2's file_id values? Link to comment Share on other sites More sharing options...
Daethas Posted May 30, 2018 Author Share Posted May 30, 2018 Also, I'm intending on converting from 7.3.5+ to 7.1 Higher version of Legion, to lower. Link to comment Share on other sites More sharing options...
Daethas Posted May 30, 2018 Author Share Posted May 30, 2018 Little update: Just tried replacing Golganneth's AFID chunk with that of the stonekeeper's, and then fixed Golg's anim files and placed them in the proper folder in my client. His sitting animation never used to work, and now it has.. somewhat. https://gyazo.com/b284fc4551b7077132b882ebbbaafa0e Link to comment Share on other sites More sharing options...
wungasaurus Posted May 30, 2018 Share Posted May 30, 2018 26 minutes ago, Daethas said: ..Woah. How'd you find all of that? Also, how would I go about changing stonekeeper.m2's file_id values? I literally just looked at your screenshot and applied the description linked on the wiki before. By selecting the value in the editor and setting it to a new one? Just replacing the block will end up with two animations still being broken. That video looks like the .anim file itself is not converted correctly. Link to comment Share on other sites More sharing options...
Daethas Posted May 30, 2018 Author Share Posted May 30, 2018 13 minutes ago, wungasaurus said: I literally just looked at your screenshot and applied the description linked on the wiki before. By selecting the value in the editor and setting it to a new one? Just replacing the block will end up with two animations still being broken. That video looks like the .anim file itself is not converted correctly. Right, but I don't get how you found the anims out of that large chunk. I found the ID's, but had you not told me what those anim_ids were, it'd just look like pure nonsense to me-- and it still sort-of does. But you said the values for both models are the same, with the exception of those 2 extra ID's Golganneth has. I don't need to change any of the values then, right? Should I just delete the 2 extra anims from Golganneth's .m2? Link to comment Share on other sites More sharing options...
wungasaurus Posted May 30, 2018 Share Posted May 30, 2018 Again, the structure of that chunk's content is give at https://wowdev.wiki/M2#AFID_.28Legion.2B.29. It describes exactly how to interpret those bytes. Again, what you have to do depends on what you replace by what, which I do not know and thought was the other way around in your previous post. The *resulting* file needs to have *all* the entries that the *source* model has. It is likely a good idea to reuse the file data ids from the *replaced* model for all pairs of anim+sub_anim the *source* and *replaced* model share. For any additional animation in the *source* model you will need additional file data ids, as said for example from unused files. The latter would mean that the *resulting* file will use some of the *replaced* model's anim files, and the additional anim files named as if they were something completely different. Note that the name does *not* matter other than for file data id determination purposes. The game *only* uses the id in the AFID chunk to find them. Link to comment Share on other sites More sharing options...
Daethas Posted May 30, 2018 Author Share Posted May 30, 2018 ..I'm terribly sorry, but I just do not understand. My apologies if I've annoyed you by now, but I just have absolutely no idea what to do. I've no idea what a filedataid is, nor how you find them, and especially not how to find them in a wmo. This seems extremely complicated, and I'm just getting lost in what to do. I can't read the AFID chunk, and I don't know what to replace, nor what to replace the extra anims with-- do I just grab random IDs and replace the extra anims with those? I'm completely clueless as to what I've to do still; like I said, my knowledge of hex editing isn't amazing. I can replace SFIDs, but I use an M2Template for the rest-- finding specific visuals and textures. Weapons/armor, basically, are all I know how to do. That and objects (not wmos) but that's because it's the same principle. Link to comment Share on other sites More sharing options...
wungasaurus Posted May 31, 2018 Share Posted May 31, 2018 the easiest way to find out file data ids is probably using https://bnet.marlam.in/files.php#search=aggramar_original&page=1&build=6bffbae0d39ffae8147e43e7ba3a52e5 -- the *source* model https://bnet.marlam.in/files.php#search=creature/stonekeeper&page=1&build=6bffbae0d39ffae8147e43e7ba3a52e5 To read the AFID chunk try looking at it again with my list of entries and map that to the bytes you see in the screenshot while comparing with the wiki page at the same time. Link to comment Share on other sites More sharing options...
Downporting BFA models to 7.1
By Daethasin Modeling
Recommended Posts