Create account / Log in

Closing a non-Main-Map window closes the whole module

Talk about module design ideas and techniques.

Moderators: uckelman, Tim M

Closing a non-Main-Map window closes the whole module

Postby geoffreyphipps » April 24th, 2015, 2:58 pm

Hi,
I am creating a module for my new Game (Gallipoli 1951). I've been using the OCS: Reluctant Enemies modules as an example, following its structure quite closely.

I created a secondary map window (the first of many) for the counter setup cards. However, when I run the module, if I close that window the whole game exists. Yet in the OCS module it just closes that window, not the whole game. As far as I can tell I have exactly the same properties on my main map window and on the secondary map window.

So, how do I configure a map window so that closing is does/does-not close the whole module?

thanks in advance
Geoff
geoffreyphipps
 
Posts: 29
Joined: February 24th, 2015, 5:04 am

Re: Closing a non-Main-Map window closes the whole module

Postby iam2509 » April 24th, 2015, 5:03 pm

Geoff,

I checked out the Reluctant Enemies vassal module that you are using as a template.

In EDIT mode I see the main map edit window is altered from a normal vassal module with NEW headings and wordings and descriptions!; it also says in the top vassal description "Recompiled for 3.2.15"

Personally, I would NOT recommend using this vassal module as a template since it has been internally altered somehow...
User avatar
iam2509
 
Posts: 72
Joined: August 1st, 2010, 12:01 am

Re: Closing a non-Main-Map window closes the whole module

Postby geoffreyphipps » April 24th, 2015, 5:37 pm

Oh, I noticed that some headings were different and wondered why. Thanks for the tip, and as payment, you get to answer my next question: Which module is a good example for me to follow?
geoffreyphipps
 
Posts: 29
Joined: February 24th, 2015, 5:04 am

Re: Closing a non-Main-Map window closes the whole module

Postby iam2509 » April 24th, 2015, 5:42 pm

Geoff,

I am posting this discussion in the CSW Vassal forum for you to get more feedback:

http://talk.consimworld.com/WebX?14@@.ee6f15c/7862

As far as recommendations I am biased towards my own vassal modules but here is a list:

If you are using random chits drawn from a cup use this: http://www.vassalengine.org/wiki/Module:Across_5_Aprils

If you are using random maps and drawing cards use this: http://www.vassalengine.org/wiki/Module:Kriegspiel_(1970)

For a straight up vassal module: that works well: http://www.vassalengine.org/wiki/Module ... _Eggshells

And for a vassal module that has TONs of unique complicated features to use as a resource: http://www.vassalengine.org/wiki/Module ... _of_Shiloh
User avatar
iam2509
 
Posts: 72
Joined: August 1st, 2010, 12:01 am

Re: Closing a non-Main-Map window closes the whole module

Postby geoffreyphipps » April 24th, 2015, 5:56 pm

Thanks. I'll try Across 5 Aprils, because Gallipoli 1915 also has chit pulls
geoffreyphipps
 
Posts: 29
Joined: February 24th, 2015, 5:04 am

Re: Closing a non-Main-Map window closes the whole module

Postby JoelCFC25 » April 24th, 2015, 5:57 pm

All of the OCS modules contain heaps of custom Java classes developed by the late George Heyward. I wouldn't recommend using them as the basis for anything unless you are very sure of what you are doing.
JoelCFC25
 
Posts: 708
Joined: October 12th, 2010, 5:15 pm
Location: Minnetrista, MN


Return to Module Design

Who is online

Users browsing this forum: No registered users and 4 guests