Create account / Log in

Can vassal export tracking of pieces into a .csv file?

Topics related to the main Vassal engine.

Moderators: Tim M, uckelman

Can vassal export tracking of pieces into a .csv file?

Postby Digitt » January 12th, 2016, 7:55 am

Hey guys,

I have an excel template that I use to graph my games for a board game I’m inventing. I know that Vassal can track piece movement etc. I’d actually like to know if it can track only the pieces on the board at the end of the turn (I don’t need to track movement or anything else, just whether or not they’re on the board). And if it’s possible to export the results in a csv so that I can import it into excel and see the graph of how my game progressed?

Thanks a lot guys
Digitt
 
Posts: 7
Joined: April 15th, 2015, 2:37 pm

Re: Can vassal export tracking of pieces into a .csv file?

Postby uckelman » January 12th, 2016, 10:44 am

Thus spake Digitt:
> Hey guys,
>
> I have an excel template that I use to graph my games for a board game
> I’m inventing. I know that Vassal can track piece movement etc. I’d
> actually like to know if it can track only the pieces on the board at
> the end of the turn (I don’t need to track movement or anything else,
> just whether or not they’re on the board). And if it’s possible to
> export the results in a csv so that I can import it into excel and see
> the graph of how my game progressed?
>

You could write a custom class to dump piece positions to CSV. That's
probably going to be the most straightforward way to get the data. You
could do something like print the piece positions to the chat window,
which you could then copy out---you'd do that with some combination of
piece traits and a Global Key Command. You could theoretically parse
the saveFile XML and get the data that way, but that would be painful.

--
J.
_______________________________________________
messages mailing list
messages@vassalengine.org
http://www.vassalengine.org/mailman/listinfo/messages
User avatar
uckelman
Site Admin
 
Posts: 8122
Joined: December 10th, 2007, 9:48 am
Location: Durham, England


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest