A trainer mod for Half Sword demo v0.3 (Steam release).
It gives you Invulnerability, Super Strength, configurable level of enemy NPCs, jumping, shooting, and the ability to spawn armour, weapons, NPCs and objects (and despawn them if you made a mistake), setting game speed and more. The mod also has a detailed HUD with player stats.
USE AT YOUR OWN RISK.
Compatibility with newer demo versions not guaranteed, and the older demo from itch.io
won't work.
The mod requires UE4SS (version 2.5.2 or 3.x.x as of now) to work.
The mod is written in Lua, so you can understand and modify its functionality.
Shortcut | Description |
---|---|
U |
Show/hide the UI (HUD) of the mod |
Alt + U |
Skip the death screen (only when dead) |
Ctrl + J |
Try to resurrect the player (only when dead) |
. |
Show/hide the crosshair |
I |
Toggle Invulnerability on/off |
T |
Toggle Super Strength on/off |
L |
Spawn a loadout around the player |
+ |
Increase the current level of enemies |
- |
Decrease the current level of enemies |
F1 |
Spawn selected Armor |
F2 |
Spawn selected Weapon |
F3 |
Spawn selected NPC |
F4 |
Spawn selected Object |
F5 |
Undo last spawn (can be repeated) |
F6 |
Despawn all NPCs |
B |
Spawn the Boss Arena fence around the player's location (only the fence) |
K |
Kill all NPCs currently on the map |
Z |
Freeze or unfreeze all NPCs currently on the map |
M |
Toggle Slow Motion mode |
[ |
Decrease game speed for Slow Motion |
] |
Increase game speed for Slow Motion |
Space |
Jump (at your own risk) |
Mouse Wheel Click | Shoot projectile |
Tab |
Change projectile to the next one |
Shift + Tab |
Change projectile to the previous one |
Ctrl + End |
Possess the NPC closest to player |
Ctrl + Home |
Possess the original player character |
NumPad 4/6/8/2 | Dash Left/Right/Forward/Backward |
* on NumPad |
Pause/Unpause the game. Use that in Photo Mode to have free cam in battle |
+ on NumPad |
Switch player team to the next one |
- on NumPad |
Switch player team to the previous one |
Delete |
Despawn the object in the center of screen (first person view is better) |
Ctrl + F |
Command all NPCs in the same team as player to go to the player location |
The mod has a custom UI that can be hidden when needed, and can also hide the crosshair (cursor).
The mod adds a HUD on top of the game on the left side of the screen to show you various player stats.
The mod adds a spawn menu on top of the game on the right side of the screen with some drop-down menus and buttons.
The mod also adds a few keyboard shortcuts to trigger its functions.
Increasing and decreasing the level with +
and -
will affect the level of the auto-spawned NPCs.
"SuperStrength" makes your attacks with any weapon a bit better.
Invulnerability does not need much explanation. Regeneration is also applied when Invulnerable.
Note that the game itself (not the mod!) makes your player invulnerable for a first few seconds during spawn (maybe to avoid dying due to physics of the game?), and then removes invulnerability.
Press +
or -
on NumPad to cycle the player between available teams (0, 1, 2).
You can select any team for the player or for NPCs you spawn.
The above can also be summarized as the following: the game treats everybody in Team 0 as "deathmatch", and Team 1 vs Team 2 is classic "team deathmatch".
You can either spawn a complete "chef's choice" loadout around yourself (press L
),
or, first, pause the game, select what you want in the drop-down menu on the right, and spawn each individual item.
Use the buttons on screen to spawn items while the game is paused, or use F1
- F4
to spawn the selected things in each category (armor, weapons, NPCs, objects) when the game is running.
Player's viewpoint direction is used to place the spawned object in the world. NPCs are placed a bit further than items.
When spawning NPCs, you can select which team to spawn them in. By default, the NPCs spawned from the mod are in Team 0 (deathmatch, everybody hostile to everybody including the player)
The on-screen spawn menu also has a custom weapon size slider. With the checkboxes X/Y/Z, select which coordinate axes you want to apply the scale to. Z is the top-bottom axis, X is the left-right and Y is the front-back. Scaling proportionately gives best results for comedic effect, but sometimes weapons become too thick to grab for the player. You also can toggle the "Blade scaling?" checkbox to apply the scaling factor only to the blade of the weapon (helps with grip problems, but may affect the balance of the weapon). Blade scaling only works for swords.
The names of objects in the on-screen spawn menu have been shortened for better readability.
To modify the pre-configured loadout that is spawnable with L
button, edit the custom_loadout.txt
text file in the data
subfolder of the mod:
Mods\HalfSwordTrainerMod\data\custom_loadout.txt
It contains the list of Unreal Engine class names that will be loaded. Look around in the files in the \data\
folder for examples. Note that these are full class names, not the shortened ones on-screen.
A default loadout is also hardcoded in the mod itself, in case the custom loadout file gets deleted.
You can also prefix the class names in custom loadout text file with the scaling factor, in round parentheses:
(5.0)/Game/Assets/Weapons/Blueprints/Built_Weapons/Buckler4.Buckler4_C
(1.0,5.0,1.0)/Game/Assets/Weapons/Blueprints/Built_Weapons/Buckler4.Buckler4_C
A single number in parentheses means equal scaling in all directions, three numbers is independent scaling in X,Y,Z order. The scale is optional, default scale is 1.0 == no scale.
Starting the line with the [BladeOnly]
tag means that only the blade of the weapon will be scaled, a behavior similar to the "Blade scaling?" flag in the mod UI:
[BladeOnly](2.0)/Game/Assets/Weapons/Blueprints/Built_Weapons/ModularWeaponBP_BastardSword.ModularWeaponBP_BastardSword_C
Use F5
or the on-screen button to undo the last spawned thing. It can be used repeatedly to undo many things.
If you want to find a particular random variant of some item, select it in the menu, then go unpause the game, and repeatedly press the corresponding
F1
-F4
button, and if you don't like it, pressF5
to undo.
You can use the Delete
key to also despawn almost anything under the center point of the screen.
First person mode works better for that. In the default third person view, the displayed crosshair is not in the center of the screen, so it is hard to find what you want to despawn. Use first-person view!
You can despawn weapons right from the NPC's hands or belts if you aim well enough!
Use K
or the on-screen button to kill all the NPCs that were spawned by the game or by you. May crash the game sometimes, but should work better now.
Use Z
the on-screen button to freeze/unfreeze all the NPCs that were spawned by the game or by you. Will not prevent new ones from spawning, or affect these new ones (until you try freezing/unfreezing them again).
Use M
to toggle Slow Motion mode, and [
and ]
to decrease and increase slow motion speed.
If Slow Motion is on, then the speed change will be applied immediately.
Otherwise, selected speed will be applied after Slow Motion is enabled
It may crash the game if you change the game speed too often or in the middle of a fight.
Use Space
to jump. There is a cooldown of 1 second to prevent flying into the sky and crashing down. Sometimes you may be able to jump higher, use at your own risk.
Jump does not work when the player is down on the ground.
Jump does not work well when changing the game speed.
This is not a "true" throwing of objects, but more like shooting or launching them for maximum damage.
Use mouse wheel (click) to shoot a projectile, and Tab
to change to next projectile type, Shift + Tab
for the previous projectile type.
Shooting is more accurate in first person view.
The projectiles are currently hardcoded in the mod to account for scaling, launch position and speed adjustments:
WARNING! Launching NPCs may lead to a crash soon.
WARNING! Launching large objects like full-size scythes, spears, greatswords, polearms, etc. can damage the player!
WARNING! Beware of ricochets!
Press Alt + U
to skip the death screen and unpause the game. You can still control the camera and enjoy the views, and apply the mod functions to the NPCs if needed.
Press Ctrl + J
to attempt to resurrect the player (after you removed the death screen, of course).
Having exploded head or being decapitated still appears to be fatal in the current version, as are some other injuries.
Resurrection may be repeated as needed.
NOTE: You may need to activate Invulnerability before or after that, as some injuries will drain the health / tonus / other stats and kill the player again.
NOTE: Resurrection is known to break some of the mod's functionality, use with caution.
WARNING! NPCs may continue attacking the dead player, so be prepared.
You can take control of other NPCs by "possessing" them
Press Ctrl + End
to possess the closest NPC to the currently possessed one, and Ctrl + Home
to jump back to the original player.
NOTE: Sometimes the NPC you possess may be bugged.
Enter Photo Mode (press C
), then enter free camera (press F
), then press *
on NumPad to unpause the game.
This allows you to use all filters and effects of the photo mode with the free camera while the battle is ongoing.
Together with player and NPC team selection and freezing NPCs on spawn or with a button (Z
), you can set up team battles in advance.
Press Ctrl + F
to command all NPCs of the same team to go to the player location. It often does not work, e.g. if the NPCs are busy with something (like looking at a half-dead enemy NPC from another team).
F10
or @
. It is useful to change video settings that are not exposed in Half Sword original UI.
.ini
files in
%LOCALAPPDATA%\HalfSwordUE5\Saved\Config\Windows\Engine.ini
or other config files in that folder (so most probably in C:\Users\%USERNAME%\AppData\Local\HalfSwordUE5\Saved\Config\Windows\
)Engine.ini
:
[SystemSettings]
r.fog=0
r.atmosphere=0
r.AntiAliasingMethod=1
No error handling whatsoever. Use at your own risk. It will crash the game at some point! Don't spawn too many things, or more than 10-15 NPCs, etc.
The mod's keybinds don't work if you keep holding down the game standard keybinds (like when running with A/W/S/D). Some keybinds have been modified to work while holding Shift
or Ctrl
, but may be unstable.
Auto-spawned NPCs and boss fights will keep spawning.
The custom loadout is spawned in the map, not on the player.
Freezing only freezes the bottom part of the NPCs, they can still use weapons on the player.
No ability to remove armor from the player.
No ability to modify the damage of your weapon or of NPC weapons yet.
No ability to spawn custom modular weapons yet (we spawn a random version).
No ability to un-glitch yourself (weapons stuck in slots, player body joints stuck in unnatural positions, etc.). Invulnerability helps, though.
No ability to fly (for jumping see above).
Possessing or un-possessing NPCs may leave them bugged.
Support the developers of Half Sword (https://halfswordgames.com/).
They have a Kickstarter campaign, currently at https://www.kickstarter.com/projects/halfsword/half-sword-gauntlet
Press Win + R
and execute the following command line:
taskkill /f /im HalfSwordUE5-Win64-Shipping.exe
This will kill the game, even if you cannot close it otherwise. In the worst case, reboot.
Make sure you can install UE4SS and make it work (confirm that it operates, check its logs, open its GUI console).
TBD. Try disabling mods one by one, until you find out what triggers the crash.
Also, try setting the following values in UE4SS-settings.ini
, in the folder where you installed UE4SS:
[EngineVersionOverride]
MajorVersion = 5
MinorVersion = 1
If the game is unplayable at all, disable UE4SS or reinstall the game (whatever is faster/easier).
Make sure UE4SS loads and observe its logs. It should mention HalfSwordTrainerMod
.
HalfSwordTrainerMod
.If you are on UE4SS 3.x.x, check that you have patched
BPModLoaderMod
as described in the installation instructions above.
That means that BPModLoaderMod
has worked correctly and loaded our Blueprint mod (that is the UI of the mod),
but the actual Lua mod named HalfSwordTrainerMod
can't work due to one of the possible reasons:
Mods
folder entirely, Mods\HalfSwordTrainerMod\scripts\
), Mods\mods.txt
, Check which of these things might have happened on your system, and also look inside UE4SS.log
and see if there are any error lines looking like [HalfSwordTrainerMod] [ERROR]
.
If you see:
HSTM UI version mismatch: mod version 0.x, HUD version 0.y
then you have copied different parts of the mod from different versions. Re-install the mod from the version you want as described above.
Unfortunately, this happens sometimes, usually a reboot helps.
That means that the BPModLoaderMod
did not work or could not find the Blueprint mod, and therefore did not load our Blueprint mod that is the UI,
while Lua mod named HalfSwordTrainerMod
succeeded.
BPModLoaderMod
probably couldn't work due to one of the possible reasons:
Mods
folder entirely, probably with all other folders out of the UE4SS packageMods\mods.txt
, LogicMods
folder is missing from \Half Sword Demo\HalfSwordUE5\Content\Paks
, or its contents are wrong (e.g. wrong version of Blueprints in LogicMods
, see above),Check which of these things might have happened on your system, and also look inside UE4SS.log
and see if there are any error lines saying something suspicious right after the line:
[2024-01-21 12:06:20] Starting Lua mod 'BPModLoaderMod'
If you suspect the fault is in the logic of this mod, you can try to disable or comment out the last suspicious thing that you used before the crash.
File an issue here, at https://github.com/massclown/HalfSwordTrainerMod/issues
File an issue here, at https://github.com/massclown/HalfSwordTrainerMod/issues
Distributed under the MIT License. See LICENSE
file for more information.
maf
, https://github.com/bjornbytes/maf which is used for vector rotation here.