Jump to content

An rmgen problem...


Recommended Posts

I've got some problems with placer functions of random map generation codes. RectPlacer doesn't work at all and ClumpPlacer always works at random. Regardless of the coordination I give to it. Can someone help?

Here is the code I'm using:

placer = new RectPlacer(0,0,round(fractionToTiles(0.9)),round(fractionToTiles(0.3)))

and it does nothing.

Link to comment
Share on other sites

Thank for your reply. I haven't seen that before. It seems that only ClumpPlacer works with createArea function I am using. But there is a problem with this one too. It doesn't seem to understand the tile coordinates I give it.

For example, these codes won't be any different:

placer = new ClumpPlacer(1000, 0.4, 0.3, 10, ix, iz); //ix and iz are defined and have values

placer = new ClumpPlacer(1000, 0.4, 0.3, 10, 100, 100);

placer = new ClumpPlacer(1000, 0.4, 0.3, 10);

The lake I'm trying to make always ends up random in the map.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

 Share

×
×
  • Create New...