Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Can't load/save your campaign?
#61
(01-06-2013, 01:49 PM)Taharqa link Wrote: Has anyone experienced the units.cache bug who uses MULs to run games, as opposed to running MegaMek directly from within MekHQ?

MmmHmmm
Reply
#62
I've been getting around to updating to the new stable version and ran into trouble with a saved campaign. Here's what I believe is the relevant part of the log:

Code:
Reading unit files:
  Reading from unit cache file...
  Looking in data\mechfiles...
  Looking in zip file data\mechfiles\air.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\battlearmor.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\ConvFighter.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\customs...
    Loading from data\mechfiles\customs\Corsair CSR-V12.blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Corsair CSR-V12.blk, Could not find heatsinks block.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

    Loading from data\mechfiles\customs\Foot Platoon (Rifle).blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Foot Platoon (Rifle).blk, Could not find squad size.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

My first thought is that somehow it thinks those two are custom units, though I don't remember ever customizing them (or anything else in that campaign, seriously why would I customize an infantry platoon?). Any clues?
Reply
#63
I am not sure what those two files are but neither is actually the place that is causing your campaign to not load although its possible they may be related. When you try to load your campaign to you get an error about missing units or just that it could not load?

If you can attach the full log file, it would be easier to diagnose.
Reply
#64
(04-03-2013, 01:25 AM)Taharqa link Wrote:I am not sure what those two files are but neither is actually the place that is causing your campaign to not load although its possible they may be related. When you try to load your campaign to you get an error about missing units or just that it could not load?

If you can attach the full log file, it would be easier to diagnose.

The error simply states:
The campaign file could not be loaded.
Please check the log file for details.

Code:
loading mekhq properties from mmconf/mekhq.properties
Starting load of faction data from XML...
Loaded a total of 127 factions
Starting load of planetary data from XML...
Unknown faction code:
Loaded a total of 2550 planets
megamek.common.loaders.EntityLoadingException: Could not find heatsinks block.
    at megamek.common.loaders.BLKAeroFile.getEntity(BLKAeroFile.java:82)
    at megamek.common.MechFileParser.parse(MechFileParser.java:195)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:87)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)
megamek.common.loaders.EntityLoadingException: Could not find squad size.
    at megamek.common.loaders.BLKInfantryFile.getEntity(BLKInfantryFile.java:66)
    at megamek.common.MechFileParser.parse(MechFileParser.java:195)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:87)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

Reading unit files:
  Reading from unit cache file...
  Looking in data\mechfiles...
  Looking in zip file data\mechfiles\air.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\battlearmor.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\ConvFighter.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\customs...
    Loading from data\mechfiles\customs\Corsair CSR-V12.blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Corsair CSR-V12.blk, Could not find heatsinks block.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

    Loading from data\mechfiles\customs\Foot Platoon (Rifle).blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Foot Platoon (Rifle).blk, Could not find squad size.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

  ...loaded 0 files.
  Looking in zip file data\mechfiles\Dropship.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Fighters.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\ge...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Infantry.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Jumpships.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\mechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\protomechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\sea.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\SmallCraft.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\SpaceStation.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\unofficial.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\vehicles.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Warship.zip...
  ...loaded 0 files.
  ...loaded 0 files.
5597 units loaded.
  2 units failed to load...
Loading more unit images from localserver_mechset.txt...
Loading more unit images from localclient_mechset.txt...
... finished localclient_mechset.txt.
... finished localserver_mechset.txt.
Loading campaign file from XML...
Starting load of campaign file from XML...
megamek.common.loaders.EntityLoadingException: Could not find heatsinks block.
    at megamek.common.loaders.BLKAeroFile.getEntity(BLKAeroFile.java:82)
    at megamek.common.MechFileParser.parse(MechFileParser.java:195)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:87)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at mekhq.campaign.Campaign.createCampaignFromXMLFileInputStream(Campaign.java:1848)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:149)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:101)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
megamek.common.loaders.EntityLoadingException: Could not find squad size.
    at megamek.common.loaders.BLKInfantryFile.getEntity(BLKInfantryFile.java:66)
    at megamek.common.MechFileParser.parse(MechFileParser.java:195)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:87)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at mekhq.campaign.Campaign.createCampaignFromXMLFileInputStream(Campaign.java:1848)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:149)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:101)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Reading unit files:
  Reading from unit cache file...
  Looking in data\mechfiles...
  Looking in zip file data\mechfiles\air.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\battlearmor.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\ConvFighter.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\customs...
    Loading from data\mechfiles\customs\Corsair CSR-V12.blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Corsair CSR-V12.blk, Could not find heatsinks block.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

    Loading from data\mechfiles\customs\Foot Platoon (Rifle).blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Foot Platoon (Rifle).blk, Could not find squad size.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at megamek.common.MechSummaryCache$1.run(MechSummaryCache.java:73)
    at java.lang.Thread.run(Unknown Source)

  ...loaded 0 files.
  Looking in zip file data\mechfiles\Dropship.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Fighters.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\ge...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Infantry.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Jumpships.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\mechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\protomechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\sea.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\SmallCraft.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\SpaceStation.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\unofficial.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\vehicles.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Warship.zip...
  ...loaded 0 files.
  ...loaded 0 files.
5597 units loaded.
  2 units failed to load...

Reading unit files:
  Reading from unit cache file...
  Looking in data\mechfiles...
  Looking in zip file data\mechfiles\air.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\battlearmor.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\ConvFighter.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\customs...
    Loading from data\mechfiles\customs\Corsair CSR-V12.blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Corsair CSR-V12.blk, Could not find heatsinks block.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at mekhq.campaign.Campaign.createCampaignFromXMLFileInputStream(Campaign.java:1848)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:149)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:101)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

    Loading from data\mechfiles\customs\Foot Platoon (Rifle).blk
***   Unable to load file: megamek.common.loaders.EntityLoadingException: While parsing file Foot Platoon (Rifle).blk, Could not find squad size.
    at megamek.common.MechFileParser.<init>(MechFileParser.java:91)
    at megamek.common.MechFileParser.<init>(MechFileParser.java:80)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:442)
    at megamek.common.MechSummaryCache.loadMechsFromDirectory(MechSummaryCache.java:413)
    at megamek.common.MechSummaryCache.loadMechData(MechSummaryCache.java:251)
    at mekhq.campaign.Campaign.createCampaignFromXMLFileInputStream(Campaign.java:1848)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:149)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:101)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

  ...loaded 0 files.
  Looking in zip file data\mechfiles\Dropship.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Fighters.zip...
  ...loaded 0 files.
  Looking in data\mechfiles\ge...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Infantry.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Jumpships.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\mechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\protomechs.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\sea.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\SmallCraft.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\SpaceStation.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\unofficial.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\vehicles.zip...
  ...loaded 0 files.
  Looking in zip file data\mechfiles\Warship.zip...
  ...loaded 0 files.
  ...loaded 0 files.
5597 units loaded.
  2 units failed to load...
Loading Campaign Options from XML...
---
useFactionModifiers
    true
---
clanPriceModifier
    1.0
---
useFactionForNames
    true
---
repairSystem
    0
---
useDragoonRating
    true
---
dragoonsRatingMethod
    Taharqa
---
useEraMods
    false
---
useTactics
    true
---
useInitBonus
    true
---
useToughness
    true
---
useArtillery
    false
---
useAbilities
    true
---
useEdge
    true
---
useImplants
    false
---
useQuirks
    true
---
payForParts
    true
---
payForUnits
    true
---
payForSalaries
    true
---
payForOverhead
    true
---
payForMaintain
    true
---
payForTransport
    true
---
usedPartsValue
    0.5
---
damagedPartsValue
    0.33
---
sellUnits
    true
---
sellParts
    true
---
scenarioXP
    1
---
killsForXP
    2
---
killXPAward
    1
---
nTasksXP
    25
---
tasksXP
    1
---
mistakeXP
    0
---
successXP
    0
---
idleXP
    1
---
targetIdleXP
    10
---
monthsIdleXP
    2
---
limitByYear
    false
---
allowClanPurchases
    false
---
allowISPurchases
    true
---
allowCanonOnly
    false
---
techLevel
    2
---
usePortraitForType
    false,true,true,true,false,true,false,false,false,false,false,false,false,false,true,true,true,true,false,true,true,true,true,true,true
Load Campaign Options Complete!
Loading Team Nodes from XML...
Load Team Nodes Complete!
Loading Unit Nodes from XML...
Executing getEntityFromXmlString(Node)...
Executing getEntityFromXmlString(String)...
Parsing C:\Program Files (x86)\MegaMek\mmconf\defaultQuirks.xml
Parsing finished.
Total number of units with default quirks: 395
Returning Entity [Foot Platoon (Rifle), -1] from getEntityFromXmlString(String)...
Adding unit: (70bcd7d0-14a5-46d6-be86-6c75f14a16ea):mekhq.campaign.Unit@c40bac
Entity can't find player #0
Executing getEntityFromXmlString(Node)...
Executing getEntityFromXmlString(String)...
Returning Entity [Demon Tank, -1] from getEntityFromXmlString(String)...
Adding unit: (9c61c402-589f-4c60-a921-433a66c76144):mekhq.campaign.Unit@753e7a
Entity can't find player #0
Executing getEntityFromXmlString(Node)...
Executing getEntityFromXmlString(String)...
Returning Entity [Chevalier Light Tank, -1] from getEntityFromXmlString(String)...
Adding unit: (1348c681-4784-4efd-92b0-ae4bf4270d31):mekhq.campaign.Unit@9b4e6c
Entity can't find player #0
Executing getEntityFromXmlString(Node)...
Executing getEntityFromXmlString(String)...
Returning Entity [Transgressor TR-14 AC, -1] from getEntityFromXmlString(String)...
Adding unit: (5bd41ecb-b755-4cfd-8409-84b23698146b):mekhq.campaign.Unit@134315f
Entity can't find player #0
Executing getEntityFromXmlString(Node)...
Executing getEntityFromXmlString(String)...
Returning Entity [Ontos Heavy Tank (Sealed), -1] from getEntityFromXmlString(String)...
Adding unit: (f4a959f1-0512-4e6f-ad2e-bfbec0c0c0ff):mekhq.campaign.Unit@5dfd35
Entity can't find player #0
Executing getEntityFromXmlString(Node)...
Executing getEntityFromXmlString(String)...
java.lang.NullPointerException
java.lang.NullPointerException
    at megamek.common.MechFileParser.<init>(MechFileParser.java:105)
    at megamek.common.XMLStreamParser.recordElementStart(XMLStreamParser.java:486)
    at gd.xml.XMLParser.readTag(XMLParser.java:704)
    at gd.xml.XMLParser.readDocument(XMLParser.java:813)
    at gd.xml.XMLParser.parseXML(XMLParser.java:82)
    at megamek.common.XMLStreamParser.parse(XMLStreamParser.java:310)
    at megamek.common.XMLStreamParser.<init>(XMLStreamParser.java:325)
    at mekhq.campaign.MekHqXmlUtil.getEntityFromXmlString(MekHqXmlUtil.java:732)
    at mekhq.campaign.MekHqXmlUtil.getEntityFromXmlString(MekHqXmlUtil.java:723)
    at mekhq.campaign.Unit.generateInstanceFromXML(Unit.java:1119)
    at mekhq.campaign.Campaign.processUnitNodes(Campaign.java:2484)
    at mekhq.campaign.Campaign.createCampaignFromXMLFileInputStream(Campaign.java:1880)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:149)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:101)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
    at mekhq.campaign.Campaign.processUnitNodes(Campaign.java:2486)
    at mekhq.campaign.Campaign.createCampaignFromXMLFileInputStream(Campaign.java:1880)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:149)
    at mekhq.gui.dialog.DataLoadingDialog$Task.doInBackground(DataLoadingDialog.java:101)
    at javax.swing.SwingWorker$1.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown Source)
    at javax.swing.SwingWorker.run(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
Reply
#65
The XML parser is choking on one of your units. Could you attach your full campaign save? Or if you can't attach it here, fill out a bug report on the tracker and attach it there.
Reply
#66
(04-03-2013, 08:38 PM)Taharqa link Wrote:The XML parser is choking on one of your units. Could you attach your full campaign save? Or if you can't attach it here, fill out a bug report on the tracker and attach it there.

Can't attach it as it seems to be too large. I uploaded it to Google Drive, and I'll go swing it up on the tracker as well.

https://docs.google.com/file/d/0B70iNLdj...sp=sharing
Reply
#67
Are you sure that this is the campaign file that would not load and not an earlier save? It loads fine for me. Also that log file indicates that the unit immediately before the unit that choked was a Ontos (sealed) but the only Ontos in that campaign file is a 3053 variant.

Try deleting your units.cache in data/mechfiles and see if that helps.
Reply
#68
(04-04-2013, 12:16 PM)Taharqa link Wrote:Try deleting your units.cache in data/mechfiles and see if that helps.

No joy on that.

Did get it to work, though. Did a complete wipe and re-install of Megamek/MekHQ on the current stables and it worked fine (despite no longer working on a clean install of the version it worked on previously or any of the RCs). So I have no idea. But hey, it worked! Thanks for the help.
Reply
#69
Returning to MM after a long hiatus, and having this problem.  I am using Ralgith's SVN build
Mekhq 0.3.4-dev-r1775-windows (windows 8 machine that ran R1540 just fine last year).  I start a campaign, add peeps/meks, and fight a battle or two.  I have two specific bugs:  the first is that I cannot assign anyone to the doctor when injured (did not check and special healing conditions, am highlighting the doctor, assign still greyed out, does not show my injured peeps).  The second problem is that when I exit and try to reload my campaign, it lets me select the campaign file, and gos to the loading screen where it shows loading the various types of data, then the window disappears and nothing more happens. 

Are these known bugs, or do you need files?

Thanks,
KI
Reply
#70
We would need the logs and save game to be able to help.
Reply
#71
Here is the Mekhqlog.  Looks like there might be something wrong with that log - my computer sees it as "in use by another application" and zero kb, while properties shows it as 29kb.  I am unable to open the log with wordpad. I'll have to figure out how to use a host site before I can post the campaign.


Attached Files
.txt   mekhqlog.txt (Size: 28.02 KB / Downloads: 2)
Reply
#72
https://www.dropbox.com/s/pm1jaq7r70l3u0...50803.cpnx

Let's see if this link works.
Reply
#73
I also have a campaign file... that seems to save after a battle resolved manually, but when I go to reload it, it cannot be loaded.

Any thoughts?



Attached Files
.txt   mekhqlog_cropped_till_the_end.txt (Size: 48.46 KB / Downloads: 2)
.mul   Salvage_from_mm1739.mul (Size: 13.23 KB / Downloads: 0)
Reply
#74
Known bug I think, though usually happens when resolving a MM battle in HQ.

If you still have the mm sav file and a campaign file from right before the battle can you try to resolve without clicking "yes" when it asks if you controlled the field after battle. See if you get the same error or does it go through. It seems to be dying when it gets to your, or the salvaged, battle armor
Reply
#75
It seems to come from Battle Armor... even the clan standard battle armor types... seem to be a bad thing to "salvage". Someone should fix it...

Also, Ragith, any chance you get get the HQ stable to catch up to your dev versions?

Last I saw the Portraits in dev still have not been incorporated into the stable HQ version...
Reply
#76
I believe they are working on a stable MM at the moment since the current dev version is either the last release candidate or second to last (I can't remember which one). Hopefully they alternate between all three programs, but I don't really know. ;D
Reply
#77
(05-30-2014, 09:02 PM)Xenon54z link Wrote:I believe they are working on a stable MM at the moment since the current dev version is either the last release candidate or second to last.

There will be one more RC, which will become stable if there are no issues with it.

(05-30-2014, 09:02 PM)Xenon54z link Wrote:Hopefully they alternate between all three programs, but I don't really know. ;D

This doesn't really happen in practice.  It mostly depends on who has free time and what they feel like working on.  Taharqa is the only one who can make official MekHQ releases. 
Reply
#78
OK I have solved most all problems by cutting out units from the salvage list...

now I come to a problem that I have no idea how to fix...

Here is a cut from the log file... where there is the only fatal error:

-------------------------------------------------------------
Starting load of news data for 3067 from XML...
loaded 0 days of news items for 3067
[Fatal Error] :269:89: An invalid XML character (Unicode: 0x0) was found in the CDATA section.
org.xml.sax.SAXParseException; lineNumber: 269; columnNumber: 89; An invalid XML character (Unicode: 0x0) was found in the CDATA section.
org.xml.sax.SAXParseException; lineNumber: 269; columnNumber: 89; An invalid XML character (Unicode: 0x0) was found in the CDATA section.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)

-----------------------------------

The I go to line 269:89 and get this, starting at line 265:

-------------------------------------

<reportLine><![CDATA[<a href='PERSON:eea9c467-1ada-470a-afc2-22047f55554b'>Wakil Omar</a> attempts to fix Armor (Ferro-Fibrous),  needs 5 and rolls 9: <font color='green'><b> fixed.</b></font>]]></reportLine>
<reportLine><![CDATA[<a href='PERSON:eea9c467-1ada-470a-afc2-22047f55554b'>Wakil Omar</a> attempts to replace Double Heat Sink,  needs 5 and rolls 11: <font color='green'><b> replaced.</b></font>]]></reportLine>
<reportLine><![CDATA[<a href='PERSON:9afa8bdb-87e2-4c97-9c5e-d5e4d77ee6f4'>Georg Zastrzezynski</a> attempts to replace Mech Right Torso,  needs 8 and rolls 10: <font color='green'><b> replaced.</b></font>]]></reportLine>
-----------------------------------------------------

I cannot find an error.

Any thoughts?

Reply
#79
remove the line and move on. Its only the daily log you would be hacking. I didn't see anything either, though may help if you attached the offending file. The copy/paste may not be showing the actual offending section/text
Reply
#80
Ok I tried removing the line and it did not work... so here is as much of the log file as I can attach.


Attached Files
.txt   mekhqlog_cutdown.txt (Size: 37.51 KB / Downloads: 1)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  campaign won't load after deleting a vehicle (GM mode) Cik 6 832 11-25-2014, 10:57 PM
Last Post: Cik
  Cannot load campaign, if there is no doctor? luiges90 2 607 02-25-2014, 01:28 PM
Last Post: ralgith
  Advice about the "error to load/save" Vashnevskaya 0 563 04-12-2013, 07:51 AM
Last Post: Vashnevskaya
  Option to load a savegame and load Princess instead of TestBot? Vashnevskaya 4 1,506 03-30-2013, 11:37 AM
Last Post: Netzilla
  Help Please my campaign suddenly won't load waylander 2 848 02-16-2012, 03:16 PM
Last Post: Netzilla
  Unable to Load Saved Campaign T.S. Hawk 10 1,823 01-06-2012, 01:40 PM
Last Post: T.S. Hawk
  Cannot load campaign T.S. Hawk 2 954 12-23-2011, 02:14 AM
Last Post: Taharqa
  Unable to load campaign with v0.1.10 DaddyHolby 14 2,541 12-07-2011, 12:03 AM
Last Post: DaddyHolby
  Unable to save campaign in v0.1.10 Mukaikubo 7 1,487 12-06-2011, 09:18 PM
Last Post: Mukaikubo
  Now I'm getting an NPE when trying to load my campaign from xml. ralgith 1 841 09-02-2011, 10:20 AM
Last Post: ralgith

Forum Jump:


Users browsing this thread: 3 Guest(s)