- UID
- 475583
- 主题
- 3
- 阅读权限
- 40
- 帖子
- 705
- 精华
- 2
- 积分
- 783
- 金钱
- 3520
- 荣誉
- 3
- 人气
- 0
- 在线时间
- 784 小时
- 评议
- 0
- 帖子
- 705
- 精华
- 2
- 积分
- 783
- 金钱
- 3520
- 荣誉
- 3
- 人气
- 0
- 评议
- 0
|
沉船1.3英文版修改debuger.c之后可以不用开档刷新的方法加超级船只一键出船法加个人属性修改法
最近一直在研究1.3版英文沉船的debuger.c的语句,因为看到很多xdjms说改了debuger.c之后只能重新开档才能刷出来,经过测试,完全不需要从新开档既能刷新修改的debuger.c文件,我就是在一边改一边测试的。
现在写方法:
1、首先,必须打开F11功能,不懂的兄弟们请看看坛子里面的帖子,可以搜索到。
2、之后请在游戏里面按F5刷新debuger.c文件。
3、刷新之后可以再次使用F11来调整文件进行修改。
首先要感谢坛子里面的高手,谢谢~!
现在将我修改的个人船只文件语句贴上,请在copy&paste的时候将文本对齐,速度以及船只载重还有HP都是超级的,cannon是200门48火炮,loading炮弹速度超快,逆风速度为35-50之间,转向速度也是50节,达到小湾转向,船员接近600或者超过,通过实战测试,基本堤防炮弹打不到我,因为规避的太快,只要看见别人出烟就跑,不过就算打到了也是挠痒痒,不罗嗦了,继续,这里请注意,请不要问我为什么“顶风”航行的速度不是50节,这个我没办法改,当然,只要你侧一点点船体逆风航行就可以达到很好的至少40节的速度,现在请按照流程修改(请用ultraedit修改,因为我是用ultraedit的):
1、文件地址:X:\Age of Pirates 2 City of Abandoned Ships\Program\Ships的Ships_init.c里面在最后加入如下,前面请对齐:
///////////////////////////////////////////////////////////////////////////
/// TEST
///////////////////////////////////////////////////////////////////////////
makeref(refShip,ShipsTypes[SHIP_TEST]);
refShip.Name = "Flyingdutchman"; // 嗣
refship.Soundtype = "lineship";
refShip.Class = 1;
refShip.Cannon = CANNON_TYPE_CANNON_LBS48;
refShip.MaxCaliber = 48;
refShip.Weight = Tonnes2CWT(2500);
refShip.Capacity = 50000;
refShip.CannonsQuantity = 200;
refShip.rcannon = 80;
refShip.lcannon = 80;
refShip.fcannon = 20;
refShip.bcannon = 20;
refShip.MaxCrew = 500;
refShip.MinCrew = 80;
refShip.BoardingCrew = 250;
refShip.GunnerCrew = 50;
refShip.CannonerCrew = 136;
refShip.SailorCrew = 500;
refShip.SpeedRate = 100.0;
refShip.TurnRate = 100.0;
refShip.Price = 500000;
refShip.HP = 50000;
refShip.SP = 50000;
refship.EmblemedSails.normalTex = "ships\parus_common_torn.tga";
//refShip.AbordageLocation = "Boarding Deck_01";
refship.CanEncounter=false;
refship.Type.Merchant = false;
refship.Type.War = false;
refShip.fWindAgainstSpeed = 100.0;
refShip.sea_enchantment = 100.0;
refShip.lowpolycrew = 24;
refShip.buildtime = 120;
refship.Rocking.y = 0.5;
refship.Rocking.az = 0.035;
refship.WaterLine = 0.5;
refship.SpeedDependWeight = 0;
refship.SubSeaDependWeight = 0;
refship.TurnDependWeight = 0;
refship.WindAgainstSpeed = 100.0;//boal
refship.CabinType = "CabineFDM"; // boal 28.03.05
refship.DeckType = "Big";
refship.InertiaAccelerationX = 100.0; refship.InertiaBrakingX = 100.0;
refship.InertiaAccelerationY = 100.0; refship.InertiaBrakingY = 100.0;
refship.InertiaAccelerationZ = 100.0; refship.InertiaBrakingZ = 100.0;
refShip.GeraldSails.rey_b2 = 1;
refShip.GeraldSails.rey_b3 = 1;
refShip.GeraldSails.rey_b1 = 1;
refShip.GeraldSails.rey_b1.vscale = 0.8;
refShip.GeraldSails.rey_b2.vscale = 0.65;
refShip.GeraldSails.rey_b3.vscale = 0.55;
refship.Track.Enable = true;
refship.Track1.ZStart = 0.25;
refship.Track1.LifeTime = 9.5;
refship.Track1.Width = "7.0, 7.5";
refship.Track1.Speed = "8.0, 9.0";
refship.Track2.ZStart = -0.15;
refship.Track2.LifeTime = 7.5;
refship.Track2.Width = "8.0, 10.0";
refship.Track2.Speed = "1.0, 2.0";
2、进入:X:\Age of Pirates 2 City of Abandoned Ships\Program\Ships打开:ships.h直接修改如下(注意,这里也可以查找其他高手的帖子来修改):
第一段需要修改的部分:
#define SAILS_COLOR_QUANTITY 8
#define SHIP_TYPES_QUANTITY 29
#define SHIP_TYPES_QUANTITY_WITH_FORT 31 // must be (SHIP_TYPES_QUANTITY + 1)
第二段需要修改的部分(就是将以前的加入数据,还不懂请查找以前的帖子,很详细的):
#define SHIP_TEST 27
#define SHIP_BOAT 28
#define SHIP_FORT 29
3、之后将cannon炮的加载速度提升,源文件的cannon 48的loading速度是30,由于我修改的船只是基于flydutchman的,而且炮数为200,如果按照既有的速度loading的话是十分缓慢的,所以必须修改,请打开:D:\Age of Pirates 2 City of Abandoned Ships\Program\CANNONS的Cannons_init.c修改,你可以先用第一句,就是makeref那句来查找地址:
makeref(rCannon,Cannon[CANNON_TYPE_CANNON_LBS48]);
rCannon.type = CANNON_NAME_CANNON;
rCannon.caliber = 48;
rCannon.name = "caliber48";
rCannon.picture = "cannons12";
rCannon.Sound = "fort_cannon_fire";
rCannon.ReloadTime = 20;
rCannon.Cost = 5000;
rCannon.Weight = 10;
rCannon.FireAngMax = 0.60;
rCannon.FireAngMin = -0.45;
rCannon.DamageMultiply = 10.0;
rCannon.TimeSpeedMultiply = 1.0;
rCannon.BigBall = 0;
rCannon.SizeMultiply = 1.0;
rCannon.HeightMultiply = 1.0;
rCannon.TradeOff = true;
rCannon.hp = 80.0;
InitBaseCannons_CalcSpeedV0(&rCannon,1400.0);
以上3步你已经修改好了船只,但是还没有达到一键修改法,ok,继续:
4、进入:X:\Age of Pirates 2 City of Abandoned Ships\Program\INTERFACE打开Debuger.c加入如下语句,查找请用第一句,我是绑定了F6,当然,你可以绑定其他的功能键,这里不说怎么放其他键(这个功能还加入了一些个人物品,都是顶级了,您还需要什么可以查查网上的帖子,也有些,就是没有综合起来):
string descF6 = "Goog spyglass, pistol ?, blade, manowar, hero reputation, idol in shop";
void CalculateInfoDataF6()
{
idLngFile = LanguageOpenFile("ItemsDescribe.txt");
// -->
totalInfo = descF6;
ref mc = GetMainCharacter();
mc.Ship.Type = GenerateShip(SHIP_TEST, true);
SetBaseShipData(mc);
mc.Ship.Cannons.Type = CANNON_TYPE_CANNON_LBS48;
Pchar.ship.cannons.type=48;
SetCrewQuantityFull(mc);
SetCharacterGoods(mc,GOOD_FOOD,2000);
SetCharacterGoods(mc,GOOD_BALLS,3000);//3000);
SetCharacterGoods(mc,GOOD_GRAPES,700);//700);
SetCharacterGoods(mc,GOOD_KNIPPELS,700);//700);
SetCharacterGoods(mc,GOOD_BOMBS,2000);//2000);
SetCharacterGoods(mc,GOOD_POWDER,2000);
SetCharacterGoods(mc,GOOD_PLANKS,1000);
SetCharacterGoods(mc,GOOD_RUM,1000);//1000);
SetCharacterGoods(mc,GOOD_WEAPON,2000);//2000);
if (mc.location.from_sea == "")
{
//setCharacterShipLocation(mc, mc.HeroParam.Location);
}
GiveItem2Character(mc,"spyglass5");
GiveItem2Character(mc,"pistol7");
aref arItm;
Items_FindItem("pistol7",&arItm);
arItm.chargespeed = 0.1;
arItm.dmg_min = 3000.0;
arItm.dmg_max = 3000.0;
GiveItem2Character(mc,"Totem_1");
GiveItem2Character(mc,"Totem_2");
GiveItem2Character(mc,"Totem_3");
GiveItem2Character(mc,"Totem_4");
GiveItem2Character(mc,"Totem_5");
GiveItem2Character(mc,"Totem_6");
GiveItem2Character(mc,"Totem_7");
GiveItem2Character(mc,"Totem_8");
GiveItem2Character(mc,"Totem_9");
GiveItem2Character(mc,"Totem_10");
GiveItem2Character(mc,"Totem_11");
GiveItem2Character(mc,"Totem_12");
GiveItem2Character(mc,"Totem_13");
GiveItem2Character(mc,"Totem_14");
GiveItem2Character(mc,"Totem_15");
GiveItem2Character(mc,"Key1");
GiveItem2Character(mc,"Key2");
GiveItem2Character(mc,"Key3");
GiveItem2Character(mc,"sculMa1");
GiveItem2Character(mc,"sculMa2");
GiveItem2Character(mc,"sculMa3");
GiveItem2Character(mc,"DeSouzaCross");
GiveItem2Character(mc,"blade32");
GiveItem2Character(mc,"blade27");
GiveItem2Character(mc,"blade28");
GiveItem2Character(mc,"indian11");
GiveItem2Character(mc,"cirass5");
TakeNItems(mc,"bullet", 500);
mc.perks.list.Gunman = "1";
mc.perks.list.BasicDefense = "1";
mc.perks.list.AdvancedDefense = "1";
mc.perks.list.Ciras = "1";
mc.perks.list.FlagPir = "1";
mc.perks.list.FlagEng = "1";
mc.perks.list.FlagHol = "1";
mc.perks.list.FlagSpa = "1";
mc.perks.list.FlagFra = "1";
//mc.reputation = "89";
EquipCharacterbyItem(mc, "spyglass5");
EquipCharacterbyItem(mc, "pistol7");
EquipCharacterbyItem(mc, "blade32");
EquipCharacterbyItem(mc, "map_good");
// <
totalInfo = totalInfo + LanguageConvertString(idLngFile,"new_string") + LanguageConvertString(idLngFile,"new_string") +
"The command is executed successfully!";
LanguageCloseFile(idLngFile);
SetFormatedText("INFO_TEXT",totalInfo);
通过上面的4个步骤我们已经可以得到一艘船体HP超过50000,风帆HP超过50000,速度最少50节,载重将近50000的flydutchman一星船只,那么主角还没有过硬的能力开这艘船只,ok,继续,我们修改主角属性:
5、进入:X:\Age of Pirates 2 City of Abandoned Ships\Program\INTERFACE打开Debuger.c复制如下语句,用第一句查找,这里我绑定的是F1键,内容达到金钱加1百万,各项技能100,级别1,个人以及船只capability都为50,置于其他的请PIRATES属性请查其他帖子,这里不说了:
////////////////////////////////////////////////////////////////////////
string descF1 = "Gold + 1 000 000";
void CalculateInfoDataF1()
{
// 蝮?恹聍栩噱?眢骓簋 桧纛痨圉棹 ?恹忸滂??totalInfo - 软桷栲腓玎鲨 -->
totalInfo = descF1;
Pchar.money = sti(Pchar.money) + 1000000;
PChar.Perks.FreePoints_Self=sti(PChar.Perks.FreePoints_Self)+50;
PChar.Perks.FreePoints_Ship=sti(PChar.Perks.FreePoints_Ship)+50;
Pchar.skill.Leadership=100;
Pchar.skill.FencingLight=100;
Pchar.skill.Fencing=100;
Pchar.skill.FencingHeavy=100;
Pchar.skill.Pistol=100;
Pchar.skill.Fortune=100;
Pchar.skill.Sneak=100;
Pchar.Skill.Sailing=100;
Pchar.skill.Accuracy=100;
Pchar.skill.Cannons=100;
Pchar.skill.Grappling=100;
Pchar.skill.Defence=100;
Pchar.skill.Repair=100;
Pchar.skill.Commerce=100;
Pchar.Rank=1;
/*Pchar.quest.SetTreasureHunter.win_condition.l1 = "location";
Pchar.quest.SetTreasureHunter.win_condition.l1.location = Pchar.location.from_sea;
Pchar.quest.SetTreasureHunter.win_condition = "SetTreasureHunter";
*/
//Characters[GetCharacterIndex("Luisa Drake")].perks.list.Ciras = "1";
totalInfo = totalInfo + GetAssembledString(" #sName#?has #dmoney# money ", Pchar);
// 蝮?恹聍栩噱?眢骓簋 桧纛痨圉棹 ?恹忸滂??totalInfo <--
totalInfo = totalInfo + NewStr() + NewStr() +
"The command is executed successfully!";
SetFormatedText("INFO_TEXT",totalInfo);
}
现在请进入游戏按F11唤出debug窗口,之后按F1以及F6看看吧,如果没有修改成功,请再次仔细看看您改的对不对。
[ 本帖最后由 okidoki 于 2009-5-30 22:44 编辑 ] |
-
总评分: 金钱 + 20
+ 1
+ 1
查看全部评分
|