The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2011
Posts:
133
Minecraft:
xandayn
Member Details
Hmmm I found a bug with the recipe saving, I think it might be a bug caused by recipe removal but I'm not sure, so it might take longer than I originally thought for me to get a new beta release out.
I was meaning some news about your work
And why is this bug is happening ?
Essentially the bug is the recipes aren't being saved when the game is closed while in play mode, if you exit to the main menu and then close they work, the reason why its not saving is because Im clearing the recipes, but that happens after theyre written to file, so I know the reason but don't understand the cause. One thing that might be happening is the function is calling itself twice and after the recipes are already cleared it's trying to write the recipes again but they're already deleted from memory so there's nothing to write to file, (the file rewrites itself when the function is called, completely overwriting the old one)
Where do you learn to code in java ? I want to try once because i found it so exciting and as i understand what you say it's hard to fix it so why don't you make an other save "mode"
As for learning to program in java, personally I taught myself just from stuff on the internet at first, and then I started watching youtube videos, TheNewBoston on youtube is where i really started getting rolling with it. As for the saving, the issue is I don't understand why the problem is happening, I understand the issue now I just need to find the source if that makes sense. An easy fix would be to find when minecraft is closing and if thats the case don't clear the recipes from memory (because that's where the bug is happening, again I don't really know why it's happening, just that it is happening.)
As a note, Im still learning as I go, the best way (for me) to learn is to set a goal and then try to think of creative ways to achieve it, when you get to a point you don't know how to do the internet is your friend, just search your problem online and you'll usually find a ton of different ways to do it, but they'll all be similar, find an answer closest to the problem you have and then try to adapt it to make it your own.
The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2011
Posts:
133
Minecraft:
xandayn
Member Details
Hey guys, got an update for you all! Beta version 2.2 is here, the main changes in this update include recipe removal, GUI enhancements, now allowing you to access your player inventory in the recipe create GUIs (as a side note this now also allows you to use enchanted items in your recipes, this feature has actually been in since 2.0, but since you couldn't add enchants to the items in the GUI (this is a planned, but low priority, feature that I will work on implementing after I get multiplayer working) it essentially wasn't there). Item tooltips now appear when you hover over an item slot in any of the GUIs, finally on the feature front, I've modified the recipe command, you can now enter extra parameters into the command, for example /recipe Shaped or /recipe Shaped -remove will open directly into the Shaped recipe creation/deletion GUIs without having to interact with the main GUI. All the recipe types are supported, however these are optional parameters and you can still use just /recipe if you want. All of the recipe types for the command also support tab completion. Also I forgot to mention, but now there is a checkbox on the main GUI screen that you can click to swap between recipe addition and removal mode, but if the selected recipe type doesn't have any registered recipes in removal mode, the select button will gray out.
Behind the scenes I fixed a fairly major bug (described in previous posts) as well as a few other less notable ones. I believe there is a slight error in the placement of a piece of GUI text on the main screen in this release, but I forgot about it when I was making my release so it will have to wait to be fixed until the next patch.
I've enjoyed this mod from day one. Having not kept up with the posts, though I was wondering if there was a way to keep track of recipes, or use items from other mods in the recipe. For instance, I love Wee! Flowers! but often get a ton of seeds that I would like to convert into flour for Harvestcraft recipes. Is this do-able?
I've enjoyed this mod from day one. Having not kept up with the posts, though I was wondering if there was a way to keep track of recipes, or use items from other mods in the recipe. For instance, I love Wee! Flowers! but often get a ton of seeds that I would like to convert into flour for Harvestcraft recipes. Is this do-able?
As for keeping track of your recipes, you can go into the removal option for each recipe type and it will show you all of the recipes registered with your type, it's not the most elegant way to see your recipes but it is a way. As for adding mod item into your recipes, that show work just fine right off the bat.
Would you guys be interested in having Anvil recipes? I figured out a way to make that work and I personally think it would be cool.
anvil ? mmm you mean like creating custom enchantment books ? ex. book + slime ball = Silk Touch
also i'm wondering in your latest beta can you make a recipe where you can use the variation of block to craft an item ? for example any wool color surrounded by water bucket = sponge ? the version i'm using i 1.1.0 and when i use white wool it requires wool however i want the recipe to uses any color of wool
anvil ? mmm you mean like creating custom enchantment books ? ex. book + slime ball = Silk Touch
also i'm wondering in your latest beta can you make a recipe where you can use the variation of block to craft an item ? for example any wool color surrounded by water bucket = sponge ? the version i'm using i 1.1.0 and when i use white wool it requires wool however i want the recipe to uses any color of wool
As for the anvil, that example would work, but you could also do anything, for example a recipe i think would be cool is: an apple + a gold ingot = a notch apple, and it would use 15 enchanting levels. All anvil recipes would require an enchantment cost, with a default minimum cost of one.
Also as for the question you posted, currently that isn't implemented, but I do understand why you'd want that and it's something i've been thinking about how to implement. It is definitely planned.
EDIT: Another example would be 2 Blaze Powder + 1 Sugar = 1 Blaze Rod (Sort of a way to recombine your blaze rods but with a little extra cost)
The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2011
Posts:
133
Minecraft:
xandayn
Member Details
So about a day later (probably 75% of it was just debugging a really dumb bug which I ended up posting in the minecraft forge forums about and then it turned out to be something dumb) I've got networking up and running and with the next version (Which there will be a link to at the bottom of this post), you can now use your Recipes on a server! Alongside of that I've gone and implemented the anvil recipes, so feel free to play around with those too!
The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2011
Posts:
133
Minecraft:
xandayn
Member Details
Okay, I understand the bug now, and it shouldn't be too hard to fix either, basically I just need to update the inventory slots, also if you exit to the main menu of the recipes and go back in it should update
The Meaning of Life, the Universe, and Everything.
Join Date:
4/25/2011
Posts:
133
Minecraft:
xandayn
Member Details
This might be more difficult than I originally thought, it would seem (and it makes sense) that NEI is telling the server to update the client with the items (which again is correct), but because my GUI only exists on the client it will be hard to get the inventory update.
Essentially the bug is the recipes aren't being saved when the game is closed while in play mode, if you exit to the main menu and then close they work, the reason why its not saving is because Im clearing the recipes, but that happens after theyre written to file, so I know the reason but don't understand the cause. One thing that might be happening is the function is calling itself twice and after the recipes are already cleared it's trying to write the recipes again but they're already deleted from memory so there's nothing to write to file, (the file rewrites itself when the function is called, completely overwriting the old one)
EDIT: Seems that's not the cause.
It's with the beta version I'm coding right now, the released version should be saving properly, thanks though
As for learning to program in java, personally I taught myself just from stuff on the internet at first, and then I started watching youtube videos, TheNewBoston on youtube is where i really started getting rolling with it. As for the saving, the issue is I don't understand why the problem is happening, I understand the issue now I just need to find the source if that makes sense. An easy fix would be to find when minecraft is closing and if thats the case don't clear the recipes from memory (because that's where the bug is happening, again I don't really know why it's happening, just that it is happening.)
As a note, Im still learning as I go, the best way (for me) to learn is to set a goal and then try to think of creative ways to achieve it, when you get to a point you don't know how to do the internet is your friend, just search your problem online and you'll usually find a ton of different ways to do it, but they'll all be similar, find an answer closest to the problem you have and then try to adapt it to make it your own.
Behind the scenes I fixed a fairly major bug (described in previous posts) as well as a few other less notable ones. I believe there is a slight error in the placement of a piece of GUI text on the main screen in this release, but I forgot about it when I was making my release so it will have to wait to be fixed until the next patch.
Download Here!
The video says it's private.
As for keeping track of your recipes, you can go into the removal option for each recipe type and it will show you all of the recipes registered with your type, it's not the most elegant way to see your recipes but it is a way. As for adding mod item into your recipes, that show work just fine right off the bat.
sang has made a video a few pages back about making recipes.
anvil ? mmm you mean like creating custom enchantment books ? ex. book + slime ball = Silk Touch
also i'm wondering in your latest beta can you make a recipe where you can use the variation of block to craft an item ? for example any wool color surrounded by water bucket = sponge ? the version i'm using i 1.1.0 and when i use white wool it requires wool however i want the recipe to uses any color of wool
As for the anvil, that example would work, but you could also do anything, for example a recipe i think would be cool is: an apple + a gold ingot = a notch apple, and it would use 15 enchanting levels. All anvil recipes would require an enchantment cost, with a default minimum cost of one.
Also as for the question you posted, currently that isn't implemented, but I do understand why you'd want that and it's something i've been thinking about how to implement. It is definitely planned.
EDIT: Another example would be 2 Blaze Powder + 1 Sugar = 1 Blaze Rod (Sort of a way to recombine your blaze rods but with a little extra cost)
Personalized Recipes Beta 2.3 Download!
sang if you mean this post, I can't watch that video it's private.