Create account / Log in

Repeated Graphics Tiling - New Java Update?

Issues with the Vassal engine.

Moderators: Tim M, uckelman

Re: Repeated Graphics Tiling - New Java Update?

Postby GJK » November 5th, 2015, 12:06 pm

Where do you download the older version of java from? The tiling is driving me crazy....

I'm going to try something - if you look at the OP's first messages, he "solved" the issue by editing the module on another computer and saving it. The one module that is doing the repeated tiling is one that I had just finished editing on my Win7 desktop. I was testing out some changes so would edit, exit, open (re-tile), edit, exit, (re-tile) dozens of times on that computer so I'm thinking that has something to do with it looping the tiling. I'm going to edit the module however slight on another PC, save and then copy it to my desktop to see if the issue goes away. I'll let you all know.
"Fat, drunk, and stupid is no way to go through life, son."

-Dean Vernon Wormer
GJK
 
Posts: 41
Joined: December 25th, 2007, 7:53 am

Re: Repeated Graphics Tiling - New Java Update?

Postby DrNostromo » November 6th, 2015, 2:57 pm

Yes, I did originally post that after editing the module on my XP system, it stopped tiling on my Win 7 system. However, the module is now tiling every time I start it on my Win 7 system regardless of what machine I edit it on. Haven't had any problem with repeated tiling on my XP system.

I don't particularly want to downgrade Java to fix this.
User avatar
DrNostromo
 
Posts: 1036
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: Repeated Graphics Tiling - New Java Update?

Postby DrNostromo » November 11th, 2015, 6:28 am

I figured out something that worked. I don't know why it worked, it just did.

First, I messed with the mod in several different ways on the Win 7 system to no avail ...it would still tile graphics whenever I started it. So, I tried the following:

All my computers have a common DropBox folder so any changes made to the mod is transferred over to the other systems.

I opened the module on the Win 7 system, let it tile its graphics, and then closed it.

I went to my Win XP system and opened the module in the editor. I went to the main game properties, deleted the version number, and then re-typed it. Basically, I'm not making any change at all, really. Then I saved it.

I let the module finish it's transfer through DropBox and tried to open it on the Win 7 system. It opened right up without tiling. Weird, huh?
User avatar
DrNostromo
 
Posts: 1036
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: Repeated Graphics Tiling - New Java Update?

Postby shilinski » November 11th, 2015, 7:54 pm

I have the same problem with 2 mods I created and use frequently, so I explored.

WHAT I DISCOVERED. I opened both mods with 7-zip. I noticed that all the images had a modification date of dec 31, 1969, which is probably a zero. The creation dates were rational.

So I extracted all the images. I then forced them to have valid modification dates. I have Windows 10, so to do this, I selected all image files, and then rotated all of them left then right, which caused them to be modification-stamped with the current time. (After selecting images, choose "Manage" on the toolbar, and the rotate option buttons appear.)

This works for pngs and jpegs but not gifs. (I still use gifs for images with partial transparency because I've had problems with pngs and some users.) For gifs, I had to recreate them as new. I then put everything back into the mods. Result? It worked. No more incessant tiling after the first time.

WHAT CAUSE THIS. I have no fricking idea. It was in 2 mods I'm currently using, and the 2 I most currently edited. I randomly checked some old modules (including the newish Victory in Europe) and saw no problems. If it were me, I'd look at the vassal editor first because I think it should be the only app that does not open files readonly.
shilinski
 
Posts: 87
Joined: December 22nd, 2007, 8:46 am
Location: Laurel, Maryland

Re: Repeated Graphics Tiling - New Java Update?

Postby greenknight » November 27th, 2015, 11:06 am

I can confirm that new Java + old timestamps do indeed cause repeated tiling upon startup.

By changing the timestamp on all images I was able to circumvent the problem.
greenknight
 
Posts: 49
Joined: November 18th, 2015, 9:46 pm

Re: Repeated Graphics Tiling - New Java Update?

Postby wargamerx » February 23rd, 2016, 6:29 pm

Any update on this?

I have been able to get around the issue by copying all the files in the image directory to a temporary one, and then overwriting the original files with the copied ones, but obviously I would like to avoid this annoyance.

Thanks
wargamerx
 
Posts: 27
Joined: September 26th, 2010, 11:48 am

Re: Repeated Graphics Tiling - New Java Update?

Postby uckelman » February 24th, 2016, 12:15 am

Isn't there already a solution, namely to fix the image file modification times?
User avatar
uckelman
Site Admin
 
Posts: 8137
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Repeated Graphics Tiling - New Java Update?

Postby wargamerx » February 24th, 2016, 1:06 pm

namely to fix the image file modification times?


I'd call that a workaround, not a solution.
wargamerx
 
Posts: 27
Joined: September 26th, 2010, 11:48 am

Re: Repeated Graphics Tiling - New Java Update?

Postby uckelman » February 24th, 2016, 2:16 pm

Thus spake wargamerx:
>
> > namely to fix the image file modification times?
>
>
> I'd call that a workaround, not a solution.

Maybe I don't understand what you want, then. What would a solution
look like for you?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8137
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Repeated Graphics Tiling - New Java Update?

Postby wargamerx » February 24th, 2016, 11:11 pm

To be able to save a module in the module editor with images files with correct dates, so that tiling doesn't occur every time the module is opened.

As it is now, you need to unzip the completed module, manually copy the image files to another directory, copy them back and rezip the file.
wargamerx
 
Posts: 27
Joined: September 26th, 2010, 11:48 am

Re: Repeated Graphics Tiling - New Java Update?

Postby uckelman » February 25th, 2016, 12:10 am

Thus spake wargamerx:
> To be able to save a module in the module editor with images files with
> correct dates, so that tiling doesn't occur every time the module is
> opened.
>
> As it is now, you need to unzip the completed module, manually copy the
> image files to another directory, copy them back and rezip the file.

How did they get incorrect dates in the first place?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8137
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Repeated Graphics Tiling - New Java Update?

Postby rbrook1 » February 25th, 2016, 2:42 am

Apparently something in the editor is changing the dates. I changed the image modified date from 31-Dec-1969 to the present then re-zipped the module. The graphics only tile the first time the module is opened. However, If I open the module with the editor, change nothing, save it, then un-zip it, the image modified dates are back to 31-Dec-1969. Then it's back to tiling every time.

No idea how or why the editor would change the dates, but that's seems to be what's happening.
rbrook1
 
Posts: 20
Joined: May 3rd, 2012, 6:32 pm

Re: Repeated Graphics Tiling - New Java Update?

Postby uckelman » February 25th, 2016, 12:11 pm

Thus spake rbrook1:
> Apparently something in the editor is changing the dates. I changed the
> image modified date from 31-Dec-1969 to the present then re-zipped the
> module. The graphics only tile the first time the module is opened.
> However, If I open the module with the editor, change nothing, save it,
> then un-zip it, the image modified dates are back to 31-Dec-1969. Then
> it's back to tiling every time.
>
> No idea how or why the editor would change the dates, but that's seems
> to be what's happening.

I created a new module just now, added, one image, and saved it. This
was with my development version, which has no modifications to the
ZIP handling code over 3.2.15, so should not differ from it in behavior,
and the JRE from OpenJDK 1.8.0_71.

* What are the minimal steps to take for recreating the problem?

* What version of Java are you using?

--
J.
User avatar
uckelman
Site Admin
 
Posts: 8137
Joined: December 10th, 2007, 9:48 am
Location: Durham, England

Re: Repeated Graphics Tiling - New Java Update?

Postby wargamerx » February 25th, 2016, 2:34 pm

For me, the minimal steps are to create or modify any module with my existing configuration.

I can take an existing module that was working fine, load it in Edit Mode, press save without making any changes, and the tiling problem will occur whenever I load it after that.

My Java version is 1.8.0_73-b02. I'm on Windows 10, VASSAL 3.2.15.

Thanks,
Jeff
wargamerx
 
Posts: 27
Joined: September 26th, 2010, 11:48 am

Re: Repeated Graphics Tiling - New Java Update?

Postby rbrook1 » February 25th, 2016, 5:23 pm

I'm using VASSAL 3.2.15 on a 32-bit Windows 10 Pro computer with Java Version 8 Update 73 (build 1.8.0_73-b02).
rbrook1
 
Posts: 20
Joined: May 3rd, 2012, 6:32 pm

PreviousNext

Return to Technical Support & Bugs

Who is online

Users browsing this forum: No registered users and 0 guests