Jump to content

Recommended Posts

Posted

Some months ago C code was posted to decode the seed value. I've almost got it to work right, but not 100%.

Is anybody else using this code?

Posted

well, i would be more then happy to use it if it could work with spice aswell (as it does not show spice). Even if it does not but does show some nice maps i am more then interested. (for my own rmg).

I'd like to add the seed implementation in my game if possible so i can live without 'seed files' ;)

Posted

I've fixed the code, but it doesn't generate spice.

But it seems Dune 2 does generate spice based on seed. Is the original author of the code still around? Maybe he could fix this? ;->

Posted

Hi,

I'm sometimes hanging around the net,

but halted the work on Dune 2 stuff a bit (it requires much efforts).

This piece of code is unable to generate spice exactly like PC version does, since it lacks in a part that creates random spice fields.

I translated the code to show original Dune 2 terrain on Amiga and to learn how such generator is built and I'm sorry it's not 100% compatible with PC one.

Posted

All spice fields are predefined by the "Field"

entries in .INI files. It seems that PC version

adds some random fields to the map too.

Posted

just throwing in some idea. Perhaps the spice is generated like rock, but only on the given 'field' cells? The only difference is on the pc version that spice fields are generated on the map without the field setting.

I suggest we try out the 'field' thingy first. I think the spice field is generated like rock, but when a cell will be changed into spice is already rock, it will skip this one? (see, when you destroy a spice bloom, same effect).

?

Posted

All spice fields are predefined by the "Field"

entries in .INI files. It seems that PC version

adds some random fields to the map too.

Wouldn't that give PC players an advantage as they'd get more ore?

Posted

Not exactly, because .INI files in both versions

differs in number of "Field" entries. In PC version there are less predefined fields, however completed by the random ones.

Posted

Ah. Is the function of those field entries the same on both versions? If so, do you know how the Amiga version uses them to generate spice?

Posted

In general the spice Field looks like destroyed Bloom (like Stefan said).

I was trying much earlier to find the function but without results

This week I looked at code once again and finally found it - loop that draws spice in circular shape.

The loop itself is easy, however it calls few internal routines and there are some pure assembly parts which can cause problems. Are you interested in the code? I don't know if PC version has the same but I think it's similiar.

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.