Jacksen's Patches: Tensura
Patches for Tensura (That Time I Got Reincarnated as a Slime) mods: bug fixes, optimizations, and fixes that let older Tensura mods work with newer versions of the mods they rely on. No patch will run if the related mod is not installed, they do not contain the codebase but rather overwrites of certain methods to make them more efficient or deal with bugs. They will silently cancel if the requisite mod is not installed. Patches that reach into a mod's internals are written for a specific version of it. On newer versions they are checked against the installed mod at startup, and any part that no longer fits cancels itself (with a line in the log), even if it is enabled in the config, and thus will not impact gameplay negatively. On older versions they stay off. All patches are on by default. Do note some patches will cause minor visual changes in the name of optimization, and you can disable every patch individually (config/jacksentrpatches/modules.json).
Mods with fixes:
- ManasCore: its server-to-client config sync told config classes apart by short name only. So two mods with a same-named config class (Slime Throne Extras' and TR: Nightmare's MysticFoxConfig) overwrote each other on every join, which flipped values like Soul Beast EP back and forth. Configs are now matched by their full name.
- TensuraMoreSkills:
- Adaptability and Divine General Mahoraga gave mastery to every skill you held, including skills still being learned. That silently force-learned them at your Magicule and Aura expense. Skills being learned are now skipped.
- Kronairos, Lord of the Endless doubled your Magicule/Aura regeneration (and re-split your pools 50/50 every tick) instead of doubling EP gains as its description says. It now doubles increases to your max Magicule and Aura.
- Ascension: shadows that died were marked as summoned again during their death animation. That wiped the re-form cooldown and could leave shadows stuck as "summoned" forever, with summon and dismiss doing nothing. Dead shadows are now left alone.
- Tensura: GUI: when the book changes tab, the page about to turn showed the next tab for a frame or two first. It now shows the current page until the turn starts. Made for 0.5.8; newer versions are checked at startup.
- Tensura: All the Adventure: when Soul Memory can't restore a skill because you can't afford its Magicule cost, TATA tried again every second, flooding chat with "Failed to acquire…" for as long as you were online. It now waits until your max Magicule could pay for it, so you see the message once and the skill comes back as soon as you can afford it. Made for 0.0.0.5; newer versions are checked at startup.
- Elite Tensura: Hephaestus' ore sense redrew every ore box from scratch every frame. The boxes are now built once per rescan and replayed each frame. Same boxes, same look, better FPS.
- Tensura: Neo Otherworld (TNO): the heat-sense X-ray scanned its whole radius in a single frame once a second, causing a regular FPS drop. The scan is now spread over several frames within a time budget. Outlines may take a moment longer to update.
- Just Enough Everything + Tensura Boss Structure: while JEE builds its trade pages, the boss-map trade now gets a stand-in offer (same name, price and uses). Running it for real did a large structure search on every sample, freezing the server for about 2 seconds each time, and saved a junk map file each time. Real villager trades are untouched. Made for JEE 0.1.0-alpha.14; newer versions are checked at startup.
- Tensura RPG System: the skill shop re-checks every skill in the game (thousands in a big pack) for a player on every shop request, a few at a time, and sends nothing until it is done, so the RPG page's lists could take 30 seconds or more every time. Each player's results are now kept and sent at once, and only the skills a change affects are re-checked (learning or mastering a skill, affinities, copy analyses and so on). RPG System's own full re-check still runs in the background when something that affects every skill changes (settings, race, a reset), after purchases and refunds, and at most once a minute while the shop is in use. Saved with the world, so it stays fast after a restart; the very first build for a player is as slow as before. Server side (in single player, the built-in server). Made for RPG System 0.1.84 exactly; on any other version it stays off. Settings in
config/jacksentrpatches/rpg_shop_cache.json.
Compatibility fixes:
- Reliquified Twilight Forest + Tensura Lower: both change the same piece of item-in-hand rendering in a way only one of them can, which crashed the client at startup. Reliquified Twilight Forest's change is now done in a way that combines with Tensura Lower's, and the Giant Glove still works.
- Tensura: Bug Fixes on TR: Nightmare 1.0.6.5: Bug Fixes was built for TR: Nightmare 1.0.5, before TR moved almost every class. On 1.0.6.x one of its patches crashed the game at startup and most of its TR fixes silently did nothing. The crashing patch is cancelled, and the fixes whose code changed in TR are rewritten. The rest (54 fixes) only needed TR's new class names: those names are updated in memory while the game loads, in your own installed copy of Bug Fixes. Nothing is written to disk, no restart is needed after a Bug Fixes update, and this mod contains none of Bug Fixes' code. Each fix still obeys its own switch in Bug Fixes' config, and you can turn the in-memory update off with
retargetInMemoryinconfig/jacksentrpatches/bugfixes_trnightmare.json. Works on Bug Fixes 1.2.5 with TR: Nightmare 1.0.6.5. (Versions 1.0.1 and 1.1.0 of this mod wrote a separatemods/jacksentrpatches-bugfixport-generated.jarinstead; if you still have it, delete it.) This is an unofficial addon, not made or endorsed by Pixelated Industries; it needs Tensura: Bug Fixes installed. - Tensura: Bug Fixes and Tensura Rebalanced on TensuraMoreSkills 0.0.5: cancels the two patches that crash at startup on 0.0.5 (Ronova's Ally Sacrifice and Rebalanced's Phainon threshold), and carries Bug Fixes' Ronova protection over to 0.0.5's Finality. Finality then spares creative players, your teammates and allies, and players while PvP is off.
- Tensura Compat: Ice & Fire on Ice and Fire CE 2.1+: the compat mod was built for Ice and Fire 2.0. On 2.1 and newer, its Cold Nullification and its flame, ice and thunder breath patches would crash in play. They're replaced with versions written for the new Ice and Fire, with the same behaviour. A block removed from Ice and Fire no longer makes Tensura's unbreakable and unobtainable block tags fail to load.
- Tensura Plunder on TR: Nightmare 1.0.6.1+: Plunder adds a Mimicry mode and the stomach teleport to TR: Nightmare's Beelzebub and Azathoth, but aims at the class names TR used before 1.0.6.1, so they never appeared. They're added back on the current classes.
- Automatic mod switches for Tensura Rebalanced (Combined) and Tensura: Bug Fixes: Rebalanced stops the game at NeoForge's "Mod X requires Y" screen if you remove a mod that one of its parts needs while that part is still switched on, and Bug Fixes' switch for a removed mod stays on. Before any mod loads, the per-mod switches in both mods' configs are now turned off for mods that aren't installed (for Rebalanced, also mods outside the version range its part needs), and back on when you add the mod back. A switch you set to false yourself is never touched. What it changed is listed in
config/jacksentrpatches/auto_mod_switches_state.json, with backups of both files inconfig/jacksentrpatches/auto_mod_switches_backup/. - Dependency overrides: lets a mod load with a newer version of a mod it depends on, once the two have been checked to work together, without changing the mod's jar (NeoForge reads a copy of its mod info with only that one version range widened). Rules are in
config/jacksentrpatches/dependency_overrides.json; it comes with one: Tensura Compat: Fangs N' Claws 1.1.2 with Fangs 'n Claws 1.2.6.
Requires Jacksen Core. The fixes that cancel another mod's patch (the Reliquified Twilight Forest, Tensura: Bug Fixes, MoreSkills 0.0.5 and Ice and Fire fixes) also need MixinSquared, which many modpacks already include through AllTheLeaks.
Fair warning: AI was used heavily in the making of this. Considering most of the mods I wanted to add patches or integrations with other mods for were entirely AI generated, I do not think that is unreasonable.
Standard Boilerplate: No reposting, no directly modifying the original mod itself. However, if you want to make a separate addon that gives more functionality, overwrites some of what I did, updates the code to later version? Feel free! And anyone is free to use it in their modpack as well. If you find any bugs you want to report, or features you think I should add, or just want me to update it because I haven't checked the mod in a while, feel free to leave a comment!
If any mod maker whose code I made an add-on for wants to yoink that code, send me a message and I'll send you the source! Just let me know what you take for your mod when you decide to use it, or preferably even if you decide to do it better your own way, so I can remove that part from my mods!