Create account / Log in

Game Piece Palette only shows last unit

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

Game Piece Palette only shows last unit

Postby scs » August 26th, 2016, 2:38 am

I'm trying to make a new game, but I either see one unit or none in the game piece palette. The buildFile has lines for all 139 units, however. Suggestions? References? Places to upload the module or the build file?

By the way, I drew all the game pieces and a lot of the board with Perl scripts--is this interesting to anyone?

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

Re: Game Piece Palette only shows last unit

Postby Nelud » August 29th, 2016, 9:32 am

Share the module with Dropbox, Google Drive or something.
Nelud
 
Posts: 26
Joined: September 28th, 2008, 5:20 am
Location: Saratov, Russia

Re: Game Piece Palette only shows last unit

Postby scs » August 29th, 2016, 6:20 pm

I'll have to sign up for something unless there's somewhere on vassalengine.org to upload it. I have a test example module that's only 68k. Thanks.
scs
 
Posts: 52
Joined: August 3rd, 2010, 10:01 am
Location: San Diego, CA

Re: Game Piece Palette only shows last unit

Postby uckelman » August 29th, 2016, 6:23 pm

Thus spake scs:
> I'll have to sign up for something unless there's somewhere on
> vassalengine.org to upload it. I have a test example module that's only
> 68k. Thanks.

You should be able to attach a module that size to a forum message.

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

Re: Game Piece Palette only shows last unit

Postby scs » August 29th, 2016, 6:28 pm

Attached is the test module. I'm hoping for a fix that won't be too laborious for about 200 pieces instead of 5. Thanks.

Stewart Strait
Attachments
small168.vmod
Only one of the 5 pieces can be seen or moved.
(66.72 KiB) Downloaded 145 times
scs
 
Posts: 52
Joined: August 3rd, 2010, 10:01 am
Location: San Diego, CA

Re: Game Piece Palette only shows last unit

Postby brian448 » August 29th, 2016, 8:46 pm

scs,

You need to use a Scrollable list to get a list of all units. You can also use a Tabbed Panel and separate Panels for Germans and Russians to separate the different units into Germans and Russians.

See the new attachment.

Brian
Attachments
small168_New.vmod
Updated small168 module
(66.84 KiB) Downloaded 137 times
brian448
 
Posts: 78
Joined: May 23rd, 2008, 1:35 am

Re: Game Piece Palette only shows last unit

Postby scs » August 30th, 2016, 5:57 am

Thanks everyone--Brian's new module looks like what I need. I'll make sure I can duplicate its functionality. I should also help to know
that the scrollable list shows all or several of the piece names at a time but only one piece image at a time. Perhaps I'll end up understanding enough that I can summarize for other people.
scs
 
Posts: 52
Joined: August 3rd, 2010, 10:01 am
Location: San Diego, CA

Re: Game Piece Palette only shows last unit

Postby uckelman » September 2nd, 2016, 9:25 pm

Thus spake scs:
>
> By the way, I drew all the game pieces and a lot of the board with Perl
> scripts--is this interesting to anyone?
>

I did that for the pieces for The Longest Day module. Generating SVG
from a script is the best way to make piece images, in my opinion.


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

Re: Game Piece Palette only shows last unit

Postby scs » September 3rd, 2016, 9:59 am

Because of Uckelman's last posting, I'm trying to generate SVG for my game pieces instead of my current method of generating postscript and converting to png. For some reason I'm having an easier time than when I tried it back in 2010.

I'm pretty sure I'm getting the scrollable lists of game pieces to work. It will be a while before even a crude form of the module is ready to upload, however.

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


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest