Did i say that i failed to do it ? lol
My pieces doesn't have the same structure !
I explain :
1 mats ship have a fire layer and a destrucion layers
2 mats ship have 2 fire layer and 2 destruction layers

10 mats ship have ........

So the script of a boat depend of the number of his mats and the
categorie ! Schoner, brigantin, junks, galley ! this is not the "same
basic piece img". 

I have 19 categories.
So it's prety hard to make 19 script generator.
Here a example of a piece :

<VASSAL.build.widget.PieceSlot entryName="Guichuan" height="94"
width="273">+/null/markmoved;MovementWaves.gif;-150;-28;Mark
Moved;77,130    propertysheet;2&lt;html&gt;&lt;img
src="http:\/\/www.shuffleandcut.com\/pics\/pir\/djc\/large\/32714.jpg"&gt;~2Cale
: 7~2Mouvement : S~2Canons : S3S3L2L2L2S3S3S3S3S3~2Capacité : Navire
fantôme. Jonque. Navire trésor.Peur. Domaine du chasseur de
tête.~2Equipage visible :;Propertés;P;0;;;\
label;;Renommer;12;;255,0,0;t;0;c;0;b;c;$pieceName$
($label$);Dialog;1;0;TextLabel\\        playSound;guncann.wav;Coup de
Canon;80,130;true\\\
placemark;Reglette;77,0;+\/null\/rotate\;1\;82,0\;Rotation\;\;\;\\\\\   
immob\;g\;N\\\\\\
delete\;Delete\;68,130\\\\\\\
piece\;\;\;DoubleRange.png\;Doublerange\/0.0\\\\\       \\\\\\  \\\\\\\
null\;163\;163;null;115;0;true;;\\\\    rotate;1;82,0;Rotation;;;\\\\\
pivot;Rotation Avant;66,0;50;0;false;90.0\\\\\\ pivot;Rotation
Arrière;83,0;-50;0;false;90.0\\\\\\\   emb2;Mat 10 Feu
!!!;2;0;;0;;;0;;;;0;false;0;0;10MJ(F10).gif;10;true;;;\\\\\\\\
emb2;Mat 9 Feu
!!!;2;9;;0;;;0;;;;0;false;0;0;10MJ(F9).gif;9;true;;;\\\\\\\\\   emb2;Mat
8 Feu !!!;2;8;;0;;;0;;;;1;false;0;0;10MJ(F8).gif;8;true;;;\\\\\\\\\\
emb2;Mat 7 Feu
!!!;2;7;;0;;;0;;;;0;false;0;0;10MJ(F7).gif;7;true;;;\\\\\\\\\\\
emb2;Mats 6 Feu
!!!;2;6;;0;;;0;;;;0;false;0;0;10MJ(F6).gif;6;true;;;\\\\\\\\\\\\
emb2;Mat 5 Feu
!!!;2;5;;0;;;0;;;;0;false;0;0;10MJ(F5).gif;5;true;;;\\\\\\\\\\\\\
emb2;Mat 4 Feu
!!!;2;4;;0;;;0;;;;0;false;0;0;10MJ(F4).gif;4;true;;;\\\\\\\\\\\\\\
emb2;Mat 3 Feu
!!!;2;3;;0;;;0;;;;0;false;0;0;10MJ(F3).gif;3;true;;;\\\\\\\\\\\\\\\
emb2;Mat 2 Feu
!!!;2;2;;0;;;0;;;;0;false;0;0;10MJ(F2).gif;2;true;;;\\\\\\\\\\\\\\\\
emb2;Mat 1 Feu
!!!;2;1;;0;;;0;;;;0;false;0;0;10MJ(F1).gif;1;true;;;\\\\\\\\\\\\\\\\\
emb2;Mats 10 Détruit
!!!;1;0;;0;;;0;;;;0;false;0;0;10MJ(D10).gif;10;true;;;\\\\\\\\\\\\\\\\\\
emb2;Mats 9
détruits;1;9;;0;;;0;;;;0;false;0;0;10MJ(D9).gif;9;true;;;\\\\\\\\\\\\\\\\\\\
emb2;Mat 8 Détruit
!!!;1;8;;0;;;0;;;;0;false;0;0;10MJ(D8).gif;8;true;;;\\\\\\\\\\\\\\\\\\\\
emb2;Mat 7
Détruit;1;7;;0;;;0;;;;0;false;0;0;10MJ(D7).gif;7;true;;;\\\\\\\\\\\\\\\\\\\\\
emb2;Mat 6 Détruit
!!!;1;6;;0;;;0;;;;0;false;0;0;10MJ(D6).gif;6;true;;;\\\\\\\\\\\\\\\\\\\\\\
emb2;Mat 5
Détruit;1;5;;0;;;0;;;;0;false;0;0;10MJ(D5).gif;5;true;;;\\\\\\\\\\\\\\\\\\\\\\\
emb2;Mat 4
Détruit;1;4;;0;;;0;;;;0;false;0;0;10MJ(D4).gif;4;true;;;\\\\\\\\\\\\\\\\\\\\\\\\
emb2;Mat 3
Détruit;1;3;;0;;;0;;;;0;false;0;0;10MJ(D3).gif;3;true;;;\\\\\\\\\\\\\\\\\\\\\\\\\
emb2;Mat 2
Détruit;1;2;;0;;;0;;;;0;false;0;0;10MJ(D2).gif;2;true;;;\\\\\\\\\\\\\\\\\\\\\\\\\\
emb2;Mat 1
Détruit;1;1;;0;;;0;;;;0;false;0;0;10MJ(D1).gif;1;true;;;\\\\\\\\\\\\\\\\\\\\\\\\\\\
prototype;Wind\\\\\\\\\\\\\\\\\\\\\\\\\\\\
clone;Dupliquer;67,130\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
piece;;;10MJ.gif;Guichuan/false ~~~~~~~\        Guichuan\\      \\\     \\\\
0.0\\\\\        \\\\\\  \\\\\\\ -1;\\\\\\\\     -1;\\\\\\\\\    -1;\\\\\\\\\\
-1;\\\\\\\\\\\  -1;\\\\\\\\\\\\ -1;\\\\\\\\\\\\\        -1;\\\\\\\\\\\\\\
-1;\\\\\\\\\\\\\\\      -1;\\\\\\\\\\\\\\\\     -1;\\\\\\\\\\\\\\\\\
-1;\\\\\\\\\\\\\\\\\\   -1;\\\\\\\\\\\\\\\\\\\
-1;\\\\\\\\\\\\\\\\\\\\ -1;\\\\\\\\\\\\\\\\\\\\\
-1;\\\\\\\\\\\\\\\\\\\\\\       -1;\\\\\\\\\\\\\\\\\\\\\\\
-1;\\\\\\\\\\\\\\\\\\\\\\\\     -1;\\\\\\\\\\\\\\\\\\\\\\\\\
-1;\\\\\\\\\\\\\\\\\\\\\\\\\\   -1;\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\    \\\\\\\\\\\\\\\\\\\\\\\\\\\\\
null;0;0</VASSAL.build.widget.PieceSlot>




i also tryed to make in a text editor ( scintilla) a find and replace
script with a  data file.csv. just can't ! to hard for me !! I am jus
a advance user .

That why i decide to create a gif from the web a existing php web page .



So i have to know if there is a way to have a menu command who show my
image  !

They are in the zip files under \images \ directory.




--- In [email protected], Gary Krockover <[EMAIL PROTECTED]> wrote:
>
> Instead of trying to call the images from the buildfile as if though
it were a web page, you can write a .php script that will generate the
_proper_ XML that would go into the build file.  
> 
> So, for example, if you have several pieces in a slot that look like:
> 
> <VASSAL.build.widget.PieceSlot entryName="53 / 71" height="77"
width="73">+/null/emb2;;2;;Flip;2;F;;0;;;;1;false;0;0;14-Br-53-71.gif,14-Br-53-71-back.gif;53
\/ 71,53 \/ 71 reduced;true;British;;      prototype;Allies\      
piece;;;;53 \/ 71/1;    \      
null;268;163</VASSAL.build.widget.PieceSlot>
> 
> Where the only thing that changes from piece to piece is the piece
name and the image name, you could write a .php script that would *out
to the screen* the values of your pieces so that you could then copy
that text and paste it into your buildfile.  Just run an incrementing
loop to do your numbering and/or lettering.
> 
> The hardest part is making sure that you copy and paste into the
buildfile in the proper place and that the XML is valid or else your
module won't load.  So, always make a backup of the buildfile (text
file) before doing any major editing.
> 
> I hope that all makes sense, I'm sure that someone with more
experience doing this can elaborate a bit more if needed.
> 
> GJK



Reply via email to