Create account / Log in

chit pull system

Talk about module design ideas and techniques.

Moderators: Tim M, uckelman

chit pull system

Postby thepete » July 24th, 2011, 12:59 am

I'm trying to implement a chit pull system, but I can't seem to figure out the problem. I have single piece chits that I want to return to a deck. They should return to the deck face down and shuffled. When I draw from the deck I get a random face up chit.

My chits have:
- Basic Piece - with front image
- mask with - with back image
- Return to deck - "Cup"

The deck is located on "Cup Tray" map window
deck "Cup" has :
face down - yes
draw face up - yes
re-shuffle - always

When I right-click on a chit and select return to cup, they do go to that location, but face up and they don't shuffle. I also can't drag any chits to the deck. It's like the deck doesn't exist, yet return do deck works. What am I missing? Complete noob here and learning as I go. I looked at other modules but can't figure this one out.

Thanks in advance.
thepete
 
Posts: 8
Joined: April 27th, 2011, 2:46 am

Re: chit pull system

Postby DrNostromo » July 24th, 2011, 2:34 am

Sounds like everything should be right but obviously something is wrong.

Is the mod small enough to post it here? Or you can send it to my E-mail and I'll take a look at it.

DrNostromo@DrNostromo.com
User avatar
DrNostromo
 
Posts: 1036
Joined: December 21st, 2007, 3:54 am
Location: Wine Country, Cal. USA

Re: chit pull system

Postby thepete » July 24th, 2011, 2:10 pm

It's right here http://www.vassalengine.org/mediawiki/i ... _v1.3.vmod

I'm not the original author, but have been updating a few things including all the counter art. Looking at other modules, it should work as it is. If you can spot something, please let me know. The deck is on the Cup tray map. The chits are within the palette.
thepete
 
Posts: 8
Joined: April 27th, 2011, 2:46 am

Re: chit pull system

Postby cparrott » July 24th, 2011, 3:02 pm

I think that may be your problem when you say the chits are in the palette. Chits need to be cards, not game pieces. Cards seem to have some additional hidden features pieces don't. When you are building a module they are not interchangeable by cutting and pasting elements. Recreate the chit as cards in the cup deck and you should be good to go with them.
cparrott
 
Posts: 64
Joined: July 19th, 2008, 9:09 pm

Re: chit pull system

Postby thepete » July 24th, 2011, 5:52 pm

I did try creating cards within the deck. For some reason, I can't see the cards I created at the deck location. I made sure there was a front and back image to the cards. I can't even see the black outline on a empty deck.
thepete
 
Posts: 8
Joined: April 27th, 2011, 2:46 am

Re: chit pull system

Postby mycenae » July 24th, 2011, 5:56 pm

Make sure in the Deck Properties, the 'Belongs to Board' drop-down is set to the right map board (the board you want the deck to appear on).
mycenae
 
Posts: 392
Joined: May 16th, 2008, 6:41 pm

Re: chit pull system

Postby thepete » July 24th, 2011, 7:59 pm

mycenae wrote:Make sure in the Deck Properties, the 'Belongs to Board' drop-down is set to the right map board (the board you want the deck to appear on).


Yup. Did that. Even tried it on different map boards. Still the same problem.
thepete
 
Posts: 8
Joined: April 27th, 2011, 2:46 am

Re: [messages] [Module Design] Re: chit pull system

Postby Tim M » July 24th, 2011, 8:47 pm

Are you loading a saved setup file?

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of thepete
Sent: Sunday, July 24, 2011 3:00 PM
To: messages@vassalengine.org
Subject: [messages] [Module Design] Re: chit pull system


"mycenae" wrote:
> Make sure in the Deck Properties, the 'Belongs to Board' drop-down is
> set to the right map board (the board you want the deck to appear on).


Yup. Did that. Even tried it on different map boards. Still the same
problem.

_______________________________________________
Read this topic online here:
viewtopic.php?p=23873#p23873
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth

Re: chit pull system

Postby thepete » July 24th, 2011, 10:49 pm

Yes, it's loading a saved game file. Is that no good?
thepete
 
Posts: 8
Joined: April 27th, 2011, 2:46 am

Re: chit pull system

Postby Brent Easton » July 24th, 2011, 11:00 pm

Any changes you make to the module are in gerneral, notreflected in saved game files. They only apply to new games/new counters pulled. The reason for this is to ensure that games in progress continue to work as they did when they where first created.
User avatar
Brent Easton
 
Posts: 2757
Joined: December 21st, 2007, 3:06 am
Location: Berry, NSW, Australia

Re: chit pull system

Postby thepete » July 24th, 2011, 11:12 pm

I see. So when I do changes, I have to recreate the save file? That should be the problem then. I'll give it a try.

Update: It works! All this time it was that simple. Thanks for the help.
thepete
 
Posts: 8
Joined: April 27th, 2011, 2:46 am

Re: [messages] Edit: [Module Design] Re: chit pull system

Postby Tim M » July 24th, 2011, 11:41 pm

Winner! :)

-----Original Message-----
From: messages-bounces@vassalengine.org
[mailto:messages-bounces@vassalengine.org] On Behalf Of thepete
Sent: Sunday, July 24, 2011 6:16 PM
To: messages@vassalengine.org
Subject: [messages] Edit: [Module Design] Re: chit pull system

[This message has been edited.]

I see. So when I do changes, I have to recreate the save file? That
should be the problem then. I'll give it a try.

Update: It works! All this time it was that simple. Thanks for the
help.

_______________________________________________
Read this topic online here:
viewtopic.php?p=23879#p23879
Tim,
Vassal Uber Geek/Guru

Problems? post your OS, Physical Mem, version of Vassal and Java plus the Module in question.
No developer can help with out that info, thx!
User avatar
Tim M
 
Posts: 1777
Joined: December 8th, 2007, 12:22 pm
Location: Earth


Return to Module Design

Who is online

Users browsing this forum: No registered users and 1 guest