Thread overview
Batch file to compile WinEmpire
Jan 29, 2006
Byron Smith
Jan 30, 2006
Stewart Gordon
Jan 31, 2006
Byron Smith
Jan 31, 2006
Stewart Gordon
January 29, 2006
Hello all:

I made a batch file to compile WinEmpire (in D) with, and would like some comments (hope it helps someone!). I downloaded the compiler, basic utilities, and the game source code (empiresrc.zip) fresh tonight (1/28/06) to make sure I am working with the latest versions of everything.

Once I had everything downloaded, here are the steps I took:

1. Unzip empiresrc.zip into its own folder (I chose the name 'empiresrc')

2. Take the batch file (listed below) and copy it into that folder.

3. When I tried to run the batch file (double-clicking the file from Windows), the compiler croaked out, "empire.d(62): Integer constant expression expected instead of PLYMAX" So I edited empire.d and exchanged lines 62 and 64 (where PLYMAX is actually defined). I ran the batch file again and everything compiled.

Empire is ALIVE.

Contents of _MAKE.BAT:
-------[cut]--------------------
@echo off
set lib=\dmd\lib;\dm\lib
set Path=c:\dmd\bin;c:\dm\bin;%Path%
\dm\bin\rcc -32 empire.rc
make
pause
-------[cut]--------------------


Hope this helps someone out there. It helped me. ;)

-- 
Byron Smith
cur underscore t at yahoo dot com
January 30, 2006
Byron Smith wrote:
> Hello all:
> 
> I made a batch file to compile WinEmpire (in D) with, and would like some comments (hope it helps someone!). I downloaded the compiler, basic utilities, and the game source code (empiresrc.zip) fresh tonight (1/28/06) to make sure I am working with the latest versions of everything.
<snip>

Throw away that code.  I sent Walter a version with several serious bugs fixed nearly two years ago.  Why has it still not appeared on the site?

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS- PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on the 'group where everyone may benefit.
January 31, 2006
Stewart Gordon wrote:
> Byron Smith wrote:
>> Hello all:
>>
>> I made a batch file to compile WinEmpire (in D) with, and would like some comments (hope it helps someone!). I downloaded the compiler, basic utilities, and the game source code (empiresrc.zip) fresh tonight (1/28/06) to make sure I am working with the latest versions of everything.
> <snip>
> 
> Throw away that code.  I sent Walter a version with several serious bugs fixed nearly two years ago.  Why has it still not appeared on the site?
> 
> Stewart.

But keep my batch file?

I can't speak for anyone besides myself here, but I have noticed that the code has changed 2-3 times since I first started working with it. For example, the version I downloaded on 1/28/06 (haven't checked since then) had a compiler error because a constant was missing which was not defined until two lines later in the code. Fortunately, this was an easy fix. But I had never run across that particular error with the code before, and though I didn't keep any older copies with which to do comparisons, I know I have never gotten that error before, so something must have changed.

Have you looked at the code to see what has been changed, and if any of your suggestions/corrections have been incorporated? Maybe you and Mr. Walter Bright can work out a deal where you can host the altered code on your own website?

Speaking of which, I am hoping to have the time to write a semi-clone of the old CGA/EGA version of Empire (using none of the code here) but it will be an extremely primitive Console text-only format of the game, and because I am a newbie, it will be pretty basic. IF I ever get it done, that is. It will be a public domain project on SourceForge (the project name for it currently is worldofempires, but there is absolutely nothing  worth seeing there right now).

-- Byron
January 31, 2006
Byron Smith wrote:
> Stewart Gordon wrote:
>> Byron Smith wrote:
>>> Hello all:
>>> 
>>> I made a batch file to compile WinEmpire (in D) with, and would like some comments (hope it helps someone!). I downloaded the compiler, basic utilities, and the game source code (empiresrc.zip) fresh tonight (1/28/06) to make sure I am working
>>> with the latest versions of everything.
>> <snip>
>> 
>> Throw away that code.  I sent Walter a version with several serious bugs fixed nearly two years ago.  Why has it still not appeared on the site?
>> 
>> Stewart.
> 
> But keep my batch file?

On second thoughts, if you're going to keep the batch file then I guess you might as well keep the code for want of anything better that's actually been published.  I meant that the code on the website is so out of date that there's little point doing anything with it.

> I can't speak for anyone besides myself here, but I have noticed that
> the code has changed 2-3 times since I first started working with it. For example, the version I downloaded on 1/28/06 (haven't checked
> since then) had a compiler error because a constant was missing which was not defined until two lines later in the code. Fortunately,
> this was an easy fix. But I had never run across that particular error with the code before, and though I didn't keep any older copies
> with which to do comparisons, I know I have never gotten that error before, so something must have changed.
> 
> Have you looked at the code to see what has been changed, and if any
> of your suggestions/corrections have been incorporated?

I've downloaded it a few times, and each time found all the bugs in all their glory.  Though Walter once mentioned that he'd made some changes to make it compile under newer DMD versions.  Though I still don't know why, in the first place, he worked around a bug in std.c.windows.windows (since fixed) rather than fixing it there and then.

> Maybe you and Mr. Walter Bright can work out a deal where you can host the altered code on your own website?
<snip>

I too have been thinking about releasing the fixed version on my own site for a while....

I've also planned to fix more bugs, but for various reasons not got round to it.

Stewart.

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:- C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++>++++ h-- r-- !y
------END GEEK CODE BLOCK------

My e-mail is valid but not my primary mailbox.  Please keep replies on
the 'group where everyone may benefit.