Georgeandreou / tmapc

Automatically exported from code.google.com/p/tmapc
0 stars 0 forks source link

Unable to parse error #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Step 2 XML edit only on Neuschwabenland, I am able to make all changes I 
want;
- PU value change
- add paratroopers
- make special unit available to everyone
2. It successfully saves .xml file, but I get the following error when I try to 
open tripla;
Could not parse:C:\Program 
Files\TripleA\triplea_1_2_5_5\maps\Neuschwabenland\games\cory.xml
games.strategy.engine.data.GameParseException: Class 
<games.strategy.triplea.delegate.te.PlaceDelegate> could not be found.
    at games.strategy.engine.data.GameParser.getInstance(GameParser.java:310)
    at games.strategy.engine.data.GameParser.parseDelegates(GameParser.java:833)
    at games.strategy.engine.data.GameParser.parseGamePlay(GameParser.java:711)
    at games.strategy.engine.data.GameParser.parse(GameParser.java:112)
    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)

Please provide any additional information below.
I think this is one of the best gameplay maps out there, and I want to create 
some mods, but I can't get past this error

Original issue reported on code.google.com by Chille...@gmail.com on 13 May 2011 at 1:05

GoogleCodeExporter commented 8 years ago
Hi Chilles,

It appears that the map creator added .te to the game xml where it wasn't 
supposed to be. To fix this error, open the saved game xml file(cory.xml) and 
replace all instances of 'games.strategy.triplea.delegate.te.PlaceDelegate' 
with 'games.strategy.triplea.delegate.PlaceDelegate'. You can do this by 
pressing Control+H and using the built in replace tool.

Thanks for reporting this,
    Wisconsin

Original comment by venryx on 20 May 2011 at 11:43