收起左侧

[求助] 是不是地图的类型决定了能放那种土著和对应的贸易站

[复制链接]
z271071468发表于 2020-9-7 11:41:29
教程给的空白地图,我添加本州岛-耶稣会,出不来;是不是,这个本州岛-耶稣会。只能在本州岛地图上出现
拿教程网页给的空白地图进行试验,基本上最多8个一组。结果如下:

01."jesuit" 本州岛-耶稣会 --------------------------(地图上不显示)

02."klamath" 克拉马部落 --------------------------(地图上显示,能造贸易站)@↑

03."lakota" 拉科塔部落 -------------------------- (地图上显示,能造贸易站)@↑

04."mapuche" 马普切部落 ------------------------ (地图上显示,能造贸易站)@↑

05."maya" 玛雅部落 -----------------------------(地图上显示,不能造贸易站)@

06."navajo" 纳瓦霍部落 -------------------------- (地图上显示,不能造贸易站)@

07."nootka" 努特卡部落 -------------------------- (地图上显示,不能造贸易站)@

08."seminole" 塞米诺尔部落 ---------------------(地图上显示,能造贸易站)@↑

09."shaolin" 蒙古-少林寺 -------------------------(地图上不显示)

10."shaolin temple yr" 黄河-少林寺---------------(地图上不显示)

11."sufi" 婆罗洲-苏菲派 --------------------------(地图上显示,不能造贸易站)@

12."sufi mosque deccan" 德干高原-苏菲派 -------(地图上显示,不能造贸易站)@

13."sufi mosque mongol" 蒙古-苏菲派 ----------(地图上显示,不能造贸易站)@

14."tupi" 图皮部落 ------------------------------(地图上显示,不能造贸易站)@

15."udasi" 优陀西派 ----------------------------(地图上显示,不能造贸易站)@

16."udasi village himal" 喜马拉雅山脉-优陀西派 (地图上显示,不能造贸易站)@

17."zapotec" 萨波特克部落 -----------------------(地图上显示,不能造贸易站)@

18."zen" 锡兰-禅宗 --------------------------------(地图上不显示)

19."zen temple cj" 本州岛-禅宗-------------------(地图上不显示)

20."zen temple yr" 黄河-禅宗---------------------(地图上不显示)

21."jesuit mission borneo" 婆罗洲-耶稣会 -------(地图上不显示)

22."iroquois" 易洛魁部落 ------------------------(地图上显示,能造贸易站)@↑

23."inca" 印加部落 --------------------------------(地图上显示,不能造贸易站)@

24."huron" 休伦部落 ------------------------------(地图上显示,不能造贸易站)@

25."cree" 克里部落 --------------------------------(地图上显示,不能造贸易站)@

26."comanche" 科曼奇部落 ---------------------(地图上显示,能造贸易站)@↑

27."cheyenne" 夏延部落 --------------------------(地图上显示,不能造贸易站)@

28."cherokee" 切罗基部落-------------------------(地图上显示,不能造贸易站)@

29."carib" 加勒比部落 -----------------------------(地图上显示,不能造贸易站)@

30."bhakti village himal" 喜马拉雅山脉-虔诚派---(地图上显示,不能造贸易站)@

31."bhakti village ceylon" 锡兰-虔诚派 -----------(地图上显示,不能造贸易站)@

31."bhakti" 虔诚派 ---------------------------------(地图上显示,不能造贸易站)@

31."aztec" 阿兹特克部落 ---------------------------(地图上显示,能造贸易站)@↑

31."apache" 阿帕切部落 ---------------------------(地图上显示,不能造贸易站)@

这个是bug么,有没有高手能解读一下

z271071468发表于 2020-9-7 11:45:59
代码文件已经上传:
帝国时代3(亚洲王朝) 土著代码试验解析.txt
空白地图.rar
	//定义土著  "jesuit"  本州岛-耶稣会
int subCiv1 = -1;
subCiv1 = rmGetCivID("jesuit");
rmSetSubCiv(1, "jesuit");

int NativeCenter1ID = rmCreateGrouping("Native Center1ID", "native jesuit mission cj "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter1ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter1ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter1ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter1ID, 0,0.70,0.70,1);

//定义土著 "klamath" 克拉马部落
int subCiv2 = -1;
subCiv2 = rmGetCivID("klamath");
rmSetSubCiv(2, "klamath");

int NativeCenter2ID = rmCreateGrouping("Native Center 2ID", "native klamath village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter2ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter2ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter2ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter2ID, 0,0.65,0.70,1);

//定义土著 "lakota" 拉科塔部落
int subCiv3 = -1;
subCiv3 = rmGetCivID("lakota");
rmSetSubCiv(3, "lakota");

int NativeCenter3ID = rmCreateGrouping("Native Center 3ID", "native lakota village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter3ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter3ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter3ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter3ID, 0,0.60,0.70,1);

//定义土著 "mapuche" 马普切部落
int subCiv4 = -1;
subCiv4 = rmGetCivID("mapuche");
rmSetSubCiv(4, "mapuche");

int NativeCenter4ID = rmCreateGrouping("Native Center 4ID", "native mapuche village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter4ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter4ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter4ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter4ID, 0,0.55,0.70,1);

//定义土著 "maya" 玛雅部落
int subCiv5 = -1;
subCiv5 = rmGetCivID("maya");
rmSetSubCiv(5, "maya");

int NativeCenter5ID = rmCreateGrouping("Native Center 5ID", "native maya village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter5ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter5ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter5ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter5ID, 0,0.50,0.70,1);

//定义土著 "navajo" 纳瓦霍部落
int subCiv6 = -1;
subCiv6 = rmGetCivID("navajo");
rmSetSubCiv(6, "navajo");

int NativeCenter6ID = rmCreateGrouping("Native Center 6ID", "native navajo village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter6ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter6ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter6ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter6ID, 0,0.45,0.70,1);

//定义土著 "nootka" 努特卡部落
int subCiv7 = -1;
subCiv7 = rmGetCivID("nootka");
rmSetSubCiv(7, "nootka");

int NativeCenter7ID = rmCreateGrouping("Native Center 7ID", "native nootka village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter7ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter7ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter7ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter7ID, 0,0.40,0.70,1);

//定义土著 "seminole" 塞米诺尔部落
int subCiv8 = -1;
subCiv8 = rmGetCivID("seminole");
rmSetSubCiv(8, "seminole");

int NativeCenter8ID = rmCreateGrouping("Native Center 8ID", "native seminole village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter8ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter8ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter8ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter8ID, 0,0.35,0.70,1);

//定义土著 "shaolin" 蒙古-少林寺
int subCiv9 = -1;
subCiv9 = rmGetCivID("shaolin");
rmSetSubCiv(9, "shaolin");

int NativeCenter9ID = rmCreateGrouping("Native Center 9ID", "native shaolin temple mongol "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter9ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter9ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter9ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter9ID, 0,0.30,0.70,1);

//定义土著 "shaolin temple yr" 黄河-少林寺
int subCiv10 = -1;
subCiv10 = rmGetCivID("shaolin temple yr");
rmSetSubCiv(10, "shaolin temple yr");

int NativeCenter10ID = rmCreateGrouping("Native Center 10ID", "native shaolin temple yr "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter10ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter10ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter10ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter10ID, 0,0.70,0.65,1);

//定义土著 "sufi" 婆罗洲-苏菲派
int subCiv11 = -1;
subCiv11 = rmGetCivID("sufi");
rmSetSubCiv(11, "sufi");

int NativeCenter11ID = rmCreateGrouping("Native Center 11ID", "native sufi mosque borneo "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter11ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter11ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter11ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter11ID, 0,0.65,0.65,1);

//定义土著 "sufi mosque deccan" 德干高原-苏菲派
int subCiv12 = -1;
subCiv12 = rmGetCivID("sufi mosque deccan");
rmSetSubCiv(12, "sufi mosque deccan");

int NativeCenter12ID = rmCreateGrouping("Native Center 12ID", "native sufi mosque deccan "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter12ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter12ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter12ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter12ID, 0,0.60,0.65,1);

//定义土著 "sufi mosque mongol" 蒙古-苏菲派
int subCiv13 = -1;
subCiv13 = rmGetCivID("sufi mosque mongol");
rmSetSubCiv(13, "sufi mosque mongol");

int NativeCenter13ID = rmCreateGrouping("Native Center 13ID", "native sufi mosque mongol "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter13ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter13ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter13ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter13ID, 0,0.55,0.65,1);

//定义土著 "tupi" 图皮部落
int subCiv14 = -1;
subCiv14 = rmGetCivID("tupi");
rmSetSubCiv(14, "tupi");

int NativeCenter14ID = rmCreateGrouping("Native Center 14ID", "native tupi village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter14ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter14ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter14ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter14ID, 0,0.50,0.65,1);

//定义土著 "udasi" 优陀西派
int subCiv15 = -1;
subCiv15 = rmGetCivID("udasi");
rmSetSubCiv(15, "udasi");

int NativeCenter15ID = rmCreateGrouping("Native Center 15ID", "native udasi village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter15ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter15ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter15ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter15ID, 0,0.45,0.65,1);

//定义土著 "udasi village himal" 喜马拉雅山脉-优陀西派
int subCiv16 = -1;
subCiv16 = rmGetCivID("udasi village himal");
rmSetSubCiv(16, "udasi village himal");

int NativeCenter16ID = rmCreateGrouping("Native Center 16ID", "native udasi village himal "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter16ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter16ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter16ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter16ID, 0,0.40,0.65,1);

//定义土著 "zapotec" 萨波特克部落
int subCiv17 = -1;
subCiv17 = rmGetCivID("zapotec");
rmSetSubCiv(17, "zapotec");

int NativeCenter17ID = rmCreateGrouping("Native Center 17ID", "native zapotec village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter17ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter17ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter17ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter17ID, 0,0.35,0.65,1);

//定义土著 "zen" 锡兰-禅宗
int subCiv18 = -1;
subCiv18 = rmGetCivID("zen");
rmSetSubCiv(18, "zen");

int NativeCenter18ID = rmCreateGrouping("Native Center 18ID", "native zen temple ceylon "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter18ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter18ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter18ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter18ID, 0,0.30,0.65,1);

//定义土著 "zen temple cj" 本州岛-禅宗
int subCiv19 = -1;
subCiv19 = rmGetCivID("zen temple cj");
rmSetSubCiv(19, "zen temple cj");

int NativeCenter19ID = rmCreateGrouping("Native Center 19ID", "native zen temple cj "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter19ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter19ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter19ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter19ID, 0,0.70,0.60,1);

//定义土著 "zen temple yr" 黄河-禅宗
int subCiv20 = -1;
subCiv20 = rmGetCivID("zen temple yr");
rmSetSubCiv(20, "zen temple yr");

int NativeCenter20ID = rmCreateGrouping("Native Center 20ID", "native zen temple yr "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter20ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter20ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter20ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter20ID, 0,0.65,0.60,1);

//定义土著 "jesuit mission borneo" 婆罗洲-耶稣会
int subCiv21 = -1;
subCiv21 = rmGetCivID("jesuit mission borneo");
rmSetSubCiv(21, "jesuit mission borneo");

int NativeCenter21ID = rmCreateGrouping("Native Center 21ID", "native jesuit mission borneo "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter21ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter21ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter21ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter21ID, 0,0.60,0.60,1);

//定义土著 "iroquois" 易洛魁部落
int subCiv22 = -1;
subCiv22 = rmGetCivID("iroquois");
rmSetSubCiv(22, "iroquois");

int NativeCenter22ID = rmCreateGrouping("Native Center 22ID", "native iroquois village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter22ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter22ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter22ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter22ID, 0,0.55,0.60,1);

//定义土著 "inca" 印加部落
int subCiv23 = -1;
subCiv23 = rmGetCivID("inca");
rmSetSubCiv(23, "inca");

int NativeCenter23ID = rmCreateGrouping("Native Center 23ID", "native inca village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter23ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter23ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter23ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter23ID, 0,0.50,0.60,1);

//定义土著 "huron" 休伦部落
int subCiv24 = -1;
subCiv24 = rmGetCivID("huron");
rmSetSubCiv(24, "huron");

int NativeCenter24ID = rmCreateGrouping("Native Center 24ID", "native huron village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter24ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter24ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter24ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter24ID, 0,0.45,0.60,1);

//定义土著 "cree" 克里部落
int subCiv25 = -1;
subCiv25 = rmGetCivID("cree");
rmSetSubCiv(25, "cree");

int NativeCenter25ID = rmCreateGrouping("Native Center 25ID", "native cree village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter25ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter25ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter25ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter25ID, 0,0.40,0.60,1);

//定义土著 "comanche" 科曼奇部落
int subCiv26 = -1;
subCiv26 = rmGetCivID("comanche");
rmSetSubCiv(26, "comanche");

int NativeCenter26ID = rmCreateGrouping("Native Center 26ID", "native comanche village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter26ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter26ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter26ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter26ID, 0,0.35,0.60,1);

//定义土著 "cheyenne" 夏延部落
int subCiv27 = -1;
subCiv27 = rmGetCivID("cheyenne");
rmSetSubCiv(27, "cheyenne");

int NativeCenter27ID = rmCreateGrouping("Native Center 27ID", "native cheyenne village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter27ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter27ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter27ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter27ID, 0,0.30,0.60,1);

//定义土著 "cherokee" 切罗基部落
int subCiv28 = -1;
subCiv28 = rmGetCivID("cherokee");
rmSetSubCiv(28, "cherokee");

int NativeCenter28ID = rmCreateGrouping("Native Center 28ID", "native cherokee village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter28ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter28ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter28ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter28ID, 0,0.70,0.55,1);

//定义土著 "carib" 加勒比部落
int subCiv29 = -1;
subCiv29 = rmGetCivID("carib");
rmSetSubCiv(29, "carib");

int NativeCenter29ID = rmCreateGrouping("Native Center 29ID", "native carib village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter29ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter29ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter29ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter29ID, 0,0.65,0.55,1);

//定义土著 "bhakti village himal" 喜马拉雅山脉-虔诚派
int subCiv30 = -1;
subCiv30 = rmGetCivID("bhakti village himal");
rmSetSubCiv(30, "bhakti village himal");

int NativeCenter30ID = rmCreateGrouping("Native Center 30ID", "native bhakti village himal "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter30ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter30ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter30ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter30ID, 0,0.60,0.55,1);

//定义土著 "bhakti village ceylon" 锡兰-虔诚派
int subCiv31 = -1;
subCiv31 = rmGetCivID("bhakti village ceylon");
rmSetSubCiv(31, "bhakti village ceylon");

int NativeCenter31ID = rmCreateGrouping("Native Center 31ID", "native bhakti village ceylon "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter31ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter31ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter31ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter31ID, 0,0.55,0.55,1);

//定义土著 "bhakti" 虔诚派
int subCiv32 = -1;
subCiv32 = rmGetCivID("bhakti");
rmSetSubCiv(32, "bhakti");

int NativeCenter32ID = rmCreateGrouping("Native Center 32ID", "native bhakti village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter32ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter32ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter32ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter32ID, 0,0.50,0.55,1);

//定义土著 "aztec" 阿兹特克部落
int subCiv33 = -1;
subCiv33 = rmGetCivID("aztec");
rmSetSubCiv(33, "aztec");

int NativeCenter33ID = rmCreateGrouping("Native Center 33ID", "native aztec village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter33ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter33ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter33ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter33ID, 0,0.45,0.55,1);

//定义土著 "apache" 阿帕切部落
int subCiv34 = -1;
subCiv34 = rmGetCivID("apache");
rmSetSubCiv(34, "apache");

int NativeCenter34ID = rmCreateGrouping("Native Center 34ID", "native apache village "+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
rmSetGroupingMinDistance(NativeCenter34ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter34ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter34ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter34ID, 0,0.40,0.55,1);


こはね发表于 2020-9-7 11:50:42
两张图可以终结你所有疑问了

1.png

2.png
z271071468发表于 2020-9-7 11:51:31
青天小羽 发表于 2020-9-7 11:50
两张图可以终结你所有疑问了

第二张图,我是分开做的实验,两种都能显示,但是都不能造贸易站。

我先修改后,再整个试一遍。
  • こはね : 不用试了,定义土著用的是国家名,不是群租名称
  • z271071468 回复 こはね : 好的
こはね发表于 2020-9-7 11:54:05
z271071468 发表于 2020-9-7 11:51
第二张图,我是分开做的实验,两种都能显示,但是都不能造贸易站。

我先修改后,再整个试一遍。 ...

定义土著用的是国家名,不是群租名称
3.png
z271071468发表于 2020-9-7 11:54:51
青天小羽 发表于 2020-9-7 11:54
定义土著用的是国家名,不是群租名称

不显示的问题,应该是我把1和01搞混了
有大小写区别么

int subCiv3 = -1;
subCiv3 = rmGetCivID("lakota");
rmSetSubCiv(3, "lakota");

这些定义,国家首字母需要大写么?
こはね发表于 2020-9-7 11:57:00
z271071468 发表于 2020-9-7 11:54
不显示的问题,应该是我把1和01搞混了
有大小写区别么

c++区分大小写,多一个空格与少一个空格都有区别

至于国家首字母是否需要大写我也不清楚
z271071468发表于 2020-9-7 11:57:13
青天小羽 发表于 2020-9-7 11:57
c++区分大小写,多一个空格与少一个空格都有区别

至于国家首字母是否需要大写我也不清楚 ...

如果地图上能显示,但是不能造贸易站,是不是说明这三行出了问题
こはね发表于 2020-9-7 11:58:35
z271071468 发表于 2020-9-7 11:57
如果地图上能显示,但是不能造贸易站,是不是说明这三行出了问题

理论上只需要 rmSetSubCiv(int index, string civName, bool big) : Sets a given sub civ in the world.

其他两行可以删
4.png
  • z271071468 : 这个倒没有试过,最后一个参数bool big,怎么设置,不知道新版教程上有说明么。
  • こはね 回复  z271071468 : 没有,反正默认不填就是了
z271071468发表于 2020-9-7 12:13:54
青天小羽 发表于 2020-9-7 11:58
理论上只需要 rmSetSubCiv(int index, string civName, bool big) : Sets a given sub civ in the world. ...

rmSetSubCiv(3, "lakota");
这里面的 int index 3
需要和 34 Lakota 文件里国家的序号34对应么
  • こはね : 很明显不用,123456789即可
z271071468发表于 2020-9-7 12:16:47
//定义土著  "jesuit"  本州岛-耶稣会
rmSetSubCiv(1, "Jesuit");

int NativeCenter1ID = rmCreateGrouping("Native Center1ID", "native jesuit mission cj "+rmRandInt(rmRandInt(01,02),rmRandInt(03,rmRandInt(04,05))));
rmSetGroupingMinDistance(NativeCenter1ID, 0.0);
rmSetGroupingMaxDistance(NativeCenter1ID, rmXFractionToMeters(0.0));
rmAddGroupingToClass(NativeCenter1ID, rmDefineClass("natives"));
rmPlaceGroupingAtLoc(NativeCenter1ID, 0,0.70,0.70,1);

还是有问题,01,02,03改了,还是不显示
@こはね 大神这有问题么?

  • こはね : int 01 =1
  • こはね : string你输入什么就是什么
  • z271071468 回复 こはね : 额,加双引号,做成字符串?
  • こはね 回复 z271071468 : 你可以试下加双引号,立刻打不开地图
こはね发表于 2020-9-7 12:22:11
z271071468 发表于 2020-9-7 12:16
//定义土著 "jesuit" 本州岛-耶稣会
rmSetSubCiv(1, "Jesuit");

int NativeCenter1ID = rmCreateGrouping("Native Center1ID", "native jesuit mission cj 0"+rmRandInt(rmRandInt(1,2),rmRandInt(3,rmRandInt(4,5))));
  • z271071468 : 
  • z271071468 : 感谢。
  • z271071468 : 确实需要这样,厉害了
跳转到