注册 | 登录

游侠NETSHOW论坛





查看: 23404|回复: 37
打印 上一主题 下一主题

[原创] 谈谈1404的FlagShip修改 [复制链接]

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
跳转到指定楼层
楼主
发表于 2009-8-6 11:05:24 |只看该作者 |倒序浏览
anno1404发布了一段时间了,可能是汉化没出的原因吧,大家的关注还在沉船和东印度上,
每次登陆论坛总要看看有没有最新的心得和左贤王汉化,但每次都失望而归。

经过不断的摸索,我发一个旗舰“FlagShip”的修改,希望抛砖引玉,能看到更多的好贴。
如果有不正确的地方,或者大家觉得太小儿科了敬请谅解。

修改文件\data\config\game\assset.xml

说明:修改的是游戏开始时就有的旗舰,特征是生命600,攻击6点,货仓4格,宝物栏2个
                        大家使用时将“//”和之后的注释去掉


查找关键字“<GUID>15912</GUID>”,15912就是旗舰的编号

                    <Asset>
                      <Template>WarShip</Template>
                      <Values>
                        <AIInfos>
                          <SeaStrength>20</SeaStrength>//新添加的,原句采用默认设置
                        </AIInfos>
                        <BuildCost>
                          <MoneyCost>3500</MoneyCost>//制造价格,因为没有定义制造地方,设了也没用
                        </BuildCost>
                        <Hitpoints>
                          <MaxHitpoints>1000</MaxHitpoints>//生命值,原来是600
                        </Hitpoints>
                        <InfoLayer />
                        <ItemContainer>
                          <Sockets>
                            <Ship>2</Ship>//宝物栏,改成3也可以,但是显示不出来,而且宝物放上去就拿不下来
                          </Sockets>
                        </ItemContainer>
                        <KIModule />
                        <MaintenanceCost />
                        <Mesh>
                          <ShowGlyph>1</ShowGlyph>
                        </Mesh>
                        <Object>
                          <Variations>
                            <Item>
                              <Filename>data\graphics\units\ships\north\flagship\n_flagship.cfg</Filename>
                            </Item>
                          </Variations>
                          <NamePool>OccidentShip</NamePool>
                        </Object>
                        <ObjectSpawner />
                          <RepairShips>
                            <SelfHealingPointsPerMinute>50</SelfHealingPointsPerMinute>//新添加的,自动修理功能,每分钟50点,借鉴海盗船
                          </RepairShips>
                        <Selection />
                        <Ship>
                          <VisionRadius>40</VisionRadius>//视野,没必要修改
                          <DestructionConfig>data\graphics\units\ships\north\flagship\n_flagship_damaged.cfg</DestructionConfig>
                          <ShipClaimNeeded>0</ShipClaimNeeded>
                          <LoadFactor>819</LoadFactor>
                          <DamageFactor>3072</DamageFactor>
                          <ShipMoveSound>2607</ShipMoveSound>
                          <ShipIdleSound>2610</ShipIdleSound>
                          <ShipTurnSound>2628</ShipTurnSound>
                          <ShipDestroySound>2633</ShipDestroySound>
                        </Ship>
                        <ShipCombat>
                          <AttackRange>15</AttackRange>//攻击距离,没必要修改
                          <DamagePerSecond>10</DamagePerSecond>//伤害,原来是6
                          <AttackAngle>90</AttackAngle>
                          <ShipProjectileGUID>11501</ShipProjectileGUID>
                          <PursuitAttackRangePercentage>60</PursuitAttackRangePercentage>//估计是命中率,没有修改
                        </ShipCombat>
                        <Standard>
                          <Name>Flagship</Name>//船类型,这里是旗舰
                          <GUID>15912</GUID>//船ID号,如果你要修改船坞能制造的船,就要留意这个
                        </Standard>
                        <TradingPrice>
                          <BaseGoldPrice>4600</BaseGoldPrice>//NPC出售价,没有关注过,改高了自己买不起
                          <MinTradingPrice>4600</MinTradingPrice>//同上
                          <MaxTradingPrice>4600</MaxTradingPrice>//同上
                        </TradingPrice>
                        <Transport>
                          <SlotCount>4</SlotCount>//船舱数量,没有修改,可以改成6
                          <SlotCapacity>100</SlotCapacity>//新添加的,定义每个舱室装载量为100                     
                        </Transport>
                        <Walking>
                          <WalkingSpeed>16000</WalkingSpeed>//速度,原来是14500
                          <TurnRadiusMinimum>256</TurnRadiusMinimum>
                          <TurnDeceleration>2300</TurnDeceleration>
                        </Walking>
                      </Values>
                    </Asset>
以上就是我的修改,这样一来,旗舰就更好用了。
但是,当随着隐藏的SilverShip和GoldShip被解开,我们可以使用这两种船开局时,上面的设置就不起作用了,
因为他们的配置文件是不同的,以下就是“Achievementship”(金船)和“Preordership”(银船)。

                    <Asset>
                      <Template>WarShip</Template>
                      <Values>
                        <AIInfos>
                          <SeaStrength>40</SeaStrength>
                        </AIInfos>
                        <BuildCost>
                          <MoneyCost>3500</MoneyCost>
                        </BuildCost>
                        <Hitpoints>
                          <MaxHitpoints>2000</MaxHitpoints>
                        </Hitpoints>
                        <InfoLayer />
                        <ItemContainer>
                          <Sockets>
                            <Ship>2</Ship>
                          </Sockets>
                        </ItemContainer>
                        <KIModule />
                        <MaintenanceCost />
                        <Mesh>
                          <ShowGlyph>1</ShowGlyph>
                        </Mesh>
                        <Object>
                          <Variations>
                            <Item>
                              <Filename>data\graphics\units\ships\north\achievement_ship\n_achievement_ship.cfg</Filename>
                            </Item>
                          </Variations>
                          <NamePool>OccidentShip</NamePool>
                        </Object>
                        <ObjectSpawner />
                        <RepairShips>
                          <SelfHealingPointsPerMinute>200</SelfHealingPointsPerMinute>
                        </RepairShips>
                        <Selection />
                        <Ship>
                          <VisionRadius>40</VisionRadius>
                          <DestructionConfig>data\graphics\units\ships\north\achievement_ship\n_achievement_ship_damaged.cfg</DestructionConfig>
                          <ShipClaimNeeded>0</ShipClaimNeeded>
                          <LoadFactor>819</LoadFactor>
                          <DamageFactor>3072</DamageFactor>
                          <ShipMoveSound>2607</ShipMoveSound>
                          <ShipIdleSound>2610</ShipIdleSound>
                          <ShipTurnSound>2628</ShipTurnSound>
                          <ShipDestroySound>2633</ShipDestroySound>
                        </Ship>
                        <ShipCombat>
                          <AttackRange>15</AttackRange>
                          <DamagePerSecond>20</DamagePerSecond>
                          <AttackAngle>90</AttackAngle>
                          <ShipProjectileGUID>11501</ShipProjectileGUID>
                          <PursuitAttackRangePercentage>80</PursuitAttackRangePercentage>
                        </ShipCombat>
                        <Standard>
                          <Name>Achievementship</Name>
                          <GUID>15923</GUID>
                          <Versions>Anno1404;Beta01;Beta02;Demo01;Demo02;Addon01;Addon02;BETA_TEXTURE_NONE</Versions>
                        </Standard>
                        <TradingPrice>
                          <BaseGoldPrice>4600</BaseGoldPrice>
                          <MinTradingPrice>4600</MinTradingPrice>
                          <MaxTradingPrice>4600</MaxTradingPrice>
                        </TradingPrice>
                        <Transport>
                          <SlotCount>6</SlotCount>
                          <SlotCapacity>500</SlotCapacity>
                        </Transport>
                        <Walking>
                          <WalkingSpeed>24000</WalkingSpeed>
                          <TurnRadiusMinimum>256</TurnRadiusMinimum>
                          <TurnDeceleration>2300</TurnDeceleration>
                        </Walking>
                      </Values>
                    </Asset>
                    <Asset>
                      <Template>WarShip</Template>
                      <Values>
                        <AIInfos>
                          <SeaStrength>30</SeaStrength>
                        </AIInfos>
                        <BuildCost>
                          <MoneyCost>3500</MoneyCost>
                        </BuildCost>
                        <Hitpoints>
                          <MaxHitpoints>1500</MaxHitpoints>
                        </Hitpoints>
                        <InfoLayer />
                        <ItemContainer>
                          <Sockets>
                            <Ship>2</Ship>
                          </Sockets>
                        </ItemContainer>
                        <KIModule />
                        <MaintenanceCost />
                        <Mesh>
                          <ShowGlyph>1</ShowGlyph>
                        </Mesh>
                        <Object>
                          <Variations>
                            <Item>
                              <Filename>data\graphics\units\ships\north\preorder_ship\n_preorder_ship.cfg</Filename>
                            </Item>
                          </Variations>
                          <NamePool>OccidentShip</NamePool>
                        </Object>
                        <ObjectSpawner />
                          <RepairShips>
                            <SelfHealingPointsPerMinute>100</SelfHealingPointsPerMinute>
                          </RepairShips>
                        <Selection />
                        <Ship>
                          <VisionRadius>40</VisionRadius>
                          <DestructionConfig>data\graphics\units\ships\north\preorder_ship\n_preorder_ship_damaged.cfg</DestructionConfig>
                          <ShipClaimNeeded>0</ShipClaimNeeded>
                          <LoadFactor>819</LoadFactor>
                          <DamageFactor>3072</DamageFactor>
                          <ShipMoveSound>2607</ShipMoveSound>
                          <ShipIdleSound>2610</ShipIdleSound>
                          <ShipTurnSound>2628</ShipTurnSound>
                          <ShipDestroySound>2633</ShipDestroySound>
                        </Ship>
                        <ShipCombat>
                          <AttackRange>15</AttackRange>
                          <DamagePerSecond>15</DamagePerSecond>
                          <AttackAngle>90</AttackAngle>
                          <ShipProjectileGUID>11501</ShipProjectileGUID>
                          <PursuitAttackRangePercentage>70</PursuitAttackRangePercentage>
                        </ShipCombat>
                        <Standard>
                          <Name>Preordership</Name>
                          <GUID>15951</GUID>
                          <Versions>Anno1404;Beta01;Beta02;Demo01;Demo02;Addon01;Addon02;BETA_TEXTURE_NONE</Versions>
                        </Standard>
                        <TradingPrice>
                          <BaseGoldPrice>4600</BaseGoldPrice>
                          <MinTradingPrice>4600</MinTradingPrice>
                          <MaxTradingPrice>4600</MaxTradingPrice>
                        </TradingPrice>
                        <Transport>
                          <SlotCount>5</SlotCount>
                          <SlotCapacity>200</SlotCapacity>
                        </Transport>
                        <Walking>
                          <WalkingSpeed>20000</WalkingSpeed>
                          <TurnRadiusMinimum>256</TurnRadiusMinimum>
                          <TurnDeceleration>2300</TurnDeceleration>
                        </Walking>
                      </Values>
                    </Asset>
                    
修改结果大致为:生命1500(银)2000(金),攻击15点(银)20点(金),货仓5格(银)6格(金),
舱室装载量200(银)500(金),速度2000(银)2400(金),修理100(银)200(金)。
已有 1 人评分金钱 收起 理由
小小旅行家 + 10 + 1 文章不错,继续努力!

总评分: 金钱 + 10  + 1   查看全部评分

使用道具 举报

❀ Transparent Soul ❀
游侠资深版主
★★★★★★★

版主勋章资深版主勋章勤劳之证

帖子
2955
精华
1
积分
1992
金钱
9525
荣誉
31
人气
23
评议
7

沙发
发表于 2009-8-6 11:10:48 |只看该作者
支持技术贴!

使用道具 举报

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
板凳
发表于 2009-8-6 11:13:41 |只看该作者
辛辛苦苦码子半天,终于有人顶了,难道关注1404的人都不在么,还是我写得不好?

使用道具 举报

帖子
451
精华
0
积分
236
金钱
3642
荣誉
1
人气
0
评议
0
地板
发表于 2009-8-6 11:43:20 |只看该作者
改了后读取现有存档可以用么?.........................

使用道具 举报

帖子
414
精华
0
积分
207
金钱
3267
荣誉
0
人气
0
评议
0
5#
发表于 2009-8-6 12:06:41 |只看该作者
能把金船直接改出来不?不然这修改就是浮云啊。
楼主能看看建筑造型的修改在哪一段么?我想让某些欧洲生产设施有一个阿拉伯的造型——比如伐木场和采石场。

使用道具 举报

帖子
2
精华
0
积分
1
金钱
32
荣誉
0
人气
0
评议
0
6#
发表于 2009-8-6 12:19:23 |只看该作者
支持! 比较下来还是觉得纪元系列好玩,个人偏好吧。其实玩下剧情就都会了,图像时代嘛,文字不通也能沟通。

使用道具 举报

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
7#
发表于 2009-8-6 13:46:27 |只看该作者
先回复4楼,只要你有FlagShip,就能生效,不过攻击力好象还是显示6点。有过修改经验的人都知道,部分数据被写到存档文件里了。

使用道具 举报

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
8#
发表于 2009-8-6 13:59:01 |只看该作者
5楼要求修改出金船,目前还在研究中,不过可以用银船救急

http://blog.gib.me/wp-content/uploads/2009/07/preorder_hack.zip

下载后解压,进入游戏后选一艘船,改名为“The Silver Ship”,注意去掉引号,大小写和空格,将开启银船和狮子家徽。成功后将那个文件删除就是了。

使用道具 举报

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
9#
发表于 2009-8-6 14:11:52 |只看该作者
另外说一下,当使用银船开局时,电脑使用的还是FlagShip,你可以到海盗港刷开战的那个许可书和接铉的钩子,把FlagShip抢过来。银船强大得多,可以直接挂钩。

如果实在想玩金船,可以修改小船厂和大船厂,让它们可以生产银船和金船,不过敌人也会造。

小船厂(第3个是银船)
                        <ShipProduction>
                          <Assortment>
                            <Item>
                              <ShipGUID>15913</ShipGUID>
                              <ProductionTime>45000</ProductionTime>
                              <TooltipGUID>155016</TooltipGUID>
                            </Item>
                            <Item>
                              <ShipGUID>15915</ShipGUID>
                              <ProductionTime>90000</ProductionTime>
                              <TooltipGUID>155017</TooltipGUID>
                            </item>
                            <Item>
                              <ShipGUID>15951</ShipGUID>
                              <ProductionTime>90000</ProductionTime>
                            </item>
                          </Assortment>
                        </ShipProduction>

大船厂(第3个是金船)
                        <ShipProduction>
                          <Assortment>
                            <Item>
                              <ShipGUID>15914</ShipGUID>
                              <ProductionTime>120000</ProductionTime>
                              <TooltipGUID>155018</TooltipGUID>
                            </Item>
                            <Item>
                              <ShipGUID>15916</ShipGUID>
                              <ProductionTime>150000</ProductionTime>
                              <TooltipGUID>155019</TooltipGUID>
                            </item>
                            <item>
                              <ShipGUID>15923</ShipGUID>
                              <ProductionTime>150000</ProductionTime>
                            </Item>
                          </Assortment>
                        </ShipProduction>


因为没有相关的<TooltipGUID>号码,所以看不到所需的金额和材料,不过应该可以制造。

[ 本帖最后由 geai 于 2009-8-6 14:14 编辑 ]

使用道具 举报

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
10#
发表于 2009-8-6 14:20:36 |只看该作者
至于修改建筑外观,据我猜测,可能是以下字段。

举例:2木材的居民房屋,有5种外观。

                    <Object>
                      <Variations>
                        <Item>
                          <Filename>data\graphics\buildings\residence\north\peasant\n_peasant_house01_ruin.cfg</Filename>
                        </Item>
                        <Item>
                          <Filename>data\graphics\buildings\residence\north\peasant\n_peasant_house02_ruin.cfg</Filename>
                        </Item>
                        <Item>
                          <Filename>data\graphics\buildings\residence\north\peasant\n_peasant_house03_ruin.cfg</Filename>
                        </Item>
                        <Item>
                          <Filename>data\graphics\buildings\residence\north\peasant\n_peasant_house04_ruin.cfg</Filename>
                        </Item>
                        <Item>
                          <Filename>data\graphics\buildings\residence\north\peasant\n_peasant_house05_ruin.cfg</Filename>
                        </Item>
                      </Variations>
                    </Object>
                    <ResidenceBuilding />
                    <Selection>
                      <GUIType>Ruin</GUIType>
                    </Selection>

希望有高人解答

使用道具 举报

帖子
414
精华
0
积分
207
金钱
3267
荣誉
0
人气
0
评议
0
11#
发表于 2009-8-7 12:19:00 |只看该作者
建筑外观的这段我曾试过,不行。还缺了些什么。

使用道具 举报

帖子
289
精华
0
积分
145
金钱
746
荣誉
0
人气
0
评议
0
12#
发表于 2009-8-7 12:57:46 |只看该作者
隐藏的SilverShip和GoldShip如何被解开?
解开条件是?

使用道具 举报

帖子
75
精华
0
积分
38
金钱
1301
荣誉
0
人气
0
评议
0
13#
发表于 2009-8-8 15:58:29 |只看该作者
原帖由 剑拳 于 2009-8-7 12:57 发表
隐藏的SilverShip和GoldShip如何被解开?
解开条件是?


我也想知道  

使用道具 举报

帖子
444
精华
1
积分
552
金钱
745
荣誉
13
人气
0
评议
0
14#
发表于 2009-8-8 22:08:22 |只看该作者
支持强大的技术贴.
和LS的LS同问.......

使用道具 举报

帖子
286
精华
0
积分
154
金钱
787
荣誉
1
人气
0
评议
0
15#
发表于 2009-8-8 22:31:43 |只看该作者
原帖由 剑拳 于 2009-8-7 12:57 发表
隐藏的SilverShip和GoldShip如何被解开?
解开条件是?


GoldShip是个任务,任务相关可以参照data\config\game\properties.xml 和 \data\config\texteditor\mainmenu.xml 文件。参照我发的SilverShip修改MOD,有兴趣的可以讨论一下。

说实话我也是新手,而且每天时间有限,也就周末能尽情地玩下。目前国内玩1404的人不多,在论坛很少看到MOD和修改相关的讨论,德国佬东西多可惜看不懂。每天登陆等汉化的同时期待更多技术贴的出现,实在是心急难熬。期望各位高手能参与其中。

使用道具 举报

帖子
52
精华
0
积分
26
金钱
307
荣誉
0
人气
0
评议
0
16#
发表于 2009-8-10 06:14:20 |只看该作者
支持LZ,
如此强大的技术贴,
頂上!

   

使用道具 举报

帖子
67
精华
0
积分
34
金钱
87
荣誉
0
人气
0
评议
0
17#
发表于 2009-8-10 12:18:24 |只看该作者
现在技术贴好少见了
支持

使用道具 举报

帖子
67
精华
0
积分
35
金钱
247
荣誉
0
人气
0
评议
0
18#
发表于 2009-8-13 20:15:49 |只看该作者
问下楼主,我下的圣城家园汉化版本,没有找到你说的ASSET文件啊

使用道具 举报

帖子
444
精华
1
积分
552
金钱
745
荣誉
13
人气
0
评议
0
19#
发表于 2009-8-13 20:21:36 |只看该作者
支持强大的技术贴.....

不过这类MOD修改影响到的游戏公平性我仍持怀疑态度......

使用道具 举报

帖子
1429
精华
0
积分
727
金钱
10985
荣誉
1
人气
14
评议
0
20#
发表于 2009-8-14 03:35:22 |只看该作者
诡异的硬盘版 ~~ 文件夹是空的 好囧 ~~~

使用道具 举报

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

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

GMT+8, 2025-11-6 04:15 , Processed in 0.328483 second(s), 13 queries , Gzip On, Memcache On.

Powered by Discuz! X2

© 2001-2011 Comsenz Inc.

分享到