Surviving Mars

Surviving Mars

Not enough ratings
Enable Console
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
24.297 KB
May 20, 2019 @ 10:46pm
Jan 19 @ 12:44pm
22 Change Notes ( view )

Subscribe to download
Enable Console

In 1 collection by ChoGGi
ChoGGi's Mods: Modding
17 items
Description
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 Comments
ChoGGi  [author] Nov 13, 2023 @ 11:02am 
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  [author] Sep 25, 2023 @ 8:36pm 
local defs = ResupplyItemDefinitions
local idx = table.find(defs, "id", "Drone")
if idx then
defs[idx].max = 40
end
AstroSnoopy777 Sep 25, 2023 @ 7:50pm 
Is there a command to allow rockets to carry more drones?
AstroSnoopy777 Sep 24, 2023 @ 12:04pm 
thanks
ChoGGi  [author] Sep 24, 2023 @ 11:54am 
You can also change the key in keybinds
ChoGGi  [author] Sep 24, 2023 @ 11:44am 
Press Enter or Tilde to show console.
AstroSnoopy777 Sep 24, 2023 @ 11:38am 
this might be stupid but how do you open the console
Spaceship_Guy Jul 30, 2023 @ 1:50am 
thanks
ChoGGi  [author] Jul 29, 2023 @ 8:40am 
ChoGGi  [author] Jul 29, 2023 @ 8:19am 
Sure, that's an easy one.