3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 1958|回复: 1
打印 上一主题 下一主题

[分享] age of empires 4 cheat codes

[复制链接]

3

主题

187

帖子

274

积分

高级玩家

Rank: 4

贡献度
0
金元
2735
积分
274
精华
0
注册时间
2016-4-10
跳转到指定楼层
主题
发表于 2022-6-29 16:08 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
本帖最后由 弱控肉体暴走 于 2023-6-18 13:26 编辑

to fully utilize the cheats, I have to uses all cheats from all channels
  • official cheats, Taunts & Cheats – Age of Empires Support, like another cup, inna jiffy, smorgasbord, it was known, make it quick, king size beds, one of us, this is fine, zeleport
  • wemod, like unlimitd health, one-hit kills, instant construction, instant recruting/research, reset current population
  • unofficial cheats: spawn units like villagers

wemod
use unofficial cheats
prepare the dev files:
download the dev files I uploaded, it contains a lot of *.lua files, or use EssenceArchiveViewer.exe to extract dev files, which is data.sga, x:\xxx\cardinal\archives\Data.sga, and x:\xxx\engine\archives\Data.sga, unzip to the game root folder x:\xxx\
  • run game with -dev mode

steam:
create a shortcut for RelicCardinal_ws.exe, change target by adding suffix like "x:\xxxx\RelicCardinal.exe" -dev -nomovies
microsoft store xbox:
open cmd, use this code, shell:AppsFolder\Microsoft.Cardinal_8wekyb3d8bbwe!Game -dev -nomovies, you can replace this Microsoft.Cardinal_8wekyb3d8bbwe!Game with yours, by creating the shortcut from xbox, then right click properties to check the target type for target field
shell:AppsFolderC:\Users\Administrator\AppData\Local\Packages\Microsoft.Cardinal_8wekyb3d8bbweexplorer.exe Shell:AppsFolder\Microsoft.Cardinal_8wekyb3d8bbwe!Game -dev -nomoviesShell:AppsFolder"Microsoft.Age of Empires IV" -dev -nomovieshttps://answers.microsoft.com/en-us/windows/forum/all/starting-windows-10-store-app-from-the-command/836354c5-b5af-4d6c-b414-80e40ed14675https://learn.microsoft.com/en-us/answers/questions/893811/uwp-app-start-with-arguments.html
not working:explorer.exe Shell:AppsFolder\Microsoft.Cardinal_8wekyb3d8bbwe!Game -dev -nomoviesworking:Start-Process -FilePath "shell:AppsFolder\Microsoft.Cardinal_8wekyb3d8bbwe!Game" -ArgumentList "-dev -nomovies"
  • enable the console command in game

you must create a game in skirmish mode, by pressing ctrl+shift+` once, type in dofile('dev/cheatmenu.lua'), test the cheat, only then you can use it in campaign mode
  • modify cheats by editing .lua files

open cheatmenu.lua, make some changes, here are some examples I made
villager
serach newelement( "1. Spawn Villager",...
change to newelement( "1. Spawn Villager", "CONTROL+SHIFT+1", "for i=0,100 do SpawnSquadAtMouse( CheatGetLocalRaceSquadType('scar_villager')) end", NO_MP ),
now it will spawn 100 villagers
gaia
change BP_GetSquadBlueprint( 'gaia_herdable_sheep')) to BP_GetSquadBlueprint( 'gaia_huntable_boar')),
now it wil spawn boar instead of sheep
trader
want traders? try newelement( "9. Spawn Trader", "CONTROL+SHIFT+9", "for i=0,100,1 do SpawnSquadAtMouse( CheatGetLocalRaceSquadType('scar_trade_cart')) end", NO_MP )
resources
search function CheatSendEconomy(), change to
function CheatSendEconomy()
for i = 100,1,-1
do
Command_PlayerBroadcastMessage(Game_GetLocalPlayer(), Game_GetLocalPlayer(), 0, "ECONOMY")
end
end
now press alt+shift+1, you will get 1000x100 all resoures
my preference
  • newelement( "Free 1000 Food Wood Gold Stone Multiplayer", "ALT+SHIFT+1", "CheatSendEconomy()", YES_MP ),
  • newelement( "Reveal Map Multiplayer", "ALT+SHIFT+3", "CheatSendFoW()", YES_MP ),
  • newelement( "Instant Build And Gather Multiplayer", "ALT+SHIFT+5", "CheatSendInstantBuild()", YES_MP ),
  • overriding population cap for all players with number like 800 will cause me trouble like minitary unit stuck in moving, but set it for yourself is safe
  • for i=1,10,1 do Player_SetPopCapOverride(World_GetPlayerAt(i), 800) end
  • Player_SetPopCapOverride(Game_GetLocalPlayer(), 1200)

my exploration
i try to make changes to CheatDoubleBuildAndGatherRates(), not working.
CONTROL+SHIFT+0 not working
debug
alt+shift+`, try some codes
example
for i,v in pairs(_G) do print(i) end
for i,BP_GetName(v) in pairs(_G) do print(i) end
for i,v in pairs(_G) do print(i.." = "..tostring(v)) end
example
BP_GetSquadBlueprintsWithType_Internal({},true)
for i,v in pairs(BP_GetSquadBlueprintsWithType_Internal({},true)) do print(i.." = "..tostring(v)) end
for i,v in pairs(BP_GetSquadBlueprintsWithType_Internal({},true)) do print(i.." = "..tostring(BP_GetName(v))) end
log
check the output
warnings.log in C:\Users\Administrator\Documents\My Games\Age of Empires IV

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复

使用道具 举报

334

主题

4191

帖子

9万

积分

勤勤恳恳

Rank: 12Rank: 12Rank: 12

贡献度
707
金元
959372
积分
98765
精华
0
注册时间
2015-9-12

滑稽[永久版]智力-1[永久版]你开心就好[永久版]3DM小黄鸡元气女仆(永久)辉煌市民[永久版]3DMer(永久)龙年勋章3DM MOD站(白银)

舒服的沙发
发表于 2022-6-30 09:23 | 只看该作者
不翻译也行,好歹说明下,你这一堆英文字母,虽然每一个都认识,但连起来,也就认识一些词语,至于讲的是啥,我咋知道?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2025-2-24 06:42 , Processed in 0.088442 second(s), 14 queries , Memcache On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表