So I've got two small problems that aren't really serious..
1. I am wondering if there is a way to write TileEntities to NBT directly? Or if I have to save the coordinates manually and access the worldObj?
2. So I recently switched to Intellij IDEA, everything is fine about that. Except that it somehow isn't reading my textures or lang file. How would I fix that?
Note that the resources are setup exactly like it was in Eclipse.. (if that's the problem) :/
If you'd require additional explaining or source code, feel free to point it out (As I think these can be solved without the source)
Thanks in advance and have a nice day!
Make sure to setup your module settings correctly in IDEA.
Mark your mod's resource folder as a resource, and it should work fine. Remember though, it only reads from one level down.
For example, if you mark a folder called "textures", and it has all your textures in it (/assets/--), then it should work fine. However you mark your mod's "assets" folder, it will not work.
The only problem now is that the stuff there is untouched.. So I don't know what else might be wrong :Y
Try doing this, look into your "out/production/~PROJECT_NAME~" in your project's folder (where you setup gradle and idea). See if you see your resources in there.
2/ You might want to restart and recompile the project after setting the resources folder in the module settings. This should happen automatically by importing the build.gradle file at the time of creating the project.
No,
Does that mean I've set the project up wrong ? :3
How do you setup your workspace? But first, try looking in your the folders "build"; "eclipse"; and "gradle" for the folder. They might be oddly placed?
These are mine:
CLEAN.bat
gradle clean --refresh-dependencies
BUILD.bat
gradle --refresh-dependencies setupDecompWorkspace idea
2/ You might want to restart and recompile the project after setting the resources folder in the module settings. This should happen automatically by importing the build.gradle file at the time of creating the project.
1. Thanks, forgot about that! How'd I implement it though, as it isn't returning a NBTTag? Do I just have to supply the parent one to it?
2. The module settings were automatically setup when I made the project.
[quote=master801;/members/master801;/forums/mapping-and-modding/minecraft-mods/modification-development/2290227-saving-tileentity-and-intellij-support?comment=11]
How do you setup your workspace? But first, try looking in your the folders "build"; "eclipse"; and "gradle" for the folder. They might be oddly placed?
These are mine:
CLEAN.bat
gradle clean --refresh-dependencies
BUILD.bat
gradle --refresh-dependencies setupDecompWorkspace idea
It seems like the build folder has the files, eclipse only has the normal minecraft stuff and gradle only has the wrapper .. ?
I've read/heard that in IntelliJ, you can have multiple mods per one workspace. Is this true?
I've used Eclipse for years and I also heard it can be hard to switch over, but if the above is true I'd be willing to try it out. Although this thread makes it sound even more difficult than I thought.
I've read/heard that in IntelliJ, you can have multiple mods per one workspace. Is this true?
I've used Eclipse for years and I also heard it can be hard to switch over, but if the above is true I'd be willing to try it out. Although this thread makes it sound even more difficult than I thought.
Yes, that is true.
Once you try to switch over to IDEA, it'll first be annoying and difficult to use. However it's worth it in the long run.
I don't blame you if you think it's too hard since this thread shows that, however I would recommend you to at least try it out for yourself.
Once you try to switch over to IDEA, it'll first be annoying and difficult to use. However it's worth it in the long run.
I don't blame you if you think it's too hard since this thread shows that, however I would recommend you to at least try it out for yourself.
Yeah, well I work professionally in Android and the new Android IDE is based on IntelliJ too, so it's in my best interest to use same/familiar software where possible. I've just heard that it does a lot of things differently, e.g. no javadoc tooltip when you hover a method (though it can be configured to do this AFAIK). I have already installed IntelliJ but I've not gotten around to actually trying it.
That multiple-mods-per-window/workspace is nice though, I'll be able to work on my "library" in parallel without it's sources just being whacked into my mod's folder tree. But even that I imagine requires some config and fiddling, and I've not read any Minecraft / ForgeGradle specific tips and guides on it. Suppose it's not a big deal for those capable of self-learning.
On the IDE discussion though, when I first started trying to mod, I first used Eclipse. I loved it. The in-IDE error checking was godsend as I made all sorts of derps in my Java code without it. But when I heard about IntelliJ and tried it out... I quickly discovered that if you loved Eclipse, then, for Java, you will be completely infatuated by IntelliJ's autocomplete and inbuilt Github and Gradle integration (also the command line). I also heard that Ultimate edition has a BUNCH of support for java development tools, and PHP as a language. If I ever get the money for that, and use Java enterprisically (no, that's not a dictionary approved word), I'll definitely upgrade to that. But even Community edition is MORE than sufficient for Minecraft modding, even with Github repos. Nether, even Dinnerbone uses it for Java development it seems. But seriously, if there was an IDE as good as IntelliJ for Python, I'd use Python a lot more. Currently, I'm stuck with IDLE, which is a bit basic in comparison :/
Sorry if I got the method wrong though, been out of the modding business for a while.
I'm pretty happy with git on the console personally, or more particularly git gui. But I'll give IntelliJ's GUI a go. I haven't thought much of other gui's though, including whatever that one made by BitBucket guys is called.
As for Gradle, I don't really understand it much at all. I only recently learned Ant, and Gradle is a whole new beast. But Android's new IDE and AOSP standards are also switching from Ant to Gradle (likely because of the new IDE being based on IntelliJ) so again, I'm better off learning it. Eventually.
The Ultimate edition seems overkill for Java-only, non-professional development yeah.
I can't stand Python, I have to use it for work as our build shell is written in it but it just seems like a glorified scripting language to me - it's only marginally more powerful than bash (as a scripting language) yet far more complicated. For anything beyond scripting though, I don't know why you wouldn't just use Java. Although if I used an IDE for Python I might not hate it as much.
I have tried a lot of different GUIs for Git including Intellij's own Git integration and I still use the command line interface almost exclusively for working with git due to it being so much simpler in my opinion. Often when you want to add files, commit and push in a GUI you have to go through lots of dialogs and button presses to do it, compared to just typing everything on the console, never leaving your keyboard even once.
Yeah, git's own gui doesn't have much fluff. I often want to commit everything changed but review it before I do (I'll often have junk in there), and it's easier to scroll a window than scroll text on the console. That's pretty much the only reason I use a GUI, but in anything apart from committing I'll resort to command line.
1. I am wondering if there is a way to write TileEntities to NBT directly? Or if I have to save the coordinates manually and access the worldObj?
2. So I recently switched to Intellij IDEA, everything is fine about that. Except that it somehow isn't reading my textures or lang file. How would I fix that?
Note that the resources are setup exactly like it was in Eclipse.. (if that's the problem) :/
If you'd require additional explaining or source code, feel free to point it out (As I think these can be solved without the source)
Thanks in advance and have a nice day!
Art by me: MrPancakeWolfie@DeviantArt
Mark your mod's resource folder as a resource, and it should work fine. Remember though, it only reads from one level down.
For example, if you mark a folder called "textures", and it has all your textures in it (/assets/--), then it should work fine. However you mark your mod's "assets" folder, it will not work.
Do you mean like that ^?
Art by me: MrPancakeWolfie@DeviantArt
Yes, like that.
EDIT:
Try adding a new content root, then add your mod files to it.
Art by me: MrPancakeWolfie@DeviantArt
Try doing this, look into your "out/production/~PROJECT_NAME~" in your project's folder (where you setup gradle and idea). See if you see your resources in there.
Art by me: MrPancakeWolfie@DeviantArt
Is yours [something] like this? (Forgot to mention that it also includes your project's name.)
Art by me: MrPancakeWolfie@DeviantArt
2/ You might want to restart and recompile the project after setting the resources folder in the module settings. This should happen automatically by importing the build.gradle file at the time of creating the project.
How do you setup your workspace? But first, try looking in your the folders "build"; "eclipse"; and "gradle" for the folder. They might be oddly placed?
These are mine:
CLEAN.bat
BUILD.bat
1. Thanks, forgot about that! How'd I implement it though, as it isn't returning a NBTTag? Do I just have to supply the parent one to it?
2. The module settings were automatically setup when I made the project.
[quote=master801;/members/master801;/forums/mapping-and-modding/minecraft-mods/modification-development/2290227-saving-tileentity-and-intellij-support?comment=11]
How do you setup your workspace? But first, try looking in your the folders "build"; "eclipse"; and "gradle" for the folder. They might be oddly placed?
These are mine:
CLEAN.bat
BUILD.bat
edit :What the hell happend to the quote o.O?
Art by me: MrPancakeWolfie@DeviantArt
The stuff should be in build/out/production, or build/classes/main, depending on if you have the gradle plugin in Idea or not.
Art by me: MrPancakeWolfie@DeviantArt
I've used Eclipse for years and I also heard it can be hard to switch over, but if the above is true I'd be willing to try it out. Although this thread makes it sound even more difficult than I thought.
Yes, that is true.
Once you try to switch over to IDEA, it'll first be annoying and difficult to use. However it's worth it in the long run.
I don't blame you if you think it's too hard since this thread shows that, however I would recommend you to at least try it out for yourself.
Yeah, well I work professionally in Android and the new Android IDE is based on IntelliJ too, so it's in my best interest to use same/familiar software where possible. I've just heard that it does a lot of things differently, e.g. no javadoc tooltip when you hover a method (though it can be configured to do this AFAIK). I have already installed IntelliJ but I've not gotten around to actually trying it.
That multiple-mods-per-window/workspace is nice though, I'll be able to work on my "library" in parallel without it's sources just being whacked into my mod's folder tree. But even that I imagine requires some config and fiddling, and I've not read any Minecraft / ForgeGradle specific tips and guides on it. Suppose it's not a big deal for those capable of self-learning.
Eventually
I'm pretty happy with git on the console personally, or more particularly git gui. But I'll give IntelliJ's GUI a go. I haven't thought much of other gui's though, including whatever that one made by BitBucket guys is called.
As for Gradle, I don't really understand it much at all. I only recently learned Ant, and Gradle is a whole new beast. But Android's new IDE and AOSP standards are also switching from Ant to Gradle (likely because of the new IDE being based on IntelliJ) so again, I'm better off learning it. Eventually.
The Ultimate edition seems overkill for Java-only, non-professional development yeah.
I can't stand Python, I have to use it for work as our build shell is written in it but it just seems like a glorified scripting language to me - it's only marginally more powerful than bash (as a scripting language) yet far more complicated. For anything beyond scripting though, I don't know why you wouldn't just use Java. Although if I used an IDE for Python I might not hate it as much.
But I digress. As usual
Yeah, git's own gui doesn't have much fluff. I often want to commit everything changed but review it before I do (I'll often have junk in there), and it's easier to scroll a window than scroll text on the console. That's pretty much the only reason I use a GUI, but in anything apart from committing I'll resort to command line.
Yup! I'm sure Xuluf doesn't mind either
Art by me: MrPancakeWolfie@DeviantArt