Spahbod Posted December 25, 2011 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. Link to comment Share on other sites More sharing options...
historic_bruno Posted December 25, 2011 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. Link to comment Share on other sites More sharing options...
Spahbod Posted December 26, 2011 Author 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now