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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...