Drag and drop is different

Thus spake Brigz:

I’ve run the error log while testing various modules but can’t find an
error log file anywhere in my Vassal directories.

The file is called errorLog. Where it’s located depends on what OS
you’re using.


J.

I’ll keep looking.

Thus spake Brigz:

I’ll keep looking.

I could tell you where it is if you tell me what OS you’re using.

J.

I’m using Windows 7

Thus spake Brigz:

I’m using Windows 7

Then the errorLog will be in C:\Users\username\AppData\Roaming\VASSAL,
if you replace “username” with your username.

Have you recently updated your video drivers?


J.

Haven’t updated or changed vidio drivers.

Here’s the latest errorlog:

22 Sep 2012 17:16:45.381 0 – Starting
22 Sep 2012 17:16:45.381 0 – OS Windows 7
22 Sep 2012 17:16:45.381 0 – Java version 1.7.0_07
22 Sep 2012 17:16:45.381 0 – VASSAL version 3.1.20
22 Sep 2012 17:16:45.397 0 – Manager
22 Sep 2012 17:16:58.282 0 – Loading module file C:\VASSAL\Games\Prestags Spartan\Rectangle\Spartan_Rectangle.vmod
22 Sep 2012 17:16:58.282 0 – Loading module Spartan Rectangle
22 Sep 2012 17:16:58.282 0 C:\Program Files (x86)\Java\jre7\bin\java -Xms256M -Xmx512M -DVASSAL.id=1 -Duser.home=C:\Users\Dave -cp lib\Vengine.jar VASSAL.launch.Player
22 Sep 2012 17:16:59.952 1 – Spartan Rectangle version 1.1
22 Sep 2012 17:16:59.952 1

22 Sep 2012 17:18:20.144 1 – Exiting
22 Sep 2012 17:18:23.482 0 – Exiting

Thus spake Brigz:

Haven’t updated or changed vidio drivers.

Here’s the latest errorlog:

22 Sep 2012 17:16:45.381 0 – Starting
22 Sep 2012 17:16:45.381 0 – OS Windows 7
22 Sep 2012 17:16:45.381 0 – Java version 1.7.0_07
22 Sep 2012 17:16:45.381 0 – VASSAL version 3.1.20
22 Sep 2012 17:16:45.397 0 – Manager
22 Sep 2012 17:16:58.282 0 – Loading module file
C:\VASSAL\Games\Prestags Spartan\Rectangle\Spartan_Rectangle.vmod
22 Sep 2012 17:16:58.282 0 – Loading module Spartan Rectangle
22 Sep 2012 17:16:58.282 0 C:\Program Files (x86)\Java\jre7\bin\java
-Xms256M -Xmx512M -DVASSAL.id=1 -Duser.home=C:\Users\Dave -cp
lib\Vengine.jar VASSAL.launch.Player
22 Sep 2012 17:16:59.952 1 – Spartan Rectangle version 1.1
22 Sep 2012 17:16:59.952 1

22 Sep 2012 17:18:20.144 1 – Exiting
22 Sep 2012 17:18:23.482 0 – Exiting

Unfortunately there’s nothing useful there.

Try finding the last release which doesn’t exhibit the problem:

vassalengine.org/releases/


J.

I’ve tried the releases back to 3.1.12 and still no ghost image when moving units. I’m positive that it was working when I used 3.1.14. I have no idea why it’s not displaying right.

I guess I’ll just have to wait until 3.2 comes out and see how that works.

Thus spake Brigz:

I’ve tried the releases back to 3.1.12 and still no ghost image when
moving units. I’m positive that it was working when I used 3.1.14. I
have no idea why it’s not displaying right.

This confirms what I thought, which is that it’s not a problem with
VASSAL, but with something else on your machine.

I guess I’ll just have to wait until 3.2 comes out and see how that
works.

You can already try 3.2.0-beta3.


J.

Installed beta 3.2. No luck. Same as the others.

Well, it’s already been a while since the last post, but might as well post “fix” I found. I had the same problem as OP ever since I changed my motherboard and installed fresh win7. What fixed it for me was turning on aero. I’m not enough tech savvy to tell why it helped, but it did. I hope this helps anyone with the same problem.

Thus spake Garamir:

Well, it’s already been a while since the last post, but might as well
post “fix” I found. I had the same problem as OP ever since I changed my
motherboard and installed fresh win7. What fixed it for me was turning
on aero. I’m not enough tech savvy to tell why it helped, but it did. I
hope this helps anyone with the same problem.

This makes me suspect a Java bug. I’ll bet that whichever verision of
Java you have doesn’t account for the case where Aero is disabled on
Windows 7.


J.

This is indeed the case. I just recently changed my desktop background to one of the Win 7 Aero choices and the drag and drop counter transparency problem was solved. Wish I’d have read the above postings sooner. Thanks for your help uckelman and Garamir.

Thus spake Brigz:

This is indeed the case. I just recently changed my desktop background
to one of the Win 7 Aero choices and the drag and drop counter
transparency problem was solved. Wish I’d have read the above postings
sooner. Thanks for your help uckelman and Garamir.

Weird. All I can say is that we’re doing what the Java APIs say we
should w/r/t drawing.


J.

Hi Joel,
Solved this last year - See bug 10295.
Rgds,
Brent.

Thus spake Brent Easton:

Hi Joel,
Solved this last year - See bug 10295.

The last time I looked at that bug, I hadn’t understood what the
solution was. Do we need to use DragHandlerNoImage() for the
combination of Java 7 and Windows 7? (What about Windows 8?)


J.

The short answer is for windows, always assume drag images are not
supported natively (regardless of what the OS says it supports) and do
it ourselves, then it is guaranteed to work.

On 18/03/2014 1:42 AM, Joel Uckelman wrote:

Thus spake Brent Easton:

Hi Joel,
Solved this last year - See bug 10295.
The last time I looked at that bug, I hadn’t understood what the
solution was. Do we need to use DragHandlerNoImage() for the
combination of Java 7 and Windows 7? (What about Windows 8?)


Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@exemail.com.au

Thus spake Brent Easton:

The short answer is for windows, always assume drag images are not
supported natively (regardless of what the OS says it supports) and do
it ourselves, then it is guaranteed to work.

Ok.

Does 3.2.12-svn9021 do the right thing for you on Windows?

vassalengine.sourceforge.net/builds/


J.

Yes, that fixes it for me on Windows 7.

On 18/03/2014 8:38 AM, Joel Uckelman wrote:

Thus spake Brent Easton:

The short answer is for windows, always assume drag images are not
supported natively (regardless of what the OS says it supports) and do
it ourselves, then it is guaranteed to work.
Ok.

Does 3.2.12-svn9021 do the right thing for you on Windows?

vassalengine.sourceforge.net/builds/


Brent Easton
Analyst/Programmer
University of Western Sydney
Email: b.easton@exemail.com.au

Thus spake Brent Easton:

Yes, that fixes it for me on Windows 7.

Great. That will go into 3.2.12, then.

BTW, it’s good to hear from you again, Brent.


J.