diff --git a/ICE/CoreDump/CoreDump.csproj b/ICE/CoreDump/CoreDump.csproj index a956acb..c293009 100644 --- a/ICE/CoreDump/CoreDump.csproj +++ b/ICE/CoreDump/CoreDump.csproj @@ -23,7 +23,7 @@ 4 - AnyCPU + x86 pdbonly true bin\Release\ diff --git a/ICE/CoreDump/ObjectDumper.cs b/ICE/CoreDump/ObjectDumper.cs index d4ebb41..03bf502 100644 --- a/ICE/CoreDump/ObjectDumper.cs +++ b/ICE/CoreDump/ObjectDumper.cs @@ -142,10 +142,23 @@ private void WriteValue(object o) else if (o is TechTreeBitMask) { TechTreeBitMask ttbm = (TechTreeBitMask)o; + + // temporary fix. + BitArray bol = new BitArray(ttbm.bits.Length); + bol.SetAll(false); int idx = 0; foreach (bool b in ttbm.bits) { - if (b) WriteValue(" "+idx); + if (b) + bol.Set(((idx / 8) * 8 + (7 - idx % 8)), true); + idx++; + } + // end of fix: to revert replace bol with ttbm.bits + idx = 0; + foreach (bool b in bol) + { + if (b) + WriteValue(" " + idx); idx++; } } diff --git a/ICE/CoreDump/Program.cs b/ICE/CoreDump/Program.cs index d64828f..acfed53 100644 --- a/ICE/CoreDump/Program.cs +++ b/ICE/CoreDump/Program.cs @@ -59,6 +59,31 @@ static void Main(string[] args) string pid = "Parts-" + p.name + "(" + p.partID + ")-"; ObjectDumper.Write(pid, p); } + foreach (DataChaffTypeIGC m in core.m_chaffTypes) + { + string mid = "Chaffs-" + m.launcherDef.name + "(" + m.expendabletypeID + ")-"; + ObjectDumper.Write(mid, m); + } + foreach (DataMineTypeIGC m in core.m_mineTypes) + { + string mid = "Mines-"+ m.launcherDef.name + "("+ m.expendabletypeID +")-"; + ObjectDumper.Write(mid, m); + } + foreach (DataMissileTypeIGC m in core.m_missileTypes) + { + string mid = "Missiles-" + m.launcherDef.name + "(" + m.expendabletypeID + ")-"; + ObjectDumper.Write(mid, m); + } + foreach (DataProbeTypeIGC m in core.m_probeTypes) + { + string mid = "Probes-" + m.launcherDef.name + "(" + m.expendabletypeID + ")-"; + ObjectDumper.Write(mid, m); + } + foreach (DataLauncherTypeIGC l in core.m_launcherTypes) + { + string lid = "Launchers-" + l.partID + "-" + l.expendabletypeID+"-"; + ObjectDumper.Write(lid, l); + } foreach (DataTreasureSetIGC t in core.m_treasureSets) { string tid = "Treasures-" + t.name + "(" + t.treasureSetID + ")-";