Page 10 of 10

Posted: Thu May 29, 2014 4:19 am
by Your_Persona
There is also this library if you want to decompile binary MDL files to text MDL files. There is a simple console application in there called mdld.exe

Code: Select all

mdld.exe /file:"pathToBinaryMdl.mdl" /out:"pathToOutputText.mdl"
   Reads from a source file and creates an output file.
or
mdld.exe /file:"pathToBinaryMdl.mdl" 
   Reads from a source file and writes to stdout
or
mdld.exe 
   Reads from stdIn, and writes to stdOut
https://github.com/AllegianceZone/MDLReaderWriter

Last time I ran it, it could successfully decompile 3129 of 3294 MDL files in the artwork directory. I'm not sure if I was having issues with the last 5% because they were corrupt or what. Anyways, enjoy.

Oh, and allegiance can use the decompiled versions of these MDLs just fine, if you allow a flag in the loading process. And Mdlc and recompile them back to their originals. So you might be able to use the text mdl's compress them all in the installer and then compile them during the install.

Posted: Thu May 29, 2014 10:33 pm
by Your_Persona
Here is a patch that fixes a bug (copy/paste bug hah) in allegiance and mdlc related to loading text MDLs.

Code: Select all

Index: src/effect/efapp.cpp
===================================================================
--- src/effect/efapp.cpp    (revision 1033)
+++ src/effect/efapp.cpp    (working copy)
@@ -292,7 +292,8 @@

         TRef<IObjectList> plist;  CastTo(plist, (IObject*)stack.Pop());

-        while (plist->GetCurrent() != NULL) {
+        plist->GetFirst();
+        while (plist->GetCurrent() != NULL) {
             IObjectPair* ppair; CastTo(ppair, plist->GetCurrent());

             Color  color    =  GetColor(ppair->GetNth(0));
@@ -339,7 +340,8 @@
         TRef<FrameDataListValue> plistValue = new FrameDataListValue();

         TRef<IObjectList> plist;  CastTo(plist, (IObject*)stack.Pop());
-
+        
+        plist->GetFirst();
         while (plist->GetCurrent()) {
             IObjectPair* ppair; CastTo(ppair, plist->GetCurrent());

Posted: Fri Sep 12, 2014 12:17 pm
by MagisterXF94
Apologies for reviving this.
I was thinking that we could compile my high res textures, into the installer and allow them to be installed optionally.
Or we could just post a download link on the site.
So far, since I republished my texture pack no one reported any crashing to me.
What do you think?

I can provide an exe file or a zip file with the textures.

Posted: Fri Sep 12, 2014 2:38 pm
by Imago
we (Your_Perona and I) are working on R8 here: http://www.allegiancezone.com - http://forum.allegiancezone.com - http://trac.allegiancezone.com - yes, bitten is back - automatically creating up to date installers /w hi res texture options

edit: and input map options that dont suck

edit: join the fun at irc://irc.quakenet.org/#FreeAllegiance - AllegZoneBot gets lonley

Posted: Sun Sep 14, 2014 12:00 am
by MagisterXF94
Your_Persona wrote:QUOTE (Your_Persona @ May 29 2014, 06:19 AM) There is also this library if you want to decompile binary MDL files to text MDL files. There is a simple console application in there called mdld.exe

Code: Select all

mdld.exe /file:"pathToBinaryMdl.mdl" /out:"pathToOutputText.mdl"
   Reads from a source file and creates an output file.
or
mdld.exe /file:"pathToBinaryMdl.mdl" 
   Reads from a source file and writes to stdout
or
mdld.exe 
   Reads from stdIn, and writes to stdOut
https://github.com/AllegianceZone/MDLReaderWriter

Last time I ran it, it could successfully decompile 3129 of 3294 MDL files in the artwork directory. I'm not sure if I was having issues with the last 5% because they were corrupt or what. Anyways, enjoy.

Oh, and allegiance can use the decompiled versions of these MDLs just fine, if you allow a flag in the loading process. And Mdlc and recompile them back to their originals. So you might be able to use the text mdl's compress them all in the installer and then compile them during the install.
How do i use this? there is no Exe file in the link you provided.....

Posted: Tue Sep 16, 2014 2:01 am
by OldDragon
Looks like a visual studio solution/project. You should be able to just open it and build to get an executable.