NO. This does EXACTLY WHAT I WANT. Trust me... ;) Try the following...
create a simple piece called "custom unit" (an image, delete key, and a text label that can be set by the user) create a simple "deck" with only the save/load function drag a copy of the simple piece on to the map. set the text label to "THIS IS MY GUY's NAME" drag this piece to the deck right click, save save to MYGUY.pieces now remove the piece from the deck delete it. now right click on deck and choose Load load MYGUY.pieces now the deck has a copy of the piece with the text label already set to "THIS IS MY GUY's NAME" You with me so far.. a single VASSAL piece called "custom unit" Multiple instances of "custom unit" can be created each with their own value for the text label. All of them can be added to the deck and saved/loaded as needed. This allows a user to create 200 different instances of "custom unit" each with their own name, saved and loaded at a moments notice.. no longer needing to recreate the 200 every time they want them.. no need to create a separate vassal piece for each cause the only difference between them is the value of the text label. Now, imagine if you will that you had a piece that had a property sheet with 11 stats in it. You can set those stats and save the piece via the deck as well. Couple that with the fact that a text label can have contents such as... <html><img src="$image$"> Then one of my stats in the property sheet can be IMAGE, the user puts an http://path.to/my/image.gif in the property and you can dynamically load images from the web into a vassal module. This save/load instances of pieces thing is bigger than you think! It can allow you to give your users an ability to set custom pieces without having to learn anything about vassal modules.. simply drag a "custom unit" on to the map and set its properties! Once you have created your custom units, drag em to the "transporter pad" (deck with save/load) and save em. then you can post em and swap em with friends. Load up your favourite game map, right click on the "transporter pad" and load your customs... choose the ones you want and delete the rest... for reference here is my MYGUY.pieces which contains a SINGLE instance of my custom unit piece with its variables set... DECK +/1153512509173/replace;Show\/Hide Card;68,130;VASSAL.build.module.PieceWindow\/VASSAL.build.widget.TabWidget:pieces\/VASSAL.build.widget.TabWidget:figures\/VASSAL.build.widget.ListWidget:Blank\/VASSAL.build.widget.PieceSlot:. card ;null;0;0;true; PROP;wounds;true,0,100,false;Alter Wounds:87\,650:R\,How many wounds total?,Add a Wound:87\,130:I\,1\ footprint;77,195;Movement Trail;true;true;5;255,0,255;255,0,255;75;0;20;30;10.0\\ emb2;Toggle Death;3;D;;0;;;0;;;;1;false;0;0;death.png;+(Dead);false;DEATH;;\\\ nonRect;m,-1,-50,l,-1,-49,l,-3,-49,l,-3,-48,l,-4,-48,l,-4,-47,l,-6,-47,l,-6,-46,l,-8,-46,l,-8,-45,l,-10,-45,l,-10,-44,l,-11,-44,l,-11,-43,l,-13,-43,l,-13,-42,l,-14,-42,l,-14,-41,l,-16,-41,l,-16,-40,l,-18,-40,l,-18,-39,l,-19,-39,l,-19,-38,l,-21,-38,l,-21,-37,l,-23,-37,l,-23,-36,l,-24,-36,l,-24,-35,l,-26,-35,l,-26,-34,l,-28,-34,l,-28,-33,l,-30,-33,l,-30,-32,l,-31,-32,l,-31,-31,l,-33,-31,l,-33,-30,l,-34,-30,l,-34,-29,l,-36,-29,l,-36,-28,l,-37,-28,l,-37,-27,l,-39,-27,l,-39,-26,l,-41,-26,l,-41,-25,l,-42,-25,l,-42,-24,l,-43,-24,l,-43,-23,l,-43,-22,l,-43,-21,l,-43,-20,l,-43,-19,l,-43,-18,l,-43,-17,l,-43,-16,l,-43,-15,l,-43,-14,l,-43,-13,l,-43,-12,l,-43,-11,l,-43,-10,l,-43,-9,l,-43,-8,l,-43,-7,l,-43,-6,l,-43,-5,l,-43,-4,l,-43,-3,l,-43,-2,l,-43,-1,l,-43,0,l,-43,1,l,-43,2,l,-43,3,l,-43,4,l,-43,5,l,-43,6,l,-43,7,l,-43,8,l,-43,9,l,-43,10,l,-43,11,l,-43,12,l,-43,13,l,-43,14,l,-43,15,l,-43,16,l,-43,17,l,-43,18,l,-43,19,l,-43,20,l,-43,21,l,-43,22,l,-43,23,l,-43,24,l,-43,25,l,-43,26,l,-41,26,l,-41,27,l,-40,27,l,-40,28,l,-38,28,l,-38,29,l,-36,29,l,-36,30,l,-34,30,l,-34,31,l,-32,31,l,-32,32,l,-30,32,l,-30,33,l,-29,33,l,-29,34,l,-27,34,l,-27,35,l,-25,35,l,-25,36,l,-23,36,l,-23,37,l,-21,37,l,-21,38,l,-19,38,l,-19,39,l,-17,39,l,-17,40,l,-16,40,l,-16,41,l,-14,41,l,-14,42,l,-12,42,l,-12,43,l,-10,43,l,-10,44,l,-8,44,l,-8,45,l,-6,45,l,-6,46,l,-5,46,l,-5,47,l,-3,47,l,-3,48,l,-1,48,l,-1,49,l,1,49,l,1,50,l,4,50,l,4,49,l,5,49,l,5,48,l,7,48,l,7,47,l,9,47,l,9,46,l,10,46,l,10,45,l,12,45,l,12,44,l,13,44,l,13,43,l,15,43,l,15,42,l,17,42,l,17,41,l,18,41,l,18,40,l,20,40,l,20,39,l,22,39,l,22,38,l,23,38,l,23,37,l,25,37,l,25,36,l,26,36,l,26,35,l,28,35,l,28,34,l,30,34,l,30,33,l,31,33,l,31,32,l,33,32,l,33,31,l,35,31,l,35,30,l,36,30,l,36,29,l,38,29,l,38,28,l,39,28,l,39,27,l,41,27,l,41,26,l,43,26,l,43,25,l,44,25,l,44,24,l,44,23,l,44,22,l,44,21,l,44,20,l,44,19,l,44,18,l,44,17,l,44,16,l,44,15,l,44,14,l,44,13,l,44,12,l,44,11,l,44,10,l,44,9,l,44,8,l,44,7,l,44,6,l,44,5,l,44,4,l,44,3,l,44,2,l,44,1,l,44,0,l,44,-1,l,44,-2,l,44,-3,l,44,-4,l,44,-5,l,44,-6,l,44,-7,l,44,-8,l,44,-9,l,44,-10,l,44,-11,l,44,-12,l,44,-13,l,44,-14,l,44,-15,l,44,-16,l,44,-17,l,44,-18,l,44,-19,l,44,-20,l,44,-21,l,44,-22,l,44,-23,l,44,-24,l,44,-25,l,44,-26,l,43,-26,l,43,-27,l,41,-27,l,41,-28,l,40,-28,l,40,-29,l,38,-29,l,38,-30,l,37,-30,l,37,-31,l,35,-31,l,35,-32,l,33,-32,l,33,-33,l,31,-33,l,31,-34,l,29,-34,l,29,-35,l,27,-35,l,27,-36,l,25,-36,l,25,-37,l,23,-37,l,23,-38,l,22,-38,l,22,-39,l,20,-39,l,20,-40,l,18,-40,l,18,-41,l,16,-41,l,16,-42,l,14,-42,l,14,-43,l,12,-43,l,12,-44,l,11,-44,l,11,-45,l,9,-45,l,9,-46,l,7,-46,l,7,-47,l,5,-47,l,5,-48,l,3,-48,l,3,-49,l,1,-49,l,1,-50,c\\\\ markmoved;moved.png;-47;-23;Mark Moved;77,130\\\\\ label;;;10;;255,255,0;b;-13;c;-8;b;c; $pieceName$ ;Monospaced;1;0;woundLabel\\\\\\ label;;;10;;;b;-3;c;3;b;c; $pieceName$ ;Monospaced;1;0;lifelabel\\\\\\\ label;;;10;;;t;78;l;75;b;c; $pieceName$ ;Monospaced;1;0;defencelabel\\\\\\\\ label;;;10;;;t;60;l;83;b;c; $pieceName$ ;Monospaced;1;0;attacklabel\\\\\\\\\ label;;;10;;255,255,255;t;40;l;83;b;c; $pieceName$ ;Monospaced;1;0;rangelabel\\\\\\\\\\ label;;;10;;255,255,255;t;23;l;75;b;c; $pieceName$ ;Monospaced;1;0;movelabel\\\\\\\\\\\ emb2;Toggle overlay;3;o;;0;;;0;;;;1;false;0;0;singleoverlay.png;;false;;;\\\\\\\\\\\\ emb2;Toggle Under;2;U;;0;;;0;;;;1;false;0;0;under.png;+(under);false;under;; \\\\\\\\\\\\\ label;69,130;Change Extra Tokens;10;;255,221,255;c;26;c;-25;b;c; $pieceName$;Monospaced;1;0;extraTokens\\\\\\\\\\\\\\ emb2;Toggle Extra Token Background;9;E;;0;;;0;;;;1;false;0;0;singleExtraTokens.png;;false;ExtraTokensLayer;; \\\\\\\\\\\\\\\ placemark;Target;84,130;VASSAL.build.module.PieceWindow\/VASSAL.build.widget.TabWidget:pieces\/VASSAL.build.widget.ListWidget:etc\/VASSAL.build.widget.PieceSlot:target;null;-15;25;false; \\\\\\\\\\\\\\\\ macro;hide extra tokens;;;extraTokens == null && ExtraTokensLayer_Active != false;69\,130;69\,585\\\\\\\\\\\\\\\\\ macro;show extra tokens;;;extraTokens != null && ExtraTokensLayer_Active != true;69\,130;69\,585\\\\\\\\\\\\\\\\\\ immob;;N\\\\\\\\\\\\\\\\\\\ report;88\,130,67\,130,82\,195,76\,195,65\,195,68\,195,77\,195,69\,130,85\,130,91\,130,93\,130,87\,130,84\,130; $location$: $newPieceName$ *$menuCommand$;;\\\\\\\\\\\\\\\\\\\\ clone;Copy;67,130\\\\\\\\\\\\\\\\\\\\\ macro;trigger DEATH;;;wounds >= $life$ && DEATH_Active != true;87\,130,76\,585,87\,650,80\,130;68\,195\\\\\\\\\\\\\\\\\\\\\\ macro;undo DEATH;;;wounds < $life$ && DEATH_Active != false;87\,130,76\,585,87\,650,80\,130;68\,195\\\\\\\\\\\\\\\\\\\\\\\ label;76,130;Edit Label;10;255,255,204;102,102,102;b;10;c;0;b;c; $pieceName$;Dialog;1;0;TextLabel\\\\\\\\\\\\\\\\\\\\\\\\ delete;Delete;88,130\\\\\\\\\\\\\\\\\\\\\\\\\ submenu;Additional Options;Movement Trail,Copy,Toggle Death,Mark Moved,Toggle Extra Token Background,Change Player,Toggle overlay,Edit Label,Show\/Hide Card\\\\\\\\\\\\\\\\\\\\\\\\\\ mark;gamelayer\\\\\\\\\\\\\\\\\\\\\\\\\\\ label;;;1;;;c;0;c;0;b;c;$pieceName$ ($label$);Monospaced;0;0;sizeheightlable\\\\\\\\\\\\\\\\\\\\\\\\\\\\ emb2;;0;;Change Player;3;P;;0;;;;1;false;1;0; ,yellowring.png,purplering.png,bluering.png,redring.png,greenring.png;,,,,,;false;player aliance;;\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ label;;;10;;;c;0;c;0;c;c; $pieceName$;Dialog;0;0;htmlimage\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ label;;;1;;;c;0;c;0;b;c; $pieceName$;Monospaced;0;0;heightlabel\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ label;;;1;;;c;0;c;0;b;c; $pieceName$;Dialog;0;0;sizelabel\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ label;;;1;;238,238,238;t;35;c;0;b;c; $pieceName$$label$;Dialog;0;0;NameLabel\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ propertysheet;0name~0image~7move~7range~7attack~7defence~7life~0size~7height~1notes~0card_image;Properties;P;1;;; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ piece;;;dot2.png;./ 0\ true;Map1;2;531,152;150,150\\ -1;\\\ \\\\ false\\\\\ $wounds$\\\\\\ $life$\\\\\\\ $defence$\\\\\\\\ $attack$\\\\\\\\\ $range$\\\\\\\\\\ $move$\\\\\\\\\\\ 1;o\\\\\\\\\\\\ -1;\\\\\\\\\\\\\ \\\\\\\\\\\\\\ -1; \\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\ -1\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\ \\\\\\\\\\\\\\\\\\\\\\\\\\ top\\\\\\\\\\\\\\\\\\\\\\\\\\\ $size$$height$\\\\\\\\\\\\\\\\\\\\\\\\\\\\ 1; \\\\\\\\\\\\\\\\\\\\\\\\\\\\\ <html><img src="$image$">\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $height$\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $size$\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ $name$\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ My dude~http: \/\/www.haitiwebs.com\/haitianforums\/images\/arcade\/War%20Games.gif~6~5~4~3~2~S~4~Really a note~http: \/\/shit-war.freeonlinegames.com\/images\/409.jpg\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ Side Table;150;150 On Friday 21 July 2006 15:21, Don Holt wrote: > Then this function is not for you, nor was it ever > intended to be. This function saves a stack of known > pieces to a file. It can not be used to create new > pieces on the fly. > > You would need to create a function that records the > action that a module builder takes when creating a > piece and then feed that information back to the > module building software. I think a piece only holds > the results. > > So do your users "Edit" your module, or have you an > Vassal module which includes a piece editor extension > you wrote? If the former, then your really playing > different modules. If the later, then your work is cut > out for you. > > --- Porter235 <[EMAIL PROTECTED]> wrote: > > I think I do understand. > > > > I understand that my saved games are the problem. > > > > I have tried to use the "UPDATE SAVED GAMES" > > funtionality (used to update > > pieces in saved games from version to version) to > > give them the newly > > redefined "DRAWPILE" definition. > > > > I have also tried creating a new extension file that > > contains a NEW MAP WINDOW > > and a NEW DRAWPILE hoping that when you opened an > > OLD GAME, with the NEW > > extention, that it would have access to the NEW > > DRAWPILE and hence the > > save/load functionality. > > > > I want to use the deck load/save function to > > save/load custom defined pieces > > created by users. (This is a minis game, with a > > large "customs" community) > > Currently you can create a custom piece in my > > module, setting custom graphics > > using URLs, and setting all of the stats for the > > piece. But you currently > > have to RECREATE these custom pieces every game you > > want to use them in. By > > adding the SAVE/LOAD trait to a "DRAWPILE" I could > > allow people to drag a > > group of custom figures into the "DRAWPILE" and save > > them to a file. Greatly > > speeding up the process of using customs. (The same > > thing could be used to > > preselect and save/load entire armies) > > > > I have a bunch of large, complicated saved games. > > Why? Becasue the maps are > > created out of pieces as well. (Allows users to > > create maps IN VASSAL, and > > have hover over pieces of info like the elevation) > > Being able to include a > > single deck (new or old) with the save/load > > functionality in all of these > > saved games is important. I do not want to have to > > recreate all of the saved > > games. > > > > On Friday 21 July 2006 08:51, Don Holt wrote: > > > I think you are a bit confused. It is your saved > > > > games > > > > > that are the problem. These saved games do not > > > > contain > > > > > the new "DRAWPILE" and there is no way you can > > > > change > > > > > the properties of the drawpiles in your saved > > > > games. > > > > > You must edit your module to set the drawpile to > > > > use > > > > > the load/save feature, create a new game, and then > > > manual place all the cards into the new drawpile. > > > > At > > > > > that point you can save/load decks to other files, > > > which is NOT the save game file. > > > > > > I'm sorry if the verbage on the save/load deck > > > displays are a bit off. (I swiped the code from > > > > the > > > > > from the save game function, but the information > > > saved/loaded is completely different.) > > > > > > The intended use of this function is for a CCG. > > > Everyone, offline, starts a game, builds a deck > > > > and > > > > > saves it. When you wish to play, you start a new > > > > game, > > > > > and everyone loads their decks. > > > > > > I, too, have saved games with just my deck loaded. > > > > But > > > > > I will manually reload those decks into a module > > > > with > > > > > a modified drawpile, and then save the deck. From > > > then on, I can load the decks, but there is no > > > > current > > > > > function to go into a saved game, retrieve a deck, > > > > and > > > > > modify the pieces to change their state to being > > > > in a > > > > > different drawpile in a different game. > > > > > > This is what the new functions do. The save > > > > (thanks to > > > > > Rodney) eliminates this information, and the load > > > places the pieces in the DECK savefile into any > > > > deck. > > > > > --- Porter235 <[EMAIL PROTECTED]> wrote: > > > > OK. I am REALLY frustrated, it appears that I > > > > can > > > > > > not use the "load/save" > > > > function that I want... partly because DECKS are > > > > defined in the save game > > > > file (why?!) and also it appears that the new > > > > "save/load" option is not > > > > updated using the updater! > > > > > > > > i have looked at my two pieces info, and the > > > > only > > > > > > difference between the two > > > > is the version number! The fact that I toggled > > > > the > > > > > > option to LOAD/SAVE from a > > > > deck doesn't appear there. I have tried the > > > > update, > > > > > > and sure enough no effect > > > > other than the games reporting that they are the > > > > new > > > > > > version. > > > > > > > > I thought I had a workaround by creating an > > > > EXTENSION that defined a new deck, > > > > but alas that also appears to not work.... (if > > > > someone can verify this I > > > > would appreciate it) > > > > > > > > any ideas, other than completely recreating all > > > > of > > > > > > my 100+ piece games? > > > > > > > > On Monday 17 July 2006 16:00, Don Holt wrote: > > > > > I am considering trying to expand the function > > > > to > > > > > > > include a load/create by "piece name" > > > > function. > > > > > > > However, I was greatly dependent on Rodney for > > > > > > > > MUCH > > > > > > > > > help with the original function. I think that, > > > > in > > > > > > > principle, he is somewhat opposed to this > > > > concept > > > > > > > because of the probability of mismatches > > > > > > > > occurring. > > > > > > > > > And of course, by the time this function got > > > > in, > > > > > > it > > > > > > > > > might be easier to recreate the games. > > > > > > > > > > --- Porter235 <[EMAIL PROTECTED]> wrote: > > > > > > OK. I have a bunch of predefined scenarios > > > > that > > > > > > are > > > > > > > > > > included with the game... > > > > > > I want to be able to add the new load/save > > > > deck > > > > > > > > feature to one of my decks... > > > > > > > > > > > > I have had no luck modifying the deck > > > > definition > > > > > > and > > > > > > > > > > having it appear. > > > > > > > > > > > > I have had no luck creating a new extension > > > > > > > > module > > > > > > > > > > for it which only opens a > > > > > > new map with a plain deck with the load/save > > > > > > feature. > > > > > > > > > > > > The feature does appear to work, IF i remove > > > > all > > > > > > of > > > > > > > > > > my scenarios from the > > > > > > module definition and then choose NEW GAME. > > > > > > > > > > > > PLEASE tell me there is a way I can include > > > > this > > > > > > > > amazing and very useful > > > > > > feature in my scenarios without having to > > > > > > > > recreate > > > > > > > > > > all of my save games... > > > > __________________________________________________ > > > > > > > Do You Yahoo!? > > > > > Tired of spam? Yahoo! Mail has the best spam > > === message truncated === > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com ------------------------ Yahoo! Groups Sponsor --------------------~--> Check out the new improvements in Yahoo! Groups email. http://us.click.yahoo.com/6pRQfA/fOaOAA/yQLSAA/IMSolB/TM --------------------------------------------------------------------~-> Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/vassalengine/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
