太阳帝国的原罪吧 关注:13,345贴子:209,463
  • 13回复贴,共1

二代修改探讨

取消只看楼主收藏回复

这里面大神很多,希望被我的砖给砸……引出来。
以下是这几天找到的条目,目前还没找到的是舰队容量上限,还有很多其他的条目想到了没想到的还没去找。
另外问一下怎么修改单人地图?打开来是16进制数据,可以转成文字查看,但修改了就报错。好想一代那种单通道地图,苟在家里发育


IP属地:四川来自Android客户端1楼2024-06-01 14:03回复
    刚才打了一把后期,还在研究怎么样升级星球和星基,不断弹出的we wipe out the enemy's colony(我们毁灭了敌军的殖民地)语音,我才懵逼的发现敌人里的叛军,把三家不可能完成的电脑全给灭了。
    看来还是改得太厉害了,单位的属性太高了,得限制,于是,我加了tag,只针对主力舰泰坦和星基……


    IP属地:四川4楼2024-06-01 20:09
    收起回复
      "trade_capacity":
      {
      "import_points": 6,
      "export_points":
      {
      "credits": 6,
      "metal": 6,
      "crystal": 6
      }
      },
      这段是我从插件里扒下来的,效果是增加贸易点和出口点(三种资源),但我没办法加进科技研究里去,系统提示unused key:trade_capacity,有谁知道该怎么把这个添加到黑科技里去呢?


      IP属地:四川5楼2024-06-01 23:39
      收起回复
        "bonus_unit_limits":
        {
        "planet": [
        {
        "tag": "starbase",
        "unit_limit": 3
        }]
        },
        这一段是双子星基,单位上限奖励,条件是行星,增加了3个单位上限,这一段的效果是一个重力场可以造4个星基。
        然而,可否用这段语句推导出泰坦的数量限制呢?


        IP属地:四川6楼2024-06-02 14:11
        收起回复
          2024年6月10日,经过这么段时间,大家应该都了解修改的方法了吧,就是各种参数还不是很清楚,今天意外的发现,所有的参数类型就在眼皮子底下,现在发出来分享给大家
          以下是格式
          XXXXX表示分类,如帝国,行星,单位,武器,等等 silasa
          xxxxx表示项目,如武器类别下的射程,伤害,装填率,等等 silasa
          YYYYY表示运算方式,如scalar(标量,即乘法),additive(加法)等等 silasa
          yyyyy表示数据,如1,2,3,4,0.5,-0.5等等
          "XXXXX_modifiers": [
          {
          "modifier_type": "xxxxx",
          "value_behavior": "YYYYY",
          "value": yyyyy
          },
          这就是一个基本的单元格,
          以下是各种参数:
          帝国(empire_modifier):
          "build_exotic_price": "建造异域价格",
          "credit_income_rate": "信用收入",
          "crystal_income_rate": "水晶收入",
          "influence_points_recharge_rate": "影响力增长速率",
          "max_influence_points": "影响力点数",
          "metal_income_rate": "金属收入", silasa
          "percentage_of_other_players_total_credit_income": "其他玩家收入",
          "phase_resonance_bonus_duration": "共振持续时间",
          "research_time": "研究时间",
          "trade_credits_income_rate": "贸易信贷收入",
          "trade_crystal_income_rate": "水晶贸易收入",
          "trade_metal_income_rate": "金属贸易收入",
          异域工厂(exotic_factory_modifier):
          "build_time": "异域建造时刻",
          中立势力(npc_modifier):
          "auction_bid_bonus_influence_points": "拍卖出价奖励",
          "buy_crystal_credits_cost": "购买水晶价格",
          "buy_metal_credits_cost": "金属购买价格",
          "reputation_ability_cooldown_duration": "小型派系技能冷却时间",
          "sell_crystal_credits_received": "出售水晶信用额", silasa
          "sell_exotic_credits_received": "出售异域信用点数",
          "sell_metal_credits_received": "出售金属信用点数收入",
          "send_raid_supply": "小型派系袭击规模",
          行星(planet_modifier):
          "any_development_track_build_price": "行星开发价格",
          "any_development_track_build_time": "行星开发建造时间",
          "bombing_damage_taken": "轰炸伤害承受",
          "civilian_research_points": "民用研究",
          "civilian_research_track_build_price": "民用研究设施升级价格",
          "civilian_research_track_build_time": "民用研究设施升级时间", silasa
          "commerce_track_build_price": "商业升级价格",
          "commerce_track_build_time": "商业升级建造时间",
          "commerce_track_credit_income_rate": "商业信贷收入率",
          "crystal_extraction_rate": "表面采矿速率(晶体)",
          "culture_rate": "文化扩张速率",
          "culture_resistance_rate": "文化阻力",
          "defense_track_build_price": "防御升级价格",
          "defense_track_build_time": "防御设施升级建造时间",
          "excavation_track_build_price": "挖掘价格",
          "excavation_track_build_time": "挖掘时间",
          "factory_exotic_build_time": "异域工厂建造时间",
          "factory_unit_build_price": "工厂单位价格",
          "factory_unit_build_time": "工厂单位建造时间",
          "gravity_well_radius": "引力井半径",
          "health_points_restore_rate": "行星健康再生",
          "logistics_track_build_price": "后勤升级费用",
          "logistics_track_build_time": "物流升级建造时间",
          "max_civilian_structure_slots": "额外的平民轨道槽", silasa
          "max_garrison_supply": "驻防补给",
          "max_health_points": "最大生命值",
          "max_influence_points": "影响力点数",
          "max_military_structure_slots": "额外的军事轨道插槽",
          "max_planet_component_slots": "行星物品槽",
          "max_shield_points": "最大行星护盾",
          "metal_extraction_rate": "地表采矿速率(金属)",
          "military_research_points": "军事研究",
          "military_research_track_build_price": "军事研究设施升级价格",
          "military_research_track_build_time": "军事研究设施升级时间",
          "mining_track_build_price": "采矿升级价格",
          "mining_track_build_time": "采矿升级建造时间",
          "orbital_extraction_crystal_income_rate": "轨道提取率(水晶)",
          "orbital_extraction_metal_income_rate": "轨道提取率(金属)", silasa
          "planet_component_price": "星球物品价格",
          "research_time": "研究时间",
          "shield_points_restore_rate": "行星护盾再生",
          "structure_build_price": "轨道建筑价格",
          "structure_build_time": "轨道结构建造时间",
          "structure_builder_count": "结构建造者",
          小飞机(strikecraft_modifier): "squadron_size": "编队规模",
          船厂(unit_factory_modifier):
          "build_time": "舰船建造时间",
          单位(unit_modifier):
          "ability_antimatter_cost": "技能反物质消耗",
          "ability_armor_cost": "护盾护甲成本",
          "ability_cooldown_duration": "技能冷却时间",
          "ability_hull_cost": "舰体成本",
          "ability_range": "技能范围", silasa
          "ability_shields_cost": "护盾能力消耗", silasa
          "antimatter_restore_rate": "反物质再生",
          "armor_point_restore_cooldown_duration_after_damage_taken": "护甲再生冷却时间",
          "armor_point_restore_rate": "装甲再生",
          "armor_strength": "装甲强度",
          "civilian_research_points": "民用研究点数",
          "credit_income_rate": "信用收入",
          "crystal_income_rate": "水晶收入",
          "culture_rate": "文化扩散率",
          "culture_resistance_rate": "文化抵抗",
          "damage_taken": "受到的伤害",
          "experience_gained_from_loot_collection": "废弃太空船捕获经验",
          "experience_gained_from_planet_bombing": "行星轰炸经验",
          "experience_gained_from_unit_death": "击毁飞船经验",
          "experience_given_on_death": "经验奖励",
          "hull_crippled_percentage": "残破船体", silasa
          "hull_point_restore_cooldown_duration_after_damage_taken": "舰体再生冷却时间",
          "hull_point_restore_rate": "船体再生",
          "hyperspace_charge_time": "相位跳跃充能时间",
          "hyperspace_speed": "相位跳跃速度",
          "loot_collection_duration": "遗弃捕获时间",
          "max_angular_speed": "最大转向速度",
          "max_antimatter": "最大反物质",
          "max_armor_points": "最大装甲值",
          "max_hull_points": "最大船体点数",
          "max_linear_acceleration": "最大加速度",
          "max_linear_speed": "最高速度", silasa
          "max_shield_points": "最大护盾点数",
          "max_squadron_capacity": "最大编队插槽数",
          "metal_income_rate": "金属收入",
          "military_research_points": "军事研究点数",
          "self_build_time": "建造时间",
          "shield_burst_restore_cooldown_duration": "护盾冲击波恢复冷却时间",
          "shield_burst_restore_points": "护盾爆发恢复点",
          "shield_point_restore_cooldown_duration_after_damage_taken": "护盾再生冷却时间",
          "shield_point_restore_rate": "护盾再生",
          "ship_component_price": "商品价格",
          "strikecraft_build_time": "战机建造时间",
          "trade_export_credits_points": "贸易商品出口",
          "trade_export_crystal_points": "贸易水晶出口",
          "trade_export_metal_points": "金属出口贸易",
          "trade_import_points": "贸易出口点数",
          "unity": "团结",
          武器(weapon_modifier):
          "bypass_shields_chance": "绕过护盾几率",
          "cooldown_duration": "武器装填",
          "damage": "武器伤害", silasa
          "planet_bombing_cooldown_duration": "行星轰炸装填",
          "planet_bombing_damage": "行星轰炸伤害",
          "planet_bombing_range": "行星轰炸射程",
          "range": "武器射程",
          "tracking_speed": "武器跟踪速度",
          ————有了这些参数,大家想怎么改就怎么改了,我也懒得更新修改了,自动丰足(自己动手丰衣足食)吧


          IP属地:四川18楼2024-06-10 20:18
          收起回复
            主力舰和泰坦修改满技能点其实是用了一个取巧的办法,即将它们的等级上限提高到14级,每一级一个技能点,于是便足够了。
            修改需要动用多个文件,因为主力舰和泰坦都分别有自己独立的文件,所以就是10个主力舰文件和4个泰坦文件

            具体修改过程如下:
            以trader_battle_capital_ship(科尔战舰)为例,用文本编辑器打开该文件,搜索"durability":,上方有一片连续的数据,一共有10片,代表10级中每一级的数据,复制最后一段,然后以相同的格式复制4次,于是你就有了14级的舰船数据
            接着"build":,上方同样有10片数据,那是每一级升级的数据,也是复制最后一段,再以同样的格式复制4次,就有了14级的升级数据。
            这里多说一句,同样的格式并不是说就只需要复制粘贴了,由于你是插入数据,原本结尾的格式要改成中间的格式,最后一段要改成结尾的格式,说白了就是有些地方要加逗号,有些地方要去掉逗号,有些语句要删,有些语句要增添。后面我会把原版和修改的内容对比列出来
            关于主力舰满插槽
            在每个主力舰文件的最后,找到如下语句:
            "items":
            {
            "levels": [
            {
            "max_ship_component_count": 4
            }]
            这是舰船插槽的语句,主力舰是4,修改成8即可满插槽了。
            目前还没找到增加插槽的办法,有个文件定义了插槽8个的上限值,但还没找到,看以后有没有办法了。


            IP属地:四川19楼2024-06-26 20:30
            收起回复
              以下是科尔战舰原版文件中health第十级数据的内容:
              {
              "max_shield_points": 2245.0,
              "shield_point_restore_rate": 11.4,
              "shield_burst_restore":
              {
              "cooldown_duration": 40,
              "restore_percentage": 0.5
              },
              "max_hull_points": 4730.0,
              "hull_point_restore_rate": 9.5,
              "hull_crippled_percentage": 1.0,
              "max_armor_points": 2605.0,
              "armor_point_restore_rate": 4.2,
              "armor_strength": 150.0,
              "experience_given_on_death": 640.0,
              "hull_point_restore_cooldown_duration_after_damage_taken": 60,
              "armor_point_restore_cooldown_duration_after_damage_taken": 60,
              "shield_point_restore_cooldown_duration_after_damage_taken": 20
              }],
              "durability": 500.0
              而以下是科尔战舰修改后health第十级到第十四级数据的内容:
              {
              "max_shield_points": 2245.0,
              "shield_point_restore_rate": 11.4,
              "shield_burst_restore":
              {
              "cooldown_duration": 40,
              "restore_percentage": 0.5
              },
              "max_hull_points": 4730.0,
              "hull_point_restore_rate": 9.5,
              "hull_crippled_percentage": 1.0,
              "max_armor_points": 2605.0,
              "armor_point_restore_rate": 4.2,
              "armor_strength": 150.0,
              "experience_given_on_death": 640.0,
              "hull_point_restore_cooldown_duration_after_damage_taken": 60,
              "armor_point_restore_cooldown_duration_after_damage_taken": 60,
              "shield_point_restore_cooldown_duration_after_damage_taken": 20
              },
              {
              "max_shield_points": 2245.0,
              "shield_point_restore_rate": 11.4,
              "shield_burst_restore":
              {
              "cooldown_duration": 40,
              "restore_percentage": 0.5
              },
              "max_hull_points": 4730.0,
              "hull_point_restore_rate": 9.5,
              "hull_crippled_percentage": 1.0,
              "max_armor_points": 2605.0,
              "armor_point_restore_rate": 4.2,
              "armor_strength": 150.0,
              "experience_given_on_death": 640.0,
              "hull_point_restore_cooldown_duration_after_damage_taken": 60,
              "armor_point_restore_cooldown_duration_after_damage_taken": 60,
              "shield_point_restore_cooldown_duration_after_damage_taken": 20
              },
              {
              "max_shield_points": 2245.0,
              "shield_point_restore_rate": 11.4,
              "shield_burst_restore":
              {
              "cooldown_duration": 40,
              "restore_percentage": 0.5
              },
              "max_hull_points": 4730.0,
              "hull_point_restore_rate": 9.5,
              "hull_crippled_percentage": 1.0,
              "max_armor_points": 2605.0,
              "armor_point_restore_rate": 4.2,
              "armor_strength": 150.0,
              "experience_given_on_death": 640.0,
              "hull_point_restore_cooldown_duration_after_damage_taken": 60,
              "armor_point_restore_cooldown_duration_after_damage_taken": 60,
              "shield_point_restore_cooldown_duration_after_damage_taken": 20
              },
              {
              "max_shield_points": 2245.0,
              "shield_point_restore_rate": 11.4,
              "shield_burst_restore":
              {
              "cooldown_duration": 40,
              "restore_percentage": 0.5
              },
              "max_hull_points": 4730.0,
              "hull_point_restore_rate": 9.5,
              "hull_crippled_percentage": 1.0,
              "max_armor_points": 2605.0,
              "armor_point_restore_rate": 4.2,
              "armor_strength": 150.0,
              "experience_given_on_death": 640.0,
              "hull_point_restore_cooldown_duration_after_damage_taken": 60,
              "armor_point_restore_cooldown_duration_after_damage_taken": 60,
              "shield_point_restore_cooldown_duration_after_damage_taken": 20
              },
              {
              "max_shield_points": 2245.0,
              "shield_point_restore_rate": 11.4,
              "shield_burst_restore":
              {
              "cooldown_duration": 40,
              "restore_percentage": 0.5
              },
              "max_hull_points": 4730.0,
              "hull_point_restore_rate": 9.5,
              "hull_crippled_percentage": 1.0,
              "max_armor_points": 2605.0,
              "armor_point_restore_rate": 4.2,
              "armor_strength": 150.0,
              "experience_given_on_death": 640.0,
              "hull_point_restore_cooldown_duration_after_damage_taken": 60,
              "armor_point_restore_cooldown_duration_after_damage_taken": 60,
              "shield_point_restore_cooldown_duration_after_damage_taken": 20
              }],
              "durability": 500.0


              IP属地:四川20楼2024-06-26 20:34
              收起回复
                以下是科尔战舰原版文件里第九级到第十级的升级数据:
                {
                "experience_to_next_level": 7800.0,
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 385.0,
                "antimatter_restore_rate": 1.39
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.48,
                "cooldown_duration": -0.12
                }
                }
                },
                {
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 405.0,
                "antimatter_restore_rate": 1.47
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.54,
                "cooldown_duration": -0.135
                }
                }
                }]
                而以下是科尔战舰第九级到第十四级的升级数据:
                {
                "experience_to_next_level": 7800.0,
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 385.0,
                "antimatter_restore_rate": 1.39
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.48,
                "cooldown_duration": -0.12
                }
                }
                },
                {
                "experience_to_next_level": 7800.0,
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 405.0,
                "antimatter_restore_rate": 1.47
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.54,
                "cooldown_duration": -0.135
                }
                }
                },
                {
                "experience_to_next_level": 7800.0,
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 405.0,
                "antimatter_restore_rate": 1.47
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.54,
                "cooldown_duration": -0.135
                }
                }
                },
                {
                "experience_to_next_level": 7800.0,
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 405.0,
                "antimatter_restore_rate": 1.47
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.54,
                "cooldown_duration": -0.135
                }
                }
                },
                {
                "experience_to_next_level": 7800.0,
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 405.0,
                "antimatter_restore_rate": 1.47
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.54,
                "cooldown_duration": -0.135
                }
                }
                },
                {
                "unit_modifiers":
                {
                "additive_values":
                {
                "max_antimatter": 405.0,
                "antimatter_restore_rate": 1.47
                },
                "scalar_values":
                {}
                },
                "weapon_modifiers":
                {
                "additive_values":
                {},
                "scalar_values":
                {
                "damage": 0.54,
                "cooldown_duration": -0.135
                }
                }
                }]


                IP属地:四川21楼2024-06-26 20:37
                收起回复
                  那你还要找什么呢?贴吧找不到可以搜搜外网的资讯,哪些比较出名的mod比如大漩涡,伊甸园什么的,那也是可以借鉴的吧?甚至你把冰雪之涯发的那个ACGmod下载下来,也能有所参考吧?至于找不找得到教程,这贴吧只是一个分享的地方,全凭各位的兴趣以及爱好,谁也没有义务必须把自己会的东西一五一十详细的发出来供大家学习吧?
                  我一直有点搞不懂,我之所以一直耐心的跟你交流,是因为我一直觉得自己是一种感恩的心态,能从吧友的分享里学到东西,我觉得很感谢,进而自己也参与到这个过程中,而你呢?这么多人,连问个新单位都没人敢回答?谁有义务啊?给钱了吗?有人知道也未必愿意来解答吧?
                  心态摆正吧,兄弟。


                  IP属地:四川来自Android客户端23楼2024-06-29 15:18
                  收起回复



                    IP属地:四川来自Android客户端25楼2024-06-30 14:48
                    回复
                      统一回复一下,这段时间很忙,几乎没时间玩游戏,所以大家提出的问题我都还没接触过,等玩过以后再来说,或者有玩过并且愿意分享的朋友来帮忙解释一下。
                      另外,虽然不敢百分百确定,但修改了不起效的朋友,检查一下你的格式,很可能是这方面的问题,我在游戏发售当晚就进了游戏五分钟,但我在player文件里修改的初始资源什么的都是有效的,说明游戏结构没有大变


                      IP属地:四川来自Android客户端44楼2024-08-18 19:26
                      回复


                        今晚我试了一下,这不是能修改嘛?你们改错的人究竟是哪里出问题了呢?


                        IP属地:四川48楼2024-08-20 03:14
                        收起回复
                          关于怎么给T和V添加灵能加成。
                          我偶尔在三大妈论坛上看到某人发了个MOD,其中有一项功能就是让T族的主力舰能享受灵能加成,但那个MOD里文件众多,发帖的楼主也没有讲具体方法,于是我就自己试着找了一下,结果发现并不难。
                          直接说结论,就是在主力舰技能(也包括泰坦技能)的action_data_source里添加灵能描述:
                          如trader_battle_capital_ship_adaptive_force_field.action_data_source,这是科尔第三技能,action_data_source里有具体的参数,比如:
                          {
                          "action_value_id": "damage_taken_bonus_value",
                          "action_value":
                          {
                          "values": [-0.15, -0.3, -0.45]
                          }
                          },
                          这一段是指减伤每一级的比例,一级减15%,二级减30%,三级减45%,如果要让灵能起作用,就在value那一行下面添加参数:
                          {
                          "action_value_id": "damage_taken_bonus_value",
                          "action_value":
                          {
                          "values": [-0.15, -0.3, -0.45],
                          "ratio":
                          {
                          "ratio_type": "per_spell_power",
                          "ratio_values": [-0.001, -0.002, -0.003]
                          }
                          }
                          },
                          于是这样就成了,一级减15%+你的灵能乘以0.001,二级减30%+你的灵能乘以0.002,三级减45%+你的灵能乘以0.002,我没有做灵能的船插,只是单纯通过科技加了200灵能,于是就成了0.15+0.2,0.3+0.4,0.45+0.6,晚点我看看截个图上来。
                          这里要说明一下,由于你添加了与value并列的语句,所以别忘了在value那一行最后加一个英文的逗号(别打成中文的)。
                          以此为例,所有带技能的舰船都可以添加灵能加成,这是个大工程,就看谁有兴趣来试试了。至于灵能船插,可以在现有的船插基础上仿造A族的船插,也可以自定义。


                          IP属地:四川64楼2025-02-08 21:04
                          回复

                            放个截图上来,贴吧发帖没有格式了。


                            IP属地:四川65楼2025-02-08 21:08
                            回复