Jump to content




TheOriginalBIT's Programs, APIs, and Utilities

turtle api utility

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

#321 CascadingDragon

  • Members
  • 7 posts

Posted 04 September 2013 - 04:36 PM

View Posttheoriginalbit, on 04 September 2013 - 04:31 PM, said:

Fair enough, as I said it wasn't a problem in your code, I was just curious with that one. And wow thanks for actually reading my documentation! So many people don't, and so many people don't appreciate or understand the time I put into those to make them useful.
But... if you don't read documentation... how do you know if you are doing it right? Common sense must be worth a fortune by now.

View Posttheoriginalbit, on 04 September 2013 - 04:31 PM, said:

I am considering changing it now slightly in a version 3.0, we shall see what I end up with. Also if you wish to continue programming in Minecraft, look up LuaIDE on these forums, it's made by GravityScore and it really does make in-game editing nice, however if you have access to the Minecraft world data, definitely external editing with Sublime Text 2 and GravityScore's ComputerCraft plugin (also on the forums, search "sublime" in the utilities section) for it is very nice.
Playing on a server, I can't use Sublime, but LuaIDE looks nice. Thanks for the heads up!

#322 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 04 September 2013 - 04:40 PM

View PostCascadingDragon, on 04 September 2013 - 04:36 PM, said:

But... if you don't read documentation... how do you know if you are doing it right? Common sense must be worth a fortune by now.
I don't know, but someone once asked me a question about an API and my response was literally "did you even read the developer documentation?!" and their response was "there is documentation"... The link was directly above the DL link :/

#323 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 06 September 2013 - 03:15 AM

bumping to notify of a BIG bugfix in the custom read function.

* Fixed bug with empty history tables being supplied causing crash
* Fixed bug with cursor being off the screen AFTER enter is pressed and causing first line printed to be missing

Also
+ Added ability to tell read to use pullEventRaw instead of pullEvent

Download link is the same, find it in OP @ Useful Code Snippets —> Custom Read —> Download

#324 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 22 September 2013 - 07:00 AM

New! ccConfig v2.1

* New colour parser. The valid input of colours is now endless!

Thank you so much to LBPHacker for making this colour parser work so much better!

See OP for download link and developer documentation.

#325 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 08 November 2013 - 05:13 AM

Major OP cleanup performed...

Should be easier to find my programs.

Also updated information on a few programs that I found were outdated.

#326 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 15 November 2013 - 08:28 AM

New code snippet. "Peripheral search". Using this in a project with NeverCast, and its just too good not to share. See the OP for more details.

Edited by theoriginalbit, 15 November 2013 - 08:29 AM.


#327 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 21 November 2013 - 10:54 PM

New code snippet. "Dynamic Function Invocation on Lua Objects". Made by Symmetryc and improved by myself, decided to share this as well as it is very useful. See OP for more details.

#328 Marikc0

  • Members
  • 10 posts

Posted 22 November 2013 - 03:51 AM

Does the turtle excavating program still work? I came back a short time later to find the turtles stopped with the ender chests a few blocks nearby each turtle.

#329 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 22 November 2013 - 04:25 AM

View PostMarikc0, on 22 November 2013 - 03:51 AM, said:

Does the turtle excavating program still work? I came back a short time later to find the turtles stopped with the ender chests a few blocks nearby each turtle.
Currently no, it works, and is more fuel efficient, but sadly there is the enderchest bug :( What I thought was an edge case seems to be occurring more often and honestly I forgot to fix it when I was told about it months ago. I'll have to fix it after my last exam for uni in 4 days.

Edited by theoriginalbit, 22 November 2013 - 04:25 AM.


#330 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 04 February 2014 - 07:37 AM

Edited the custom read function to make use of the upcoming paste event, anyone using the pre-release let me know if you come across any bugs.

EDIT: Oh also, finally got a new web host, website is up, content will be not far off (link in my signature)

Edited by theoriginalbit, 04 February 2014 - 07:40 AM.


#331 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 12 February 2014 - 06:08 AM

after helping surferpup quite a lot in Ask a Pro I've gone and updated the Coroutine-Management-System (CMS), its now smaller and less buggy (let me know if you do find any), see OP for download links.

#332 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 18 March 2014 - 03:00 PM

New! ccConfig v3.0!

* Better colour parser (again). Less loops! Same value support;
* Minor efficiency improvements;
+ Config Objects are now better1;

1 Now uses my 'Dynamic Invocation on Lua Objects' snippet, meaning that the following function calling is supported: config.getString("foo"); or config.getString(config, "foo"); or config:getString("foo");

...more to come...

See OP for download link and developer documentation.

#333 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 18 March 2014 - 04:26 PM

Nice that you added that to the ccConfig API! :D
I have a small suggestion for your read function, The ability to write text when the text length is equal to zero, Kinda like in search bars if you know what I mean :P

#334 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 18 March 2014 - 11:34 PM

View PostHellkid98, on 18 March 2014 - 04:26 PM, said:

I have a small suggestion for your read function, The ability to write text when the text length is equal to zero, Kinda like in search bars if you know what I mean :P
hmmm I have considered implementing placeholder text, the only problem I foresee with this is the obvious lack of a user being able to distinguish it when not on an advanced computer

#335 TheOddByte

    Lazy Coder

  • Members
  • 1,607 posts
  • LocationSweden

Posted 19 March 2014 - 03:39 PM

View Posttheoriginalbit, on 18 March 2014 - 11:34 PM, said:

hmmm I have considered implementing placeholder text, the only problem I foresee with this is the obvious lack of a user being able to distinguish it when not on an advanced computer
Hmm? How do you mean? And I hate it when I can't find the right words.. ( I'm talking about the word(s) placeholder text :P )
I created some code just to test to do this myself
This is result
This is just some shitty code I threw up, But it works for a simple example :P
I'm wondering what you mean with the user not being able to distinguish it when not on an advanced computer

Edited by Hellkid98, 19 March 2014 - 03:44 PM.


#336 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 19 March 2014 - 10:37 PM

View PostHellkid98, on 19 March 2014 - 03:39 PM, said:

-snip-
What I mean is that the user may struggle to distinguish between real text and placeholder text when on a Normal computer... when on an advanced computer you can grey out the text, but that's not the case on a normal computer.

#337 Blue

  • Members
  • 309 posts
  • LocationGlass/UX/main.lua

Posted 18 April 2014 - 03:46 PM

I love CCpresenter :) actually its one of my most favorite programs

#338 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 18 April 2014 - 03:54 PM

View PostGlass Systems, on 18 April 2014 - 03:46 PM, said:

I love CCpresenter :) actually its one of my most favorite programs
thanks, I'm glad that you like it, wasn't too sure if anyone really used it.

#339 koslas

  • Members
  • 62 posts
  • LocationChristchurch, New Zealand

Posted 20 August 2014 - 03:11 PM

I am using the code you told me to use, and if someone presses an arrow key, it crashes saying
startup:155: attempt to get length of nil
Line 155 is of my program, is this line in your read function
elseif historyPos == #_history then

Edited by koslas, 20 August 2014 - 03:12 PM.


#340 theoriginalbit

    Semi-Professional ComputerCrafter

  • Moderators
  • 7,332 posts
  • LocationAustralia

Posted 20 August 2014 - 03:59 PM

uh, are you sure you've not edited my code? the statement
elseif _history and code == keys.up or code == keys.down then
would prevent it from ever getting to the line you're saying is erroring.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users