Create account / Log in

svg map slow--which changes to make?

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Re: svg map slow--which changes to make?

Postby uckelman » January 3rd, 2017, 3:07 am

Thus spake Brent Easton:
> Hi Joel, Stewart,
>
> I have just had a quick play with the module and I can confirm that
> Vassal does not appear to be handling the svg version of the map
> correctly. It does not attempt to tile the image before play. It appears
> to be re-rendering the image on-the-fly as required.

I see that's what's happening, now that I've had a closer look. I
should have time to look into this in the next few days.

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

Re: svg map slow--which changes to make?

Postby scs » January 3rd, 2017, 3:38 am

Thanks for looking into this. I'll use a png board for the time being. I noticed that the module is 273k with svg and 3211k with png. The svg looks better when you zoom in, too. For these reasons I'll switch back if there's a fix. Sorry for being somewhat ill-informed and disorganized when reporting this.

If anyone is using Linux and wants to convert some other module (and has imageMagick installed) all you need to do to make this kind of change is, I think:
1. unzip the vmod into its own subdirectory
2. run the command: convert {boardfile}.svg {boardfile}.png
3. remove the svg from the subdirectory.
4. Edit the buildFile to use the new boardfile name.
5. zip the vmod, probably giving it a different name.

The same sort of process should let you do other conversions or substitute other boards. My experience is very limited, but I think this isn't a very tricky way to edit a buildFile.

Thanks again
Stewart
scs
 
Posts: 52
Joined: August 3rd, 2010, 10:01 am
Location: San Diego, CA

Previous

Return to Module Design

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 1 guest