Status of Port of MQ to Dev-C++

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Status of Port of MQ to Dev-C++

Post by Mckorr » Sat Mar 15, 2003 2:05 pm

Update on how well I'm doing:

1. EQLib.dll won't compile. Bunch of errors, the first of which seems to be the use of "pragma once" in detours.h.

2. Macroquest.exe will compile, but isn't reading the icon data from the macroquest.rc file for some reason. Have to check directory structures there, since I moved a bunch of files around to make it easier for me to find what I was working on.

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Sat Mar 15, 2003 3:19 pm

All the _asm stuff needs to be rewritten in the ATT assembler format. I did eqlib.cpp but detours is full of _asm.

It looks like a lot of pain.

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

Post by Grumpy » Mon Mar 17, 2003 1:10 pm

I've seen your VC 6 porting posts, are you still working on the Dev-C++ port, or should I just start doing it myself?

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Mon Mar 17, 2003 4:50 pm

Still working on porting to Dev-C++, but did the port to VC6 first so I'd have a working version of MQ.

But, I can certainly use help on the project, since I'm doing it in my spare time, which isn't much what with work, redecorating the house, and investigating why /click isn't working.

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Mon Mar 17, 2003 7:55 pm

I think porting to another compiler is a waste of precious time and resources, if you want my honest opinion. There are so many other important things, imo :)

Of course, I don't understand the obsession with removing perl either. It doesn't seem to be hurting anything.... /shrug. My version compiles just fine with it in there.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Mon Mar 17, 2003 8:46 pm

I'm porting it first, as an exercise in how to do it, and second, because many people can't afford Visual C++ for one reason or another.

As to wasting time and resources, well, they are mine to waste aren't they? Notice this thread has nothing to do with "why Mckorr should or shouldn't", it has to do with how far he's gotten.

Thank you for your wasting your precious time and resources giving me your unasked for opinion.

Valerian
a grimling bloodguard
a grimling bloodguard
Posts: 709
Joined: Sun Jul 28, 2002 3:29 am

Post by Valerian » Tue Mar 18, 2003 12:50 am

WTG Mckorr! keep up the work... and while you're at it, clean up eqlib.cpp. as it is, it's HUGE and almost unworkable. a few smaller files for specific things would be better (e.g. one for detours, one for commands, etc)...

I'd do it myself, but I'm going away for a few months.

Probably the wrong thread for this, but I'm a lazy sob :lol:

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Post by Amadeus » Tue Mar 18, 2003 2:11 am

After reading http://macroquest2.com/phpBB2/viewtopic ... 2432#12432 ...I have to admit that I was under the assumption that Mck's build was going to become the OFFICIAL build, and therefore subject to public opinion. My apologies for that misunderstanding.

A person can do whatever he likes with his personal build :) Only the public/official build should be scrutinized by the public.

icon
Official loudmouth
Official loudmouth
Posts: 158
Joined: Fri Jun 14, 2002 2:59 pm
Location: ...
Contact:

Post by icon » Thu Mar 20, 2003 3:31 am

My own personal opinion of Amadeus just went up about 5 ranks. Apologizing for a mistake or misunderstanding shows maturity that is lacking a bit too much these days. Honestly I was more expecting a "f* u devcpp suxx0rz & u do 2" or something. Not from you specifically, but that's the typical response I've come to expect in a disagreement.

Personally I love McKorr porting MQ to Dev-C++, as that happens to be my favorite compiler that I've been using for a LONG time. Even though I don't play EQ anymore, therefore will never actually compile MQ, I like to see a great compiler like Dev-C++ get more users. And more use.

...gonna wait for MacroBane one day.

One of these days I should really get back into C/C++ coding. I have a fairly decent book on it, and I'm a fast learner, but I can't get past a certain point in learning.

lol, I'm still undecided whether or not to stick with C or with C++. I know both of them just as well up to the point I'm at, and I like some of C's logic better (like printf() compared to cout), but I've heard of some advantages to C++. Anyone got a recommendation? Should I maybe learn C first then learn C++?

I tried to learn Assembly once, but learning registers and such is a bit beyond my reach I think. Programs written purely in Assembly are usually much smaller and run much faster then something written in a more modern language, but I'm not quite sure if the headache is really worth it. Anyone here ever fiddled with Assembly?

Grr, sorry for hijacking your thread man, if it's a problem I can just edit this part out and make a new thread in the general forums or something. I just have a bad habit of typing whatever pops into my head.

- Icon
In memory of [b][color=darkblue]MasTerKeyZ[/b][/color].

eq_freak
a ghoul
a ghoul
Posts: 105
Joined: Mon Jun 24, 2002 7:17 am

Post by eq_freak » Tue Apr 01, 2003 9:01 am

I personally dont care about Dev C++, but if someone needs a reference for converting the inline ASM stuff to the AT&T format I saw this link on the SEQ forum that might be of help if you are giving it a go:

http://www.delorie.com/djgpp/doc/brenna ... djgpp.html

Grumpy
a hill giant
a hill giant
Posts: 167
Joined: Sun Nov 10, 2002 4:22 pm

Post by Grumpy » Tue Apr 01, 2003 12:06 pm

icon wrote: One of these days I should really get back into C/C++ coding. I have a fairly decent book on it, and I'm a fast learner, but I can't get past a certain point in learning.

lol, I'm still undecided whether or not to stick with C or with C++. I know both of them just as well up to the point I'm at, and I like some of C's logic better (like printf() compared to cout), but I've heard of some advantages to C++. Anyone got a recommendation? Should I maybe learn C first then learn C++?

I tried to learn Assembly once, but learning registers and such is a bit beyond my reach I think. Programs written purely in Assembly are usually much smaller and run much faster then something written in a more modern language, but I'm not quite sure if the headache is really worth it. Anyone here ever fiddled with Assembly?

Grr, sorry for hijacking your thread man, if it's a problem I can just edit this part out and make a new thread in the general forums or something. I just have a bad habit of typing whatever pops into my head.

- Icon
Now that the thread is good and hijacked already...

Allow me to point out that C++ is a superset of C, any standards-compliant C program will compile just fine in most any C++ compiler (note that I said Standards-compliant, you might have to do a bit of porting if the C ain't kosher), so you can use printf() in a C++ program, or cout, or both.

If you learn C++, you know most everything about C as well, except the really bad habits some C coders have developed. So the answer is, learn C++.