-
Content count
40 -
Joined
-
Last visited
Community Reputation
5 NeutralAbout Sinhika
-
Rank
Tree Puncher
Converted
-
Gender
Female
-
URL
https://minecraft.curseforge.com/members/Sinhika/projects
-
Personal Text
I may be new HERE, but I'm old everywhere else.
-
Need working examples of IItemHandler-based furnace or machine to study
Sinhika replied to Sinhika's topic in Modder Support
I presume this is all in the tile entity class? So how do you correctly update the GUI to show cooking progress, etc? -
Need working examples of IItemHandler-based furnace or machine to study
Sinhika replied to Sinhika's topic in Modder Support
Well, I did want to avoid inflicting all that code on you, but if you're willing to give it a look: The device in question is the Nether Furnace in Netherrocks: https://github.com/Sinhika/Netherrocks Nether Furnace classes: Block - https://github.com/Sinhika/Netherrocks/blob/1.12/src/main/java/alexndr/plugins/netherrocks/blocks/NetherFurnaceBlock.java Container and Slots - https://github.com/Sinhika/Netherrocks/tree/1.12/src/main/java/alexndr/plugins/netherrocks/inventory GUI - https://github.com/Sinhika/Netherrocks/blob/1.12/src/main/java/alexndr/plugins/netherrocks/gui/NetherFurnaceGui.java Tile Entity - https://github.com/Sinhika/Netherrocks/blob/1.12/src/main/java/alexndr/plugins/netherrocks/tiles/NetherFurnaceTileEntity.java Ancestral classes are in the SimpleCore library, general source at: https://github.com/Sinhika/SimpleCore Mostly, you'll probably find what you are looking for in https://github.com/Sinhika/SimpleCore/tree/1.12/src/main/java/alexndr/api/content Version 1.12.2 if it wasn't obvious. I've been compiling against the current stable version of Forge, 14.23.4.2705 . If there's an important fix in a later version that I should move to, please let me know. -
Need working examples of IItemHandler-based furnace or machine to study
Sinhika posted a topic in Modder Support
I've been trying to implement a custom furnace that uses IItemHandler instead of IInventory as the latter is deprecated, and getting stuck on the client-server (tile-entity <-> GUI) sync. After a certain point it just fails to work, and not only does my custom furnace-thing stop working, vanilla furnaces stop working! Makes me wonder if I'm somehow crashing the block update mechanism or the tick handling. I'd like to figure this one out myself, but the vanilla furnace isn't a good example as it is still ISidedInventory-based, and the open-source mods with furnace-like machines are very complex and have the working details split between layers of inherited classes and handler classes that make it a pain to figure out what is going on by studying the code. So, anyone have any simple, yet successfully working examples of IItemHandler-based machines with slots, GUI, and stuff happening over time that I can study to figure out what SHOULD be going on? -
[Netherrocks for 1.12.2] Maddening ClassNotFoundException I can't figure out
Sinhika replied to Sinhika's topic in Modder Support
Legacy name. I took over from the original developer after he left Minecraft modding and moved on to other games. Further note: hold off on solving this. I'm rewriting all the furnace code to properly use capabilities instead of just the IInventory wrapper. I'm finding out that IItemHandler lets me simplify a lot of the existing code. Code base is in flux. -
[Netherrocks for 1.12.2] Maddening ClassNotFoundException I can't figure out
Sinhika posted a topic in Modder Support
Summary: ClassNotFoundException keeps getting thrown for class that is RIGHT THERE, what am I missing? Links to "Resources": Crash log: https://gist.github.com/Sinhika/17643fead0c2295fbe3cab43a010968d SimpleCore API GitHub: https://github.com/Sinhika/SimpleCore Netherrocks GitHub: https://github.com/Sinhika/Netherrocks Background: I am porting the SimpleOres complex of mods to Minecraft/Forge 1.12.2. I had successfully ported the common library used by all of the related mods (SimpleCore API), or so I thought. I have successfully ported Simple Ores 2, which is quite simple, and all of it appears to be working: ore generation, recipes, advancements, weapons, tools, armor, etc. However, I have not been so lucky with the next mod on the list, Netherrocks. Problem Description: I am now porting "Netherrocks"; Netherrocks adds armor with special effects, weapons with special effects, and a tile entity machine. The latter is what appears to be failing for no explicable reason. At first, I simply could not get the NetherFurnaceBlock to initialize, but I finally isolated the problem to the related tile entity: NetherFurnaceTileEntity. For no obvious reason that I can see, the class loader refuses to believe the class exists. It blows up when new NetherFurnaceTileEntity(..) is invoked, and getting the Class object to register also fails to find it. Even specifying the full path to the class in ProxyCommon.registerBlocks() fails. I've beating my head against this brick wall for several days now, and am getting very frustrated. Note that there is cross-mod inheritance: NetherFurnaceTileEntity extends SimpleFurnaceTileEntity from the SimpleCore API. I recently updated the Forge version I was building against and the snapshots it was using to make sure everything was using the same MCP mapping. When run under the debugger with the de-obfuscated jars, I get the same error, so I don't believe it's a cross-mod obfuscation issue. I may be mistaken in this. What I am hoping you can do: 1. Point out whatever obvious Java mistake I made and am overlooking so I can fix it. More eyes makes bugs shallower. 2. Alternatively, point out whatever obscure build path error I made so I can fix it. 3. Alternatively, discover that Forge has a weird bug that needs fixing, and fix it. -
[1.12] How to put Recipe in specific recipe book tab?
Sinhika replied to Sinhika's topic in Modder Support
I agree. I doubt that I am the only modder who likes their mod items neatly organized, whether it's in custom creative tabs or this new recipe book thing. -
[1.12] How to put Recipe in specific recipe book tab?
Sinhika replied to Sinhika's topic in Modder Support
Draco18s is correct. I am referring to the shiny new vanilla Recipe Book, introduced in 1.12 or so. -
I know this question has been asked before, but I haven't been able to find a useful/confirmed answer. 1. When a recipe is added to the Minecraft recipe book, how do you make it go to a particular tab? e.g. at present, all my modded tool recipes go into the miscellaneous tab instead of the tools/weapons tab. I'd like them to go into the tools/weapons tab. 2. Is it possible to create a custom tab in the recipe book for one's mod items? If so, how?
-
Thanks! (Didn't this forum used to have a 'thank you' button?) Between you and examples in the Botania GitHub, which I strongly recommend for examples of any imaginable kind of crafting use-case, I got things working. After lots of crashing and pulling hair out over typos and a really subtle program flow bug that only manifested when I selectively disabled some items. The code I'm working on is here: https://github.com/Sinhika/SimpleOres2/tree/1.12
-
I am having trouble wrapping my head around the possibilties of the new recipe JSONs, and I have a specific use-case I don't know how to implement. Is there complete documentation anywhere? I have config file toggles for enabling/disabling certain recipes in my mod. With the JSON recipes, how would I only register a recipe if it is enabled in the config file?
-
[1.11.2/1.10.2] Need examples/tutorial for new config system
Sinhika replied to Sinhika's topic in Modder Support
Okay, thanks. The example is helpful. -
[1.11.2]warnings if Itemstack is null with eclipse
Sinhika replied to Mark136's topic in Modder Support
That's some useful information--I was doing it the old-school 'My IDE is vim' way--running a regex to search for "= null" expressions. -
http://mcforge.readthedocs.io/en/latest/gettingstarted/
-
Github multipe minecraft versions in seperate Folders
Sinhika replied to JTK222's topic in Modder Support
If you want to get serious with any version control system that wasn't originally designed for Windows (which is to say, any decent version control system; Visual SourceSafe was notoriously a POS), you're going to have to bite the bullet and get at least a basic familiarity with the console commands. That being said, a good manual is essential for looking up what to do when. Bookmark https://git-scm.com/book/en/v2 if you are working with git/GitHub, and read it at least the first several chapters. You'll also find yourself referring to it a lot, which is why I told you to bookmark it. p.s. I, too, tried using GitHub for Windows. Its lack of support for several key git options and commands helped me royally mess up my source trees. After recovering from that fiasco, I used the console from then on. These days I just develop on Linux, because I don't have to fight Windows for the privilege of using my choice of tools quite so much, but when I had to work on Windows, I installed Cygwin and used the console git for Cygwin. Now that Win10 has Ubuntu BASH shells, you might be able to install native git from the Ubuntu repo. -
[1.11.2/1.10.2] Need examples/tutorial for new config system
Sinhika posted a topic in Modder Support
What happened to the configuration subsystem? I decided to rewrite the old XML-based config system in a mod I am maintaining (don't throw tomatoes at me, XML wasn't my idea) back to standard Forge JSON-based config system, and the Forge config classes have changed drasticly since the last time I used them (1.7.10). I do not understand them at all; how are they supposed to be used? Does anyone out there have tutorials or examples of how to use the current system? Is it backwards-compatible with old Forge Config-based code (i.e., can I just use old-style config classes and methods)? Help?