![]() |
Summoners War - Printable Version +- The VG Resource (https://www.vg-resource.com) +-- Forum: The Resources (https://www.vg-resource.com/forum-109.html) +--- Forum: The Models Resource (https://www.vg-resource.com/forum-111.html) +---- Forum: Project Organization (https://www.vg-resource.com/forum-119.html) +---- Thread: Summoners War (/thread-27176.html) |
RE: Summoners War - TwiliChaos - 03-28-2018 So I put in quite a bit of work trying to get animations ripped. For the most part, I've figured out the format, but some bytes are encrypted and I only have 1/5 of them solved, as of writing this. Basically the animation chunk goes as followed. PLM Chunk:
I don't know how to explain the format without a bit of indentation, so here you go
The values of dynamic bytes are plugged into a 256 length array that outputs values 0 through 8, and these values are added together to get the final value for that bone's quaternion, position, or scale. (Scale seems to always be empty with the models I've checked) Code: FF FF FF FF FF FF FF FF FF FF 01 -- Quaternion keyframe count, 10 bytes of 8 and 1 byte of 1, adds to 81 My current progress on the decryption array Code: decrypt_keyframe_size_value = #( Also, some of the values seem like they work for newer models, but not work for older ones, such as 0x1F as 5 works for newer ones, but 0x1F as 4 works for older ones. It's difficult to say if the newer models add 1 to the final number, the older ones subtract 1, or if there's a flag somewhere that tells the game to add or subtract... I don't know. Edit: In regards to the existence of a flag that may add or subtract from the keyframe count, that might be true. With a couple files I've looked at that have been a pain in the neck in that regard, it looks like in the PLM$ area with the track info, the 1st byte's 2nd nibble is 0 for unaffected keyframe counts, and 8 for keyframe counts that subtract 1 to get the final result. I don't know yet if the first nibble has much relevance, as it's mostly C and in one example 4. This byte is also always the same for each track in the file. Edit2: Okay, if there is a flag, what I pointed out is almost certainly not it. Edit3: Confirmed because of Valkyrja transmog 3's idle animation having 361 frames, the 6th and 7th byte are 2 bytes frame count rather than one. RE: Summoners War - TwiliChaos - 03-30-2018 An update to my findings, it's starting to look like there IS a correlation between the 20 bytes unknown after anim_track_count, and whether the keyframe value is modified after counting. Looking through a bunch of files, the ones with keyframe value change after count has what seems like a bunch of random byte values, whereas the ones that do not have those 20 bytes all zeroed out, as well as a small part of the 55 bytes further up in the file zeroed out too. I think this is a rather solid correlation right now, with a small possibility of being wrong. Checking through a dozen other files for comparison, this looks like the only "flag" that can be checked against. This change appears to have been added in the same update that brought the Frankenstein transmog. I do not remember when it was added, but it looks like every model made after that has zeroed bytes, and every model before it has random bytes. So, to be more on the point, if those 20 bytes seem random, add the keyframes together and then subtract by one to get the final value. If those 20 bytes are zeroed out, then they're only added together. Sheesh c2u you made this quite a ride, but I'm getting closer. RE: Summoners War - TwiliChaos - 04-22-2018 Animations can now be ripped. In the past couple days I've learned quite a bit about the format, and just how far off I was. Tested the script on a variety of older and newer models. The MaxScript file I included is not optimized at all so after a few uses Max will return a USE. If anyone cares to optimize it they can. I'll probably regret sharing this, since around a month ago I shared my rip (back when I had to hardcode it) to Reddit of some unused animations for a model (RTA Panda transmog before rewards were given) and basically immediately after, C2U decided to replace all the unused animations in the next model (RTA Sky Dancer) with walk cycles just to spite me. From what I can tell, unused animations were never removed before. Welp, onward to buildings and environments, and eventually particle effects. Not that anyone would care for the latter Edit: There was some unneeded code that I put in a while ago while trying to fix an issue. Regardless, it didn't work, and I forgot to remove it. It copied the first frame in a track to the last frame in a track, which is a problem for non-looping animations (i.e. World Boss). I updated the script. Late edit 2018/07/19: I gave up on the script a lil while back. The iteration I uploaded, if I remember it correctly, is mostly correct, but has issues with the last frame of bones in animations. I once tried to fix that by copying the first frame of a track to the last frame, but that does not work on animations that do not loop, for obvious reasons. RE: Summoners War - NatoriousB - 09-09-2020 Where can I find instructions on how to execute this script? RE: Summoners War - NatoriousB - 09-13-2020 I was able to start reading the .dat files in Blender using Python. Any guidance on converting this script to work with Blender? RE: Summoners War - RedBear - 09-13-2020 Hi, TwiliChaos. Thanks for sharing your awesome script. Can you update your script as it doesn't work with models from the latest version of the game? Textures cannot be opened at all, and the model is gray. Thanks. PS: It seems that they have changed the texture format. Now the file signature is 4A6F6B657200 (Joker.), rather than 89504E47 (�PNG). PPS: I was able to figure out the textures. Now textures are stored in JPEG File Interchange Format (JFIF) format, instead of PNG format. Textures chunk: --header (24 bytes)
RE: Summoners War - NatoriousB - 09-14-2020 Well that's great! I was trying to get some help with making it more universal to work with Blender. There's a strong possibility it can be fixed. RE: Summoners War - richenberg - 02-02-2021 (09-13-2020, 08:07 AM)RedBear Wrote: Hi, TwiliChaos. Hello! how can i open this textures and convert model to obj? RE: Summoners War - RedBear - 02-04-2021 (02-02-2021, 10:25 AM)richenberg Wrote: Hello!You need to modify the script to make it work. RE: Summoners War - richenberg - 02-22-2022 Can someone upadte the list, i need Night Lady anavel, i got the files but couldnt use the script https://preview.redd.it/uo2zv1orghc41.png?auto=webp&s=d47e612561af5f79982c2cb5761738159901591a RE: Summoners War - CrankyCvnt - 03-24-2022 (05-27-2015, 08:50 AM)TGE Wrote: If you're just interested in ripping the meshes, you can use the MaxScript I attached. Has anyone found a model of the Sky Island? RE: Summoners War - RedBear - 04-18-2022 (02-22-2022, 07:46 AM)richenberg Wrote: Can someone upadte the list, i need Night Lady anavel, i got the files but couldnt use the script I'm not sure if I managed to convert the model correctly, but I did what I could: https://ufile.io/inf82d2m The archive contains the following files: cos_mdl_lolita_004.DAE cos_mdl_lolita_004.FBX cos_mdl_lolita_004_dark.tga cos_mdl_lolita_004_fire.tga cos_mdl_lolita_004_light.tga cos_mdl_lolita_004_water.tga cos_mdl_lolita_004_wind.tga cos_mdl_lolita_004_dark_rgba.png cos_mdl_lolita_004_dark_rgb.png cos_mdl_lolita_004_dark_a.png cos_mdl_lolita_004_fire_rgba.png cos_mdl_lolita_004_fire_rgb.png cos_mdl_lolita_004_fire_a.png cos_mdl_lolita_004_light_rgba.png cos_mdl_lolita_004_light_rgb.png cos_mdl_lolita_004_light_a.png cos_mdl_lolita_004_water_rgba.png cos_mdl_lolita_004_water_rgb.png cos_mdl_lolita_004_water_a.png cos_mdl_lolita_004_wind_rgba.png cos_mdl_lolita_004_wind_rgb.png cos_mdl_lolita_004_wind_a.png RE: Summoners War - Neostatos4 - 05-15-2023 Hey RedBear, do you have an updated script of the "SummonerWar_DAT_Final.txt" working with 3dsmax or blender with the adjustement that you explained? The old script seem to work with few recent model, such as Shadow Claw and the second awakening of the wandering knight, but many other unit (collab unit or very new one) and the costume does have textures not working, probably a story of jfif format. As far as I know, the script SummonerWar_DAT_Final have 517 lines of code and start talking about textures on line 207. It talk about textures on line 207-210-212-216-217-219-220-221-223-227-231-263-264-265-266-267-270-513. I don't think replacing all the "png" words by "jfif" will work... I don't know. Maybe you were trying to say that the code need to be adapted to each ".dat" file that don't work with the finale script? I took the data of few model I tried to get, if someone can try to extract them and upload them here that would be great, or just maybe help me understand them with the hex editor(I don't care about the bones, just the model and textures would be great). https://www.mediafire.com/file/lwryf6ghfzq88og/fewSumWar2023mdl.rar/file RE: Summoners War - andre.aguiar - 05-30-2023 (05-15-2023, 04:17 PM)Neostatos4 Wrote: Hey RedBear, do you have an updated script of the "SummonerWar_DAT_Final.txt" working with 3dsmax or blender with the adjustement that you explained? The old script seem to work with few recent model, such as Shadow Claw and the second awakening of the wandering knight, but many other unit (collab unit or very new one) and the costume does have textures not working, probably a story of jfif format. Is there any easy way for me to turn this .dat file into an OBJ or STL? my knowledge is very limited on this subject RE: Summoners War - Neostatos4 - 05-30-2023 (05-30-2023, 10:13 AM)andre.aguiar Wrote:Well, it really depend on which one you want to get? In the link I have put in my previous message, in the folder zfailures, you can find some .fbx file that you can easily import into Blender to export them into .obj or .stl, Noesis can also do it for you.(05-15-2023, 04:17 PM)Neostatos4 Wrote: Hey RedBear, do you have an updated script of the "SummonerWar_DAT_Final.txt" working with 3dsmax or blender with the adjustement that you explained? The old script seem to work with few recent model, such as Shadow Claw and the second awakening of the wandering knight, but many other unit (collab unit or very new one) and the costume does have textures not working, probably a story of jfif format. There are the 3 costumes of the beastrider, 2 costumes of the archangel, the normal and awakened shadowcaster and vampire lord. The game files are about 5Gb, I can put a mediafire link if you want to search a monster you want, but I might delete the link after one or two week because 5Gb is heavy. For example, the third costume of the archangel (japanese schoolboy) can't be imported(object.transform problem), but some work, such as the chakram/boomerang girl third costumes. |