eproly 发表于 2012-8-24 11:22:48

能帮我看看这段AI为什么会报错吗?

打了最新的userpatch 1.1,用这个AI选择250人口会出错,请帮忙看看。谢谢各位了。附件是整个AI包

#load-if-defined POPULATION-CAP-200
#load-if-not-defined UP-AVAILABLE
(defconst TOP-VILLAGERS 100)
(defconst SUB-TOP-VILLAGERS 95)
(defconst SUB-BOOM-VILLAGERS 85)
#else
(defconst TOP-VILLAGERS 105)
(defconst SUB-TOP-VILLAGERS 100)
(defconst SUB-BOOM-VILLAGERS 95)
#end-if
#load-if-not-defined GOTHIC-CIV
(defconst TOP-POPULATION 200)
(defconst SUB-TOP-POPULATION 195)
#else
(defconst TOP-POPULATION 210)
(defconst SUB-TOP-POPULATION 205)
#end-if
(defconst FIVE-PERCENT-POP 10)
(defconst TEN-PERCENT-POP 20)
(defconst FIFTEEN-PERCENT-POP 30)
(defconst TWENTY-PERCENT-POP 40)
(defconst TWENTY-TWO-PERCENT-POP 44)
(defconst THIRTY-PERCENT-POP 60)
(defconst FORTY-PERCENT-POP 80)
(defconst FIFTY-PERCENT-POP 100)
(defconst EIGHTY-PERCENT-POP 160)

;(defconst DARK-FLUSH-VILLAGERS 26)
;(defconst DARK-VILLAGERS-480 29)
;(defconst DARK-VILLAGERS-490 30)
#load-if-defined CHINESE-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-defined MAYAN-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-not-defined CHINESE-CIV
#load-if-not-defined MAYAN-CIV
(defconst DARK-VILLAGERS 30)
#end-if
#end-if
(defconst DARK-VILLAGERS-FC 33)
(defconst VILLAGERS-FC-2 37)
(defconst WHEEL-BARROW-VILLAGERS 28)
(defconst HAND-CART-VILLAGERS 48)
(defconst MAX-TRADE-CARTS 20)
#end-if

#load-if-defined POPULATION-CAP-EXTENDED
;#load-if-defined POPULATION-CAP-225 下载来的脚本这行是注释掉的,去掉注释后下面这行不会报错,但在250人口那会出错。
(defconst TOP-VILLAGERS 135)    选择250人口后这一行会出错,说TOP-VILLAGERS 这个参数已经定义过了。
(defconst SUB-TOP-VILLAGERS 125)
(defconst SUB-BOOM-VILLAGERS 120)
#load-if-not-defined GOTHIC-CIV
(defconst TOP-POPULATION 225)
(defconst SUB-TOP-POPULATION 220)
#else
(defconst TOP-POPULATION 235)
(defconst SUB-TOP-POPULATION 230)
#end-if
(defconst FIVE-PERCENT-POP 11)
(defconst TEN-PERCENT-POP 22)
(defconst FIFTEEN-PERCENT-POP 33)
(defconst TWENTY-PERCENT-POP 45)
(defconst TWENTY-TWO-PERCENT-POP 47)
(defconst THIRTY-PERCENT-POP 77)
(defconst FORTY-PERCENT-POP 90)
(defconst FIFTY-PERCENT-POP 113)
(defconst EIGHTY-PERCENT-POP 180)

;(defconst DARK-FLUSH-VILLAGERS 26)
;(defconst DARK-VILLAGERS-480 29)
;(defconst DARK-VILLAGERS-490 30)
#load-if-defined CHINESE-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-defined MAYAN-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-not-defined CHINESE-CIV
#load-if-not-defined MAYAN-CIV
(defconst DARK-VILLAGERS 30)
#end-if
#end-if
(defconst DARK-VILLAGERS-FC 33)
(defconst VILLAGERS-FC-2 37)
(defconst WHEEL-BARROW-VILLAGERS 28)
(defconst HAND-CART-VILLAGERS 48)
(defconst MAX-TRADE-CARTS 23)
#end-if

#load-if-defined x
#load-if-defined POPULATION-CAP-250
(defconst TOP-VILLAGERS 150) 把225人口那行的注释去掉后,这行会出错,说TOP-VILLAGERS 已经定义过。
(defconst SUB-TOP-VILLAGERS 140)
(defconst SUB-BOOM-VILLAGERS 130)
#load-if-not-defined GOTHIC-CIV
(defconst TOP-POPULATION 250)
(defconst SUB-TOP-POPULATION 245)
#else
(defconst TOP-POPULATION 260)
(defconst SUB-TOP-POPULATION 255)
#end-if
(defconst FIVE-PERCENT-POP 12)
(defconst TEN-PERCENT-POP 25)
(defconst FIFTEEN-PERCENT-POP 37)
(defconst TWENTY-PERCENT-POP 50)
(defconst TWENTY-TWO-PERCENT-POP 55)
(defconst THIRTY-PERCENT-POP 75)
(defconst FORTY-PERCENT-POP 100)
(defconst FIFTY-PERCENT-POP 125)
(defconst EIGHTY-PERCENT-POP 200)

;(defconst DARK-FLUSH-VILLAGERS 26)
;(defconst DARK-VILLAGERS-480 29)
;(defconst DARK-VILLAGERS-490 30)
#load-if-defined CHINESE-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-defined MAYAN-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-not-defined CHINESE-CIV
#load-if-not-defined MAYAN-CIV
(defconst DARK-VILLAGERS 30)
#end-if
#end-if
(defconst DARK-VILLAGERS-FC 33)
(defconst VILLAGERS-FC-2 37)
(defconst WHEEL-BARROW-VILLAGERS 28)
(defconst HAND-CART-VILLAGERS 48)
(defconst MAX-TRADE-CARTS 23)
#end-if

#load-if-defined POPULATION-CAP-EXTENDED
#load-if-not-defined POPULATION-CAP-225
#load-if-not-defined POPULATION-CAP-250
(defconst TOP-VILLAGERS 150)
(defconst SUB-TOP-VILLAGERS 140)
(defconst SUB-BOOM-VILLAGERS 130)
#load-if-not-defined GOTHIC-CIV
(defconst TOP-POPULATION 250)
(defconst SUB-TOP-POPULATION 245)
#else
(defconst TOP-POPULATION 260)
(defconst SUB-TOP-POPULATION 255)
#end-if
(defconst FIVE-PERCENT-POP 12)
(defconst TEN-PERCENT-POP 25)
(defconst FIFTEEN-PERCENT-POP 37)
(defconst TWENTY-PERCENT-POP 50)
(defconst TWENTY-TWO-PERCENT-POP 55)
(defconst THIRTY-PERCENT-POP 75)
(defconst FORTY-PERCENT-POP 100)
(defconst FIFTY-PERCENT-POP 125)
(defconst EIGHTY-PERCENT-POP 200)

;(defconst DARK-FLUSH-VILLAGERS 26)
;(defconst DARK-VILLAGERS-480 29)
;(defconst DARK-VILLAGERS-490 30)
#load-if-defined CHINESE-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-defined MAYAN-CIV
(defconst DARK-VILLAGERS 33)
#end-if
#load-if-not-defined CHINESE-CIV
#load-if-not-defined MAYAN-CIV
(defconst DARK-VILLAGERS 30)
#end-if
#end-if
(defconst DARK-VILLAGERS-FC 33)
(defconst VILLAGERS-FC-2 37)
(defconst WHEEL-BARROW-VILLAGERS 28)
(defconst HAND-CART-VILLAGERS 48)
(defconst MAX-TRADE-CARTS 23)
#end-if
#end-if
#end-if
#end-if ;x


页: [1]
查看完整版本: 能帮我看看这段AI为什么会报错吗?