• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.

Onedreamer

Colonel
42 Badges
Apr 30, 2006
1.155
4
  • Stellaris: Distant Stars
  • Hearts of Iron IV Sign-up
  • Stellaris: Digital Anniversary Edition
  • Stellaris: Leviathans Story Pack
  • Stellaris - Path to Destruction bundle
  • Surviving Mars
  • Stellaris: Synthetic Dawn
  • Age of Wonders III
  • Stellaris: Humanoids Species Pack
  • Stellaris: Apocalypse
  • Surviving Mars: Digital Deluxe Edition
  • Stellaris: Galaxy Edition
  • Stellaris: Megacorp
  • Crusader Kings II: Holy Fury
  • Imperator: Rome
  • Stellaris: Ancient Relics
  • Age of Wonders: Planetfall
  • Age of Wonders: Planetfall Sign Up
  • Stellaris: Lithoids
  • Stellaris: Federations
  • Crusader Kings III
  • Hearts of Iron III
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: Rajas of India
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sword of Islam
  • Deus Vult
  • Europa Universalis III: Chronicles
  • Arsenal of Democracy
  • Victoria: Revolutions
  • Semper Fi
  • Rome: Vae Victis
  • 500k Club
  • Crusader Kings II: Holy Knight (pre-order)
  • Crusader Kings II: Way of Life
  • Crusader Kings II: Conclave
  • Stellaris
  • Stellaris: Galaxy Edition
I don't know but with all this complexity I'd at least expect that the AI would sign deals that it can substain. Instead at least 50% of their proposals end in nothing because they don't have the means to transport the resources. Then they try again, over and over...
 

unmerged(145293)

Second Lieutenant
1 Badges
Jul 4, 2009
101
0
  • Hearts of Iron III
OMG I found the source of all our problem!

In the lua_gui_test.lua file:

Code:
function run_me_from_lua()
	local f = io.open("lua_output.txt", "a")
	f:write("I like cake!\n")
	f:close()
end

--run_me_from_lua()
 

unmerged(79486)

Private
Jul 1, 2007
14
0
Daily diplomatic and trade updates should be more than enough for the AI. You can't make a second trade agreement with a country right after you did one (the button is grayed out, and I think this applies for the AI too), so there is no point in checking it every hour.

Daily unit movement should also be sufficient in peace time.
 

CaptRobau

Master of the Universe
66 Badges
May 6, 2009
2.919
339
  • Cities in Motion
  • Stellaris - Path to Destruction bundle
  • Victoria 2: A House Divided
  • Supreme Ruler 2020
  • Sword of the Stars
  • Semper Fi
  • Rome Gold
  • Victoria: Revolutions
  • Majesty 2
  • Magicka
  • Iron Cross
  • Heir to the Throne
  • Hearts of Iron III
  • For The Glory
  • Divine Wind
  • Cities in Motion 2
  • Arsenal of Democracy
  • Crusader Kings II
  • Crusader Kings II: Charlemagne
  • Crusader Kings II: Legacy of Rome
  • Crusader Kings II: The Old Gods
  • Crusader Kings II: The Republic
  • Crusader Kings II: Sons of Abraham
  • Crusader Kings II: Sunset Invasion
  • Deus Vult
  • Europa Universalis III Complete
  • Cities: Skylines - Mass Transit
  • Surviving Mars
  • Europa Universalis IV
  • Hearts of Iron IV: Together for Victory
  • Hearts of Iron IV: Death or Dishonor
  • Cities: Skylines - Natural Disasters
  • Stellaris: Leviathans Story Pack
  • Crusader Kings II: Reapers Due
  • Hearts of Iron IV: Cadet
  • Hearts of Iron IV Sign-up
  • Stellaris: Synthetic Dawn
  • Achtung Panzer
  • Cities: Skylines - Snowfall
  • Cities: Skylines - After Dark
  • Crusader Kings II: Horse Lords
  • Crusader Kings II: Way of Life
  • Mount & Blade: With Fire and Sword
  • Europa Universalis IV: Pre-order
  • Cities: Skylines - Green Cities
  • 500k Club
  • Victoria 2
  • Teleglitch: Die More Edition
  • Europa Universalis III Complete
  • Crusader Kings III
Used Kaiserguard's method and it worked. Went from basically unplayable to playable. If picked up by PI (well the not updating every hour thing) and coupled with other optimizations it might well be possible to get rid of the lag for almost all people and get the max speed up/near to the 1 second=24 hours.

Thanks a lot Kaiserguard.
 

Tahuti

God of scribes
15 Badges
May 25, 2007
183
0
  • Hearts of Iron II: Armageddon
  • Crusader Kings II
  • Darkest Hour
  • Deus Vult
  • Europa Universalis III
  • Divine Wind
  • Europa Universalis IV
  • Hearts of Iron III
  • Heir to the Throne
  • Europa Universalis: Rome
  • Semper Fi
  • Victoria 2
  • Victoria 2: A House Divided
  • Victoria 2: Heart of Darkness
  • 500k Club
Possible breaktrough!

I have found a way to limit trade in the game, and it reduced the seconds needed for a day to advance to 12 seconds, nearly as little as the seconds needed for the day to advance with trade disabled (9 seconds).

This is what I did, I changed defines.lua which you can find in the common folder:
defines = {
...
IC_TO_CONSUMER_GOODS = 5.0,
IC_TO_SUPPLIES = 7.0,
CONVOY_BUILD_COST = 2,
CONVOY_BUILD_TIME = 40,
ESCORT_BUILD_COST = 3,
ESCORT_BUILD_TIME = 50,
LEADERSHIP_TO_SPIES = 0.05,
BUILDING_REPAIR_SPEED = 0.1,
LEADERSHIP_TO_OFFICERS = 1,
THREAT_FROM_CONVOYS_MODIFIER = 0.1,
CONVOY_CONSTRUCTION_SIZE = 10,
MAX_DAILY_TRADE = 5 - Originally, it was 100
...

Besides improvements in speed, al those countries will spam you less with trade proposals!
 

unmerged(145293)

Second Lieutenant
1 Badges
Jul 4, 2009
101
0
  • Hearts of Iron III
I have found a way to limit trade in the game, and it reduced the seconds needed for a day to advance to 12 seconds, nearly as little as the seconds needed for the day to advance with trade disabled (9 seconds).

This is what I did, I changed defines.lua which you can find in the common folder:
defines = {
...
IC_TO_CONSUMER_GOODS = 5.0,
IC_TO_SUPPLIES = 7.0,
CONVOY_BUILD_COST = 2,
CONVOY_BUILD_TIME = 40,
ESCORT_BUILD_COST = 3,
ESCORT_BUILD_TIME = 50,
LEADERSHIP_TO_SPIES = 0.05,
BUILDING_REPAIR_SPEED = 0.1,
LEADERSHIP_TO_OFFICERS = 1,
THREAT_FROM_CONVOYS_MODIFIER = 0.1,
CONVOY_CONSTRUCTION_SIZE = 10,
MAX_DAILY_TRADE = 5 - Originally, it was 100
...

Besides improvements in speed, al those countries will spam you less with trade proposals!


Nice find, I might also change the LEADERSHIP_TO_OFFICERS, it takes so long to max your officer :)
And about all those CG problem reported, changing the IC_TO_CONSUMER_GOODS variable might help as a fix till the next patch
 

unmerged(141124)

Second Lieutenant
May 4, 2009
113
0
I have found a way to limit trade in the game, and it reduced the seconds needed for a day to advance to 12 seconds, nearly as little as the seconds needed for the day to advance with trade disabled (9 seconds).

This is what I did, I changed defines.lua which you can find in the common folder:
defines = {
...
IC_TO_CONSUMER_GOODS = 5.0,
IC_TO_SUPPLIES = 7.0,
CONVOY_BUILD_COST = 2,
CONVOY_BUILD_TIME = 40,
ESCORT_BUILD_COST = 3,
ESCORT_BUILD_TIME = 50,
LEADERSHIP_TO_SPIES = 0.05,
BUILDING_REPAIR_SPEED = 0.1,
LEADERSHIP_TO_OFFICERS = 1,
THREAT_FROM_CONVOYS_MODIFIER = 0.1,
CONVOY_CONSTRUCTION_SIZE = 10,
MAX_DAILY_TRADE = 5 - Originally, it was 100
...

Besides improvements in speed, al those countries will spam you less with trade proposals!

Tripled fps. And judging by information window, AI still trades succesfully.