www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [OT] I ported Empire to D2 and made it cross platform.

reply "Bernard Helyer" <b.helyer gmail.com> writes:
I've tried multiple times to contact Walter through his websites, 
but apparently _that's_ a dead end so...

http://i.imgur.com/DzrN6.png

Look at it! The selection pulses! Empire's never looked so good!

There are some rough edges; the save games fail to load, demo 
isn't working, the text log isn't cleared correctly. But other 
than that you can happily play a game right through. I can't put 
the code anywhere because distribution is prohibited, so this is 
my last ditch effort to contact Walter.


-Bernard.
Feb 05 2012
next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 2/5/2012 6:44 PM, Bernard Helyer wrote:
 I've tried multiple times to contact Walter through his websites, but
apparently
 _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

 There are some rough edges; the save games fail to load, demo isn't working,
the
 text log isn't cleared correctly. But other than that you can happily play a
 game right through. I can't put the code anywhere because distribution is
 prohibited, so this is my last ditch effort to contact Walter.

Here I am. Yes, it does look nice. Sorry, but please don't redistribute it.
Feb 05 2012
parent reply deadalnix <deadalnix gmail.com> writes:
Le 06/02/2012 05:16, Walter Bright a écrit :
 On 2/5/2012 6:44 PM, Bernard Helyer wrote:
 I've tried multiple times to contact Walter through his websites, but
 apparently
 _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

 There are some rough edges; the save games fail to load, demo isn't
 working, the
 text log isn't cleared correctly. But other than that you can happily
 play a
 game right through. I can't put the code anywhere because distribution is
 prohibited, so this is my last ditch effort to contact Walter.

Here I am. Yes, it does look nice. Sorry, but please don't redistribute it.

I don't see the point of it. It is advertisement for D.
Feb 06 2012
parent reply bcs <bcs example.com> writes:
On 02/06/2012 03:00 AM, deadalnix wrote:
 Le 06/02/2012 05:16, Walter Bright a écrit :
 On 2/5/2012 6:44 PM, Bernard Helyer wrote:
 I've tried multiple times to contact Walter through his websites, but
 apparently
 _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

 There are some rough edges; the save games fail to load, demo isn't
 working, the
 text log isn't cleared correctly. But other than that you can happily
 play a
 game right through. I can't put the code anywhere because
 distribution is
 prohibited, so this is my last ditch effort to contact Walter.

Here I am. Yes, it does look nice. Sorry, but please don't redistribute it.

I don't see the point of it. It is advertisement for D.

Some side effect of some long ago licensing agreement with a company that is now nothing more than a fileing cabinet full of paper and a lawyer on retainer?
Feb 06 2012
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 2/6/2012 8:08 PM, bcs wrote:
 Some side effect of some long ago licensing agreement with a company that is
now
 nothing more than a fileing cabinet full of paper and a lawyer on retainer?

No. Empire is entirely mine.
Feb 06 2012
parent deadalnix <deadalnix gmail.com> writes:
Le 07/02/2012 07:16, Walter Bright a écrit :
 On 2/6/2012 8:08 PM, bcs wrote:
 Some side effect of some long ago licensing agreement with a company
 that is now
 nothing more than a fileing cabinet full of paper and a lawyer on
 retainer?

No. Empire is entirely mine.

OK, that is understandable. But why not using a licence with an attribution clause ? By not lettign people distribute a D version of this, you simply limit the propagation of D. And this is IMO against your own interest.
Feb 07 2012
prev sibling next sibling parent Caligo <iteronvexor gmail.com> writes:
On Sun, Feb 5, 2012 at 8:44 PM, Bernard Helyer <b.helyer gmail.com> wrote:
 I've tried multiple times to contact Walter through his websites, but
 apparently _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

 There are some rough edges; the save games fail to load, demo isn't working,
 the text log isn't cleared correctly. But other than that you can happily
 play a game right through. I can't put the code anywhere because
 distribution is prohibited, so this is my last ditch effort to contact
 Walter.


 -Bernard.

So I presume that you modified the source code slightly to make it work? Or is it a complete rewrite?
Feb 05 2012
prev sibling next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Monday, 6 February 2012 at 04:33:56 UTC, Caligo wrote:
 On Sun, Feb 5, 2012 at 8:44 PM, Bernard Helyer 
 <b.helyer gmail.com> wrote:
 I've tried multiple times to contact Walter through his 
 websites, but
 apparently _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so 
 good!

 There are some rough edges; the save games fail to load, demo 
 isn't working,
 the text log isn't cleared correctly. But other than that you 
 can happily
 play a game right through. I can't put the code anywhere 
 because
 distribution is prohibited, so this is my last ditch effort to 
 contact
 Walter.


 -Bernard.

So I presume that you modified the source code slightly to make it work? Or is it a complete rewrite?

Yeah, it's a port of the D1 code with various things replaced as needed.
Feb 05 2012
prev sibling next sibling parent "Mattbeui" <matheus_nab hotmail.com> writes:
On Monday, 6 February 2012 at 02:44:40 UTC, Bernard Helyer wrote:
 I've tried multiple times to contact Walter through his 
 websites, but apparently _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

 There are some rough edges; the save games fail to load, demo 
 isn't working, the text log isn't cleared correctly. But other 
 than that you can happily play a game right through. I can't 
 put the code anywhere because distribution is prohibited, so 
 this is my last ditch effort to contact Walter.


 -Bernard.

I don't get it all... The source code is open or you did reverse engineering?
Feb 06 2012
prev sibling next sibling parent deadalnix <deadalnix gmail.com> writes:
Le 06/02/2012 03:44, Bernard Helyer a écrit :
 I've tried multiple times to contact Walter through his websites, but
 apparently _that's_ a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

 There are some rough edges; the save games fail to load, demo isn't
 working, the text log isn't cleared correctly. But other than that you
 can happily play a game right through. I can't put the code anywhere
 because distribution is prohibited, so this is my last ditch effort to
 contact Walter.


 -Bernard.

Congrat !
Feb 06 2012
prev sibling next sibling parent reply Stewart Gordon <smjg_1998 yahoo.com> writes:
On 06/02/2012 02:44, Bernard Helyer wrote:
 I've tried multiple times to contact Walter through his websites, but
apparently _that's_
 a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so good!

And it has a retro look to it. But why is the first option just an "A" by itself?
 There are some rough edges; the save games fail to load, demo isn't working,
the text log
 isn't cleared correctly.

BTW which version did you start from? In my version I completely rewrote the text display as what we had was geared towards a character-cell display, which was no good with it using a proportional font. I think I found that some existing saved games wouldn't load, but there's no problem loading games that were saved with that same version.
 But other than that you can happily play a game right through. I
 can't put the code anywhere because distribution is prohibited, so this is my
last ditch
 effort to contact Walter.

The version I've contributed I emailed to Walter and he eventually put it up on the website. Is there any reason the same can't be done in this instance? Stewart.
Feb 06 2012
next sibling parent Stewart Gordon <smjg_1998 yahoo.com> writes:
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

On 06/02/2012 13:48, Bernard Helyer wrote:
<snip>
 I started with Walter's original 2.01 D release. The font I'm using is
proportional, so
 I've not a problem there.

You mean "The font I'm using is fixed"? You'd have to for it to make any sense. But do look at the StatusPanel class in my version if you haven't already. (You'll notice that it's a bit of a hack that works because the code treats strings passed into it as immutable, although immutable doesn't exist with it being D1. Of course, when porting to D2, they would be declared as such.
 Your version was also in D1, was it not? I think something
 subtle may have borked. I'm sure it's fixable if I sit down and fix it, but
seeing as it's
 forbidden to languishing on my hard-drive, I'm not sure I give enough fucks to
do that.

What do you mean by "forbidden to languishing on my hard-drive"? BTW I've attached my list of bugs I found and changes I made. Use it as a checklist if you like (and you find the inclination to carry on working on it). Stewart.
Feb 06 2012
prev sibling parent Walter Bright <newshound2 digitalmars.com> writes:
On 2/6/2012 4:42 AM, Stewart Gordon wrote:
 The version I've contributed I emailed to Walter and he eventually put it up on
 the website. Is there any reason the same can't be done in this instance?

Nope. Send it to me.
Feb 06 2012
prev sibling next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Monday, 6 February 2012 at 12:42:31 UTC, Stewart Gordon wrote:
 On 06/02/2012 02:44, Bernard Helyer wrote:
 I've tried multiple times to contact Walter through his 
 websites, but apparently _that's_
 a dead end so...

 http://i.imgur.com/DzrN6.png

 Look at it! The selection pulses! Empire's never looked so 
 good!

And it has a retro look to it. But why is the first option just an "A" by itself?

It pulses. It's just nearly transparent. :P
 There are some rough edges; the save games fail to load, demo 
 isn't working, the text log
 isn't cleared correctly.

BTW which version did you start from? In my version I completely rewrote the text display as what we had was geared towards a character-cell display, which was no good with it using a proportional font. I think I found that some existing saved games wouldn't load, but there's no problem loading games that were saved with that same version.

I started with Walter's original 2.01 D release. The font I'm using is proportional, so I've not a problem there. Your version was also in D1, was it not? I think something subtle may have borked. I'm sure it's fixable if I sit down and fix it, but seeing as it's forbidden to languishing on my hard-drive, I'm not sure I give enough fucks to do that.
 But other than that you can happily play a game right through. 
 I
 can't put the code anywhere because distribution is 
 prohibited, so this is my last ditch
 effort to contact Walter.

The version I've contributed I emailed to Walter and he eventually put it up on the website. Is there any reason the same can't be done in this instance?

Up to Walter, obviously.
Feb 06 2012
prev sibling next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Monday, 6 February 2012 at 10:55:22 UTC, Mattbeui wrote:
 The source code is open or you did reverse engineering?

On classicempire.com there's a version for windows written in an old version of D (old enough that it wouldn't even compile with a modern copy of DMD1). I took that code and ported it to D2 and a cross platform engine at the same time. The source is _available_, however, not open. I can look at it and do the above, but I may not give anyone else my version.
Feb 06 2012
prev sibling next sibling parent "Mattbeui" <matheus_nab hotmail.com> writes:
On Monday, 6 February 2012 at 13:51:52 UTC, Bernard Helyer wrote:
 On Monday, 6 February 2012 at 10:55:22 UTC, Mattbeui wrote:
 The source code is open or you did reverse engineering?

On classicempire.com there's a version for windows written in an old version of D (old enough that it wouldn't even compile with a modern copy of DMD1). I took that code and ported it to D2 and a cross platform engine at the same time. The source is _available_, however, not open. I can look at it and do the above, but I may not give anyone else my version.

I get it and I just can say that you are doing a great work, and of course you need respect Walter's wishes anyway.
Feb 06 2012
prev sibling next sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Monday, 6 February 2012 at 18:04:24 UTC, Stewart Gordon wrote:
 On 06/02/2012 13:48, Bernard Helyer wrote:
 <snip>
 I started with Walter's original 2.01 D release. The font I'm 
 using is proportional, so
 I've not a problem there.

You mean "The font I'm using is fixed"? You'd have to for it to make any sense.

Derp. Yeah.
 But do look at the StatusPanel class in my version if you 
 haven't already.  (You'll notice that it's a bit of a hack that 
 works because the code treats strings passed into it as 
 immutable, although immutable doesn't exist with it being D1.  
 Of course, when porting to D2, they would be declared as such.

 BTW I've attached my list of bugs I found and changes I made.  
 Use it as a checklist if you like (and you find the inclination 
 to carry on working on it).

Thanks!
 Stewart.

Feb 06 2012
prev sibling parent "Bernard Helyer" <b.helyer gmail.com> writes:
On Tuesday, 7 February 2012 at 06:18:24 UTC, Walter Bright wrote:
 On 2/6/2012 4:42 AM, Stewart Gordon wrote:
 The version I've contributed I emailed to Walter and he 
 eventually put it up on
 the website. Is there any reason the same can't be done in 
 this instance?

Nope. Send it to me.

Awesome. Will do once I'm done.
Feb 06 2012