Exemple #1
0
        public static void MakeCheckError(List <FELint.ErrorSt> errors)
        {
            InputFormRef InputFormRef = Init(null);

            if (InputFormRef.DataCount < 10)
            {
                errors.Add(new FELint.ErrorSt(FELint.Type.BATTTLE_TALK, U.NOT_FOUND
                                              , R._("交戦会話が極端に少ないです。破損している可能性があります。")));
            }

            List <uint> tracelist       = new List <uint>();
            uint        battletalk_addr = InputFormRef.BaseAddress;

            for (uint i = 0; i < InputFormRef.DataCount; i++, battletalk_addr += InputFormRef.BlockSize)
            {
                uint flag = Program.ROM.u16(battletalk_addr + 6);
                FELint.CheckFlag(flag, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, i);

                uint textid = Program.ROM.u16(battletalk_addr + 8);
                FELint.DeathQuoteTextMessage(textid, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, i);

                if (textid <= 0)
                {
                    uint event_addr = Program.ROM.u32(battletalk_addr + 12);
                    FELint.CheckEventPointer(event_addr, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, false, tracelist);
                }
            }
        }
        public static void MakeCheckError(List <FELint.ErrorSt> errors)
        {
            {
                InputFormRef InputFormRef = Init(null);
                if (InputFormRef.DataCount < 2)
                {
                    errors.Add(new FELint.ErrorSt(FELint.Type.BATTTLE_TALK, U.NOT_FOUND
                                                  , R._("交戦会話が極端に少ないです。破損している可能性があります。")));
                }

                uint battletalk_addr = InputFormRef.BaseAddress;
                for (uint i = 0; i < InputFormRef.DataCount; i++, battletalk_addr += InputFormRef.BlockSize)
                {
                    uint flag = Program.ROM.u16(battletalk_addr + 8);
                    FELint.CheckFlag(flag, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, i);

                    uint textid = Program.ROM.u16(battletalk_addr + 4);
                    FELint.DeathQuoteTextMessage(textid, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, i);
                }
            }
            {
                InputFormRef InputFormRef = N_Init(null);
                if (InputFormRef.DataCount < 2)
                {
                    errors.Add(new FELint.ErrorSt(FELint.Type.BATTTLE_TALK, U.NOT_FOUND
                                                  , R._("交戦会話が極端に少ないです。破損している可能性があります。")));
                }

                uint battletalk_addr = InputFormRef.BaseAddress;
                for (uint i = 0; i < InputFormRef.DataCount; i++, battletalk_addr += InputFormRef.BlockSize)
                {
                    uint flag = Program.ROM.u16(battletalk_addr + 8);
                    FELint.CheckFlag(flag, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, i);

                    uint textid = Program.ROM.u16(battletalk_addr + 4);
                    FELint.DeathQuoteTextMessage(textid, errors, FELint.Type.BATTTLE_TALK, battletalk_addr, i);
                }
            }
        }
Exemple #3
0
        public static void MakeCheckError(List <FELint.ErrorSt> errors)
        {
            InputFormRef InputFormRef = Init(null);

            if (InputFormRef.DataCount < 10)
            {
                errors.Add(new FELint.ErrorSt(FELint.Type.HAIKU, U.NOT_FOUND
                                              , R._("死亡セリフが極端に少ないです。破損している可能性があります。")));
            }

            uint haiku_addr = InputFormRef.BaseAddress;

            for (uint i = 0; i < InputFormRef.DataCount; i++, haiku_addr += InputFormRef.BlockSize)
            {
                uint flag = Program.ROM.u16(haiku_addr + 8);
                FELint.CheckFlag(flag, errors, FELint.Type.HAIKU, haiku_addr, i);

                uint textid = Program.ROM.u16(haiku_addr + 4);
                FELint.DeathQuoteTextMessage(textid, errors, FELint.Type.HAIKU, haiku_addr, i);

                textid = Program.ROM.u16(haiku_addr + 12);
                FELint.ConversationTextMessage(textid, errors, FELint.Type.HAIKU, haiku_addr, i);
            }
        }