Surviving Mars

Surviving Mars

Not enough ratings
Enable Console
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
24.297 KB
20 May, 2019 @ 10:46pm
19 Jan @ 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] 13 Nov, 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] 25 Sep, 2023 @ 8:36pm 
local defs = ResupplyItemDefinitions
local idx = table.find(defs, "id", "Drone")
if idx then
defs[idx].max = 40
end
AstroSnoopy777 25 Sep, 2023 @ 7:50pm 
Is there a command to allow rockets to carry more drones?
AstroSnoopy777 24 Sep, 2023 @ 12:04pm 
thanks
ChoGGi  [author] 24 Sep, 2023 @ 11:54am 
You can also change the key in keybinds
ChoGGi  [author] 24 Sep, 2023 @ 11:44am 
Press Enter or Tilde to show console.
AstroSnoopy777 24 Sep, 2023 @ 11:38am 
this might be stupid but how do you open the console
Spaceship_Guy 30 Jul, 2023 @ 1:50am 
thanks
ChoGGi  [author] 29 Jul, 2023 @ 8:19am 
Sure, that's an easy one.