Surviving Mars

Surviving Mars

评价数不足
Enable Console
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
24.297 KB
2019 年 5 月 20 日 下午 10:46
1 月 19 日 下午 12:44
22 项改动说明 ( 查看 )

订阅以下载
Enable Console

在 ChoGGi 的 1 个合集中
ChoGGi's Mods: Modding
17 件物品
描述
This will enable the console and the console log text (turn off in mod options).
Press Enter or Tilde to show console.

This is NOT meant to be used with Expanded Cheat Menu, which is what you should be using if you're modding.


Some commands:
-- Add 5 Billion
UIColony.funds:ChangeFunding(5 * 1000000000)
-- Delete selected object (some stuff doesn't have a selection circle)
DoneObject(SelectedObj)
-- Uncover map
CheatMapExplore("deep scanned")
-- Unlock all buildings in build menu
CheatUnlockAllBuildings()
-- Spawn ten random colonists
CheatSpawnNColonists(10)
-- Spawn an asteroid
ReconCenter:CheatTriggerAsteroidUnlocked()
-- Unlock underground
UIColony:UnlockUnderground()
-- Move selected object to mouse cursor
SelectedObj:SetPos(GetCursorWorldPos())
-- Examine selected object (you need my library mod for this cmd)
OpenExamine(SelectedObj)

-- Unlock all tech in research tree
CheatUnlockAllTech()
-- Research all tech
CheatResearchAll()
-- Research current tech
CheatResearchCurrent()
-- Reset research costs (intentional misspelling)
UIColony.tech_status.MartianCopyrithgts.researched = 1
UIColony.tech_status.MartianPatents.researched = 1
-- Scan all breakthroughs on surface map
CheatUnlockBreakthroughs()
-- Unlock all breakthrough techs
CheatUnlockAllBreakthroughs()

-- Delete all trees (suspend/resume will greatly speed it up)
SuspendPassEdits("DeleteStuff")
MapDelete("map", "VegetationTree")
ResumePassEdits("DeleteStuff")
-- Trees and Bushes
MapDelete("map", "VegetationBillboardObject")
-- If you have my lib mod installed then you should also call this to clean up
ChoGGi_Funcs.Common.UpdateGrowthThreads()
-- Large rocks
MapDelete("map", {"Deposition", "WasteRockObstructorSmall", "WasteRockObstructor"})
-- Small rocks
MapDelete("map", "StoneSmall")
31 条留言
ChoGGi  [作者] 2023 年 11 月 13 日 上午 11:02 
v0.8
Added code I use in ECM to allow pasting in more complicated code (no more "not understood").
Also removes ` when using tilde to open console.
ChoGGi  [作者] 2023 年 9 月 25 日 下午 8:36 
local defs = ResupplyItemDefinitions
local idx = table.find(defs, "id", "Drone")
if idx then
defs[idx].max = 40
end
AstroSnoopy777 2023 年 9 月 25 日 下午 7:50 
Is there a command to allow rockets to carry more drones?
AstroSnoopy777 2023 年 9 月 24 日 下午 12:04 
thanks
ChoGGi  [作者] 2023 年 9 月 24 日 上午 11:54 
You can also change the key in keybinds
ChoGGi  [作者] 2023 年 9 月 24 日 上午 11:44 
Press Enter or Tilde to show console.
AstroSnoopy777 2023 年 9 月 24 日 上午 11:38 
this might be stupid but how do you open the console
Spaceship_Guy 2023 年 7 月 30 日 上午 1:50 
thanks
ChoGGi  [作者] 2023 年 7 月 29 日 上午 8:40 
ChoGGi  [作者] 2023 年 7 月 29 日 上午 8:19 
Sure, that's an easy one.