Infection Free Zone

Infection Free Zone

47 ratings
How to use console commands (Updated: 13/01/24)
By Fungi
In this guide I'll explain how you can use commands in your game to test stuff out, try techniques or simply have fun with.
4
3
2
   
Award
Favorite
Favorited
Unfavorite
Introduction:
Wanted to enjoy a Sandbox play-style? Than this guide is for you!

In this Guide I'll Explain how to use commands and what they do!



BEFORE USE:
Before using these commands. Remember: after using these cheats the game can become boring after using cheats too much. Try to use the cheats mostly to test stuff out. If you aren't bothered much by this than use it.

Please first try the game without cheats for a couple tries before trying them out.
How to active cheats
1. Be sure to be inside of a save as you can only activate them there. Not the main menu.

2. Press "`" Key. That press Either A W D S to move in-game. This will make the debug menu appear. (On a AZERTY keyboard the Console Command menu is opened with '!' , So translate ` for !)

3. Press the ? on the bottom right of the menu.

4. Once you see a list. click on "Enable Cheats"

5. Once clicked a bug report will appear. Ignore this.

6. Press "`" again, and move ingame

7. Press "?" again

8. Success! You've unlocked the power of god, If he was limited.

Quick PSA
In this section We'll cover what cheat does what.

A quick PSA: Remember cheating the game Isn't as the game is intended but I am not your parent so use as you please.

Okay we have a lot of cheats. About 54. I am gonna split these up into Sections.

Important: When you click a cheat, there will be a Type and a Quantity you'll probably need to full in like the resources like: "AddResourcesToBuilding res_cans 10"

WHEN USING A COMMAND AND PRESSING ENTER BE SURE TO EXIST THE DEBUG MENU TO ACTUALLY USE YOUR COMMAND! (I had this mistake)

AND RIGHT CLICK TO EXIT A CHEAT!
[Building Cheats - Add Cheats]
=BUILDING CHEATS=
(First will appear as incomplete, but after right clicking it puts it all down.)

-AdaptBuilding
What it does: Instantly adapts a building to a shelter or a cookhouse.
How to use: Left click on a building.
Extra: Lets you build buildings you like homes and gathering places which u can't research as of now.

-CreateFarmLand
What it does: Builds Crop Field
How to use: Select and click "bld_farm". Go out the debug mode and build
Extra: Every field are 2 workers more stressing your pc. Just spawn food and your good. But can be used for visuals.

-CreateGate
What it does: Instantly Builds Gate .
How to use: Select and select what type you want. Than exit debug menu, and then build.
Extra: Act as watchtowers and are better cause these actually get instantly build. (can be use to cancel the spawn of enemies in their visual area.

-CreateWall
What it does: Instantly Builds Wall .
How to use: Select and select what type you want. Than exit debug menu, and then build.
Extra: Good use if you want to create a big space without enemies.


=EVENTS=
CompleteActiveMissions
What it does: Completes all active missions.
How to use: Select.
Extra: Be sure to save before using.

-EndMission
What it does: Ends a mission.
How to use: Select what mission.
Extra: Be sure to end a active mission.

-StartAction
What it does: Starts a action.
How to use: Select and select a event.
Extra: Didn't understand it. But good little secret code to see what the devs have planned.

-StartEvent
What it does: Starts Events.
How to use: Select and select a event .
Extra: More secret Code hehe.

-StartMission
What it does: Starts Events.
How to use: Select and select a mission.
Extra: goodjob.


-StartTransmission
What it does: Starts a incoming transmission.
How to use: Select and select a transmission.
Extra: Be sure to have done the antenna mission and build one.

=ADD CHEATS=

-AddEventToPool
What it does: ??
How to use: Select it
Extra: BEWARE! My game crashed and after a second time it didn't but nothing happened. Use With Caution.

-AddMoodModifier
What it does: Adds a mood boost
How to use: Select it and add a X times
Extra: Gave me a Bug and didn't work

-AddResearchProgressPoints
What it does: Adds points to your current research
How to use: Select and add the amount of points you want
Extra: Be sure to have a active research Project

-AddResourcesToBuilding
What it does: Adds a certain resource to a building of your choosing
How to use: Select a resource and a amount. press Enter. Exit Menu. Click on a building.
Extra: Every click is 1X. SO for example u did 20. Pressing 2 times on a building gives it 40. (Be sure to click on a Owned building with a inventory.

-AddResourcesToHq
Same as above but that its your HQ so u don't have to select it.
Extra: U can build multiple HQ's but this cheat only sends it to your first one!

-AddScientificMaterials
What it does: Adds books which are used for research
How to use: Select and type a amount
Extra: Yay, you are becoming smarter!

-AddWorkersToHq
What it does: Adds workers to the main HQ
How to use: Select and type amount
Extra: Beware, the more workers the more lag


[Clear cheats - Debug cheats]
=CLEAR CHEATS= (USE WITH CAUTION)

-ClearNavData
I have no clue what it does. When u click on it it automatically enables it. So yeah, don't just click.
(Blackwolf: I think NavData is used for pathfinding but I am not 100% sure about this.)

-ClearStockrooms
What it does: Removes all items from all storage's
How to use: Select
Extra: Beware when using in a save, can really screw you up if you didn't save. (happened to me while testing lmao)




=POWER CHEATS=
-ScavengeAllBuildings
What it does: It explores all buildings and shows the items in them like you already went there.
How to use: Select.
Extra: Map clutter, a lot of things on the screen.

-SetDay
What it does: Changes the day.
How to use: Select and type the amount.
Extra: Higher than 9999 causes a bug. (i found doomsday hehe)
Also: After going higher than 9999 u can't change it back to day 56 for example.

-SetHour
What it does: Changes the time.
How to use: Select and type amount.
Extra: Didn't test but don't do 56:23 or something.

-SetSoldierHp
What it does: Changes the hp of a soldier.
How to use: Select and type a amount.
Extra: I assume this does it for all your squads.

-ShowAllGroups
What it does: Shows all squad.
How to use: Select.
Extra: Doesn't have much effect on my end.

-ShowAllVehicles
What it does: Shows all Vehicles
How to use: Select.
Extra: Doesn't have much effect on my end.

-StartWeatherFog
What it does: Fog appears
How to use: Select and type true
Extra: can cause a error

-UnlockContent
What it does: It unlocks stuff like the gathering stuff, hospital or even already unlockable buildings.
How to use: Select and Select Content
Extra: You'd be building useless buildings cause they have no function

(BlackWolf: It also allows you to unlock production types such as 'wood to fertilizer'. as for the 'useless buildings' most of them don't have a use yet but some do, all tower types (like the wooden towers but able to hold more guards and have more HP), greenhouse (farm inside a house, production speed depends on workers assigned. produces 2 wheat (not sure if tech impacts it) and if staffed with a decent amount is already tens of times more time efficient than farms) and houses (superior shelters that are a bit more expensive, give more housing and a mood bonus 'people living in luxurious conditions'), are confirmed to have functionality.
_____________


-UnlockResearchType
What it does: Unlocks a research
How to use: Select and select a Research Project
Extra: Can cause missions like the antenna not to be able to complete cause u can't research it anymore.

(BlackWolf: Cannot unlock 'medic(al)' and 'infection/infected (not sure about the name)' research trees.
Fungi: Personally don't believe u can unlock any of the researches that aren't already unlocked through normal research)
__________________________

=SPAWNING CHEATS=
-CreateResourceCursor
What it does: Spawns a resource of choosing on the ground where u click
How to use: Select and select resource. Exit debug menu and spawn
Extra: Outside of challenges i don't see much use for it cause u can spawn stuff in buildings.

-SetSpawnPointVisualizationState
What it does: I don't know
How to use: Select and press true
Extra: I assume this should show a marker for what you're spawning but it doesn't do much for me.

-SpawnBigSquadAtCursor
What it does: Spawns a selected vehicle with a 16 man squad
How to use: Select and select vehicle. Exit debug menu and spawn in
Extra: Won't spawn with any weapons

-SpawnGroupAtCursor
What it does: Spawns a group of npcs.
How to use: Select, select a amount of units, select a weapon, and type 1.
Extra: Don't spawn birds or armor. These create a bug.
IMPORTANT: DON'T SPAWN THEM WITH SNIPERS!!!!! ONLY WHEN IT's YOUR OWN SQUAD!! EVERY TIME THEY SHOOT U GET A BUG!!

-SpawnGroupInBuilding
What it does: Spawns a group of npc's in a building
How to use: Select, select a amount of units, select a weapon, and type 1.
Extra: Don't spawn birds or armor. These create a bug.

-SpawnImmigrants
What it does: Spawns Immigrants in the map
How to use: Select
Extra: Didn't appear so i assume they spawn random

-SpawnImmigrantsAccept
What it does: Spawns Immigrants in the map. That are accepted to your community
How to use: Select
Extra: Didn't appear so i assume they spawn random

-SpawnRandomSquad
What it does: Spawns a player squad with
How to use: Select
Extra: Spawns in a random vehicles. They have ak's but when clicking on them the ak's are gone.

-SpawnSquadAt
What it does:Spawns a Squad on cords
How to use: Select, type cords, type amount and select vehicle

-SpawnSquadAtCursor
What it does: Spawns a squad where your press
How to use: Select and choose vehicles
Extra: better option than above

-SpawnSquadAtLatLon
What it does: Spawns Squad on cords
How to use: Select, type cords and select vehicle
Extra: The cursor is better

-SpawnVehicle
What it does: Spawns a Vehicle
How to use: Select a Vehicle, exit Debug mode and spawn in
Extra: Some vehicles don't work and don't have a inventory. (no the tank isn't worth it)


=REMOVE CHEATS=
-DestroyResourceCursor
What it does: Removes a dropped Item
How to use: Select, Exit Debug Menu and click
Extra: Only works on items. Not buildings or raw materials like trees and brick piles

-KillAllGroups
What it does: KILLS THEM ALL
How to use: Select
EXTRA: SAVESAVESAVE!!!

-KillWorker
What it does: Kills a random worker
How to use: Select
Extra: Kills a random worker and can cause a hole in your work force

-RemoveMoodModifier
What it does: Removes morale by %
How to use: Select with a amount
Extra: Doesn't seem to work

-RemoveResourcesFromHq
What it does: Removes a certain recourse after choosing one
How to use: Select and select the recourse
Extra: Assuming this only works on main HQ




=DEBUG= (Non cheat kind) - i won't put effort in these cause they're basically settings.


-ChangeLanguage
You know what it means.
Need a line of code that I don't know. Sorry

-HideFPS
It hides your FPS

-SaveGame
Saves your game

-SetFpsLimit
Sets a Fps Limit
...

-SetResolution
This is in your settings lol

-SetTimeSpeed
This is literally your F1 F2 and F3 keys

Ending
-After trying all these cheats my current save is totally having a heart attack hahaha
-With some cheats and typing "what they do" i feel like that kid that got asked "what does a Wind blower do" and answers "Something that blows air". Some commands were just obvious lmao

Alright, Hopefully you had a use to this guide. It took my evening to make it so if u can spare a like I'd appreciate it!


If i can just add my opinion and i think others can agree: This game is what Project Zomboid misses (which isn't bad, each game their own thing). This game is a one of a kind and there is so much potential.
18 Comments
-=C.D.Z.R=- Dragon™ May 8 @ 1:33pm 
what about the body armor like military armor because i havee no clue what it does or how it works or camo
Waterdragon77 Apr 20 @ 7:11am 
I found out you can also remove items with RemoveFromHQ command, but some cheats changed, least the ShowAllVehicle doesn't work anymore, but i found ShowVehicle, don't know if it does the same as I only found 4 cars on my detroit map, 1 sedan, 1 van, 1 pickup and 1 petrol tanker, stolen also the military convoy truck, but that was all cars i could find, lucky with cheat command I can add more.
Lumidas Apr 15 @ 11:40pm 
I tried Spawning squad at cursor cmd... how does it work? I typed the command on right click/left click on the ground, no squad with the vehicle spawned at all :(
Zatio Apr 15 @ 2:23pm 
Ah nvm figured it out, after picking adept building you need to also choose building type and then you select a building. I thought it would auto finish work on a building but that was wrong lol.
Zatio Apr 15 @ 2:10pm 
So i tried the adept building option but nothing is happening, they are just building it normally.
Partafeenix Apr 15 @ 8:59am 
how to click ` on a 60 keyboard. i just copy and pasted this here
SVaughan Apr 11 @ 10:07pm 
PSA = Public Service Announcement. It's like saying "Note:"
Kamp Apr 5 @ 1:53am 
at least you have started earning money...... btw what does PSA mean for the quick PSA in your guide?
Fungi  [author] Apr 4 @ 2:02pm 
@kamp haha yeah, i do play. But i got a full time job for the last 2 months so I've gotten busy. Maybe someone else can finish my work
Kamp Apr 2 @ 4:33am 
and sorry for bother you playing Hell at loose ,seems you really have a lot of time playing games
(found you were playing PZ earlier) LOL