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

Looking for someone to complete my API [With Full Credit when released]

Started by samdeman22, 10 April 2013 - 02:42 AM
samdeman22 #1
Posted 10 April 2013 - 04:42 AM
My first API is the log API, used to log any large programs so you can see whats been going on, I can make logs fine, but printing them is quite a problem. I can get as far as printing one line to a page, and I know why, its because I didn't take into account that the page is two dimensional (not one dimensional). My brain can't handle this anymore and its gotten to the point where I need your help.

Here is my API http://pastebin.com/tNXj0SJF you will see printLog(log, side, fromLn, toLn) at the bottom, I want it to be able to print a specific .log file from a certain line to a certain line. If fromLn is left blank it will go from the beginning, and if toLn is left blank it will go to the end. Look at my attempt to find the general idea, and where errors should be thrown.
You will get full credit when the API is released and your code may be subject to any small changes I need to make, good luck.
samdeman22 #2
Posted 10 April 2013 - 04:44 AM
To be honest I think you might only need to change the part where it indexes the page. The rest should be ok, I think.
Lyqyd #3
Posted 10 April 2013 - 09:02 AM
Not really what we do in Ask a Pro.

Moved to General.
samdeman22 #4
Posted 11 April 2013 - 05:30 AM
This is in general now? oh well, I was hoping to "ask a pro" if they would help finish this for me, I guess you're right though.
Lyqyd #5
Posted 11 April 2013 - 06:59 AM
Ask a Pro is intended to be a place where you can receive help fixing a problem in your code, or get some direction on a problem you're having, not request to have someone code for you.
samdeman22 #6
Posted 12 April 2013 - 01:25 AM
Ask a Pro is intended to be a place where you can receive help fixing a problem in your code, or get some direction on a problem you're having, not request to have someone code for you.
Yeah, I've just released this in ALPHA instead of waiting around for help and advice. :)/>
Exerro #7
Posted 12 April 2013 - 02:55 PM
Wait, so all that needs fixing is the end function? I think I can help…if you still need help…
SuicidalSTDz #8
Posted 12 April 2013 - 03:28 PM
My brain can't handle this anymore and its gotten to the point where I need your help.
If you are overwhelmed, perhaps taking a break and returning to the project in the future would be suffice. The worst thing to do when you are stuck is to keep trying. You will add garbage code and create new bugs. It is obviously still up to you if you want someone to finish this. If I were you, which i'm not, I would take a break and work on something else. However, I wish you the best of luck in whichever path you may deem appropriate.
samdeman22 #9
Posted 13 April 2013 - 08:42 AM
Wait, so all that needs fixing is the end function? I think I can help…if you still need help…

Thanks, It is nearly working I think but its just the part where I write it onto the page, The fact that it's two dimensional has escaped and I've just gone and printed each line of the file into one line on the page (which doesn't fit) that make sense? yeah, go for it, the API is released as alpha for now in the APIs and Utilities section.

My brain can't handle this anymore and its gotten to the point where I need your help.
If you are overwhelmed, perhaps taking a break and returning to the project in the future would be suffice. The worst thing to do when you are stuck is to keep trying. You will add garbage code and create new bugs. It is obviously still up to you if you want someone to finish this. If I were you, which i'm not, I would take a break and work on something else. However, I wish you the best of luck in whichever path you may deem appropriate.

Good grammar, yeah, I'm not going to stop now, I'm so… close, just some math problem as explained above. :)/>