骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买CDKEY 衣谷三国
查看: 1120|回复: 2

[求助] 大佬求助,下城报错

[复制链接]

1

主题

4

回帖

7

积分

平民

Rank: 1

UID
3510288
第纳尔
28
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2023-4-27
鲜花(0) 鸡蛋(0)
发表于 2023-5-16 23:59:48 | 显示全部楼层 |阅读模式
Inner Exception information
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: StoryMode
CallStack:
  • at void StoryMode.Quests.FirstPhase.CreateKingdomQuest.OnSettlementOwnerChanged(Settlement settlement, bool openToClaim, Hero newOwner, Hero oldOwner, Hero capturerHero, ChangeOwnerOfSettlementDetail detail)
  • at void TaleWorlds.CampaignSystem.MbEvent.InvokeList(EventHandlerRec list, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)
  • at void TaleWorlds.CampaignSystem.CampaignEvents.OnSettlementOwnerChanged(Settlement settlement, bool openToClaim, Hero newOwner, Hero oldOwner, Hero capturerHero, ChangeOwnerOfSettlementDetail detail)
  • at void TaleWorlds.CampaignSystem.CampaignEventDispatcher.OnSettlementOwnerChanged(Settlement settlement, bool openToClaim, Hero newOwner, Hero oldOwner, Hero capturerHero, ChangeOwnerOfSettlementDetail detail)
  • at void TaleWorlds.CampaignSystem.Actions.ChangeOwnerOfSettlementAction.ApplyInternal(Settlement settlement, Hero newOwner, Hero capturerHero, ChangeOwnerOfSettlementDetail detail)
  • at void TaleWorlds.CampaignSystem.KingdomManager.SiegeCompleted(Settlement settlement, MobileParty capturerParty, bool isWin, BattleTypes battleType)
  • at void TaleWorlds.CampaignSystem.MbEvent.InvokeList(EventHandlerRec list, T1 t1, T2 t2, T3 t3, T4 t4)
  • at void TaleWorlds.CampaignSystem.CampaignEvents.SiegeCompleted(Settlement siegeSettlement, MobileParty attackerParty, bool isWin, BattleTypes battleType)
  • at void TaleWorlds.CampaignSystem.CampaignEventDispatcher.SiegeCompleted(Settlement siegeSettlement, MobileParty attackerParty, bool isWin, BattleTypes battleType)
  • at void TaleWorlds.CampaignSystem.MapEvents.MapEvent.FinalizeEventAux()
  • at void TaleWorlds.CampaignSystem.Encounters.PlayerEncounter.FinalizeBattle()
  • at void TaleWorlds.CampaignSystem.Encounters.PlayerEncounter.Finish(bool forcePlayerOutFromSettlement)
  • at void TaleWorlds.CampaignSystem.Encounters.PlayerEncounter.DoEnd()
  • at void TaleWorlds.CampaignSystem.Encounters.PlayerEncounter.UpdateInternal()
  • at void TaleWorlds.CampaignSystem.CampaignBehaviors.EncounterGameMenuBehavior.game_menu_encounter_on_init(MenuCallbackArgs args)
  • at void TaleWorlds.CampaignSystem.GameMenus.GameMenu.RunOnInit(Game game, MenuContext menuContext)
  • at void TaleWorlds.CampaignSystem.GameState.MenuContext.HandleStates()
  • at void TaleWorlds.CampaignSystem.GameState.MapState.OnActivate()
  • at void TaleWorlds.Core.GameState.HandleActivate()
  • at void TaleWorlds.Core.GameStateManager.OnPopState(int level)
  • at void TaleWorlds.Core.GameStateManager.DoGameStateJobs()
  • at void TaleWorlds.Core.GameStateManager.PopState(int level)
  • at void TaleWorlds.CampaignSystem.Inventory.InventoryManager.CloseInventoryPresentation(bool fromCancel)
  • at void TaleWorlds.CampaignSystem.ViewModelCollection.Inventory.SPInventoryVM.HandleDone()


StoryMode.dll@100664029@41

打了一些mod,占领城市报空异常。求助大佬怎么看是哪个元素为空

1

主题

4

回帖

7

积分

平民

Rank: 1

UID
3510288
第纳尔
28
精华
0
互助
1
荣誉
0
贡献
0
魅力
0
注册时间
2023-4-27
鲜花(0) 鸡蛋(0)
 楼主| 发表于 2023-5-17 22:12:47 | 显示全部楼层
破案了
public static CultureObject ImperialCulture
                {
                        get
                        {
                                return StoryModeData.NorthernEmpireKingdom.Culture;
                        }
                }
打了王国覆灭mod,北帝国亡了,tm的t社程序员,取所有帝国文化的对象从北帝国对象取,nm什么水平。问题来了,要是改成南帝国了,南帝国又亡了该怎么办

9

主题

319

回帖

163

积分

见习骑士

Rank: 3

UID
348109
第纳尔
822
精华
0
互助
13
荣誉
0
贡献
0
魅力
0
注册时间
2010-12-9
鲜花(7) 鸡蛋(0)
发表于 2023-5-18 19:09:15 来自手机 | 显示全部楼层
典型的空指针问题。你自己都知道。没得办法,要不你再加个帝国模板,给帝国文化的指到这个模板里。可是可能又有问题了。他不支持再加个模板,所有加进去的必须是一个实际存在的国家。
您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2025-4-24 02:35 , Processed in 0.104027 second(s), 20 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表