Forum > Resources and Tools

[TOOL] LKBC M2 Converter v0.4

<< < (5/6) > >>

spik96:
I use CMake to organize a bit the code structure, but if you don't know how it works you can still take all the includes (.h files), all the source (.c files), put them in one folder then compile the main with your favorite compiler I use Linux's GCC but any converter should work.
I don't think the Night elf glow is considered a light. My converter removes the Death Knight geoset but the standard Night elf eyes should be fine. Note its texture is hardcoded, however.

leeviathan:
The hardcoded blp is where it needs to be, it's just that the eye geoset is missing--I looked in WoWModelViewer and toggled all the geosets to make sure. Have a look if you get the time (I linked it in my post about the Night Elf eyes)

In trade for your attention, I humbly offer you this Tauren Bear model. I changed a render flag set on its eye geoset, which was causing the eye to glow in the dark.

spik96:
Interesting. I thought renderflags did not changed between the two periods. I bet it's again the default value problem.
See, before LK all model had to specify exactly their settings, but since LK, they often left a blank (under the form of an nRefs=0) and it magically works because the client knows that nothing equals a default behaviour. But when you want to convert the formats, you have to find all these blanks (so you have to know how to differentiate a 0 that means don't use that and a 0 that means use the default value) then you have to find the default value you should replace the 0 with... And that's hard.
That's even harder because to make the converter, at start I was of course looking at old models since they were on both LK and BC/Vanilla clients. But older models (still on WoD today) have still their settings entirely set and don't use default values at all.
I first found that with the attachments that were not always properly displayed and I couldn't figure why.
There was a default=true. This change was unnoticed while it's still used today (now it has been added to the wiki thanks to schlumpf) !
I will look at the renderflags. There is also one other big problem with my converter. Try to convert arctic bird. It will have no wings. The part of the geoset (and I insist on the part of the geoset and not the geoset which is also a part of the model) will disappear. This problem is also on the Jaina.m2 and all the Warlords of Draenor character models. Fixing it would allow the conversion of those problems.

Also, you had a problem with the animations of your bird. My algorithm was supposed to fix that automatically (http://hastebin.com/oberimiwap.cpp) but it seems it's still not complete. Sorry.

stan84:

--- Quote from: "spik96" ---I use CMake to organize a bit the code structure, but if you don't know how it works you can still take all the includes (.h files), all the source (.c files), put them in one folder then compile the main with your favorite compiler I use Linux's GCC but any converter should work.
I don't think the Night elf glow is considered a light. My converter removes the Death Knight geoset but the standard Night elf eyes should be fine. Note its texture is hardcoded, however.
--- End quote ---

Hi Spik :)

I'd like to compile your converter,  unsucessfully :(
recevied such report:

Scanning dependencies of target UAll
[  6%] Building C object CMakeFiles/UAll.dir/tests/UDummy.c.o
[ 13%] Building C object CMakeFiles/UAll.dir/tests/CuTest.c.o
[ 20%] Building C object CMakeFiles/UAll.dir/src/conversion.c.o
[ 26%] Building C object CMakeFiles/UAll.dir/src/fallback.c.o
[ 33%] Building C object CMakeFiles/UAll.dir/src/reading.c.o
/home/develop/LKBC_Converter/src/reading.c: In function ‘read_model’:
/home/developLKBC_Converter/src/reading.c:893:20: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
    anim_files = (FILE *) fcaseopen(
                    ^
[ 40%] Building C object CMakeFiles/UAll.dir/src/common.c.o
[ 46%] Building C object CMakeFiles/UAll.dir/src/fcaseopen.c.o
Linking C executable UAll
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
make[2]: *** [UAll] Error 1
make[1]: *** [CMakeFiles/UAll.dir/all] Error 2
make: *** [all] Error 2

could You post compiled executable, or give tip to solution ?

Stan ;)

spik96:
The compiled version is always available in the Binaries section on Github : https://github.com/Koward/LKBC_Converter/releases
Concerning the last rev, I have been told there is a bug with models where they crash the game at sight. I'm exhausted trying to fix this god damn converter. It's really painful x)

I'm considering porting this project to Java or Scala for modern and easier maintainability. And to fit the new specifications schlumpf adds from the source.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version