Jump to content




[cc 1.5x] Cciri - The Best Siri/encyclopedia Program For Computer Craft. V 2.1

computer media utility

168 replies to this topic

Poll: Your opinion about CCiri! (41 member(s) have cast votes)

Do you like CCiri? Do you find it useful?

You cannot see the results of the poll until you have voted. Please login and cast your vote to see the results of this poll.
Vote Guests cannot vote

#1 Heracles421

  • Members
  • 258 posts

Posted 09 January 2013 - 07:07 PM

Posted Image


CCiri V 2.1


Yup, that's right, now we have Siri in Minecraft! How does it work? Well, you can input almost anything, then, that input is sent to Wolfram Alpha* which then sends the answer back. Incredible, isn't it? Want to know about Steve Jobs? Ask CCiri! Maybe about pirates? Well, ask CCiri. Now you want to do complex maths? Don't worry, CCiri can handle it!



*Wolfram Alpha limits the requests/month to 2000, why? Because I have a free dev license, which sadly has some limitations

Pictures:
Spoiler


Code:

Installation:
Spoiler

Usage:
Spoiler

Changelog:
Spoiler

Known Bugs:
Spoiler

Credits:
Spoiler


#2 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 09 January 2013 - 07:08 PM

Double post... Request one be removed through the "Report" link :)

#3 Heracles421

  • Members
  • 258 posts

Posted 09 January 2013 - 07:41 PM

Sorry, hehe. I requested the removal of the other one, this will be the one we'll use

#4 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 09 January 2013 - 07:43 PM

Haha... Ok :)

#5 nutcase84

  • Members
  • 711 posts
  • LocationIn My Lonely Little Computer Corner

Posted 10 January 2013 - 05:33 AM

Nice!

#6 anonimo182

  • Members
  • 252 posts
  • LocationIn the universe

Posted 10 January 2013 - 06:33 AM

Nice! I supose you and brett are not a team anymore?

Edit: It works, but you should make an spoiler on how to use it, like some example questions

#7 Heracles421

  • Members
  • 258 posts

Posted 10 January 2013 - 06:45 AM

View Postanonimo182, on 10 January 2013 - 06:33 AM, said:

Nice! I supose you and brett are not a team anymore?

Edit: It works, but you should make an spoiler on how to use it, like some example questions

Well, Brett wanted to take another path, so I released this one that uses http API

About the example questions, I'll post them in a bit, but you can ask almost anything

#8 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 09:57 AM

This is really cool; so if i understand the code correctly this is just a program that sends all the stuff to wolfram(like siri),

ONE problem though is that if there a bunch of synonyms and stuff you get presented with a wall of similar words and the important stuff like the definition gets pushed off the screen. if there was a scrolling function then you could see all the results:D

really cool, love it

#9 Heracles421

  • Members
  • 258 posts

Posted 10 January 2013 - 10:16 AM

View PostSkullblade, on 10 January 2013 - 09:57 AM, said:

This is really cool; so if i understand the code correctly this is just a program that sends all the stuff to wolfram(like siri),

ONE problem though is that if there a bunch of synonyms and stuff you get presented with a wall of similar words and the important stuff like the definition gets pushed off the screen. if there was a scrolling function then you could see all the results:D

really cool, love it
I am trying hard to implement scrolling because of that reason, but everything I try seems to fail, even though TheOriginalBIT is helping

#10 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 10:20 AM

hummm mind if I take a quick look...probably couldn't help though

oh and LOL U SAID DOUGH :P

#11 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 11:06 AM

From your code the easiest way to implement scrolling would be to make scrolling is to change how you print from a table. First add the text to a table at the end of the table and then when its done adding the text have it print the text from the table(table[i]) and just have "i" starting at how far down you scrolled but have it stop at X number of prints so not to push it off the screen. When you scroll down the starting point of the table (i)is one more then what it originally would be, etc etc.

Tell me if this makes since if it doesn't ill try to explain more

#12 Heracles421

  • Members
  • 258 posts

Posted 10 January 2013 - 11:58 AM

View PostSkullblade, on 10 January 2013 - 11:06 AM, said:

From your code the easiest way to implement scrolling would be to make scrolling is to change how you print from a table. First add the text to a table at the end of the table and then when its done adding the text have it print the text from the table(table[i]) and just have "i" starting at how far down you scrolled but have it stop at X number of prints so not to push it off the screen. When you scroll down the starting point of the table (i)is one more then what it originally would be, etc etc.

Tell me if this makes since if it doesn't ill try to explain more
Maybe I could do something like
swidth,sheight = term.getSize()
for i = 1,sheight do
  if index ~= sheight then
    print(text[index])
    index = index + 1
  end
end

For the scrolling:
if param = 208 then
  if index <= #text then
    index = index + sheight - 1
    print(text[index])
  end
end

The same could apply to the upward scrolling

And yes, I wrote dough, confused the words :P (Not an English speaker natively)

#13 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 12:14 PM

What i did for my file browser i created a Draw() function and it printed out the results starting at i (starts at 1) then the scrolling is activated and i+1 or i-1. then it would reDraw
What you did seems seems to work fine though; prints more then screen size and takes the pushing up to advantage


Lol the dough i was just joking around about;OFF TOPIC: what language do you speak? I'm trying to learn a 3rd(German), just curious

#14 Heracles421

  • Members
  • 258 posts

Posted 10 January 2013 - 12:32 PM

View PostSkullblade, on 10 January 2013 - 12:14 PM, said:

What i did for my file browser i created a Draw() function and it printed out the results starting at i (starts at 1) then the scrolling is activated and i+1 or i-1. then it would reDraw
What you did seems seems to work fine though; prints more then screen size and takes the pushing up to advantage


Lol the dough i was just joking around about;OFF TOPIC: what language do you speak? I'm trying to learn a 3rd(German), just curious

I will try to implement it with both methods

OFF TOPIC; I speak Spanish, O.o

#15 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 10 January 2013 - 12:41 PM

View PostHeracles421, on 10 January 2013 - 12:32 PM, said:

View PostSkullblade, on 10 January 2013 - 12:14 PM, said:

What i did for my file browser i created a Draw() function and it printed out the results starting at i (starts at 1) then the scrolling is activated and i+1 or i-1. then it would reDraw
What you did seems seems to work fine though; prints more then screen size and takes the pushing up to advantage


Lol the dough i was just joking around about;OFF TOPIC: what language do you speak? I'm trying to learn a 3rd(German), just curious

I will try to implement it with both methods

OFF TOPIC; I speak Spanish, O.o

Check your messages :)

#16 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 12:52 PM

long winded sorry...but what was i checking for?

EDIT:Heracles421 cool you speak Spanish to:D. I know Spanish and English and am trying to learn German since its so fun to speak! Everything in German sounds like a bad word :D

#17 Heracles421

  • Members
  • 258 posts

Posted 10 January 2013 - 01:21 PM

View PostremiX, on 10 January 2013 - 12:41 PM, said:

Spoiler
Holly.... Thank you sooooo much, adding you to the credits

#18 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 01:24 PM

awwww now my help feels inadequate :(



Lol jk happy you got it working :P

#19 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 10 January 2013 - 01:26 PM

View PostSkullblade, on 10 January 2013 - 11:06 AM, said:

From your code the easiest way to implement scrolling would be to make scrolling is to change how you print from a table. First add the text to a table at the end of the table and then when its done adding the text have it print the text from the table(table[i]) and just have "i" starting at how far down you scrolled but have it stop at X number of prints so not to push it off the screen. When you scroll down the starting point of the table (i)is one more then what it originally would be, etc etc.

Tell me if this makes since if it doesn't ill try to explain more
Haha thats exactly what I suggested to him ;)

#20 Skullblade

  • Members
  • 470 posts
  • LocationThe Big Apple, NY

Posted 10 January 2013 - 01:35 PM

Lol great minds think alike I guess ^_^





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users