VG Civil War depreciated code

doing some minor updates on this module, and I waant to get rid of the start up error message.

The details are
Deprecated classes, methods, and fields in C:\Users\Mark\My Games\Civil War VG\CivilWar18.vmod
(used by => removed item, date eligible for removal)

iw.CounterDetailViewer =>, 2021-08-05
iw.CounterDetailViewer => VASSAL.counters.Labeler.drawLabel(java.awt.Graphics, java.lang.String, int, int, java.awt.Font, int, int, java.awt.Color, java.awt.Color, java.awt.Color), 2021-08-27
iw.CounterDetailViewer$Visitor => VASSAL.counters.Stack.getPieces(), 2021-08-06
random.DiceButton =>, 2021-08-06
wga.Refresher =>, 2021-08-06
wga.Refresher =>, 2021-08-06
wga.Refresher => VASSAL.counters.Stack.getPieces(), 2021-08-06

any guidance appreciated

The message is saying that two custom classes in the module, iw.CounterDetailViewer and wga.Refresher, are using outdated functions in Vassal.

The first question to address is: Are you actually using iw.CounterDetailViewer and wga.Refresher in your module?

I picked up the module out of the library… really just an update to remove a few annoyances

I’m not sure what those are, but they sound extraneous

Can you post a link to the module page and I will sort that out for you and upload a new version of the module without the custom code.

The Civil War

in particular the FHB Alternate version

I have uploaded a new version to the Wiki.

I had to remove the custom Mouse-over counter viewer, you will need to add a standard version back in.

Leave it with you.

1 Like