Esempio n. 1
0
 public NavigationConnectionInfo(NavigationConnectionInfo copyObject)
 {
     if (copyObject.Unknown1 != null)
     {
         Unknown1 = (FormID)copyObject.Unknown1.Clone();
     }
     if (copyObject.Unknown2 != null)
     {
         foreach (var temp in copyObject.Unknown2)
         {
             Unknown2.Add((FormID)temp.Clone());
         }
     }
     if (copyObject.Unknown3 != null)
     {
         foreach (var temp in copyObject.Unknown3)
         {
             Unknown3.Add((FormID)temp.Clone());
         }
     }
     if (copyObject.Doors != null)
     {
         foreach (var temp in copyObject.Doors)
         {
             Doors.Add((FormID)temp.Clone());
         }
     }
 }
Esempio n. 2
0
        protected override void ReadData(ESPReader reader)
        {
            using (MemoryStream stream = new MemoryStream(reader.ReadBytes(size)))
                using (ESPReader subReader = new ESPReader(stream, reader.Plugin))
                {
                    try
                    {
                        Unknown1.ReadBinary(subReader);
                        Int32 Unknown2Count = subReader.ReadInt32();

                        for (int i = 0; i < Unknown2Count; i++)
                        {
                            var temp = new FormID();
                            temp.ReadBinary(subReader);
                            Unknown2.Add(temp);
                        }
                        Int32 Unknown3Count = subReader.ReadInt32();

                        for (int i = 0; i < Unknown3Count; i++)
                        {
                            var temp = new FormID();
                            temp.ReadBinary(subReader);
                            Unknown3.Add(temp);
                        }
                        Int32 DoorsCount = subReader.ReadInt32();

                        for (int i = 0; i < DoorsCount; i++)
                        {
                            var temp = new FormID();
                            temp.ReadBinary(subReader);
                            Doors.Add(temp);
                        }
                    }
                    catch
                    {
                        return;
                    }
                }
        }
Esempio n. 3
0
        protected override void ReadDataXML(XElement ele, ElderScrollsPlugin master)
        {
            XElement subEle;

            if (ele.TryPathTo("Unknown1", false, out subEle))
            {
                Unknown1.ReadXML(subEle, master);
            }

            if (ele.TryPathTo("Unknown2", false, out subEle))
            {
                foreach (XElement e in subEle.Elements())
                {
                    var temp = new FormID();
                    temp.ReadXML(e, master);
                    Unknown2.Add(temp);
                }
            }

            if (ele.TryPathTo("Unknown3", false, out subEle))
            {
                foreach (XElement e in subEle.Elements())
                {
                    var temp = new FormID();
                    temp.ReadXML(e, master);
                    Unknown3.Add(temp);
                }
            }

            if (ele.TryPathTo("Doors", false, out subEle))
            {
                foreach (XElement e in subEle.Elements())
                {
                    var temp = new FormID();
                    temp.ReadXML(e, master);
                    Doors.Add(temp);
                }
            }
        }
Esempio n. 4
0
        public override void ParseFromNetworkMessage(NetworkMessage message)
        {
            // TODO
            Type = message.ReadByte();
            if (Type == 1)
            {
                Unknown1 = message.ReadByte();
            }
            else if (Type == 2)
            {
                Unknown2.Capacity = message.ReadUInt16();
                for (var i = 0; i < Unknown2.Capacity; i++)
                {
                    Unknown2.Add(message.ReadBytes(6));
                }
                //2B packet id (PartyHuntAnalyser)

                //02 type

                //F4 01 count (0x01F4 == 500)

                // below are the 500, 6-byte segments that make up each object
                // for this particular packet data.
                //66 00 00 00 00 00
                //6B 00 00 00 00 00
                //6E 00 00 00 00 00
                //70 00 00 00 00 00
                //71 00 00 00 00 00
                //75 00 00 00 00 00
                //76 00 00 00 00 00
                //77 00 00 00 00 00
                //78 00 00 00 00 00
                //79 00 00 00 00 00
                //7B 00 00 00 00 00
                //7C 00 00 00 00 00
                //7D 00 00 00 00 00
                //7E 00 00 00 00 00
                //7F 00 00 00 00 00
                //80 00 00 00 00 00
                //81 00 00 00 00 00
                //82 00 00 00 00 00
                //83 00 00 00 00 00
                //85 00 E2 03 00 00
                //87 00 00 00 00 00
                //88 00 00 00 00 00
                //8A 00 00 00 00 00
                //8B 00 00 00 00 00
                //8C 00 00 00 00 00
                //8D 00 00 00 00 00
                //8E 00 00 00 00 00
                //8F 00 00 00 00 00
                //90 00 00 00 00 00
                //91 00 00 00 00 00
                //A9 00 00 00 00 00
                //AA 00 00 00 00 00
                //AC 00 00 00 00 00
                //AD 00 00 00 00 00
                //AE 00 00 00 00 00
                //AF 00 00 00 00 00
                //B0 00 00 00 00 00
                //B1 00 00 00 00 00
                //B2 00 00 00 00 00
                //B3 00 00 00 00 00
                //E3 00 00 00 00 00
                //E4 00 00 00 00 00
                //E5 00 00 00 00 00
                //EB 00 00 00 00 00
                //EC 00 13 00 00 00
                //ED 00 46 00 00 00
                //EE 00 5F 00 00 00
                //EF 00 32 00 00 00
                //0A 01 13 00 00 00
                //0C 01 30 00 00 00
                //19 01 B8 0B 00 00
                //1A 01 B8 0B 00 00
                //1B 01 05 00 00 00
                //1C 01 05 00 00 00
                //1D 01 05 00 00 00
                //32 01 00 00 00 00
                //3C 01 00 00 00 00
                //41 01 00 00 00 00
                //45 01 00 00 00 00
                //4A 01 00 00 00 00
                //4B 01 00 00 00 00
                //4D 01 00 00 00 00
                //4F 01 00 00 00 00
                //51 01 00 00 00 00
                //53 01 00 00 00 00
                //55 01 00 00 00 00
                //57 01 00 00 00 00
                //59 01 00 00 00 00
                //5B 01 00 00 00 00
                //5C 01 00 00 00 00
                //5D 01 00 00 00 00
                //5E 01 00 00 00 00
                //8C 01 00 00 00 00
                //8D 01 00 00 00 00
                //8F 01 00 00 00 00
                //90 01 00 00 00 00
                //91 01 00 00 00 00
                //92 01 00 00 00 00
                //93 01 00 00 00 00
                //94 01 00 00 00 00
                //95 01 00 00 00 00
                //96 01 00 00 00 00
                //7B 02 00 00 00 00
                //7C 02 00 00 00 00
                //7D 02 00 00 00 00
                //7E 02 00 00 00 00
                //7F 02 00 00 00 00
                //80 02 00 00 00 00
                //81 02 00 00 00 00
                //82 02 00 00 00 00
                //83 02 00 00 00 00
                //84 02 00 00 00 00
                //85 02 98 3A 00 00
                //86 02 71 2D 00 00
                //87 02 96 00 00 00
                //88 02 00 00 00 00
                //89 02 00 00 00 00
                //8A 02 00 00 00 00
                //8B 02 2B 01 00 00
                //8C 02 00 00 00 00
                //8D 02 48 71 00 00
                //8E 02 00 00 00 00
                //8F 02 FC 45 00 00
                //A3 02 FA 00 00 00
                //A4 02 FA 00 00 00
                //A5 02 FA 00 00 00
                //A6 02 C8 00 00 00
                //F9 02 04 00 00 00
                //FA 02 01 00 00 00
                //FB 02 0D 00 00 00
                //00 03 54 0B 00 00
                //01 03 00 00 00 00
                //02 03 00 00 00 00
                //06 03 03 00 00 00
                //2B 03 F8 2A 00 00
                //2C 03 F8 2A 00 00
                //2D 03 C4 09 00 00
                //2E 03 DC 05 00 00
                //2F 03 DC 05 00 00
                //30 03 DC 05 00 00
                //31 03 DC 05 00 00
                //32 03 C4 09 00 00
                //33 03 C4 09 00 00
                //34 03 C4 09 00 00
                //35 03 F8 2A 00 00
                //36 03 F8 2A 00 00
                //37 03 F8 2A 00 00
                //38 03 F8 2A 00 00
                //39 03 F8 2A 00 00
                //3A 03 F8 2A 00 00
                //3B 03 C4 09 00 00
                //3C 03 C4 09 00 00
                //3D 03 C4 09 00 00
                //3E 03 C4 09 00 00
                //3F 03 00 00 00 00
                //40 03 00 00 00 00
                //41 03 00 00 00 00
                //42 03 00 00 00 00
                //44 03 50 00 00 00
                //49 03 3A 07 00 00
                //5C 03 00 00 00 00
                //68 03 00 00 00 00
                //6B 03 00 00 00 00
                //7C 03 00 00 00 00
                //7D 03 00 00 00 00
                //7E 03 00 00 00 00
                //7F 03 00 00 00 00
                //80 03 B3 15 00 00
                //81 03 00 00 00 00
                //82 03 00 00 00 00
                //83 03 00 00 00 00
                //84 03 00 00 00 00
                //85 03 20 03 00 00
                //86 03 88 13 00 00
                //87 03 00 00 00 00
                //88 03 00 00 00 00
                //8A 03 00 00 00 00
                //8B 03 50 C3 00 00
                //97 03 00 00 00 00
                //AB 03 00 00 00 00
                //AC 03 D0 07 00 00
                //AD 03 D0 07 00 00
                //AE 03 88 13 00 00
                //AF 03 00 00 00 00
                //B0 03 D0 07 00 00
                //B1 03 D0 07 00 00
                //B2 03 88 13 00 00
                //B3 03 88 13 00 00
                //B4 03 88 13 00 00
                //B9 03 0A 00 00 00
                //BA 03 88 13 00 00
                //F4 06 00 00 00 00
                //F5 06 13 00 00 00
                //F6 06 00 00 00 00
                //52 09 00 00 00 00
                //53 09 00 00 00 00
                //54 09 00 00 00 00
                //55 09 00 00 00 00
                //56 09 00 00 00 00
                //57 09 00 00 00 00
                //58 09 00 00 00 00
                //59 09 00 00 00 00
                //5A 09 00 00 00 00
                //5B 09 00 00 00 00
                //5C 09 00 00 00 00
                //5D 09 00 00 00 00
                //5E 09 00 00 00 00
                //5F 09 00 00 00 00
                //60 09 00 00 00 00
                //61 09 00 00 00 00
                //A5 09 00 00 00 00
                //A7 09 00 00 00 00
                //A8 09 00 00 00 00
                //A9 09 00 00 00 00
                //AE 09 28 23 00 00
                //48 0A 00 00 00 00
                //4B 0A 00 00 00 00
                //4E 0A 00 00 00 00
                //4F 0A 00 00 00 00
                //50 0A 00 00 00 00
                //51 0A 00 00 00 00
                //54 0A 00 00 00 00
                //57 0A 00 00 00 00
                //5A 0A 00 00 00 00
                //5D 0A 00 00 00 00
                //60 0A 00 00 00 00
                //63 0A 00 00 00 00
                //68 0A 00 00 00 00
                //6B 0A 00 00 00 00
                //6C 0A 00 00 00 00
                //D7 0A 00 00 00 00
                //D8 0A 00 00 00 00
                //D9 0A 00 00 00 00
                //DA 0A 00 00 00 00
                //DB 0A 00 00 00 00
                //DE 0A 00 00 00 00
                //DF 0A 00 00 00 00
                //E0 0A 00 00 00 00
                //E1 0A 00 00 00 00
                //E5 0A 00 00 00 00
                //E6 0A 00 00 00 00
                //E7 0A 00 00 00 00
                //E8 0A 00 00 00 00
                //E9 0A 00 00 00 00
                //EA 0A 00 00 00 00
                //EC 0A 00 00 00 00
                //ED 0A 00 00 00 00
                //EE 0A 00 00 00 00
                //EF 0A 00 00 00 00
                //F0 0A 00 00 00 00
                //F1 0A 00 00 00 00
                //F2 0A 00 00 00 00
                //F3 0A 00 00 00 00
                //F4 0A 00 00 00 00
                //F5 0A 00 00 00 00
                //F6 0A 00 00 00 00
                //F7 0A 00 00 00 00
                //F8 0A 00 00 00 00
                //FB 0A 00 00 00 00
                //FC 0A 00 00 00 00
                //FD 0A 00 00 00 00
                //FE 0A 06 00 00 00
                //FF 0A 00 00 00 00
                //00 0B 00 00 00 00
                //01 0B 00 00 00 00
                //02 0B 00 00 00 00
                //03 0B 00 00 00 00
                //04 0B 00 00 00 00
                //05 0B 00 00 00 00
                //06 0B 00 00 00 00
                //07 0B 00 00 00 00
                //08 0B 00 00 00 00
                //09 0B 00 00 00 00
                //0A 0B 00 00 00 00
                //0B 0B 00 00 00 00
                //0C 0B 00 00 00 00
                //0D 0B 00 00 00 00
                //0E 0B 00 00 00 00
                //0F 0B 00 00 00 00
                //10 0B 00 00 00 00
                //11 0B 00 00 00 00
                //12 0B 00 00 00 00
                //13 0B 00 00 00 00
                //14 0B 00 00 00 00
                //15 0B 00 00 00 00
                //16 0B 00 00 00 00
                //17 0B 00 00 00 00
                //18 0B 00 00 00 00
                //19 0B 00 00 00 00
                //1A 0B 96 00 00 00
                //1B 0B 3C 00 00 00
                //1C 0B 28 00 00 00
                //1D 0B 00 00 00 00
                //1E 0B 1E 00 00 00
                //1F 0B 00 00 00 00
                //20 0B D0 07 00 00
                //21 0B 00 00 00 00
                //22 0B 00 00 00 00
                //23 0B 00 00 00 00
                //24 0B D0 07 00 00
                //25 0B 63 00 00 00
                //26 0B 5B 00 00 00
                //27 0B 00 00 00 00
                //28 0B 00 00 00 00
                //29 0B 00 00 00 00
                //2A 0B 00 00 00 00
                //2B 0B 00 00 00 00
                //2C 0B 00 00 00 00
                //2D 0B 00 00 00 00
                //2E 0B 00 00 00 00
                //2F 0B 00 00 00 00
                //30 0B 32 00 00 00
                //31 0B 3A 00 00 00
                //32 0B 1F 00 00 00
                //33 0B 38 00 00 00
                //34 0B 26 00 00 00
                //35 0B 45 00 00 00
                //36 0B A5 00 00 00
                //37 0B 23 00 00 00
                //38 0B 42 00 00 00
                //39 0B 00 00 00 00
                //3A 0B 05 00 00 00
                //3B 0B 00 00 00 00
                //3C 0B 00 00 00 00
                //3D 0B 00 00 00 00
                //3E 0B 00 00 00 00
                //3F 0B 00 00 00 00
                //40 0B 00 00 00 00
                //41 0B 00 00 00 00
                //42 0B 00 00 00 00
                //43 0B 00 00 00 00
                //44 0B 00 00 00 00
                //45 0B 00 00 00 00
                //4C 0B 00 00 00 00
                //4D 0B 00 00 00 00
                //4E 0B 00 00 00 00
                //55 0B 00 00 00 00
                //56 0B 00 00 00 00
                //57 0B FA 00 00 00
                //59 0B 00 00 00 00
                //5A 0B 06 00 00 00
                //60 0B 00 00 00 00
                //61 0B 00 00 00 00
                //62 0B 00 00 00 00
                //63 0B 00 00 00 00
                //64 0B 00 00 00 00
                //65 0B 00 00 00 00
                //66 0B 00 00 00 00
                //67 0B 00 00 00 00
                //68 0B 00 00 00 00
                //69 0B 00 00 00 00
                //6E 0B 00 00 00 00
                //74 0B 00 00 00 00
                //75 0B 96 00 00 00
                //84 0B 00 00 00 00
                //85 0B 00 00 00 00
                //86 0B 00 00 00 00
                //87 0B 00 00 00 00
                //88 0B 00 00 00 00
                //89 0B 96 00 00 00
                //8A 0B 00 00 00 00
                //8B 0B 00 00 00 00
                //8C 0B 00 00 00 00
                //8D 0B 00 00 00 00
                //8E 0B 40 1F 00 00
                //95 0B 00 00 00 00
                //96 0B 00 00 00 00
                //98 0B 00 00 00 00
                //9A 0B 00 00 00 00
                //9B 0B 00 00 00 00
                //9C 0B 00 00 00 00
                //9D 0B 00 00 00 00
                //9E 0B 00 00 00 00
                //A1 0B 00 00 00 00
                //A2 0B 00 00 00 00
                //A4 0B 00 00 00 00
                //A5 0B 01 00 00 00
                //A7 0B 00 00 00 00
                //A8 0B 00 00 00 00
                //A9 0B 00 00 00 00
                //AC 0B 00 00 00 00
                //AD 0B 00 00 00 00
                //AF 0B C8 00 00 00
                //B0 0B 50 00 00 00
                //B1 0B A0 86 01 00
                //B2 0B E8 03 00 00
                //B3 0B BC 02 00 00
                //B4 0B 00 00 00 00
                //B9 0B 00 00 00 00
                //BA 0B 90 01 00 00
                //BB 0B 0F 00 00 00
                //BC 0B 64 00 00 00
                //BD 0B 00 00 00 00
                //BE 0B 30 75 00 00
                //BF 0B FA 00 00 00
                //C0 0B 90 01 00 00
                //C1 0B 00 00 00 00
                //C2 0B 20 03 00 00
                //C3 0B 00 00 00 00
                //C4 0B 64 00 00 00
                //C5 0B D0 07 00 00
                //C6 0B F4 01 00 00
                //C7 0B 00 00 00 00
                //C8 0B D0 07 00 00
                //C9 0B 96 00 00 00
                //CA 0B C8 00 00 00
                //CB 0B 00 7D 00 00
                //CC 0B 00 00 00 00
                //CD 0B 00 00 00 00
                //CE 0B 4D E3 16 00
                //CF 0B 00 09 3D 00
                //D0 0B 00 00 00 00
                //D1 0B C8 00 00 00
                //D2 0B A0 00 00 00
                //D3 0B 18 01 00 00
                //D4 0B 2C 01 00 00
                //D5 0B FA 00 00 00
                //D6 0B FA 00 00 00
                //D7 0B 01 00 00 00
                //D8 0B FA 00 00 00
                //D9 0B C8 00 00 00
                //DA 0B 40 01 00 00
                //DB 0B 64 00 00 00
                //DC 0B 10 27 00 00
                //DD 0B E8 03 00 00
                //DE 0B 88 13 00 00
                //DF 0B E8 03 00 00
                //E0 0B 52 03 00 00
                //E1 0B 88 13 00 00
                //E2 0B 64 00 00 00
                //E3 0B 10 27 00 00
                //E4 0B 64 00 00 00
                //E5 0B 1E 00 00 00
                //E6 0B 23 00 00 00
                //E7 0B 00 00 00 00
                //E8 0B FA 00 00 00
                //E9 0B C8 00 00 00
                //EA 0B 32 00 00 00
                //EB 0B 64 00 00 00
                //EC 0B 32 00 00 00
                //ED 0B 64 00 00 00
                //EE 0B 32 00 00 00
                //EF 0B C4 09 00 00
                //F0 0B 32 00 00 00
                //F1 0B B6 BC 00 00
                //F2 0B C8 00 00 00
                //F3 0B B0 00 00 00
                //F4 0B EE 02 00 00
                //F5 0B 55 00 00 00
                //F6 0B AA 00 00 00
                //F7 0B 40 1F 00 00
                //F9 0B D0 07 00 00
                //FA 0B 64 00 00 00
                //FB 0B B8 0B 00 00
                //FC 0B 10 27 00 00
                //FD 0B E8 03 00 00
                //FE 0B C8 00 00 00
                //FF 0B B8 0B 00 00
                //00 0C E8 03 00 00
                //01 0C D0 07 00 00
                //02 0C 64 00 00 00
                //03 0C C8 00 00 00
                //04 0C BE 00 00 00
                //05 0C 64 00 00 00
                //06 0C 32 00 00 00
                //07 0C 30 75 00 00
                //08 0C 50 C3 00 00
                //09 0C F4 01 00 00
                //0A 0C 64 00 00 00
                //0B 0C 32 00 00 00
                //0C 0C 64 00 00 00
                //0D 0C 64 00 00 00
                //13 0C 64 00 00 00
                //14 0C 64 00 00 00
                //15 0C 64 00 00 00
                //19 0C 64 00 00 00
                //1A 0C 64 00 00 00
                //1D 0C 00 00 00 00
                //1E 0C 00 00 00 00
                //1F 0C 00 00 00 00
                //20 0C 63 00 00 00
                //21 0C C7 00 00 00
                //22 0C 00 00 00 00
                //23 0C 00 00 00 00
                //24 0C 00 00 00 00
                //25 0C 00 00 00 00
                //26 0C 00 00 00 00
                //27 0C 00 00 00 00
                //28 0C 00 00 00 00
                //29 0C 00 00 00 00
                //2A 0C 2C 01 00 00
                //2B 0C 85 00 00 00
                //2C 0C 00 00 00 00
                //2D 0C 00 00 00 00
                //2E 0C 00 00 00 00
                //2F 0C 00 00 00 00
                //30 0C F3 01 00 00
                //31 0C 00 00 00 00
                //32 0C 00 00 00 00
                //33 0C 00 00 00 00
                //34 0C 00 00 00 00
                //35 0C 00 00 00 00
                //36 0C 00 00 00 00
                //37 0C 00 00 00 00
                //38 0C 00 00 00 00
                //39 0C 00 00 00 00
                //3A 0C 00 00 00 00
                //3B 0C 00 00 00 00
                //3F 0C 00 00 00 00
                //40 0C 00 00 00 00
                //41 0C 00 00 00 00
                //42 0C 00 00 00 00
                //43 0C 00 00 00 00
                //44 0C 00 00 00 00
                //45 0C 00 00 00 00
                //46 0C 00 00 00 00
                //47 0C 00 00 00 00
                //48 0C 00 00 00 00
                //4B 0C 0D 00 00 00
                //4C 0C 4A 00 00 00
            }
        }
        public override void Load(ExtendedBinaryReader fileReader, bool keepOpen = false)
        {
            // Read STSC
            base.Load(fileReader);

            StreamBlock block;

            // System text
            block = GetStreamBlockAndJump(0, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                SystemText.Add(fileReader.ReadStringElsewhere());
            }

            // CGs
            block = GetStreamBlockAndJump(1, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                CGs.Add(fileReader.ReadStruct <CGEntry>());
            }

            // Movies
            block = GetStreamBlockAndJump(2, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Movies.Add(fileReader.ReadStruct <MovieEntry>());
            }

            // Memories
            block = GetStreamBlockAndJump(3, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Memories.Add(fileReader.ReadStruct <MemoryEntry>());
            }

            // Characters
            block = GetStreamBlockAndJump(4, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Characters.Add(fileReader.ReadStruct <CharacterEntry>());
            }

            // Unknown2
            block = GetStreamBlockAndJump(5, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Unknown2.Add(fileReader.ReadStruct <Unknown2Entry>());
            }

            // Unknown3
            block = GetStreamBlockAndJump(6, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Unknown3.Add(fileReader.ReadStruct <Unknown3Entry>());
            }

            // Voices
            block = GetStreamBlockAndJump(7, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Voices.Add(fileReader.ReadStruct <VoiceEntry>());
            }

            // Unknown4
            block = GetStreamBlockAndJump(8, fileReader);
            while (!EndOfBlock(fileReader, block))
            {
                Unknown4.Add(fileReader.ReadStruct <Unknown4Entry>());
            }

            // Older versions may not include art books and drama CDs
            if (Version == 7)
            {
                // Art Book Page
                block = GetStreamBlockAndJump(9, fileReader);
                while (!EndOfBlock(fileReader, block))
                {
                    ArtBookPages.Add(fileReader.ReadStruct <ArtBookPageEntry>());
                }

                // DramaCDs
                block = GetStreamBlockAndJump(10, fileReader);
                while (!EndOfBlock(fileReader, block))
                {
                    DramaCDs.Add(fileReader.ReadStruct <DramaCDEntry>());
                }
            }
        }