REGoth-project / REGoth

OpenSource-Reimplementation of the zEngine, used by the game "Gothic"
GNU General Public License v3.0
631 stars 62 forks source link

.MSB mobs are not loaded by REGoth #193

Open superdaveman opened 7 years ago

superdaveman commented 7 years ago

That's the reason the blacksmith mobsis at Harad's place or at Bennet's place in Gothic II are not loaded by REGoth. It only loads the existing .MDL files because static .ASC-files were compiled to .MDL files in Gothic I.

ataulien commented 7 years ago

So we would need to write a parser for mds files, just for a couple of objects? :/

superdaveman commented 7 years ago

We would probably only need to load the .MDM and .MDH files as they are the compiled mesh and bone hierarchy. It's just important for Gothic II as there are no .MDS-files in the .VDF-files. This might be important for animated objects later - except we include the Gothic 2 .MDS files in REGoth.

ataulien commented 7 years ago

Ah, I forgot what .MDS files were. It's been a while ;) There actually is a parser for them in one of the branches I am working on!

Are the .MDS-Files still in the _work-folder then? So we would need to implement loading files which are not inside .VDF-Archives, right?

superdaveman commented 7 years ago

They are. :D _work/Data/Anims is their normal path.

Yeah, loading files which are not inside .VDF-archives would be a good thing to implement.

ataulien commented 7 years ago

@superdavid639 I've been tinkering around with this now for a while and got the files inside the _work-directory mounted into our virtual file system. Unfortunately I don't quite understand what I need to do to have the anvils show up (it's also been a while since I worked with those files).

Can you explain a little further on what's different between these and most of the other mobs?

superdaveman commented 7 years ago

The difference between these mobs and most of the other mobs is that the blacksmith mobs don't have any .mdl files in the Anims.vdf. Well that was what I found out about them and why they likely weren't loaded by REGoth.

Almost every other mob had a .mdl file in the Anims.vdf except some chests I guess, that's what I can remember at least and I searched for them in REGoth and they were also not loaded by it. So I guess what's to change is to load them by .mdm and not by .mdl for Gothic 2.