Modcraft - The community dedicated to quality WoW modding!

Community => Random => Topic started by: Snips on September 17, 2017, 06:07:47 pm

Title: [HELP] Converted wmo error
Post by: Snips on September 17, 2017, 06:07:47 pm
Hi modcraft, i am in the process of converting the legion stormwind wmo files, all of the files work and are shown in game, modelviewer and noggit just fine. However when i try to open sw_tradedistrict.wmo in 010 editor to check what textures it uses, it shows me but also produces an error *ERROR Line 616: Error on read file.
I think this is causing my game to crash when i try to look at certain places of the wmo.

Here is a visual understanding of what i am talking about: https://imgur.com/a/JA2zi
Title: Re: [HELP] Converted wmo error
Post by: schlumpf on September 17, 2017, 06:18:27 pm
"*ERROR Line 616: Error on read file. "

impossible to debug without knowing what line 616 (and surrounding) are, and without the input file.
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 17, 2017, 06:50:33 pm
Huh... i swear i added them to the album, stupid imgur. I have added them now.
Title: Re: [HELP] Converted wmo error
Post by: Supora on September 17, 2017, 07:48:56 pm
Modelviewer show those textures like this just because it's a two-layered material. BTW theme might be some errors with the flags in root wmo when you use materials that required more than one mocv chunk. So maybe you can upload yours root files(no need for me in group files).
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 17, 2017, 08:01:08 pm
This could be the problem?. https://imgur.com/a/wl4vx
Title: Re: [HELP] Converted wmo error
Post by: schlumpf on September 17, 2017, 08:05:03 pm
Welp, that error as is is still undebuggable as it is in a completely generic function with zero indication what it currently is parsing, sorry.

Your suspicion about it being missing things might be misleading: after all the template stopped being evaluated so there sure is some part of the file not handled. Likely the last block of data that is visible is somehow corrupted.
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 17, 2017, 08:13:12 pm
Arghh this is irritation, well I will keep trying things and let you known if I fix it.
Title: Re: [HELP] Converted wmo error
Post by: schlumpf on September 17, 2017, 08:14:17 pm
If you upload the unmodified and modified (crashing) wmo I can probably give it a look in an hour or two.
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 17, 2017, 08:56:20 pm
Oh thank you so much, I have to go out to a wedding right now but I will upload the files tomorrow. Thanks.
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 18, 2017, 09:01:13 am
Ok i have put the converted and unconverted files into this file.

https://mega.nz/#!ZmwGHQJa!30d4KQAssTwHkvforsTPcBMNaMH-2DqFme1_8qfgogc
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 19, 2017, 02:04:49 pm
I have just tried to use the cataclysm trade district WMO, and that works better than the legion WMO, but it still crashes when you look at it for a while. Something is very weird with this WMO...
Title: Re: [HELP] Converted wmo error
Post by: schlumpf on September 19, 2017, 09:41:34 pm
No idea why it would be crashing after some time. That doesn't sound like something that a WMO could cause.

The only difference between sw_cathedraldistrict.wmo and sw_tradedistrict.wmo in your zip is that sw_cathedraldistrict.wmo has a MOSB chunk that just contains 4x 00 bytes. This is also why your 010 editor template shows bogus data.

I don't see why that would crash anything though.
Title: Re: [HELP] Converted wmo error
Post by: Snips on September 20, 2017, 08:38:19 am
Well this is certainly strange. I have just converted the cataclysm version of sw_tradedistrict. And i get almost the same error, except this time i can look at it for about 7 seconds before wow crashes without error. Maybe 3.3.5 just doesn't work with this wmo?

Thanks for looking anyway :)