Spahbod Posted December 25, 2011 Report Share Posted December 25, 2011 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. Quote Link to comment Share on other sites More sharing options...
historic_bruno Posted December 25, 2011 Report Share Posted December 25, 2011 How are you using the placer though? That code by itself won't do anything. Sometimes the placers fail if the constraints fail too often, they're fidgety like that. There's some documentation about rmgen, if you haven't seen it. Quote Link to comment Share on other sites More sharing options...
Spahbod Posted December 26, 2011 Author Report Share Posted December 26, 2011 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 valuesplacer = 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.