Content: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Background: Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Pattern: Blank Waves Notes Sharp Wood Rockface Leather Honey Vertical Triangles
Welcome to TerraFirmaCraft Forums

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more! This message will be removed once you have signed in.

  • Announcements

    • Crysyn

      Only help if you can be helpful

      Hey All, A topic has come up of late in the IRC channel in regards to the general feel of the forums and the community that supports them. Things have progressed further than I would have liked with out this being addressed more publicly because I would much rather have snubbed this out sooner rather than later.. but I have been busy. Here is the general rule I would like people to follow: Wheaton's Law "Don't be a dick." Those of you from the IRC channel know that this is the only rule I ask people in there to follow and we generally have a good and lively time chatting about all manner of things. This is basic rule that just about everyone understands and I am going to expand it to the forums from here moving forward. If you can not help people in a helpful and polite manner then I simply ask you to stop. Now I generally take a back seat to moderating the forums as I like to participate in the suggestions forum fairly heavily at times and would rather do so as a forums user than a moderator. But I am also fairly well known for being the person who constantly puts their foot down and so I am stepping up and doing so on here. If you find yourself unable to respond to a message politely then I ask that you do not respond. This mostly focuses on the increasing level of hostility found within the Suggestion forum as well as the Server forum. I do not care if this is the 30th some odd time you have seen someone make the same suggestion. Or even if the new post on an older topic is one entry above the old one. I expect the members of this forum to respond politely to the user, new or old, and point to the older topic if it applies and even go the extra step to suggest they either add in new information or to summarize the outcome of the previous discussion based upon the new post's entry into it. That is what we are here for, that is why I close most topics instead of deleting them, so that they can be found and referenced down the road. The next topic is the slew of derailment attempts I have seen as of late. If you want to have fun and joke around that is what the off topic forum is for and pretty much anything goes there. I do not expect to read a suggestion thread and have to go through 3 pages of image memes people have shot back and forth. Quite simply this is a waste of my time to read and then have to clean up. Now for the summary. I am going to start taking a more active role, especially in policing the suggestion forum, and handing out warn levels to people whom I see doing this. These will be indiscriminate and applied not to just the first person who derails or is impolite on a topic or response, but to everyone whom follows the lead of that person. As I do not like doing things with out giving you all warning this post shall serve as that warning. If you have a desire to bring this topic up with me then I invite you to do so on the IRC channel. Lets raise the level of quality and grow the community. Let us not descend into the quality often found on the minecraft or league of legend forums. There is simply no need for that here. Be passionate about things, just do not be abusive.
    • Kittychanley

      Offline Servers

      Recently I've seen a few server listings showing up on the first page of the Servers forum that have been closed for an extended period of time, but have recently gotten a reply from a new member who didn't realize the server is offline. To help prevent this from happening in the future, it would be greatly appreciated if you could use the report function on the original post of any servers that have been confirmed as offline, so that the topic may be locked. If you are the admin of a server and plan on taking the server offline, please use the report function on the original post of your topic to let the TFC Staff know that the topic should be locked. If you are the admin of a server that has a locked topic, and would wish to bring the server back online, please use the report function on the original post of the topic to let the TFC Staff know that the topic should be unlocked. As always, please remember to follow rule #3 of the servers forum and update your topic title to contain the version of TFC that the server is currently running. You can do so by editing the OP, and then clicking on "Use Full Editor."
Powerman913717

[Request] Addon Devlopment Guide

135 posts in this topic

1 minute ago, Powerman913717 said:

It has come to my attention that some other addons may be having the time reversion bug that my addon experienced a while ago, this is caused by an issue in the addon template created by Bletch.

 

To correct the issue go to your mod file, which the file named after your addon. Scroll down to line 49 which reads as "proxy.registerTickHandler();". Open up that method.

The code inside that method will read as "FMLCommonHandler.instance().bus().register(new ServerTickHandler());", due to the file for the template being named the same thing eclipse can become confused and register TFC's handler again which is what causes the bug.

To correct this simply name your handler something slightly different, and change the line to have your handler. Ex. "FMLCommonHandler.instance().bus().register(new YourServerTickHandler());"

I hope this is helpful, took me a while to track down the issue of this bug. :)

 

You can Control Click (at least in intellij, but I think its the same for eclipse) the name of the class (then part after the 'new') to open the file it thinks you mean. If it opens the wrong file, look at the top of your file in the list of 'import' lines. Look for the line 'import com.bioxx.tfc.Handlers.ServerTickHandler' and remove it. Intellij (or eclipse) will now tell you your code it wrong, but should suggest a couple of classes to import for you, make sure you pick the right one.

If you ever need to use 2 classes with the same name in one file, remember that you can always specify the full name as its called 'com.bioxx.tfc.Handlers.ServerTickHandler' and use that just like you'd have used 'ServerTickHandler'.

Have fun Java-ing!

3

Share this post


Link to post
Share on other sites

"select an mcp conf dir for the deobfuscator." keeps popping up and no matter what folder i open they are all empty (as in it doesn't show any contents, even if there is any) then it says that it needs me to attach a source "CodeChickenCore-1.7.10-1.0.4.35-dev.jar".  (im running eclipse btw)

admittedly i only have a basic understanding of java, so i dont know exactly what this means, or more specifically what source i have to attach. (i already thought it was asking for me to tell it where the jar itself is, but when i specified the exact folder where the jar was located in, it still wouldnt work) 

This is my first attempt at making an addon, though i did make a few simple regular mods before. any help would be appreciated, thanks for taking the time to read this.

 

TL;DR - i could use a little help with my dev setup and the guide Bletch made doesnt say how to fix this.

0

Share this post


Link to post
Share on other sites
9 minutes ago, Mathias Ademar said:

"select an mcp conf dir for the deobfuscator." keeps popping up and no matter what folder i open they are all empty (as in it doesn't show any contents, even if there is any) then it says that it needs me to attach a source "CodeChickenCore-1.7.10-1.0.4.35-dev.jar".  (im running eclipse btw)

admittedly i only have a basic understanding of java, so i dont know exactly what this means, or more specifically what source i have to attach. (i already thought it was asking for me to tell it where the jar itself is, but when i specified the exact folder where the jar was located in, it still wouldnt work) 

This is my first attempt at making an addon, though i did make a few simple regular mods before. any help would be appreciated, thanks for taking the time to read this.

 

TL;DR - i could use a little help with my dev setup and the guide Bletch made doesnt say how to fix this.

You need to find your .gradle file on your computer. For me, it is in C:/Users/[UserName]/.gradle. Once you have that, you need to select the file containing the mcp conf dir for the version of forge you are using: C:/Users/[UserName]/.gradle/caches/minecraft/net/minecraftforge/forge/[forge version used]/unpacked/conf. You need to have that version of forge installed to use it.

Make sure you have run "gradlew setupdecompworkspace eclipse". The project should include the "CodeChickenCore-1.7.10-1.0.4.35-dev.jar". Check and make sure the "CodeChickenCore-1.7.10-1.0.4.35-dev.jar" is in the project explorer. If not, you might need to add the jar in the "build path" for the project. Right click the project and select "Build path" then "Configure build path", then use "Add external jars" button under the "Libraries" Tab and find a copy of the CodeChickenCore-1.7.10-1.0.4.35-dev.jar.

2

Share this post


Link to post
Share on other sites

thanks. ill try that and hope i dont mess up somewhere else. XD

0

Share this post


Link to post
Share on other sites
28 minutes ago, StrayWolfe said:

You need to find your .gradle file on your computer. For me, it is in C:/Users/[UserName]/.gradle. Once you have that, you need to select the file containing the mcp conf dir for the version of forge you are using: C:/Users/[UserName]/.gradle/caches/minecraft/net/minecraftforge/forge/[forge version used]/unpacked/conf. You need to have that version of forge installed to use it.

looks like this was what i messed up on, works perfectly now. ^_^ again, thatnks man. ^_^

0

Share this post


Link to post
Share on other sites
On 8/13/2016 at 8:25 PM, Mathias Ademar said:

looks like this was what i messed up on, works perfectly now. ^_^ again, thatnks man. ^_^

I had some problems with "Select MCP Conf Dir" as well, since I'm on a mac and the .gradle folder is hidden. I unhid it but it still doesn't show up in the file chooser.

My solution was to go to the .gradle folder in file browser, find the conf folder, and copy it to my desktop, then point the file chooser at that, which seemed to work.

0

Share this post


Link to post
Share on other sites

Posted (edited)

On 24.06.2015 at 7:22 AM, Bletch said:

...

Anyway, I have created a document and a template project that you can use to start your development. I have constructed the document in order for me to setup new add-ons when needed. The template project is empty except some main java classes.

Document Link - here

Template Link - here

Thanks for the comprehensive manual (it is not available online, but I downloaded it previously).

Unfortunately, I can not figure, which command should be used to replace DOS gradle.bat files in Linux environment?

Edit: there is gradlew script for Unix, I didn't spotted it earlier because it has no executable flag.

I executed ./gradlew setupDecompWorkspace and ./gradlew eclipse - succesfull, no errors, but eclipse get stalled when I tried to import project. I'm using mars eclipse, is it a cause?  Edit: there was gnome bug, forcing GTK in eclipse.ini solved problem.

Currently I encountered another bug:

 

Edited by ciekma
0

Share this post


Link to post
Share on other sites

Posted (edited)

I stucked on the next step:  when trying to compile and run, eclipse ask to define config folder for deobfuscator, after that quits showing many errors concerned with codechicken lib. Is NEI source/libs required to compile TFC?

EDIT: I had used the latest version 29, which caused many problems, version 19 works fine.

Edited by ciekma
solved
0

Share this post


Link to post
Share on other sites

How to add heat conversion recipe? I can't find any example :(

Edit: I found it: HeatRegistry and HeatIndex

 

Edited by ciekma
solved
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now