Codes for the game «HP and the Prisoner of Azkaban» for PC

EN PL RU +

This article lists known codes for the computer version of «The Prisoner of Azkaban.»

Remember, to successfully use the codes, you need to know how to work with the command line; otherwise, this article may raise questions that are hard to answer without getting completely confused. 😉

Let’s start!

1. To enter codes, launch the game in debug mode. You can do this in the properties of the game shortcut or via the Windows command line.

2. Before the manipulations below, switch the game to windowed mode. For example, using this software or by disabling fullscreen mode in the hppoa.ini configuration file (similar to what we did for the Chamber of Secrets). If you don’t do this, you won’t see the console windows. 😉

3. Switch between windows using the key combination ALT + TAB

Windowed mode and non-standard screen resolution

The game developers didn’t think to add a windowed mode, but the game engine supports it.

Alohomora!

Open the hppoa.inifile, which is located in the game saves folder:

  • Windows XP: My Documents\Harry Potter and the Prisoner of Azkaban
  • Windows Vista/7/8/8.1/10/11: Documents\Harry Potter and the Prisoner of Azkaban

Switching the game to windowed mode: replace in 2 places

StartupFullscreen=True
change to
StartupFullscreen=False
To return to full-screen mode, just change False to True in the same two lines.

Changing screen resolution in fullscreen mode: replace in 2 places

FullscreenViewportX=640 FullscreenViewportY=480
change to
FullscreenViewportX=Number (width in pixels) FullscreenViewportY=Number (height in pixels)

Changing screen resolution in windowed mode: replace in 2 places

WindowedViewportX=640 WindowedViewportY=480
change to
WindowedViewportX=Number (width in pixels) WindowedViewportY=Number (height in pixels)

Changing color depth: replace in 2 places

Use16bit=True and Use16bitTextures=True
change to
Use16bit=False and Use16bitTextures=False

After changing the color depth from 16 to 32 bits, the game usually stops lagging under Windows 8/10.

After making all the changes, save the file and assign it the «Read Only» attribute, otherwise the game will overwrite it and reset your settings.


Unlock the console

1. Modifying the shortcut. To implement this method, do the following:

1) Make a copy of the game launch shortcut and rename it (e.g., «Prisoner of Azkaban. Debug»);

2) Right-click on the shortcut and select «Properties» from the dropdown menu;

3) In the window that appears, select the «Shortcut» tab;

4) Find the text field to the right of the «Target» label;

5) After hppoa.exe, add -log with a space.

Examples of modified paths (if there are spaces in the path, quotes are required):

PathHint
Disk:\Path_to_file\hppoa.exe -logIf the full file name has no spaces.
"Disk:\Path to file\hppoa.exe" -logIf the full file name has spaces.

Alternative and unusual recommendations from Professor (Tushkanchik) can be found in the hidden area.

Secrets of Professor (Tushkanchik)

Probably everyone is already tired of calling the developer mode (debug) by opening the game via -log and entering the command…

But there is a much simpler way 😉

=====================================

1. Remove the «Read Only» attribute from the User.ini file

2. We write the following code on the key (any):

set kwgame.kwversion bdebugenabled true

(Yes, yes, that very one 😉 )

3. Put the «Read Only» attribute back 🙂

4. Press this key during the game 😉

=====================================

The method is simple, like everything ingenious 😉

Now I’m thinking about setting up the config for even greater convenience. 😉

And also… If you press in developer mode F2, then the debug menu will open, which is responsible for cut scenes, display, screen size, etc. 😉

2. Launching from the Windows command line. To implement this method, do the following:

1) Use the key combination Windows + R;

2) In the window that appears, type or paste the full path to the game executable with the -log key and press Enter or the ОК screen button..

If there are spaces in the file name, the path must be enclosed in double quotes (the quotes must be «programmer’s,» inserted using the key combination SHIFT + ' on the English US keyboard layout).

Examples of commands:

PathHint
Disk:\Path_to_file\hppoa.exe -logIf the full file name has no spaces.
"Disk:\Path to file\hppoa.exe" -logIf the full file name has spaces.

Entering commands.

Commands are entered in the game console window that opens with the game.

You should enter them after loading any level, as otherwise, the game process will start with the menu in the foreground. If this happens, just tell the game you want to continue.

A simpler way for you to launch the game in this mode is expected in version 1.3 of our program «HP and your computer.»

Commands:

To enter some commands, you need to unlock an additional console. To do this, enter the following text in the main console:

set kwgame.kwversion bdebugenabled true

To call the additional console, use the key ~. You can close it by pressing the Esc key. Both consoles are not equivalent: some commands are not accepted by the main one, only in the additional one.

Alohomora!

You use all the commands below at your own risk. That is, if you do something wrong, our site has nothing to do with it 😉

CommandExampleDescription
openopen HP3_BeanBonus.unrRun the level from the maps folder.
relaunchrelaunchShutting down the game
exitexitShutting down the game
quitquitShutting down the game
getget <package>.<class_name> <property>Gets the value of a class property
stat allstat allstatistics, excluding animations.
stat nonestat noneTurn off all statistics
stat defaultstat defaultby default
stat resetstat resetDisable all messages except STAT FPS
stat animstat animToggle animation statistics for all characters
stat audiostat audioShow sound statistics.
stat fpsstat fpsEnable or disable display of current and average frames per second
stat gamestat gameToggle game engine statistics
stat hardwarestat hardwareEnable/disable display of hardware accelerator statistics
stat renderstat renderStatistics on visualization On/Off
preferencespreferencesshow Additional settings window
setset <package>.<class_name> <property> <value>set property attributes for the specified class
flushflushResetting all game parameters, clearing cache, reloading textures and recalculating lighting.
editactoreditactor class=harryFirst, switch the game to windowed mode. Calls up the active character’s properties settings panel
editdefaulteditdefault class=harrySame as EDITACTOR, but you can change the default property values ​​for all characters of a given class.
godgodInvulnerability. Available in the main and additional consoles.
ghostghostWalk-through mode. Available in the additional console
flyflyFlight mode. Available in the additional console
walkwalkExiting ghost and flight modes (GHOST, FLY). Available in the additional console
hideactorshideactorsHide actors. Available in additional console
showactorsshowactorsShow (return) actors. Available in additional console
viewclassviewclass <class_name>Cyclically displays characters of a given class
showallshowallshows all paths, triggers, etc.
cancelcancelhm…
demoplayDEMOPLAY <file_name> [?noframecap] [?timebased] [?3rdperson]plays a recorded demo playthrough. Example: demoplay mydemo?3rdperson?timebased. ?noframecap — allows you to play the recording backwards and as fast as possible. Works when timedemo is set to 1. ?timebased — gives a smoother playback. If the playback is too slow (compared to the real speed of the playthrough). ?3rdperson — allows you to fly around the main character as a spectator. Also allows you to view the recording from the bots’ point of view.
DEMORECDEMOREC <file_name>record walkthrough to <file_name>
STOPDEMOSTOPDEMOstop recording or playing a demo walkthrough
pausesoundspausesoundspauses all sounds
unpausesoundsunpausesoundsresume playing sounds
gammagammachange gamma level

Commands sent by harry potter (Auror). Checked randomly

CommandExampleDescription
SwitchControlToPawn1SwitchControlToPawn harryGive control to Harry. Only in the additional console
SwitchControlToPawnSwitchControlToPawn ronGive control to Ron. Only in the additional console
You can try using other characters, for example: hermione, neville, lupin, fred, george, crabbe, goyle, hagrid, sirius, scabbers, hippogriffSwitchControlToPawn nameGive control to… Only in the additional console
JacobsLadderJacobsLadderThe character shakes his head
RestartLevelRestartLevelRestart level
PlayersOnlyPlayersOnlyRemove all creatures
KillAllKillAll creaturesУбрать всех существ
ShowDevMenuShowDevMenuView special menu (resembles the level list from HP2)
DeleteCamDeleteCamEnable/disable camera flight mode, like in HP2
GiveCurrencyGiveCurrencyGet Pumpkin Cookies, Magic Cupcakes, and Candy Beans at the same time.
GiveAllPPGiveAllPPGet all passwords
GiveAllShieldsGiveAllShieldsGet all shields in the workshop
GiveAllWCGiveAllWCGet all the magic cards
summon hgame.wizardcrackerPlace magic firecrackers in front of you
summon hgame.FireCrabAttackFirePlace a firecrab fire in front of you
summon hgame.LumosWandEmitterPlace a magic light cracker in front of you
summon hgame.dementorboss|causeevent dementorboss|switchcontroltopawndementorboss|fly|The main character becomes a dementor (for user.ini)
summon hgame.flitwick|switchcontroltopawn flitwick|The main character becomes Professor Flitwick (for user.ini)
summon hgame.dumbledore|SwitchControlToPawn dumbledore|The main character becomes Professor Dumbledore (for user.ini)
summon hgame.mcconagall|SwitchControlToPawn mcconagall|The main character becomes Professor McGonagall (for user.ini)
summon hgame.draco|SwitchControlToPawn draco|The main character becomes Draco Malfoy (for user.ini)
set beanbonusgame timerrateChanges the time spent in the prize room (for user.ini)
summon HGame.imp|causeevent imp|SwitchControlToPawn impChanging character to a imp (from visitor CrisZ03, for user.ini)
summon hgame.peeves|causeevent peeves|SwitchControlToPawn peeves|become Peeves (for user.ini)
summon hgame.firecrab|causeevent firecrab|SwitchControlToPawn firecrab|become a firecrab (for user.ini)
summon hgame.chestspawner|SwitchControlToPawn chestspawner|become a chest (for user.ini)
summon hgame.knightspawner|SwitchControlToPawn knightspawner|become armor (for user.ini)
summon hgame.armoirespwn|SwitchControlToPawn ArmoireSpwn|become a cabinet (for user.ini)
summon hgame.crookshanks|switchcontroltopawn crookshanksturns into a Crookshanks (CrisZ03, for user.ini).
summon hgame.blackdog|switchcontroltopawn blackdogtransforms into Sirius in the form of a dog (CrisZ03, for user.ini).
givemap|showmap|View map (for user.ini)
FOV 125 | CreateCameraEffect MotionBlur | slomo 0.5weird camera effect (for user.ini)
Set actor bhidden false|set hpcam bhidden true|set basecam bhidden true|quicksave|quickload|set hpherocontroller bhidden true|Show all actors on the map (for user.ini)
setgravity -800|slomo 1.0|Low gravity (for user.ini)
setgravity -110|slomo 0.6|High gravity (for user.ini)
quicksavesave game
quickloadload the game
Focusonturn on focus
Focusoffturn off focus
GameSpeedDownThe game speed is slower
GameSpeedUpThe game speed is higher
PlayBack 2Camera Shake Mode (Unplayable) (for user.ini, additional console)
record 2Exit PlayBack 2 mode (for user.ini, additional console)

1 The result of the character check from Neville to the Hypogriff was sent by a visitor Potteroman


Commands sent Mega Winner

ExampleDescription
SwitchControlToPawn siriusdogGive control to Sirius Black in the level HP3_WhompingWillow.unr (Willow). Additional console
SwitchControlToPawn werewolfGive control to Remus Lupin as a werewolf in the level HP3_WhompingWillow.unr (Willow). Additional console

Materials from the site were used: http://www.unrealadmin.org/

Instructions for changing characters from visitor harry potter (Auror)

All manipulations are performed in the user.ini file located in the save folder.

1. Append for any key: killall |summon hgame.|SwitchControlToPawn ||

2. For example: killall dumbledore|summon hgame.dumbledore|SwitchControlToPawn dumbledore|walk| and we turn into Dumbledore.

3. As usual, open properties.

4. Set Attributes: «Read-only.»

How to enter in the additional console.

  1. Type killall in it.
  2. Then summon hgame.
  3. Then SwitchControlToPawn
  4. Then, for example:
    1. killall dumbledore
    2. then summon hgame.dumbledore
    3. then SwitchControlToPawn dumbledore
    4. then walk and we turn into Dumbledore.

The character name is known using the command STAT ANIM

Value… this is what the character will be, for example: fly — character flies, ghost — character goes through walls, walk — character walks

Source: https://hp-games.net/codes-hp3#comment-38302


Collected materials: АlехeyMS

Special thanks to visitor Professor Tushkanchik for information on unlocking the command line. 🙂

Visitor contributions
  1. From SwitchControlToPawn (harry, ron, hermione) to set beanbonusgame timerrate — thanks to visitor harry potter (Auror)
  2. CrisZ03 — the same line in the table 😉
  3. Potteroman