Jump to content




TheOriginalBIT's Programs, APIs, and Utilities

turtle api utility

  • You cannot reply to this topic
349 replies to this topic

#81 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 15 February 2013 - 07:14 PM

View PostTheOriginalBIT, on 15 February 2013 - 07:05 PM, said:

Sneak Peek!

Hey guys,

Here is a sneak peek of just some of what I have been working on over the past few days on CCTube.
-SNIP-
:o

#82 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 07:19 PM

View PostShnupbups100, on 15 February 2013 - 07:14 PM, said:

:o
Haha thanx :) I had a 3rd image, but I realised a mistake I had, so I'm messing with that gui now :P

#83 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 15 February 2013 - 07:24 PM

CCtube 2.0 tomorrow?

#84 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 07:35 PM

View PostShnupbups100, on 15 February 2013 - 07:24 PM, said:

CCtube 2.0 tomorrow?
We shall see. depends how much NeverCast and I can get done tonight/tomorrow.

#85 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 15 February 2013 - 07:55 PM

Wow it will be so cool can't wait.(wait haven't i said can't wait 5 million times already? :P)

#86 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 08:45 PM

Here you go guys. The other screenshot I was going to post up before.
Spoiler


View Postsuperaxander, on 15 February 2013 - 07:55 PM, said:

wait haven't i said can't wait 5 million times already? :P
Something like that :P

#87 remiX

  • Members
  • 2,076 posts
  • LocationSouth Africa

Posted 15 February 2013 - 08:53 PM

Looks nice :P where does it upload the videos?

#88 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 09:09 PM

View PostremiX, on 15 February 2013 - 08:53 PM, said:

Looks nice :P where does it upload the videos?
To our server.

#89 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 15 February 2013 - 09:30 PM

View PostTheOriginalBIT, on 15 February 2013 - 09:09 PM, said:

View PostremiX, on 15 February 2013 - 08:53 PM, said:

Looks nice :P/> where does it upload the videos?
To our server.
Aren't there any security issues.


#90 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 09:40 PM

View Postsuperaxander, on 15 February 2013 - 09:30 PM, said:

Aren't there any security issues.
You kidding me, NeverCast is boss at Security and I'm not half bad at ideas for security (I just can't implement them all myself) ... just like our video format we are getting it all as secure as possible...

Also to aid with security very little is done in the CCTube program side, most is done on the server side so its very hard to see how we implement anything.

#91 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 15 February 2013 - 09:46 PM

If it's serverside i couldn't know it!

#92 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 09:46 PM

View Postsuperaxander, on 15 February 2013 - 09:46 PM, said:

If it's serverside i couldn't know it!
what?

#93 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 15 February 2013 - 09:50 PM

how secure it is

#94 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 February 2013 - 10:11 PM

View Postsuperaxander, on 15 February 2013 - 09:50 PM, said:

how secure it is
Well think of it this way, for your account password that is stored on the server...
Paraphrasing NeverCast: "while only taking 0.1 seconds to make it secure, according to our calculations, assuming you have a good password, and assuming the hacker had already hacked our server and downloaded our code, a 7 character password would take 11 thousand years to crack."
so it would take even longer if they had not got our code.

#95 superaxander

  • Members
  • 609 posts
  • LocationHolland

Posted 15 February 2013 - 10:25 PM

Nevercast is a god in security then!

#96 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 16 February 2013 - 09:03 AM

On the development of my screensaver program, I have found a few problems with CConfig:

1. It will not accept:
config:getBoolean("name",true)
OR
config:getBoolean("name",false)
Because it tries to string.lower() the second parameter, which won't work.

2. I do not know why, but after I removed the pastebin link to the default config by your request, it no longer generates. No config file is created. This is a snippet of my code:
local config = CConfig.new("shnupProgFiles/screensaver/config.cfg")
config:load()
scrnsvrID = config:getNumber("screensaver",0)
config:addCommentForKey("screensaver","What screensaver to use? 0 = words, 1 = indie letters, 2 = random letters, 3 = pixels, 4 = lines")
wait = config:getNumber("waitBetweenPrints",0.005)
config:addCommentForKey("waitBetweenPrints","How many seconds to wait before printing the next word/pixel/whatever")
isRandCol = config:getBoolean("randomColour","true") -- Tell BIT that booleans aren't working.
config:addCommentforKey("randomColour","Is colour randomly picked each time it prints?")
col = config:getColour("colourToUse",colours.white)
config:addCommentForKey("colourToUse","If colour is not random, what colour should it use?")
(And yes, all folders it mentions have been created already)

#97 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 16 February 2013 - 01:29 PM

View PostShnupbups100, on 16 February 2013 - 09:03 AM, said:

On the development of my screensaver program, I have found a few problems with CConfig:

1. It will not accept:
 config:getBoolean("name",true) OR config:getBoolean("name",false) 
Because it tries to string.lower() the second parameter, which won't work.
Oh I thought I fixed that yesterday. Ok its fixed now, sorry. I didn't push out the update :/ Its now version 1.4.2

View PostShnupbups100, on 16 February 2013 - 09:03 AM, said:

2. I do not know why, but after I removed the pastebin link to the default config by your request, it no longer generates. No config file is created. This is a snippet of my code
It is really the easier way to do it, why download a file when the utility does it for you. Your problem is that you didn't read the examples and/or the explanation properly, your missing
config:save()
Also on a side note, this part of the comment for key 'screensaver'
0 = words, 1 = indie letters, 2 = random letters, 3 = pixels, 4 = lines
is probably more suited to
config:addRestrictionForKey("screensaver", "0 = words, 1 = indie letters, 2 = random letters, 3 = pixels, 4 = lines")
Now note this is another kind of comment, the api doesn't actually force the user to stick within these restrictions

Edited by TheOriginalBIT, 16 February 2013 - 01:34 PM.


#98 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 16 February 2013 - 01:47 PM

Update CConfig OP!

The 'Functions' section is in a better order and may help people see what NEEDS to be done if they decide to just skim.

Update CConfig!

v1.4.1
  • bug fix, damn booleans
v1.4
  • Added new function, getTable, at the moment this is experimental and may not stay unless i can make usability for the user awesome.
  • Added new functionality to function, reset, can now reset and individual key, if no key is supplied it will reset the entire file.


#99 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 16 February 2013 - 03:23 PM

View PostTheOriginalBIT, on 16 February 2013 - 01:29 PM, said:

<Help Snip>
Thanks! Yeah, I totally didn't see the config:save() function, lol that would've helped.
And, nice to see that you fixed booleans.

#100 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 16 February 2013 - 03:30 PM

View PostShnupbups100, on 16 February 2013 - 03:23 PM, said:

Thanks! Yeah, I totally didn't see the config:save() function, lol that would've helped.
And, nice to see that you fixed booleans.
Haha yeh :P
Yeh wow the booleans are a pain in the butt! I'm trying to make it as end user friendly as possible, but thats extremely hard to do without breaking it all together!
Well actually most of my programs are aimed at having good usability, but that is hard!





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users