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

[Rewrite]Ccnei!nei On Cc! Rv0.1

Started by Kamefrede, 03 August 2013 - 07:07 AM
Kamefrede #1
Posted 03 August 2013 - 09:07 AM
Hello Everyone!
My name is Kamefrede and this is my program: ccNEI
The program consists on arguments for recipes for Example: ccNEI dispenser will show u the recipe of dispenser and so on.In the near future i plan to improve the current guis.
PS: Usage: ccNEI itemname ccNEI help shows u the list of items!

Hyper mega special omega thanks to: theoriginalbit for helping me with the code :)/>

Changelog
SpoilerV0.00001=First release,with one item and a nil
V0.1= Added 9 more items
V0.2 Alpha = More items and indent!
V0.3 Alpha = Even more items
V0.4 Alpha = I went nuts and started derping on the code but, i fixed all the derps, now im focusing on adding more features, and also Coming soon help option (recipe Help)
RV0.1 = First Rewrited Version! Now With GUIs! and a functional HELP MENU! But a Few items.
Download
Spoilerpastebin get Z8wmc4rN
Or My github! https://github.com/Kamefrede/ccNEI
Get Dev versions from there!

Screenshots
SpoilerHelp menu: http://prntscr.com/1jq7zz
Stuff with no recipe: http://prntscr.com/1jq88c
New Recipe Grid: http://prntscr.com/1jq8by
How to get: http://prntscr.com/1jq8ge

Special thanks to: Cloudy,Cranium,Cruor,svdragster,theoriginalbit,jubba890 and 600360. For all the support and tips :)/>

If you need anything from me im most likely at #computercraft irc.
svdragster #2
Posted 03 August 2013 - 09:17 AM
You really should only upload programs that are at least beta :P/>
Also don't forget to indent the lines.
Kamefrede #3
Posted 03 August 2013 - 09:23 AM
svdragster, Thanks for the tip, but im quickly updating it so i probably reach beta today.
Anywho: Updated OP with new download for V0.1
Changelog: Added 9 Recipes
lifewcody #4
Posted 03 August 2013 - 11:35 AM
i LOVE IT
Kamefrede #5
Posted 03 August 2013 - 11:54 AM
jubba890 thank you! :D/>
theoriginalbit #6
Posted 03 August 2013 - 12:09 PM
I like the idea :)/> a few improvements which could make it slightly better, main thing being a more descriptive OP, image, and such will all go a long way towards people using this… make it seem like you care about this program and other people will too :)/>
Kamefrede #7
Posted 03 August 2013 - 12:15 PM
Thank you theoriginalbit im doing that right now,
theoriginalbit #8
Posted 03 August 2013 - 02:08 PM
The OP looks much better :)/>

One other thing is that with items such as "Lapis Block" that will not be 1 arg but 2 because of the space, so you would need to

if args[1] == "Lapis" and args[2] == "Block" then
Edited on 03 August 2013 - 12:10 PM
Kamefrede #9
Posted 03 August 2013 - 03:06 PM
theoriginalbit thanks for the tip,i'm gonna start coding right now!
unobtanium #10
Posted 03 August 2013 - 03:48 PM
What about making the screen a bit more readable?
Make a little frame around it with "-" and then descripe e.g. which blocks/items can be used ect.
And the recipe like a tictactoe playfield (static and the text of the item centered in them)

For centering text on a specific point you might want to use something like this:

local w,h = term.getSize()
function centered(text,x,y)
term.setCursorPos(x-math.ceil((#text)/2),y)
term.write(text)
end

That would give it a nice touch and a huge more overview :P/>
Kamefrede #11
Posted 03 August 2013 - 04:26 PM
Thank you UNOBTANIUM, i have got a new code that theoriginalbit tweaked from my original, it includes a much more prettier Crafting Grid but its with a bug and i'll have to wait until theoriginalbit is online so he can fix it.
theoriginalbit #12
Posted 03 August 2013 - 04:41 PM
i'll have to wait until theoriginalbit is online so he can fix it.
I'm always online xD
I agree with what UNOBTANIUM said. The example I gave you is very basic and can be considerably tweaked and modified to create some really awesome and visually appealing GUIs…
Kamefrede #13
Posted 03 August 2013 - 04:51 PM
i'll have to wait until theoriginalbit is online so he can fix it.
I'm always online xD
I agree with what UNOBTANIUM said. The example I gave you is very basic and can be considerably tweaked and modified to create some really awesome and visually appealing GUIs…
In the *near* future i plan to implement more "fancy" "pretty" GUIs and GUIs itself and also the Help thingy,but first i need to learn how to make GUIs
Kamefrede #14
Posted 06 August 2013 - 11:53 AM
Changelog 06/08/2013 RV0.1
Updated Screenshots
Rewrite
New Crafting Grid system
Functional Help Menu!
UMayBleed #15
Posted 06 August 2013 - 01:41 PM
Neat! could be so useful, though most people with mods such as ComputerCraft use NEI anyway. Soon as I saw this post and reading it, I was hoping you didn't repeat functions for each recipe, like

function stone()
–show the recipe
end

Then i looked at the source, and your doing it an efficient way.
unobtanium #16
Posted 06 August 2013 - 01:58 PM
Now the grid looks really nice! :D/>
Btw, what happens if a word is too long for a square of the grid? :S
Kamefrede #17
Posted 06 August 2013 - 02:17 PM
I didnt really test that yet. I'll test in a bit and i'll say what happens
Btw Thanks UMayBleed :)/>
Edit: Apparently It simply Dosent shows the name For example i typed in dispenser Grid codddddddddble and it appeared codd…
theoriginalbit #18
Posted 07 August 2013 - 05:48 PM
Now the grid looks really nice! :D/>
Btw, what happens if a word is too long for a square of the grid? :S
Don't worry when I gave the code to do that I accounted for that… have a look at the source and you'll notice the function will truncate the string so it doesn't mess with the crafting grid :)/>
unobtanium #19
Posted 08 August 2013 - 10:53 AM
Allright :D/> i expected nothing less by theoriginalbit ;D
Kamefrede #20
Posted 09 August 2013 - 02:51 PM
Yep Bit is so cool and helpfull :)/>