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 toStartupFullscreen=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 toFullscreenViewportX=Number (width in pixels) FullscreenViewportY=Number (height in pixels)
Changing screen resolution in windowed mode: replace in 2 places
WindowedViewportX=640 WindowedViewportY=480
change toWindowedViewportX=Number (width in pixels) WindowedViewportY=Number (height in pixels)
Changing color depth: replace in 2 places
Use16bit=True and Use16bitTextures=True
change toUse16bit=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):
Path | Hint |
---|---|
Disk:\Path_to_file\hppoa.exe -log | If the full file name has no spaces. |
"Disk:\Path to file\hppoa.exe" -log | If 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:
Path | Hint |
---|---|
Disk:\Path_to_file\hppoa.exe -log | If the full file name has no spaces. |
"Disk:\Path to file\hppoa.exe" -log | If 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 😉
Command | Example | Description |
---|---|---|
open | open HP3_BeanBonus.unr | Run the level from the maps folder. |
relaunch | relaunch | Shutting down the game |
exit | exit | Shutting down the game |
quit | quit | Shutting down the game |
get | get <package>.<class_name> <property> | Gets the value of a class property |
stat all | stat all | statistics, excluding animations. |
stat none | stat none | Turn off all statistics |
stat default | stat default | by default |
stat reset | stat reset | Disable all messages except STAT FPS |
stat anim | stat anim | Toggle animation statistics for all characters |
stat audio | stat audio | Show sound statistics. |
stat fps | stat fps | Enable or disable display of current and average frames per second |
stat game | stat game | Toggle game engine statistics |
stat hardware | stat hardware | Enable/disable display of hardware accelerator statistics |
stat render | stat render | Statistics on visualization On/Off |
preferences | preferences | show Additional settings window |
set | set <package>.<class_name> <property> <value> | set property attributes for the specified class |
flush | flush | Resetting all game parameters, clearing cache, reloading textures and recalculating lighting. |
editactor | editactor class=harry | First, switch the game to windowed mode. Calls up the active character’s properties settings panel |
editdefault | editdefault class=harry | Same as EDITACTOR, but you can change the default property values for all characters of a given class. |
god | god | Invulnerability. Available in the main and additional consoles. |
ghost | ghost | Walk-through mode. Available in the additional console |
fly | fly | Flight mode. Available in the additional console |
walk | walk | Exiting ghost and flight modes (GHOST, FLY). Available in the additional console |
hideactors | hideactors | Hide actors. Available in additional console |
showactors | showactors | Show (return) actors. Available in additional console |
viewclass | viewclass <class_name> | Cyclically displays characters of a given class |
showall | showall | shows all paths, triggers, etc. |
cancel | cancel | hm… |
demoplay | DEMOPLAY <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. |
DEMOREC | DEMOREC <file_name> | record walkthrough to <file_name> |
STOPDEMO | STOPDEMO | stop recording or playing a demo walkthrough |
pausesounds | pausesounds | pauses all sounds |
unpausesounds | unpausesounds | resume playing sounds |
gamma | gamma | change gamma level |
Commands sent by harry potter (Auror). Checked randomly
Command | Example | Description |
---|---|---|
SwitchControlToPawn1 | SwitchControlToPawn harry | Give control to Harry. Only in the additional console |
SwitchControlToPawn | SwitchControlToPawn ron | Give 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, hippogriff | SwitchControlToPawn name | Give control to… Only in the additional console |
JacobsLadder | JacobsLadder | The character shakes his head |
RestartLevel | RestartLevel | Restart level |
PlayersOnly | PlayersOnly | Remove all creatures |
KillAll | KillAll creatures | Убрать всех существ |
ShowDevMenu | ShowDevMenu | View special menu (resembles the level list from HP2) |
DeleteCam | DeleteCam | Enable/disable camera flight mode, like in HP2 |
GiveCurrency | GiveCurrency | Get Pumpkin Cookies, Magic Cupcakes, and Candy Beans at the same time. |
GiveAllPP | GiveAllPP | Get all passwords |
GiveAllShields | GiveAllShields | Get all shields in the workshop |
GiveAllWC | GiveAllWC | Get all the magic cards |
summon hgame.wizardcracker | Place magic firecrackers in front of you | |
summon hgame.FireCrabAttackFire | Place a firecrab fire in front of you | |
summon hgame.LumosWandEmitter | Place 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 timerrate | Changes the time spent in the prize room (for user.ini) | |
summon HGame.imp|causeevent imp|SwitchControlToPawn imp | Changing 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 crookshanks | turns into a Crookshanks (CrisZ03, for user.ini). | |
summon hgame.blackdog|switchcontroltopawn blackdog | transforms 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.5 | weird 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) | |
quicksave | save game | |
quickload | load the game | |
Focuson | turn on focus | |
Focusoff | turn off focus | |
GameSpeedDown | The game speed is slower | |
GameSpeedUp | The game speed is higher | |
PlayBack 2 | Camera Shake Mode (Unplayable) (for user.ini, additional console) | |
record 2 | Exit 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
Example | Description |
---|---|
SwitchControlToPawn siriusdog | Give control to Sirius Black in the level HP3_WhompingWillow.unr (Willow). Additional console |
SwitchControlToPawn werewolf | Give 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.
- Type killall in it.
- Then summon hgame.
- Then SwitchControlToPawn
- Then, for example:
- killall dumbledore
- then summon hgame.dumbledore
- then SwitchControlToPawn dumbledore
- 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
- From SwitchControlToPawn (harry, ron, hermione) to set beanbonusgame timerrate — thanks to visitor harry potter (Auror)
- CrisZ03 — the same line in the table 😉
- Potteroman