Finally, i understand the cause of this error:
The main reason is: there re so many undeclared variables in futureLua.
Ex: iImprovementIndustrialSite in function FWBuildingImprovementBonuses
The industrial site improvement was declared as:
local iImprovementIndustrialComplex = GameInfoTypes.IMPROVEMENT_FW_INDUSTRIAL_COMPLEX
Also, there re many similar cases in futureLua:
[7731.269] Runtime Error: ...\Sid Meier's Civilization 5\MODS\Future Worlds (v 6)\Lua/FutureLua.lua:1095: attempt to index local 'pTeam' (a number value)
[7621.085] Runtime Error: ...\Sid Meier's Civilization 5\MODS\Future Worlds (v 6)\Lua/FutureLua.lua:550: attempt to compare number with nil
I ve fixed some of the issues in my Future Perfection mod/patch. But, i wonder if somebody out there still play civ5 with this mod =P
Code:
[7600.384] Runtime Error: ...\Sid Meier's Civilization 5\MODS\Future Worlds (v 6)\Lua\CityNearbyMapDatasV4.lua:1105: attempt to index field '?' (a nil value)
Ex: iImprovementIndustrialSite in function FWBuildingImprovementBonuses
The industrial site improvement was declared as:
local iImprovementIndustrialComplex = GameInfoTypes.IMPROVEMENT_FW_INDUSTRIAL_COMPLEX
Also, there re many similar cases in futureLua:
[7731.269] Runtime Error: ...\Sid Meier's Civilization 5\MODS\Future Worlds (v 6)\Lua/FutureLua.lua:1095: attempt to index local 'pTeam' (a number value)
[7621.085] Runtime Error: ...\Sid Meier's Civilization 5\MODS\Future Worlds (v 6)\Lua/FutureLua.lua:550: attempt to compare number with nil
I ve fixed some of the issues in my Future Perfection mod/patch. But, i wonder if somebody out there still play civ5 with this mod =P