More for the record than anything else I made this, doesn't seem to work for Workers or Energy however either the IL doesn't get compiled or for whatever reason the symbol isn't created for them, it also doesn't increase the cap so you're still kind of stuck with 2000/50 on the first campaign but they'll get refilled periodically.
{$lua}
[ENABLE]
local scriptTemplate = ([[
globalalloc(TotalRESOURCEBytes, 10)
[%s]
TotalRESOURCEBytes:
readmem(ZX.Entities.Building::get_TotalRESOURCESupply, 10)
ZX.Entities.Building::get_TotalRESOURCESupply:
mov eax, #9999
ret
[%s]
ZX.Entities.Building::get_TotalRESOURCESupply:
readmem(TotalRESOURCEBytes,10)
]]):format('ENABLE', 'DISABLE')
-- not sure why but CE doesn't seem to like when I have the enable/disable section labels in the script
-- so using format to workaround lol
local resources = {'Food', 'Workers', 'Energy', 'Wood', 'Stone', 'Iron', 'Oil', 'Gold'}
ResourceDisableInfo = {}
for _, resource in ipairs(resources) do
local script = scriptTemplate:gsub('RESOURCE', resource)
local success, extra = autoAssemble(script)
if success then ResourceDisableInfo[#ResourceDisableInfo+1] = {script, extra} end
end
[DISABLE]
for _, resource in ipairs(ResourceDisableInfo) do
autoAssemble(resource[1], resource[2])
end
Has anyone found how to edit Empire Points while in the Attack?
To edit Empire Points while attacking infected swarms, you need to search for total cost value (4 bytes).
For example, it starts at "0", buy soldier and it's "20" (his cost), buy another soldier and it's "40" (2x soldier cost). When you find adress, change value to "0" and freeze adress. Now you can buy as much as you wish.
Hope this helps.
I am using cake's cheat table but Options seldomly work fast recruit even causes crashes sometimes fast building only worked once
and i am using version 1.0
First, try not to freeze any value inside Command Centre script.
I'm forgeting something very important. While I'm making this table, I just tested it for first playthough/map. So everytime you want to continue your playthrough on new map/mission, you have to deactivate,then re-active scripts for "Power Ranger" ,"Fast Recruit" & "Command Centre" if you're using this script and still want to use it, because the script's aob is targeting the game struct data not method/instruction. If you can't deactive the script, you can edit the script & comment out the all code on Disable section,eg: [DISABLE]/*
Hmmm, I'm getting some sort of odd crash bug. It's not when switching maps on victory, but just random crashes whenever I'm building something. Or it may be when it tries to autosave the game. Anyone know the cause? The autosaves happen randomly so I can;t really turn stuff off in anticipation... and it's getting a bit annoying have to redo missions over and over due to autosave crashing the game.
Hmmm, I'm getting some sort of odd crash bug. It's not when switching maps on victory, but just random crashes whenever I'm building something. Or it may be when it tries to autosave the game. Anyone know the cause? The autosaves happen randomly so I can;t really turn stuff off in anticipation... and it's getting a bit annoying have to redo missions over and over due to autosave crashing the game.
Well, I can't reproduce the problem...
So, on what Windows are your peoples on?
And what Cpu ?
Hmmm, I'm getting some sort of odd crash bug. It's not when switching maps on victory, but just random crashes whenever I'm building something. Or it may be when it tries to autosave the game. Anyone know the cause? The autosaves happen randomly so I can;t really turn stuff off in anticipation... and it's getting a bit annoying have to redo missions over and over due to autosave crashing the game.
Well, I can't reproduce the problem...
So, on what Windows are your peoples on?
And what Cpu ?
Im on Windows 10 /i5-7400/ gtx 1070 /16gb ram and Playing Version 1.00 of They are Billions.
Its basically any loading and saving that happens tends to crash
and im running cheat engine through administrator as well as the game.
Maybe there is specific time when the cheats should be enabled /disabled like you said earlier.
"First, try not to freeze any value inside Command Centre script.
I'm forgeting something very important. While I'm making this table, I just tested it for first playthough/map. So everytime you want to continue your playthrough on new map/mission, you have to deactivate,then re-active scripts for "Power Ranger" ,"Fast Recruit" & "Command Centre" if you're using this script and still want to use it, because the script's aob is targeting the game struct data not method/instruction. If you can't deactive the script, you can edit the script & comment out the all code on Disable section,eg: [DISABLE]/*"