Jump to content

Recommended Posts

Posted

Their seed generator code should be found in the Dune Legacy source.

Where can the latest code be found? SF SVN doesn't appear to be up-to-date.

Posted

So they wrote their own seed generator, that is compatible with dune 2's one? That is quite an achievement.

Really love to have a seed generator from the real dune 2 source! :D Thx jpexs!

Posted

Really love to have a seed generator from the real dune 2 source! :D Thx jpexs!

I assume they've done it the same way jpexs has done it.

Posted

Their seed generator code should be found in the Dune Legacy source.

I checked it now and on the first look - the algorithm seems to be the same.

It is placed in "MapSeed.cpp" file.

The method "SmoothNeighbourhood" in the file adds the spice to the map, so they have spice included.

They have decoded also functions "getCosinus" and "getSinus" which are needed for spice generation.

I didn't know these are sin and cos, so I have these precalculated values as arrays of bytes. (As stored from Dune2 memory)

Their code is working but not very well commented, the one MrFlibble posted (and which I modified) is more clear to understand.

Posted

Too bad it uses global vars and definitions that I also use in my game, it will take a while to convert the code so it works there as well :)

Find & Replace all? :P

  • 1 month later...
Posted

I do wonder if it is easy to enhance the seed map generator for larger maps. Ie 128x128

I figured that it would be easy to just 'double' the 64x64 generated map and run some smoothing operations on it myself. So this will probably be not a problem at all.

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.

Guest
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.