Loading...
Beta Modpages Unclaimed

Thaumcraft 4 Tweaks

Scroll through aspect list with mouse wheel in research table, and other performance boosts

0 Likes
245652 Downloads
Created by gleee8

Description

This is an addon to the old mod Thaumcraft 4. It is not intended to be used with newer Thaumcraft 5/6. This addon also only runs on 1.7.10.

 

Scrolling Through Aspect List

 

The original function of this addon. This will allow you to scroll through the aspect list in the research table using the mouse wheel. No more clicking yay! The mod will tell you scrolling is enabled when you hover your mouse over any research note.

 

 

Scrolling Through Research Pages

 

This will allow you to scroll through the indiviual pages (the pages that have descripitive texts, recipes, arcane construct illustrations, etc) in the book using the mouse wheel. No more clicking yay!

 

 

Scaling up the thaumonomicon GUI

 

Change the browserScale option in .minecraft/config/tc4tweaks.cfg. 2.0 is suitable for 1920x1080 screens under normal gui scale, whereas 1.0 is the same as original. You may want to use a different value if you use another gui scale or resolution.

 

Thaumonomicon at 2.0 scale and 1080p

 

Fix focus NPE

 

If you 

  1. Equip a focus MyFocus from some TC4 addon
  2. Remove said addon from your game
  3. Congradulations! If you ever pick up this wand your game would **crash**.

 

This mod fixes this problem.

 

Sorting research tabs

 

The Basic Information tab is useful, but not useful enough that you want it to be the first tab in your book. This mod allows you to reorder these tabs at runtime via mod config menu. The sorting is fully functional and sort stuff in whatever order you want, but the GUI is a bit primitive. That clunky GUI will be improved Soon™.

 

Performance boost

 

Basically, this will somewhat remedy the client side lag in larger modpacks when you open arcane workbench.This should also alleviate the server lag created from some player crafting 64 items using an arcane workbench.

 

Throttling the GUI update

 

Version from 1.1.0 onwards allows you to throttle the Arcane Workbench crafting result update to once every X in game ticks. By default this is 4. You can set it longer if it doesn't seems to be effective enough. This value can be changed at runtime without restarting the client by accessing this mod's config GUI (Esc | Mod Options | Select TC4 Tweaks in the mod list | Config | general).

 

This will somewhat remedy the lag coming from wand recharging. Starting from version 1.2.0-beta2, this alone should be enough to fix this lag and *largely remove the need for more aggressive optimization* (as detailed below)

 

Other performance patch

 

A few random laggy code in TC4 is made more efficient. Most of them will affect client side performance (FPS) only, yet some of them do have an impact even on dedicated servers. Most of these server-affecting patches are targeting the arcane crafting lag. Version from 1.2.0-beta12 onwards add a new patch aimed to fix alchemical furnace lag. Version from 1.4.20 onwards will reduce lag caused by energised nodes checking if they can still see relay. In general, it is suggested to install this mod on dedicated servers. It will make a difference.

 

Please refer to Technical explaination section if you are curious about the exact detail.

 

More aggressive optimizations

 

Version from 1.2.0-beta1 onwards ships with an experimental opt-in feature that prevents the arcane workbench from functioning as a normal crafting table. This accounts for the bulk of lag in large modpacks. As you can probably see this is an optimization with some side effects. You are encouraged to try it in game to see how it'd work.

 

This feature can be conveniently turned on or off at runtime (i.e. no client restart needed) by accessing this mod's config GUI (Esc | Mod Options | Select TC4 Tweaks in the mod list | Config | general). As a precaution, the feature is enabled only if checkWorkbenchRecipes is set to false, not true!

 

Even though this sounds like a change that needs to be turned on at both side, it actually works just as good on client side, if the server disables this (or simply doesn't have this mod installed) while the client enables it. It is suggested to keep this feature off on dedicated servers, and turn it on at client side only.

 

Explaination of checkWorkbenchRecipes

 

Technical explaination

This section is intended for fellow developers to only. Please don't panic if it doesn't make sense to you

 

ALERT: This text is not frequently updated. Please refer to source code to check what's really happening.

 

  1.  ScanManager#generateItemHash(Item, int) will no longer create a million string. The hashCode will be computed directly. This conflicts with GT6's fix and will not function if GT6's loading plugin is detected. GT6's fix will take precedence. 
  2. ResearchCategories#getResearch(String) will use a HashMap now, instead of going over every research registered. This HashMap will be recomputed whenever the server starts. HashMap lookup will be disabled if the server haven't finished starting.
  3. A call hook is injected into TileMagicWorkbench#setInventorySlotContents(IInventory) on client side only. It will throttle the update to once per 200ms. If any update is dropped, a flag will be set. A tick handler will then try to update once per X ticks (config value) in case of a missed update.
  4. FXSonic have its model changed to static and reloaded only upon resourcepack reload.
  5. In ThaumcraftCraftingManager findMatchingArcaneRecipe and findMatchingArcaneRecipeAspects got a simple LRU cache with configurable size (default to 16). Old entries will be evicted when cache is full.
  6. An Thread.currentThread().setPriority(1) is injected to the start of TC4's mapping thread. If the cache is hit somehow the priority will be reverted back to normal in an attempt to ease lock contention.
  7. GuiResearchRecipeVisitor was using synchronized methods and ConcurrentMap at the same time. synchronized is now removed. --- Should you have any problem using this addon, please send your questions to the github (click the Issues tab on top of this page). The comment section below is not monitored by me so your questions/feedback posted below probably won't reach me until I need to revise this description. Video trailer not yet available.
  8. In ThaumcraftCraftingManager getObjectTags got improved. See code for details.
  9. Huge amount of changes in GuiResearchBrowser. Consult net.glease.tc4tweak.asm.GuiResearchBrowserVisitor for details
  10. Most TESR are patched to not render stuff if the chunk is not yet fully loaded.

 

Special Thanks

(In chronological order of list entries were added, from earliest to latest)

  • KiloJoel, for reviewing and editing of an earlier version of this description
  • Aerospacee from GTNH Discord, for reviewing and editing of a machine translation for Russian.
  • eismcsquare, meganyan. from GTNH Discord, each for translating and/or reviewing machine translation of research browser completion counter text for Russian.
  • UnderscoreKilburn on github, for discovering the bug in advanced alchemic furance rendering code. original PR towards hodgepodge at https://github.com/GTNewHorizons/Hodgepodge/pull/304


AD Become Premium to remove Ads!

What means Verified?

  • Compatibility: The mod should be compatible with the latest version of Minecraft and be clearly labeled with its supported versions.
  • Functionality: The mod should work as advertised and not cause any game-breaking bugs or crashes.
  • Security: The mod should not contain any malicious code or attempts to steal personal information.
  • Performance: The mod should not cause a significant decrease in the game's performance, such as by causing lag or reducing frame rates.
  • Originality: The mod should be original and not a copy of someone else's work.
  • Up-to-date: The mod should be regularly updated to fix bugs, improve performance, and maintain compatibility with the latest version of Minecraft.
  • Support: The mod should have an active developer who provides support and troubleshooting assistance to users.
  • License: The mod should be released under a clear and open source license that allows others to use, modify, and redistribute the code.
  • Documentation: The mod should come with clear and detailed documentation on how to install and use it.

AD Become Premium to remove Ads!

How to Install

1

Download Forge & Java

Download Forge from the offical Site or here. If you dont have Java installed then install it now from here. After Downloading Forge you can run the file with Java.

2

Prepare

Lounch Minecraft and select your Forge istallation as Version this will create a Folder called Mods.

3

Add Mods

Type Win+R and type %appdata% and open the .minecraft Folder. There will you find your Folder called Mods. Place all Mods you want to play in this Folder

4

Enjoy

You are now Ready. Re-start your Game and start Playing.

More Mods like this

Automagy

An addon for Thaumcraft 4+5. Automation, Logistics, and Other Toys

Thaumic Periphery

An addon for Thaumcraft 6 that adds some cross-mod interaction, some baubles, and a few tweaks to existing features

Thaumic Horizons

Extends Thaumcraft's mechanics with creature infusion, essentia potions, and more!

Gadomancy

Another addon for Thaumcraft