Jump to content

A handy Dune 2 scenario editor for Windows


Recommended Posts

If i am not mistaken, that is because it is probably an unsigned int. Not a signed one which does not allow < 0. And because Dune 2 does not have a - sign for credits you will not see the difference, only to see the amount of money seems to 'increase' when you buy something, and 'decrease' when you get extra credits. (that is, if you already have reached that max and go over it).

Link to comment
Share on other sites

You're right about the "increasing" money, but that value is a SIGNED int. Not an unsigned. Earlier i explained the signned/unsigned integers, the highest bit is the sign bit and the value is -2^n => (2^n)-1. If it were an unsigned, then it would be overflow at 65535 and starts again from 0. The Amiga or Sega MegaDrive versions works like this.

BTW all of these "bugs" are the Intel CPU's fault. The Intel CPU-s can only work fast with signed max bitwidth values. For example the old Intels wich were 16 bit CPUs, the 16 bit signed Integer. That's why when you look into an exe and see that all value is stored on 16 bit (or 32 if you looks into a win32 file.)

That's funny, when the Motorola68000 was invented in 1979 it was a 32 bit processor, and Intel has then the 8086 wich was a buggy half 8, half 16 bit CPU, with a 20 bit addressing wich were segmented to 64k pages.

The Motorola 680x0 CPU family (wich were used by the most 16 bit retrocomputer, Amiga, Atari ST, Sega MegaDrive, Machintosh, etc.) can work very fast with any bitwidth values, signed or unsigned either, and they can use 32 bit registers, and they have a flat 24 bit addressing.

You can ask then why Intel was the winner in the CPU race. Because of fucking marketing. Just like winsuxx in the OS race.

I hate PC-s.

Link to comment
Share on other sites

  • 5 months later...

I get Java and ASP/C#.NET in schoolat the moment, but I usually end up programming stuff I need in Pascal. Must be because that's what I started with.

I can write a convertor for the output of that seeds program MrFlibble attached, but from my first tests they don't seem to contain any Spice.

There seem to be some 28 characters for different terrain types though...

In the attached file I just randomly replaced them by A,B,C... and eventually went on with 1 and 2 when I ran out of alphabet :P

It gives a nice image of the map though... edges, dunes and all. Just no spice.


Link to comment
Share on other sites

It looks like the converter gets all actual tiles for different spice/rock and rock/mountain border angles, but what's the output type ??? Should it be a graphics image or what?

By the way, if you look at the DOS screen when the converter is working, it briefly shows the map in ASCII art, and spice is present (marked by the colon) - see attachment.


Link to comment
Share on other sites

  • 4 weeks later...

By the way, if you look at the DOS screen when the converter is working, it briefly shows the map in ASCII art, and spice is present (marked by the colon) - see attachment.

I have redirected the program's output from the screen into a txt file, and it appears that I've been mistaken: it's not spice that is marked by the colon, it's sand dunes. So the program precisely generates all terrain except spice. Curiously enough, the places where spice is located may be occupied by different kinds of terrain, which makes me think that spice fields are somehow imposed later than other terrain when the game generates a map from a seed number. Maybe that's why there's also an option to put additional spice on the maps via the "Field=" line in the INIs.

At a second glance, it all seems logical since spice is the only terrain type which can be modified during the game in the sense that spice is eventually harvested away from the map.

Link to comment
Share on other sites

  • 12 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.