Add to github. I will check that but it is odd. The code is so simple... Can you check lua.log?
Last edited:
I... have honestly no idea where to even look for it, or what to look in it.Add to github. I will check that but it is odd. The code is so simple... Can you check lua.log?
Sure, will try and see. Sorry for not being of much help ^^;Guys (all testers)... Google will tell you exaxtly what to turn and where to look for. It should be in mydocument/civ/logs if you enabled them in instalation/config.ini file. Im not 100% sure. Please test with that all releses. It is very important for me to find somotimes bug i miss. Second important file is database.log.
Just look for word "error".
// Game Speed Mod
iCulture *= GC.getGame().getGameSpeedInfo().getCulturePercent();
iCulture /= 100;
Sure, I can check that. Gonna just have to get a fast-as-possible Marathon game rolling (something like one-city-challenge) with Maya. And actually remember to check when that turn is. Will post soon as I find out. (Ditto for Epic.)@Blue Ghost I reopened issue with plot iterator with lates version and put lua log errors to help you find them.
@FoxOfWar Indeed Maya is not working properly and has some text issues I will repair. One ask to you: I know you like marathon speed, so can you check for me what is the exact turn of 13th B'ak'tun on Epic nd Marathon speeds?
Ok, found the cause: copy-paste without change of lua code. Will be fixed next update.
Exactly. Simply use math.floor().So this +0.5 factor is not needed?
local iGameSpeedModifier
if Game.GetGameSpeedType() == 0 then
iGameSpeedModifier = 3
elseif Game.GetGameSpeedType() == 1 then
iGameSpeedModifier = 2
elseif Game.GetGameSpeedType() == 2 then
iGameSpeedModifier = 1
elseif Game.GetGameSpeedType() == 3 then
iGameSpeedModifier = 0.67
end
iGameSpeedModifier = GameInfo.GameSpeeds[ Game.GetGameSpeedType() ].ConstructPercent -- change ConstructPercent to what you want to scale
[5408.351] Runtime Error: [string "C:\Users\Adam\Documents\My Games\Sid Meier's ..."]:2971: bad argument #2 to '__index' (Key must be of type 'number' or 'string'.)
stack traceback:
[C]: in function '__index'
[string "C:\Users\Adam\Documents\My Games\Sid Meier's ..."]:2971: in function 'SelectArticle'
[string "C:\Users\Adam\Documents\My Games\Sid Meier's ..."]:8893: in function 'OnSearchButtonClicked'
[string "C:\Users\Adam\Documents\My Games\Sid Meier's ..."]:8928: in function <[string "C:\Users\Adam\Documents\My Games\Sid Meier's ..."]:8927>
I played a game agains tthe Maya and it felt really unsatisfying competing with them for ruins. They went the trailblazer line and had 6 moves through my start (desert), and hoovered up everything around me while all i could do was watch. It just felt really bad.Also, why changing the "+1 MP" attribut of the Holkan to "Free "Trailblaizer I" promotion" ? Now, the unique Mayan Pathfinder has as much mobility as an Iroquois Pathfinder...
These are fields in DB table GameSpeeds. So, either an SQL viewer (I use SQLiteStudio) or simply .xml in game Assets.Where can I find list of this:
.ConstructPercent
What article have you selected? What unit?@Infixo I have to units where civilopedia entry is not showing up and cause lua error like this:
[5408.351] Runtime Error: [string "C:\Users\Adam\Documents\My Games\Sid Meier's ..."]:2971: bad argument #2 to '__index' (Key must be of type 'number' or 'string'.)
For WLTKD length I used GoldenAgePercent. What should be used for XP? How to check for that setting turn on/off xp scaling?Another thing. I don't know if this is just for testing and you intend to change it later - if so, don't mind my comment.
Better use already available xxxPercent params from GameSpeeds. There are many, depending on what you want. And it boils down to:Code:local iGameSpeedModifier if Game.GetGameSpeedType() == 0 then iGameSpeedModifier = 3 elseif Game.GetGameSpeedType() == 1 then iGameSpeedModifier = 2 elseif Game.GetGameSpeedType() == 2 then iGameSpeedModifier = 1 elseif Game.GetGameSpeedType() == 3 then iGameSpeedModifier = 0.67 end
This will make the mod compatible with aditional game speeds and global changes of speeds.Code:iGameSpeedModifier = GameInfo.GameSpeeds[ Game.GetGameSpeedType() ].ConstructPercent -- change ConstructPercent to what you want to scale
Also - if you are scaling XP - don't forget that there is a parameter that turns on/off XP scaling.
Hashemite Raider or SPAD. Same issue. FireTuner hangs. There are only tooltips on the left. No text info on the right.
INSERT INTO Unit_ResourceQuantityRequirements
(UnitType, ResourceType)
SELECT 'UNIT_FRANCE_SPAD', null
FROM Unit_ResourceQuantityRequirements WHERE UnitType = 'UNIT_TRIPLANE';
INSERT INTO Unit_ResourceQuantityRequirements
(UnitType, ResourceType)
SELECT 'UNIT_ARABIA_HASHEMITE_RAIDER', null
FROM Unit_ResourceQuantityRequirements WHERE UnitType = 'UNIT_ANTI_TANK_GUN';