注册 | 登录

游侠NETSHOW论坛





游侠NETSHOW论坛 游侠NETSHOW论坛 中华三国志 耒大帮帮忙看看这是什么地方有问题
查看: 1663|回复: 2
打印 上一主题 下一主题

[求助] 耒大帮帮忙看看这是什么地方有问题 [复制链接]

帖子
173
精华
0
积分
98
金钱
1071
荣誉
1
人气
15
评议
0
跳转到指定楼层
楼主
发表于 2013-10-27 10:42:32 |显示全部楼层 |倒序浏览
V21的,修改了蛮多地方,翻查了common不止一遍了,找不到问题所在。



==================== Message ====================
索引超出范围。必须为非负值并小于集合大小。
参数名: index
=================== StackTrace ==================
   在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   在 System.ThrowHelper.ThrowArgumentOutOfRangeException()
   在 System.Collections.Generic.List`1.get_Item(Int32 index)
   在 WorldOfTheThreeKingdoms.GameScreens.MainGameScreen.TroopChaos(Troop troop, Boolean deepChaos)
   在 GameObjects.TroopList.troop_OnChaos(Troop troop, Boolean deepChaos)
   在 GameObjects.Troop.SetChaos(Int32 days)
   在 GameObjects.Troop.ApplyStratagemEffect()
   在 GameObjects.Troop.SetNotShowing()
   在 WorldOfTheThreeKingdoms.GameScreens.ScreenLayers.TroopLayer.Draw(SpriteBatch spriteBatch, Point viewportSize, GameTime gameTime)
   在 WorldOfTheThreeKingdoms.GameScreens.MainGameScreen.Drawing(GameTime gameTime)
   在 WorldOfTheThreeKingdoms.GameScreens.MainGameScreen.Draw(GameTime gameTime)
   在 Microsoft.Xna.Framework.Game.Draw(GameTime gameTime)
   在 WorldOfTheThreeKingdoms.MainGame.Draw(GameTime gameTime)
   在 Microsoft.Xna.Framework.Game.DrawFrame()
   在 Microsoft.Xna.Framework.Game.Tick()
   在 Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   在 Microsoft.Xna.Framework.GameHost.OnIdle()
   在 Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   在 System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.Run(Form mainForm)
   在 Microsoft.Xna.Framework.WindowsGameHost.Run()
   在 Microsoft.Xna.Framework.Game.Run()
   在 WorldOfTheThreeKingdoms.GameProcesses.MainProcessManager.Processing()
   在 WorldOfTheThreeKingdoms.Program.Main(String[] args)

附件: 你需要登录才可以下载或查看附件。没有帐号?注册
已有 1 人评分人气 收起 理由
一世恋 + 1 我和小伙伴们都惊呆了!

总评分: 人气 + 1   查看全部评分

使用道具 举报

帖子
173
精华
0
积分
98
金钱
1071
荣誉
1
人气
15
评议
0
沙发
发表于 2013-10-27 10:43:22 |显示全部楼层
游戏可以运行蛮长时间,但是跳出就是这个问题。

使用道具 举报

帖子
173
精华
0
积分
98
金钱
1071
荣誉
1
人气
15
评议
0
板凳
发表于 2013-10-27 10:53:42 |显示全部楼层
==================== Message ====================
索引超出范围。必须为非负值并小于集合大小。
参数名: index
=================== StackTrace ==================
   在 System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   在 System.ThrowHelper.ThrowArgumentOutOfRangeException()
   在 System.Collections.Generic.List`1.get_Item(Int32 index)
   在 WorldOfTheThreeKingdoms.GameScreens.MainGameScreen.TroopChaos(Troop troop, Boolean deepChaos)
   在 GameObjects.TroopList.troop_OnChaos(Troop troop, Boolean deepChaos)
   在 GameObjects.Troop.SetChaos(Int32 days)
   在 GameObjects.Troop.HandleTroopDamage(TroopDamage damage)
   在 GameObjects.Troop.ApplyDamageList()
   在 GameObjects.Troop.SetNotShowing()
   在 WorldOfTheThreeKingdoms.GameScreens.ScreenLayers.TroopLayer.Draw(SpriteBatch spriteBatch, Point viewportSize, GameTime gameTime)
   在 WorldOfTheThreeKingdoms.GameScreens.MainGameScreen.Drawing(GameTime gameTime)
   在 WorldOfTheThreeKingdoms.GameScreens.MainGameScreen.Draw(GameTime gameTime)
   在 Microsoft.Xna.Framework.Game.Draw(GameTime gameTime)
   在 WorldOfTheThreeKingdoms.MainGame.Draw(GameTime gameTime)
   在 Microsoft.Xna.Framework.Game.DrawFrame()
   在 Microsoft.Xna.Framework.Game.Tick()
   在 Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   在 Microsoft.Xna.Framework.GameHost.OnIdle()
   在 Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   在 System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   在 System.Windows.Forms.Application.Run(Form mainForm)
   在 Microsoft.Xna.Framework.WindowsGameHost.Run()
   在 Microsoft.Xna.Framework.Game.Run()
   在 WorldOfTheThreeKingdoms.GameProcesses.MainProcessManager.Processing()
   在 WorldOfTheThreeKingdoms.Program.Main(String[] args)

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

手机版|Archiver|游侠NETSHOW论坛 ( 苏ICP备2023007791号 )

GMT+8, 2025-8-14 01:50 , Processed in 0.303298 second(s), 14 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到