📂
Bannerlord Modding CN
  • 骑马与砍杀2 领主 Mod 制作文档
  • C# API Documentation
    • Core
      • MBObjectManager
      • GameModel
      • InformationManager
      • BasicCharacterObject
      • Game
      • ItemObject
    • Campaign System
      • GameMenu
      • Settlement
      • CampaignGameStarter
      • actions
        • ChangeOwnerOfSettlementAction
      • TournamentGame
      • Hero : MBObjectBase, ITrackableCampaignObject, ITrackableBase
      • CampaignBehaviorBase
    • Mount And Blade
      • MissionBehaviour
        • MissionView
        • MissionLogic
      • MBInitialScreenBase
      • Mission
      • MBSubModuleBase
      • agent
      • Team
    • Input System
      • Input
    • Engine
      • GlobalLayer
      • ScriptComponentBehaviour
      • Scene
      • GameEntity
    • Library
      • ModuleInfo
    • Platform Service
    • Save System
    • Localization
      • MBTextManager
      • TextObject
    • Network
    • Two Dimension
  • XML Documentation
    • NPCCharacters
      • NPCCharacter(NPC角色)
        • upgrade_targets
          • upgrade_target
        • equipmentSet
          • equipment
        • Face
          • BodyProperties
          • hair_tags
            • hair_tag
          • BodyPropertiesMax
          • beard_tags
            • beard_tag
          • face_key_template
        • equipment
        • skills
          • skill
        • Traits
          • Trait
    • 物品(大类) Items
      • 物品 Item
        • 物品组件 ItemComponent
          • 马匹 Horse
            • Materials
              • Material
                • MeshMultipliers
                  • MeshMultiplier
          • 防具 Armor
          • Weapon
            • WeaponFlags
          • 食物 Food
        • 旗帜 Flags
      • CraftedItem
        • Pieces
          • Piece
    • Items (XML)
    • Scenes
      • Scene
        • GameType
        • TerrainType
          • TerrainType
    • SPCultures (XML)
    • SPCultures
      • Culture
        • female_names
          • name
        • male_names
          • name
        • clan_names
          • name
    • Atmosphere (XML)
    • SubModule (XML)
    • Scenes (XML)
    • NPCCharacters (XML)
  • Gauntlet
    • Brush
    • GauntletLayer
    • GauntletMovie
    • SceneLayer
    • Movie (XML)
    • Widget
    • GauntletView
    • ScreenBase
    • ViewModel
    • ScreenManager
  • Introduction
    • 高级用法
    • 开始第一步
    • 文件夹结构
    • Defining custom data
  • Tutorials
    • 将你的mod打包上传至Vortex
    • Making Banners
    • 不需要C#的UI系统Mod入门 #
    • 基本 C# Mod
    • new_settlements
  • ru
    • _intro
      • Начало
      • Структура папок
Powered by GitBook
On this page
  • 重要提示
  • 工具
  • C# IDE
  • 文本编辑器
  • 不使用 C# 制作Mod
  • 使用 C# 制作Mod
  • 制作一个模组
  • 下一步

Was this helpful?

  1. Introduction

开始第一步

Previous高级用法Next文件夹结构

Last updated 4 years ago

Was this helpful?

重要提示

在进一步工作之前, 理解文件 是非常重要的,因为这个文件指定了你Mod中的哪一部分会被加载。

工具

C# IDE

  • (基础的Mod不需要用到它)

文本编辑器

任何文本编辑器都足以满足要求, 但是以下是推荐使用的:

不使用 C# 制作Mod

游戏中部分内容不需要C#即可定制,包括场景、物品、文化、角色、Gauntlet UI等等。

使用 C# 制作Mod

“基于模组”的Mod制作系统,使霸主的Mod制作工作比前作更加容易,并且它支持实现更复杂的Mod功能。

制作一个模组

在霸主,一个独立运行的Mod被叫做“模组”。模组唯一必要的部分就是SubModule文件夹,和负责启动Mod的SubModule.xml文件。

下一步

1.在游戏目录的Modules文件夹中新建文件夹,文件夹名称必须与你的SubModule保持一致。 2. 在你的新文件夹中创建文件SubModule.xml,你可以 或者

参考 页面,以获取其它文件夹路径的参考信息,帮助拓展你的Mod。

参考 页面,它提供了一份在霸主中设置,编译,运行代码的简单例子。

参考 页面,它提供了无需C#的Gauntlet UI定制方法。

SubModule.xml
Microsoft Visual Studio
Visual Studio Code
Sublime Text
Notepad++
看看这个例子
获取完整参考文档
文件结构
基础 C# Mod
不使用C#的Gauntlet UI定制