- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我想将 Unreal Tournament 环境用作使用 C# 开发 AI 机器人的 Playground 。我在这里找到了一个很好的起点 Creating NET bots for UT , 但是这个网站没有维护,有很多死链接。有关此项目的视频 UT3 Bots for .Net C# 代码的更新版本已移至 Codeplex .NET Unreal Tournament Bots .它提供了一个包含构建过程模板的文件夹和一个包含解决方案的文件夹。
我无法构建此代码。我没有使用模板的经验,在 VS2012 中加载解决方案不会构建。 VS2012迁移代码到这个版本,.NET version 2.0/3.0有警告,但是没有报错。所以我认为这不是致命的。
如果我在 VS2012 中加载解决方案,我会收到解决方案映射错误:
The mappings for the solution could not be found. [...] The active solution has been temporarily disconnected from source control because the server is unavailable. To attempt to reconnect to source control, close and then re-open the solution when the server is available. If you want to connect this solution to another server, use the Change Source Control dialog.
如果我无论如何尝试构建,我都会收到以下构建错误:
2>D:\Essential\Programming\Visual C#\Unreal tournament\UT Remote bots\UTRemoteBotSolution\UTUserBot2004\RemoteUserBot.cs(189,35,189,43): error CS0246: The type or namespace name 'UTVector' could not be found (are you missing a using directive or an assembly reference?) [...] ========== Build: 0 succeeded, 2 failed, 2 up-to-date, 0 skipped ==========
所有错误似乎都指向 UTUserBot2004
,这是提供的 4 个解决方案之一。两个 (UTUSerBot
, UTRemoteBot
) 目标是 UT 1999 年度游戏版本,另外两个 (UTUserBot2004
, UTRemoteBot2004
) 针对 UT 2004。我只对原始 Channel9 帖子中描述的 1999 GOTY 版本感兴趣。
我假设提供的代码没问题,我认为问题在于我缺乏如何让这段代码工作的经验。
任何有助于构建此代码的帮助都将不胜感激。
最佳答案
您正在使用的项目使用了较旧的编译方式,在项目构建完成后,它被复制到解决方案中另一个项目的 bin 文件夹中。因此,除非您的项目位于完全相同的文件夹结构中(即 E:\Shared Files\Shares\
),否则它将无法复制到正确的位置,并且不可用。此外,并非所有项目都相互引用。
要更正此问题,首先转到 UTRemoteBot
项目的属性。在 Build Events
选项卡上,删除 Post-Build Event Commands
中的所有内容。接下来,右键单击 UTUserBot2004
项目,然后选择 Add -> Reference...
在解决方案选项卡中,选中 UTRemoteBot2004
项目。
此外,该项目缺少对 System.Windows.Forms
的引用。再次,右键单击 UTRemoteBot
项目,Add -> Reference...
在 Assemblies 选项卡上的 Framework 下,选中 System.Windows.Forms
。
与源代码管理相关的消息不是问题,可以忽略,因为您不会对此项目进行更改以发布回 CodePlex。
关于c# - C# 中的 .NET Unreal Tournament 机器人 - 无法构建 Codeplex 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29059740/
在http://llvm.org/svn/llvm-project/libcxx/trunk/test/re/re.alg/re.alg.match/ecma.pass.cpp ,存在以下测试:
这个问题在这里已经有了答案: Finding sum of Absolute Difference of Every pair of integer from an array (8 个答案) 关闭
我知道我们可以在 N+log(N)-2 中找到大小为 N 的数组中的 2 最大元素,使用一场“锦标赛”algorithm .现在我想知道我们是否可以使用类似的“锦标赛”找到第 k 个 最大的元素。 我
为了测试不真实锦标赛(1999或2004版)ctf游戏类型的行为规则,我想用java制作一个完全可控的机器人。 没有人工智能,只有一系列的命令,比如跳跃,跑向这一点,等等。一种实时进化算法,进化出一系
我有一个锦标赛分支预测器模拟作为作业。该程序模拟微处理器中的锦标赛分支预测器。我想我做的一切都是对的。我无法追踪问题。我陷入了段错误。 /* Shreyas Kale Computer Archite
我在理解如何在我的遗传算法中实现 Langermann 函数和锦标赛选择时遇到了一些困难。我有 this作为 Langermann 函数的引用,但我不明白 C 值从何而来,因为我只有 X 和 Y。C
我有一个数组,例如长度为 10: Population = {1,3,4,2,7,-2,0,8,9,5}. 我生成两个 0-9 之间的随机数(例如 4 和 6)。然后我检查第四个和第六个元素 (7,
哪种方法最适合尝试在 Switch double 循环赛中平均分配对手,即每轮更换伙伴。 例如,在 8 人锦标赛中,您将进行 7 轮比赛,与每位玩家对战 3 或 4 次,并与每位玩家对战一次。当使用“
我想将 Unreal Tournament 环境用作使用 C# 开发 AI 机器人的 Playground 。我在这里找到了一个很好的起点 Creating NET bots for UT , 但是这
我是一名优秀的程序员,十分优秀!