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 => VASSAL.build.module.Map.mapCoordinates(java.awt.Point), 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 => VASSAL.build.module.Chatter.getHandle(), 2021-08-06
wga.Refresher => VASSAL.build.AbstractBuildable.getBuildComponents(), 2021-08-06
wga.Refresher => VASSAL.build.module.GameState.getPieces(), 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
https://vassalengine.org/wiki/Module:The_Civil_War

in particular the FHB Alternate version
https://obj.vassalengine.org/images/f/f9/CivilWar17fhb02.vmod

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