Citadel: Forged With Fire: Admin Commands: Difference between revisions

From Survival Servers
Jump to navigation Jump to search
[wiki:ss-claude-11372] Fixes: wrong or outdated steps, labels and facts corrected, current pictures, dead links fixed, search title and description
[wiki:wiki-operator] Reworded to the house writing rules; facts that were wrong today corrected (approved by Ryan, Nov 17)
 
Line 3: Line 3:
|description=Citadel: Forged With Fire admin commands: set the admin password, log in with /admin_login, then kick, ban, teleport, give XP and regrow resources.
|description=Citadel: Forged With Fire admin commands: set the admin password, log in with /admin_login, then kick, ban, teleport, give XP and regrow resources.
}}
}}
In order to use admin commands and cheats, one must make a password and make themselves admin.
To use admin commands and cheats, set an admin password and make yourself admin.
===Adding Password===
===Adding a password===
#Navigate to '''\Citadel\Saved\Config\WindowsServer\Game.ini''' using [[FTP Access|FTP]].
#Navigate to '''\Citadel\Saved\Config\WindowsServer\Game.ini''' using [[FTP Access|FTP]].
#In the Game.ini, find the line password. If it does not exist, please add one.<br>'''[/Script/Citadel.SocialManager]'''<br>'''Password=YOURPASSWORD'''
#In Game.ini, find the password line. If it doesn't exist, add one:<br>'''[/Script/Citadel.SocialManager]'''<br>'''Password=YOURPASSWORD'''
#Save Game.ini.
#Save Game.ini.
Saving '''Server Config''' (under '''TOOLS''') rewrites Game.ini with its own '''Admin Password''', so set the password there under '''Base Config'''.
Saving '''Server Config''' (under '''TOOLS''') rewrites Game.ini with its own '''Admin Password''', so set the password there under '''Base Config'''.


===Adding Admin===
===Adding an admin===
#Start and join your server. After joining, press '''Enter''' to open chat.
#Start and join your server. After joining, press '''Enter''' to open chat.
#Type '''/admin_login YOURPASSWORD''' and press '''Enter'''.
#Type '''/admin_login YOURPASSWORD''' and press '''Enter'''.
#You will be greeted with a message that you are logged in as admin.
#A message says you're logged in as admin.
==Admin Commands==
==Admin commands==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| style="width: 18em | '''/snapshot <br> /statdump''' || Dump to the log a snapshot of the world state when this command is issued, including actor counts and other performance-relevant data.
| style="width: 18em | '''/snapshot <br> /statdump''' || Writes a snapshot of the world to the log, including object counts and other performance data.
|-
|-
| '''/server_kick <player> <reason> <br> /gtfo <player> <reason>''' || Kick a player from the server for the reason specified. The player will be notified of the reason.
| '''/server_kick <player> <reason> <br> /gtfo <player> <reason>''' || Kicks a player from the server for the reason you give. The player sees the reason.
|-
|-
|  '''/server_ban <player> <reason> <br> /ban <player> <reason>''' || Bans a player from the server forever, and kicks them immediately if they are currently logged in. The reason is persisted and will be shown to the player on any future login attempts.
|  '''/server_ban <player> <reason> <br> /ban <player> <reason>''' || Bans a player from the server forever, and kicks them at once if they're online. The player sees the reason each time they try to log in again.
|-
|-
| '''/server_unban <player> <br> /unban <player>''' || Unbans a player from the server, allowing them to login and play again normally.
| '''/server_unban <player> <br> /unban <player>''' || Unbans a player from the server, so they can log in and play again.
|-
|-
| '''/whois <player>''' || Returns information about the specified player, even if they are currently offline, including their SteamID for real-world identification.
| '''/whois <player>''' || Shows information about the player, even if they're offline, including their Steam ID to identify them outside the game.
|-
|-
| '''/admin_delete <player> <br> /wipe <player>''' || Deletes the specified character from the server. Online players will be immediately kick from the server. Admins can delete their own characters with this command.
| '''/admin_delete <player> <br> /wipe <player>''' || Deletes the character from the server. An online player is kicked at once. Admins can delete their own characters with this command.
|-
|-
| '''/admin_login <password> <br> /iamgod <password>''' || Attempt to log in as a remote administrator on the server. If the password supplied is the correct one, you will be have admin privileges on the server (able to execute all cheat commands and admin commands).
| '''/admin_login <password> <br> /iamgod <password>''' || Logs you in as an admin. With the right password, you can run all cheat commands and admin commands.
|-
|-
| '''/admin_update <new_password>''' || Set a new admin password for the server. This will be saved into the ini as well as take effect immediately. After executing, all other admins will have their admin status revoked and must login again using this updated password. For a compromised server (someone unintended is able to execute this command and lock out real admins) the server should be shut down, the password changed in the ini, and the server restarted.
| '''/admin_update <new_password>''' || Sets a new admin password. It's saved to the settings file and works at once. All other admins lose admin and must log in again with the new password. If someone who shouldn't have admin runs this and locks out the real admins, stop the server, change the password in the settings file and start it again.
|-
|-
| '''/admin_logout''' || Causes admin privileges to be immediately revoked. They can be requested again afterwards by logging in again with the correct server password.
| '''/admin_logout''' || Removes your admin at once. Log in again with the right password to get it back.
|-
|-
|  '''/admin_autosave ''' || Forces an immediate auto-save of the character data for all online characters and the present state of the world. Normally, this data is periodically auto-saved on a timer (currently 10 mins).
|  '''/admin_autosave ''' || Saves all online characters and the world right away. Normally the game autosaves on a timer (every 10 minutes).
|-
|-
| '''/cinecam''' || The pawn will turn off its meshes, enable smooth cam and toggle ghost.
| '''/cinecam''' || Hides your character model, turns on smooth cam and toggles ghost.
|-
|-
| '''/smoothcam''' || Causes the camera to interpolate over time towards the pawn’s facing rotation.
| '''/smoothcam''' || Makes the camera turn smoothly toward the way your character faces.
|-
|-
| '''/smoothness''' || Modify the smoothness of the smoothcam. Acceptable values are 0.5 - 5.
| '''/smoothness''' || Changes how smooth the smoothcam is. Values run from 0.5 to 5.
|-
|-
| '''/togglemeshes''' || Toggles the first person view meshes so they can be hidden from view. Useful for recording.
| '''/togglemeshes''' || Hides or shows your first-person view model. Useful for recording.
|-
|-
| '''/fly''' || Toggles cheat flying. This consumes no mana and its speed can be customized. (Disabled)
| '''/fly''' || Turns cheat flying on or off. It uses no mana, and you can change its speed. (Disabled)
|-
|-
| '''/ghost''' || Same as fly except the player collision is disabled. (Disabled)
| '''/ghost''' || Same as fly, but you pass through things. (Disabled)
|-
|-
| '''/flightspeed ''' || Modifies the player’s flight speed when cheat flying.
| '''/flightspeed ''' || Changes your flight speed when cheat flying.
|-
|-
| '''/admin_startstats''' || Start recording a stat profile on the server for performance analysis. These files can get quite large very quickly, and it is not advised to leave this recording for extended periods (ie hours or days).
| '''/admin_startstats''' || Starts recording a stat profile on the server for performance checks. These files grow large fast, so don't leave it recording for hours or days.
|-
|-
| '''/admin_stopstats''' || End recording of a stat profile on the server.
| '''/admin_stopstats''' || End recording of a stat profile on the server.
|}
|}


==Cheat Commands==
==Cheat commands==
{| class="wikitable"
{| class="wikitable"
! Command !! Description
! Command !! Description
|-
|-
| style="width: 18em | '''/setname <newname>''' || Change your player name to the new name specified. There is a maximum name length for any player of 12 characters. Names may not contain spaces, illegal characters or offensive language.
| style="width: 18em | '''/setname <newname>''' || Changes your player name. Names can be up to 12 characters, with no spaces, banned characters or offensive language.
|-
|-
| '''/givexp <amount>''' || Give yourself the specified amount of XP. This can cause you to go up one or more character levels depending on the amount. It is currently clamped between 0 and 10000 per command.
| '''/givexp <amount>''' || Gives you that much XP, which can raise you one or more levels. The limit is 0 to 10000 per command.
|-
|-
|  '''/giveresources <amount>''' || Give yourself the specified amount of each type of resource (wood, stone, rune energy). The amount is currently clamped between 0 and 1000 per command.
|  '''/giveresources <amount>''' || Gives you that amount of each resource (wood, stone, rune energy). The limit is 0 to 1000 per command.
|-
|-
| '''/resources ''' || Gives 10000 of each resource type (wood, stone, rune energy).
| '''/resources ''' || Gives 10000 of each resource type (wood, stone, rune energy).
|-
|-
| '''/givewood <amount>''' || Give yourself the specified amount of wood. The amount is currently clamped between 0 and 1000 per command.
| '''/givewood <amount>''' || Gives you that amount of wood. The limit is 0 to 1000 per command.
|-
|-
| '''/givestone <amount>''' || Give yourself the specified amount of stone. The amount is currently clamped between 0 and 1000 per command.
| '''/givestone <amount>''' || Gives you that amount of stone. The limit is 0 to 1000 per command.
|-
|-
| '''/giverune <amount>''' || Give yourself the specified amount of rune. The amount is currently clamped between 0 and 1000 per command.
| '''/giverune <amount>''' || Gives you that amount of rune. The limit is 0 to 1000 per command.
|-
|-
| '''/givespell <spell indices>''' || Grants the player one or more spells in the game using the spell index from the Spell data table. (Unknown at this time)
| '''/givespell <spell indices>''' || Grants the player one or more spells in the game using the spell index from the Spell data table. (Unknown at this time)
Line 79: Line 79:
| '''/giveitem <item index> <amount> <Stat Range>''' || Grants the player one or more items in the game using the item index from the Item data tables.
| '''/giveitem <item index> <amount> <Stat Range>''' || Grants the player one or more items in the game using the item index from the Item data tables.
|-
|-
|  '''/giveallitems <br> /christmasmorning <br> /xmasmorning ''' || Grants the player one of every item in the game (that is currently in the ItemTable) and first boots their carrying limit so they can carry it all.
|  '''/giveallitems <br> /christmasmorning <br> /xmasmorning ''' || Gives you one of every item in the game's ItemTable, and first raises your carry limit so you can carry it all.
|-
|-
| '''/knowitall''' || Learn all possible learnables in the game.
| '''/knowitall''' || Learns everything that can be learned in the game.
|-
|-
| '''/spawnnpc <npc name> <amount> <level>''' || Spawn an NPC of a given type near you. Amount and level are optional and both default to ‘1’. NPC names are all lowercase, no spacing. NPC names are in the Monster data tables
| '''/spawnnpc <npc name> <amount> <level>''' || Spawns an NPC of that type near you. Amount and level are optional and both start at ‘1’. NPC names are all lowercase with no spaces, and are listed in the Monster data tables.
|-
|-
| '''/regen''' || Regenerates your current health and mana pools to full.
| '''/regen''' || Regenerates your current health and mana pools to full.
|-
|-
| '''/settime <value>''' || Sets the current time of day. Valid values range between 0 and 2400 (0 and 2400 being midnight, 1200 being noon).
| '''/settime <value>''' || Sets the time of day, from 0 to 2400 (0 and 2400 are midnight, 1200 is noon).
|-
|-
| '''/teleport <player>''' || Teleport next to the specified player.
| '''/teleport <player>''' || Teleport next to the specified player.
Line 93: Line 93:
| '''/teleport <latitude> <longitude>''' || Teleport to a specific point on the map.
| '''/teleport <latitude> <longitude>''' || Teleport to a specific point on the map.
|-
|-
| '''/regrow <br> /gardener <br> /iamadruid''' || Immediately regrows all harvested nodes in the game world. Normally regrowth checks only happen infrequently (every ~15 min), and most harvestable resources do not return for several hours, nor when pawns are nearby (AI and players) nor when structure pieces have been built overtop. This cheat regrows them all immediately with the only exception being those nodes currently blocked by structures.
| '''/regrow <br> /gardener <br> /iamadruid''' || Regrows every harvested resource in the world at once. Normally the game checks for regrowth about every 15 minutes. Most resources take several hours to return, and don't return while players or AI are nearby or something is built on top. This cheat regrows them all at once, except those blocked by buildings.
|-
|-
| '''/suicide <br> /seppuku <br> /harakiri''' || Kills you instantly by applying massive damage to your character, allowing all damage procs to still fire normally. It applies 1.0e+32 environmental damage.
| '''/suicide <br> /seppuku <br> /harakiri''' || Kills you at once with 1.0e+32 environmental damage, so all damage effects still trigger as normal.
|-
|-
| '''/invincible <amount> <br> /superman <amount>''' || Sets the player’s base damage reduction anywhere between 0 - 100% and then recalculates stats accordingly. If an amount is not specified, the cheat assumes 100%.
| '''/invincible <amount> <br> /superman <amount>''' || Sets your base damage reduction from 0 to 100%, then updates your stats. With no amount, it uses 100%.
|-
|-
| '''/Masterbuilder''' || Lets you delete walls and build for free  
| '''/Masterbuilder''' || Lets you delete walls and build for free  
|}
|}


Don't have a server yet? [https://www.survivalservers.com/services/game_servers/citadel_forged_with_fire/ Rent a Citadel: Forged With Fire server] from Survival Servers and be online in minutes.
[https://www.survivalservers.com/services/game_servers/citadel_forged_with_fire/ Rent a Citadel: Forged With Fire server] from Survival Servers and be online in minutes.

Latest revision as of 08:41, 17 November 2026

To use admin commands and cheats, set an admin password and make yourself admin.

Adding a password

  1. Navigate to \Citadel\Saved\Config\WindowsServer\Game.ini using FTP.
  2. In Game.ini, find the password line. If it doesn't exist, add one:
    [/Script/Citadel.SocialManager]
    Password=YOURPASSWORD
  3. Save Game.ini.

Saving Server Config (under TOOLS) rewrites Game.ini with its own Admin Password, so set the password there under Base Config.

Adding an admin

  1. Start and join your server. After joining, press Enter to open chat.
  2. Type /admin_login YOURPASSWORD and press Enter.
  3. A message says you're logged in as admin.

Admin commands

Command Description
/snapshot
/statdump
Writes a snapshot of the world to the log, including object counts and other performance data.
/server_kick <player> <reason>
/gtfo <player> <reason>
Kicks a player from the server for the reason you give. The player sees the reason.
/server_ban <player> <reason>
/ban <player> <reason>
Bans a player from the server forever, and kicks them at once if they're online. The player sees the reason each time they try to log in again.
/server_unban <player>
/unban <player>
Unbans a player from the server, so they can log in and play again.
/whois <player> Shows information about the player, even if they're offline, including their Steam ID to identify them outside the game.
/admin_delete <player>
/wipe <player>
Deletes the character from the server. An online player is kicked at once. Admins can delete their own characters with this command.
/admin_login <password>
/iamgod <password>
Logs you in as an admin. With the right password, you can run all cheat commands and admin commands.
/admin_update <new_password> Sets a new admin password. It's saved to the settings file and works at once. All other admins lose admin and must log in again with the new password. If someone who shouldn't have admin runs this and locks out the real admins, stop the server, change the password in the settings file and start it again.
/admin_logout Removes your admin at once. Log in again with the right password to get it back.
/admin_autosave Saves all online characters and the world right away. Normally the game autosaves on a timer (every 10 minutes).
/cinecam Hides your character model, turns on smooth cam and toggles ghost.
/smoothcam Makes the camera turn smoothly toward the way your character faces.
/smoothness Changes how smooth the smoothcam is. Values run from 0.5 to 5.
/togglemeshes Hides or shows your first-person view model. Useful for recording.
/fly Turns cheat flying on or off. It uses no mana, and you can change its speed. (Disabled)
/ghost Same as fly, but you pass through things. (Disabled)
/flightspeed Changes your flight speed when cheat flying.
/admin_startstats Starts recording a stat profile on the server for performance checks. These files grow large fast, so don't leave it recording for hours or days.
/admin_stopstats End recording of a stat profile on the server.

Cheat commands

Command Description
/setname <newname> Changes your player name. Names can be up to 12 characters, with no spaces, banned characters or offensive language.
/givexp <amount> Gives you that much XP, which can raise you one or more levels. The limit is 0 to 10000 per command.
/giveresources <amount> Gives you that amount of each resource (wood, stone, rune energy). The limit is 0 to 1000 per command.
/resources Gives 10000 of each resource type (wood, stone, rune energy).
/givewood <amount> Gives you that amount of wood. The limit is 0 to 1000 per command.
/givestone <amount> Gives you that amount of stone. The limit is 0 to 1000 per command.
/giverune <amount> Gives you that amount of rune. The limit is 0 to 1000 per command.
/givespell <spell indices> Grants the player one or more spells in the game using the spell index from the Spell data table. (Unknown at this time)
/giveitem <item index> <amount> <Stat Range> Grants the player one or more items in the game using the item index from the Item data tables.
/giveallitems
/christmasmorning
/xmasmorning
Gives you one of every item in the game's ItemTable, and first raises your carry limit so you can carry it all.
/knowitall Learns everything that can be learned in the game.
/spawnnpc <npc name> <amount> <level> Spawns an NPC of that type near you. Amount and level are optional and both start at ‘1’. NPC names are all lowercase with no spaces, and are listed in the Monster data tables.
/regen Regenerates your current health and mana pools to full.
/settime <value> Sets the time of day, from 0 to 2400 (0 and 2400 are midnight, 1200 is noon).
/teleport <player> Teleport next to the specified player.
/teleport <latitude> <longitude> Teleport to a specific point on the map.
/regrow
/gardener
/iamadruid
Regrows every harvested resource in the world at once. Normally the game checks for regrowth about every 15 minutes. Most resources take several hours to return, and don't return while players or AI are nearby or something is built on top. This cheat regrows them all at once, except those blocked by buildings.
/suicide
/seppuku
/harakiri
Kills you at once with 1.0e+32 environmental damage, so all damage effects still trigger as normal.
/invincible <amount>
/superman <amount>
Sets your base damage reduction from 0 to 100%, then updates your stats. With no amount, it uses 100%.
/Masterbuilder Lets you delete walls and build for free

Rent a Citadel: Forged With Fire server from Survival Servers and be online in minutes.