Staredit Network > Forums > Technology & Computers > Topic: Cross-OS MPQ handling
Cross-OS MPQ handling
Apr 16 2008, 3:29 pm
By: fatimid08  

Apr 27 2008, 2:58 pm fatimid08 Post #21



VB to C# should be straightforward enough, just run it through VB.Net to C# converter and make sure it works properly after. I'll start doing that during the week, so at least people won't have to go and install another mono package just for VB support.

Although if you could help me out for the huffman algorithm (as in I don't have it done yet, at all) that would be great. I've already got a working vb version of pklib and a C# zlib library, so that part will be easy enough.



None.

Apr 27 2008, 8:56 pm Laser Dude Post #22



Quote from fatimid08
Quote
VB.NET compiler and runtime were released.
for the current 1.9 version

That would explain it. I used the one from the Ubuntu 7.10 repos, which is 1.2.4: out of date; this is due to Ubuntu's policy on stable releases. I might be able to give you some more accurate results later today.



None.

May 5 2008, 2:40 pm poiuy_qwert Post #23

PyMS and ProTRG developer

So hows this going? Have you gotten anyone to do some testing for you or have any advancements?




May 5 2008, 9:11 pm fatimid08 Post #24



I've started converting to C# so that if you don't have the mono-basic package, it'll still work. It goes pretty fast except for the fact that I'm somewhat brain dead at this time of year (as in I was supposed to work on this yesterday, but I watched cartoons instead all day) and that my finals are coming next week (organic chemistry 2 is hard especially with a crazy teacher who thinks it's all terribly easy).

As for testing, Laser had started but he had some issues with not having the Mono VB.Net runtime installed, so I guess he stopped bothering. Can't blame him.



None.

Jun 5 2008, 10:42 pm fatimid08 Post #25



Time to revive the topic.

Just to refresh memories:
I'm working on an MPQ handling library which works on Windows, Mac, and Linux without having to recompile or use different binaries and stuff like that. To achieve that, the goal is to make it run under Mono on Mac and Linux (and Windows if people want), and the .Net Framework under Windows.

It's all in C# now, so no more mono-basic error if that happened to you.
Go to first post for attachment download, or click the link to download directly.

What I need is people testing this on Mac and Linux, running the application with Mono 1.2.5 or later.

Next up is Huffman compression/decompression (which is not done at all and hope that it magically appears from nowhere) and adding files to archives (which is well under way)



None.

Jun 6 2008, 2:46 am Cole Post #26



I've started doing a little C# again, just opengl/directx/software rendering stuff and implementing LUA into C#. Maybe I'll take a look at this when I get some free time.

Also about huffman...
http://www.codeproject.com/KB/cs/Huffman_algorithm.aspx

I'm not sure if the MPQ uses a variation of Huffman though.



None.

Jun 6 2008, 3:19 am fatimid08 Post #27



I've tried that one, unfortunately, it doesn't work, throws me an error saying the data wasn't compressed with that particular algorithm. However, it's still in the dll until I get a replacement going.

I'll be trying this one next, if that works, I'll only have compression to implement.



None.

Jun 6 2008, 6:05 pm Heimdal Post #28



Are you using elements from the Microsoft.VisualBasic namespace? If not then I don't know why you'd need that assembly. Make sure it's not referenced by your project at all. Just use things from System.

Bleh, I only read the first page. Carry on, nothing to see here.



None.

Jun 7 2008, 5:52 am Laser Dude Post #29



It still isn't functioning for me. I'm assuming I'm doing something wrong. My Operating system is Ubuntu 8.04, Linux 2.6.24-18-generic. Is there any way to test if mono is set up properly? Here's the output of your program:

Code
$ mono MpqTester2.exe

** (MpqTester2.exe:10207): WARNING **: The following assembly referenced from /home/laserdude/monoMPQ/MpqTester2.exe could not be loaded:
    Assembly:   System.Windows.Forms    (assemblyref_index=1)
    Version:    2.0.0.0
    Public Key: b77a5c561934e089
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/home/laserdude/monoMPQ/).


** (MpqTester2.exe:10207): WARNING **: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.

** (MpqTester2.exe:10207): WARNING **: Missing method EnableVisualStyles in assembly /home/laserdude/monoMPQ/MpqTester2.exe, type System.Windows.Forms.Application

Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'


Here's the output of mono --version

Code
$ mono --version
Mono JIT compiler version 1.2.6 (tarball)
Copyright (C) 2002-2007 Novell, Inc and Contributors. www.mono-project.com
    TLS:           __thread
    GC:            Included Boehm (with typed GC)
    SIGSEGV:       altstack
    Notifications: epoll
    Architecture:  x86
    Disabled:      none


I'm not able to be a full-time tester, because I don't use SEN too often, but I'll try to give you feedback when I can.



None.

Jun 7 2008, 12:59 pm fatimid08 Post #30



My guess is to go on your package manager (Synaptic I think it is?) and look for extra mono packages which have winforms, forms, windows forms or anything similar on them. My guess is that that particular package didn't come preinstalled.

Else, I found this from the ubuntu help in case you have time to waste and want to install a clean copy of Mono.



None.

Jun 7 2008, 11:00 pm Laser Dude Post #31



I got it. The package name is libmono-winforms2.0-cil for anyone else looking for it.

It seems to work. I successfully loaded the program, opened an file, and extracted it. I didn't check whether the file was valid. (This is the only MPQ editing tool for my system)



None.

Jun 8 2008, 3:29 pm fatimid08 Post #32



I've extracted a few files using WinMpq and attached them to this post. I've picked a few random ones from BrooDat.mpq and patch_rt.mpq. You can compare them to the same files extracted from my application.

Attachments:
sample_files.zip
Hits: 0 Size: 432.67kb



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[01:19 pm]
Vrael -- IM GONNA MANUFACTURE SOME SPORTBALL EQUIPMENT WHERE THE SUN DONT SHINE BOY
[01:35 am]
Ultraviolet -- Vrael
Vrael shouted: NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
Gonna put deez sportballs in your mouth
[2024-5-01. : 1:24 pm]
Vrael -- NEED SOME SPORTBALL> WE GOT YOUR SPORTBALL EQUIPMENT MANUFACTURING
[2024-4-30. : 5:08 pm]
Oh_Man -- https://youtu.be/lGxUOgfmUCQ
[2024-4-30. : 7:43 am]
NudeRaider -- Vrael
Vrael shouted: if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
Yeah I'm not a big fan of Westernhagen either, Fanta vier much better! But they didn't drop the lyrics that fit the situation. Farty: Ich bin wieder hier; nobody: in meinem Revier; Me: war nie wirklich weg
[2024-4-29. : 6:36 pm]
RIVE -- Nah, I'm still on Orange Box.
[2024-4-29. : 4:36 pm]
Oh_Man -- anyone play Outside the Box yet? it was a fun time
[2024-4-29. : 12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[2024-4-29. : 11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
Please log in to shout.


Members Online: Dem0n