Menu

#9 Possible bug with rules and changing area sizes

open
nobody
None
5
2007-01-19
2007-01-19
Simon
No

piknik2:

I've setup a set of four texture rules based off the heightmap of my map to give it a base auto-texturing ( if you will ) of sorts. These rules rely heavily on the SLOPE texture rule and the inverse (1.0 - SLOPE). I've narrowed down the issue to map size, whenever i use either of those texture rules on anything larger than 145px ( 8 tile ) bitmap/jpeg/(whatever) then YATT will fail with this error :

Parameter must be positive and < Height.
Parameter name: y

at System.Drawing.Bitmap.GetPixel(Int32 x, Int32 y)
at SFX.YATT.LGC.Rules.Rule.GetRuleSansKeywords(Bitmap hm, Bitmap sm, Bitmap input, Int32 x, Int32 y)
at SFX.YATT.LGC.Rules.Rule.GenerateMap()
at SFX.YATT.LGC.Maps.Map.GetMap()
at SFX.YATT.LGC.Maps.TexturemapList.ApplyToTRN(TRN trn, TextureOverflowAction overflowAction, IProgressDisplayer progressDisplayer)
at SFX.YATT.LGC.Engine.AreaBuilder.Apply(NWN2GameArea area, Inputs inputs)
at SFX.YATT.LGC.Engine.AreaBuilder.Build(Inputs inputs)
at SFX.YATT.UI.MainForm.buildAreaToolStripMenuItem_Click(Object sender, EventArgs e)

Also, this only occurs when the Texture Overflow is set to Nothing. I'm need the nothing setting to allow the texture maps to overlay nicely as Merge mucks it up. On 121px and 145px maps this works great, anything larger breaks.

Discussion


Log in to post a comment.