Error java

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error java

voncris


hola a todos tengo un gran problema y es que no puedo probar este mapa modificado por este error.

hi all I have a big problem and I can not test this map modified by this error.

help me please!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!1


An error has ocurred!


Could not parse:C:\CARA\TripleA\triplea_1_2_5_5\maps\Gran Guerra\games\Gran Guerra.xml
games.strategy.engine.data.GameParseException: No setter for attachment option. Setter:transportCost  Class:games.strategy.triplea.attatchments.UnitAttachment
        at games.strategy.engine.data.GameParser.setValues(GameParser.java:1181)
        at games.strategy.engine.data.GameParser.parseAttachments(GameParser.java:1101)
        at games.strategy.engine.data.GameParser.parse(GameParser.java:125)
        at games.strategy.engine.framework.ui.NewGameChooserEntry.<init>(NewGameChooserEntry.java:27)
        at games.strategy.engine.framework.ui.NewGameChooserModel.createEntry(NewGameChooserModel.java:163)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populateFromDirectory(NewGameChooserModel.java:180)
        at games.strategy.engine.framework.ui.NewGameChooserModel.populate(NewGameChooserModel.java:82)
        at games.strategy.engine.framework.ui.NewGameChooserModel.<init>(NewGameChooserModel.java:35)
        at games.strategy.engine.framework.startup.mc.GameSelectorModel.loadDefaultGame(GameSelectorModel.java:217)
        at games.strategy.engine.framework.startup.ui.MainFrame.<init>(MainFrame.java:61)
        at games.strategy.engine.framework.GameRunner2$1.run(GameRunner2.java:61)
        at java.awt.event.InvocationEvent.dispatch(Unknown Source)
        at java.awt.EventQueue.dispatchEvent(Unknown Source)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
        at java.awt.EventDispatchThread.run(Unknown Source)
Reply | Threaded
Open this post in threaded view
|

Re: Error java

ComradeKev
Administrator
Please take a look at the unitAttachment option for the transportCost for your units.  It looks like there may be a typo in the xml or something.  The option should look like this:

<option name="transportCost" value="2"/>
If emailing me at ComradeKev at yahoo.com , please add TripleA to the subject line
Reply | Threaded
Open this post in threaded view
|

Re: Error java

voncris
tanks men