This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Oose's profile picture

Thaumcraft Research Helper

Started by Oose, 20 January 2014 - 12:51 PM
Oose #1
Posted 20 January 2014 - 01:51 PM
This is an application I made to make using the Thaumcraft mod a bit easier. I'm not very good at remembering the aspects of magic in Thaumcraft so this application helps to make it a bit easier.

The graphical application lists out aspects of magic, with their descriptions and their recipes. The application requires an advanced computer. It's ordered alphabetically and colour coded. It shows it's own recipe, as well as the recipes of it's components. The aspects are programmed in using a form, so it doesn't spoil your thaumcraft experience. It's also convenient in case any more aspects are added to the mod, and you discover them. You can place a monitor on top of the computer and it'll display the recipe on the monitor. I've only tried it with 2 width, 1 height monitors. It's programmed in as top of the computer but you can change it by editing the side near the top of the code.

The form is pretty simple and was built after most of the main tool was complete. The directories of the aspect files are hardcoded, but it's written as the first lines of code in both application if you want to change them. The description of the aspect is optional. It can take a few minutes to program in all the aspects, but I didn't want the file to be static for everyone. The fun of Thaumcraft is discovering new things and I wouldn't want to ruin that. Colours of the theme are also in the application file, near the top of the code if you want to change it to match your own data.

Downloads on pastebin:
Thaumcraft Research Helper
http://pastebin.com/YBtPWJ5g
Aspect Entry Form
http://pastebin.com/dfULH8xZ

To use the programs:
Create a directory "thaumhelper" in the computer root.
Create directories "recipes" and "descriptions" in the "thaumhelper" directory.
Put the two applications anywhere on the computer to run them.

You'll need to program in the aspects manually, including the 6 primal aspects.

Heres a video showing how it works:
http://www.youtube.com/watch?v=wDh58hF79Sw
oeed #2
Posted 20 January 2014 - 06:53 PM
I haven't used Thaumcraft much really, but this looks amazing!

It looks really nice and easy to use, well done!
Symmetryc #3
Posted 20 January 2014 - 07:07 PM
Very nice :)/>

Btw, no need for colList, there is already an variable within default CC called "colors" which is the exact same thing :P/>
Oose #4
Posted 21 January 2014 - 04:04 AM
The colList was there for translating a string from the text file into a colour to be used by the program. I couldn't figure out how to get something like colors.lightBlue from a text file, except for storing it as an integer (which I didn't want to do).
oeed #5
Posted 21 January 2014 - 04:38 AM
The colList was there for translating a string from the text file into a colour to be used by the program. I couldn't figure out how to get something like colors.lightBlue from a text file, except for storing it as an integer (which I didn't want to do).
Fair enough. In future, however, you could try something along the lines of this. Not that there's really anything wrong with having a list though.


local yourColour = colours.red --the colour your wanting to get the name of
local colourName = 'black' --you could do something else, but as a fall back
for name, value in pairs(colours) do
    if value == yourColour then
	    colourName = name
	    break
    end
end
Symmetryc #6
Posted 21 January 2014 - 04:15 PM
The colList was there for translating a string from the text file into a colour to be used by the program. I couldn't figure out how to get something like colors.lightBlue from a text file, except for storing it as an integer (which I didn't want to do).
I'm not sure I quite understand what you're saying, but you could just use "color[line]" or "in pairs(color) do" over creating your own table.
Treyzania #7
Posted 20 February 2014 - 05:03 PM
*video*

This is probably one of the best tutorials for anything that I've seen in a long time. Also, this is a very, very well designed program.
Maxiride #8
Posted 09 April 2014 - 09:32 AM
This program is awesome, haven't seen a really usefull and well made program since a long time =)
Csstform #9
Posted 09 April 2014 - 11:25 PM
Yaaaaaaaaaay! Necro! But, nice program. It gives me ideas.