Testing Content in the Game

Overview

This section will go over how to test content in Atlas PIE (Play-In-Editor).

Best Practices

To trigger content while playing the game you usually need to use ‘Cheat Codes’. These are typed in at the command prompt that comes up when you hit the tilde (‘`’) key in the top left of your keyboard.

Things to take note of before testing content:

  • You should always test your content in an actual playable level for all times of day to make sure the lighting is good during the day and night (not too bright at night, etc.). To do this you need to use this cheat code where the time is in the military form and can go up to 24:00:
    • cheat settimeofday 12:00
  • To avoid your character from getting attacked by creatures or NPC players or having health issues due to cold/hunger/etc use these cheat codes
    • cheat leavemealone
    • cheat setinfinitestats
  • Tame the ocean- often the Ocean’s waves are too big for testing on a platform or on a ship, so you can change the wave’s heights by changing the wind. The value goes from 1 to 15, where 1 is glass smooth Ocean and 15 is huge ‘Act of God’ waves.
    • cheat setwind 3
  • Sometimes you want to be able to watch the game from any viewpoint without interaction. To do this, enter spectator mode:
    • cheat enablespectator

Often you need to spawn something else first to test your content. Like for Cannon shot you might need to spawn a boat and then spawn a cannon on it. So some of the examples below will need to be used in combination to do what you want to do.

Spawn FX

Spawn a Ship

To create a boat it is best to type in this Cheat Code to fly out over the water:

  • cheat fly

To walk on the Boat again, fly down near the top deck and enter this cheat code:

  • cheat walk

Once you are over the water in a good, spot type this to create each type of ship:

  • Brig
    • cheat spawnshipfast “brig”
  • Schooner
    • cheat spawnshipfast “schoo”
  • Sloop
    • cheat spawnshipfast “sloop”
  • Dinghy
    • cheat spawnshipfast “ding”
  • Raft
    • cheat spawnshipfast “raft”
  • Galleon
    • cheat spawnshipfast “gall”
  • AoD Ship
    • cheat spawnactor “Blueprint’/Game/Atlas/AtlasCoreBP/AI/ShipNPC_Brig.ShipNPC_Brig’” 4000 0 0
    • If you have a Brig or other ship in the ocean the AoD ship will start firing at you automatically

To spawn ships to sail easily to test wakes and be able to orbit around to test FX, etc:

  • cheat ssf “brig” (or “gall”/”schoo”/”sloop”, “ding”, “raft”…)
  • cheat setignorewind true
  • spacebar to open sails (edited)
  • z to close sails
  • K to orbit cam
  • Mousewheel down to zoom out

Swivel Cannon

Once you have created a boat, you need to mount a Swivel Cannon on it. This is usually accomplished by hitting a function key or a Num key or some combination with Shift and a Function key.

Once your Swivel Cannon is created, use these cheat codes to get Ammo for Grapeshot.

  • cheat gfi “grapeshot” 20 1 0
  • cheat giveitem “/Game/YARK/ShipCombat/Test_Christian/PrimalItemAmmo_GrapeShot.PrimalItemAmmo_GrapeShot” 10 0 0 false

Mount and Fire: To fire you must ‘mount’ the Cannon by moving close to it and looking down, and then hitting the ‘e’ key to mount. You fire by hitting the left mouse once button to load and then once to fire. Repeat to keep firing.

Canister Shot

  • use cheat gfi canistershot 50 1 0
  • Hold E at the swivel gun and select change ammo type to canistershot
  • mount the swivel gun and fire as noted above

Barshot

  • use cheat gfi barshot 50 1 0
  • Hold E at the swivel gun and select change ammo type to canistershot
  • mount the swivel gun and fire as noted above

Another method someone else posted:

  • For Testing Swivel cannon in Test Level on TRUNK: Spawn cheat structure box (F8). Grab Primal Wood floor and primal wood wall. Place a few wood floors and select & place 1/2 walls (press T to select 1/2 wall option from menu- lower lft screen). Spawn and place swivel cannon on the 1/2 wall (shift F6). Again, Swivel gun uses grapeshot and canister shot

Cannon

  • Cannon
    • To get a cannon
      • cheat gfi “shipcannon” 1 1 0
    • to get cannon ammo
      • cheat gfi “cannon” 50 1 0
  • Barshot
    • To get BarShot Ammo
      • cheat gfi “barshot” 50 1 0
    • place cannon, get on cannon, hit shift to change active ammo type to barshot
    • To do a Large Cannon, use shipcannon_large
  • SpikeShot
    • cheat gfi “spikeshot” 50 1 0
    • place cannon, get on cannon, hit shift to change active ammo type to spikeshot

Mortar

The Mortar doesn’t require a ship so could be spawned on land or on a ship

  • Mortar:
    • cheat giveitem “Blueprint’/Game/YARK/ShipCombat/Test_Christian/PrimalItemStructure_ShipMortar.PrimalItemStructure_ShipMortar’” 1 0 0
  • Ammo:
    • cheat giveitem “Blueprint’/Game/Atlas/Weapons/Mortar/MortarAmmo/PrimalItemAmmo_MortarShot.PrimalItemAmmo_MortarShot’” 1 0 0

Pistols

  • Blueprint’/Game/YARK/CoreBlueprints/Items/PrimalItem_YarkWeaponDualPistols.PrimalItem_YarkWeaponDualPistols’
  • Get a few of those and put them in hotbar
  • Equip two
  • Then LMB and RMB will shoot so you can see the effect

Bow

  • cheat giveitem “/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponBow.PrimalItem_WeaponBow” 1 0 0 false | cheat giveitem “/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItemAmmo_ArrowStone.PrimalItemAmmo_ArrowStone” 10 0 0 false

Power Hit

  • To use Power Hit
    • “cheat giveengrams” and then ctrl + 3

Two Handed Mace

  • cheat giveitem “/Game/Atlas/Weapons/TwoHandedMace/PrimalItem_TwoHandedMace.PrimalItem_TwoHandedMace” 1 0 0 false

Sword

  • Cheat giveitem “/Game/YARK/CoreBlueprints/Weapons/PrimalItem_YarkWeaponSword.PrimalItem_YarkWeaponSword” 1 0 0 false
  • You can also go to any inventory item blueprint (PrimalItem_YarkWeaponSword) and right click it and say give item ingame

Sextant

  • cheat giveitem “/Game/Atlas/Weapons/Sextant/PrimalItem_WeaponSextant.PrimalItem_WeaponSextant” 1 0 0 false
    • Hold right click to start using the sextant

Compass Visual Marker

To spawn a compass use this cheat code:

  • cheat giveitem “Blueprint’/Game/PrimalEarth/Test/PrimalItem_WeaponCompass.PrimalItem_WeaponCompass’” 1 0 false
  • Then click ‘r’ or middle mouse button to get the Compass Visual Marker to come up

Human NPC

Spawn Human NPC to fight you and test block FX.

  • To get a sword use this cheat:
    • cheat giveitem “/Game/YARK/CoreBlueprints/Weapons/PrimalItem_YarkWeaponSword.PrimalItem_YarkWeaponSword” 1 0 0 false
  • cheat spawnactor “/Game/Atlas/Test/HumanNPC_BP_Male_NewMelee.HumanNPC_BP_Male_NewMelee” 0 200 0 0
  • Block with alt+LMB or alt+RMB (will block an attack from the left or right respectively)
  • Block with either the sword or the fists and see the effect
  • U and Y toggle between FPV and TPV
  • Here is another way to spawn an NPC, but I can’t remember what I used this for
    • cheat spawnactortamed “Blueprint’/Game/Atlas/Test/HumanNPC_BP_Crew_Male.HumanNPC_BP_Crew_Male’” 200 1 0

Skeleton

  • climbs out of the ground and fights
  • cheat spawnactor “Blueprint’/Game/Atlas/Test/HumanNPC_BP_Enemy_Melee.HumanNPC_BP_Enemy_Melee’” 400 0 -80

Treasure/Shovel & Digging

  • Start editor from GameEditor_SeamlessOcean_Single.bat
  • Play
  • cheat givetreasuremap 1
  • cheat giveitem “Blueprint’/Game/Atlas/Weapons/Shovel/PrimalItem_WeaponShovel.PrimalItem_WeaponShovel’” 1 1 0 false
  • cheat leavemealone
  • Equip shovel and treasure map from inventory into hotbar (edited)
  • Cheat fly and look for the glowing column on the same island
  • Equip shovel, look at ground and press lmb
  • Cnce you are set up you can leave pie running though if you just iterate on fx
  • Use cheat givetreasuremap 1 again to get another map for the same island (edited)

Cyclone FX

Load the Ocean Map and an Island level and hit play (the Cyclone doesn’t seem to work with the ‘Auto Play’ technique or on a Test Map). Then fly far away from the island and spawn a boat far away from land. Cheat walk to get onto the boat and enter these cheat codes to get the bad weather to ramp up and the Cyclones to start:

  • cheat ce daycycle startrain
  • cheat slomo 100
  • Once you see the Cyclones starting enter:
    • cheat slomo 1
  • Takes a little time to ramp up

Ship Scaffolding

  • press F9 to place the small shipyard
  • cheat setwind 1 (I dont like waves)
  • cheat gfi wood 100 1 0
  • put wood in shipyard (press E on it, and you will open its inventory and inside you will see the blueprints to build the ships)
  • cheat fly
  • go to ship yard, build a ship (this will spawn the hull and scaffolding)
  • hold E on the shipyard and select the demolish ship option

Water Bucket

  • cheat giveitem “Blueprint’/Game/Atlas/Weapons/Bucket/PrimalItem_WeaponBucket.PrimalItem_WeaponBucket’” 1 1 0
    • (equip bucket, fill up in water with LMB, 2x for full)

Oil Jar Fire

  • cheat giveitem “Blueprint’/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_OilJarNew.PrimalItem_OilJarNew’” 5 0 0 | cheat gfi flame 10 0 0 | cheat gfi bow 1 0 0

Kraken

  • load Ocean.umap
  • load sublevel - endboss
  • make sure “Run dedicated server” is checked
  • Launch the game
  • “cheat ghost” to stop falling
  • cheat ce startboss (spawns the Kraken)

GhostShip

  • cheat ssf ghost
  • cheat settimeofday 23:59
  • two times
  • should start to fade in then
  • if you do cheat settimeofday 23:59 again it should fade out

Spawn random Crew

  • cheat spawnactortamed “Blueprint’/Game/Atlas/Test/HumanNPC_BP_Crew_Male.HumanNPC_BP_Crew_Male’” 200 1 0

Misc Commands

  • Cheat SetWind ## (1-15) Changes the wind and wave speed. Higher is greater. 0 resets it to the default server random cycling.
  • Cheat Slomo ## (0.01 - 15) Changes server speed, 0.1 is 1/10th speed, 10 is 10x speed.
  • Cheat SSF Ding Spawns a Dinghy / Rowboat for fast iteration.
  • Cheat SSF Sloop Spawns a Sloop ship with some structures pre-placed for faster iteration.
  • Cheat SSF Schoon Spawns a Schooner ship with some structures pre-placed for faster iteration.
  • Cheat SSF Brig Spawns a Brigantine ship with some structures pre-placed for faster iteration.
  • Cheat SSF Gall Spawns a Galleon ship with some structures pre-placed for faster iteration.
  • “Cheat SDF Crew_M 1” Spawn NPC Crew for your ship. The _M is necessary or you will get Ken doll versions.
  • Good startup equip command - copy/paste this:
  • cheat giveitem “/Game/Atlas/Weapons/GrapplingHook/PrimalItem_WeaponGrapplingHook.PrimalItem_WeaponGrapplingHook” 1 0 0 | cheat giveitem “/Game/Atlas/Weapons/RepairHammer/PrimalItem_WeaponRepairHammer.PrimalItem_WeaponRepairHammer” 1 0 0 | cheat giveitem “Blueprint’/Game/PrimalEarth/Test/PrimalItem_WeaponSpyglass.PrimalItem_WeaponSpyglass’” 1 1 0 | cheat giveitem “/Game/YARK/CoreBlueprints/Weapons/PrimalItem_YarkWeaponSword.PrimalItem_YarkWeaponSword” 1 0 0 | cheat giveitem “/Game/YARK/CoreBlueprints/Items/PrimalItemArmor_YarkWoodShield.PrimalItemArmor_YarkWoodShield” 1 0 0 | cheat giveitem “Blueprint’/Game/Atlas/Weapons/Shovel/PrimalItem_WeaponShovel.PrimalItem_WeaponShovel’” 1 1 0 | cheat giveitem “/Game/YARK/CoreBlueprints/Items/PrimalItem_YarkWeaponDualPistols.PrimalItem_YarkWeaponDualPistols” 4 0 0 false | cheat giveitem “/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItemAmmo_SimpleBullet.PrimalItemAmmo_SimpleBullet” 10 0 0 false