[BUG] White Map

Developer discussion regarding MapTool 1.4

Moderators: dorpond, trevor, Azhrei

Forum rules
Posting now open to all registered forum users.
Post Reply
User avatar
jckrbbt
Cave Troll
Posts: 41
Joined: Sun Jun 13, 2010 10:10 pm

[BUG] White Map

Post by jckrbbt »

Hey everyone! Been a while since I messed around with MapTools, but it feels good to be back. I'm excited about MT1.4 and opened a clean download on Windows 7 and executed maptool-1.4.0.0 from the extracted zip. It opens fine, but when I go to edit the base map, I wanted to remove the grasslands background and make it a solid color. I was able to get it to work with black, but for some reason, an all white background throws the following error. I was wondering if it's just me (I grabbed the download from the link at: http://download.rptools.net/zip/maptool-1.4.0.0.zip) or if it's reproducible. I'm running Java 8, update 40 (build 1.8.0_40-b26).

Once I set it to black, I can set it to white in swatches and/or use the recent colors and it works. It's only the first time I try to make the map white.

Code: Select all

java.lang.IllegalArgumentException: Invalid type of paint: java.awt.TexturePaint
	at net.rptools.maptool.model.drawing.DrawablePaint.convertPaint(DrawablePaint.java:38)
	at net.rptools.maptool.client.ui.MapPropertiesDialog$3.actionPerformed(MapPropertiesDialog.java:304)
	at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
	at java.awt.Component.processMouseEvent(Unknown Source)
	at javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.awt.Component.processEvent(Unknown Source)
	at java.awt.Container.processEvent(Unknown Source)
	at java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.awt.Component.dispatchEvent(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.awt.EventQueue$4.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:36)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.WaitDispatchSupport$2.run(Unknown Source)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$500(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.awt.EventQueue$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
	at java.awt.EventQueue.dispatchEvent(Unknown Source)
	at net.rptools.maptool.client.swing.MapToolEventQueue.dispatchEvent(MapToolEventQueue.java:36)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.awt.EventDispatchThread.run(Unknown Source)

User avatar
Jagged
Great Wyrm
Posts: 1306
Joined: Mon Sep 15, 2008 9:27 am
Location: Bristol, UK

Re: [BUG] White Map

Post by Jagged »

Yeah, I think when white is selected as the background colour, Maptool tries to use it as a transparency.

taustinoc
Dragon
Posts: 518
Joined: Mon Aug 03, 2015 6:30 pm

Re: [BUG] White Map

Post by taustinoc »

A long standing bug. Instead of setting it to white on the Swatches tab, go to RGB and set all the sliders all the way to the right (and if they're all there to begin with, move one of them, then move it back - another long standing bug).

Also, it's a bad idea to run the Maptool jar directly, as you will be stuck with the default memory settings, which won't work worth a darn. Use the launcher, and set the Max Memory to no more than 1400 (and in my experience, 1200 or even 1024 are more reliable) for 32 bit systems, or maybe 2048 for 64 bit, and stack to 3. The limit on 32 bit systems is important, especially on Windows. There's a raft of weirdnesses that, combined, make it impossible to set it higher than that even if you have more memory available.

User avatar
jckrbbt
Cave Troll
Posts: 41
Joined: Sun Jun 13, 2010 10:10 pm

Re: [BUG] White Map

Post by jckrbbt »

great tips, thanks!

Post Reply

Return to “MapTool 1.4”