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

Help A Noob Out

Started by ZenMonkey, 16 March 2012 - 10:53 PM
ZenMonkey #1
Posted 16 March 2012 - 11:53 PM
Hey, I just downloaded the computercraft mod, and I love it!

I know nothing about lua or how to make my own scripts. I have 2 questions. I've been on the forum looking at programs for my tutrle and computer. Some of the programs are in txt only. When I copy paste a txt file, what on earth do I save it as to allow it to run on my computer craft mod. My second question is, can someone point me to a place where I can download a lumber jack mod for my tutrle and a house builder program for my turtle.
jmcneely #2
Posted 17 March 2012 - 02:49 AM
You need to take the .txt off, it has to be just a file with no extension. As for the request for the lumberjack program, I have one but it is not perfect.
ZenMonkey #3
Posted 17 March 2012 - 03:57 AM
You need to take the .txt off, it has to be just a file with no extension. As for the request for the lumberjack program, I have one but it is not perfect.

Gotcha! :D/>/>

I can make the file in notpad right?

I don't mind if its not fully polished. I just need it to chop down trees lol
Luanub #4
Posted 17 March 2012 - 07:09 AM
Notepad will work, notepad++ would be a better choice.

Try checking the programs specifically the turtles program section of the forum and see if you can find what your looking for there. I know there is a house building program in there.

If there is no suitable lumberjack program let me know and I'll see if I cant make something for you.
ZenMonkey #5
Posted 17 March 2012 - 06:52 PM
Notepad will work, notepad++ would be a better choice.

Try checking the programs specifically the turtles program section of the forum and see if you can find what your looking for there. I know there is a house building program in there.

If there is no suitable lumberjack program let me know and I'll see if I cant make something for you.

Thanks :D/>/>

I have Notepad ++….. I made the files, but there is one slight problem with it. Maybe you can help. OK, for some reason I have to save the script as a ".file" first, then I have to go to where I saved the file, and rename the file with out the ".file", then it becomes the file I need it to be. It's not that big of a deal, but it feels so tedious. Do you know what I maybe doing wrong? I'm using notepad++ by the way. I tried notepad and it didn't work at all.

I checked out that lumber jack program. It works fine for what I need. Found the house too.. I have 2 house programs that seem to do the job. Thanks for the tips.
Luanub #6
Posted 17 March 2012 - 11:13 PM
When you go to save the file select All Types(*.*) for the save as type and it will save as just filename instead of filename.txt or filename.file.

Or you can also save it as a lua source file .lua as the save as type and it will also be executable in the craftos environment.
jmcneely #7
Posted 18 March 2012 - 03:02 AM
Here is my lumberjack program, I'm new to lua, so the programming is a mess. But basically, you set the turtle in front of a tree, it doesn't have to be directly in front it will move forward till it hits it, then it will cut and climb. It will also destroy leaves if they are above it while moving forward or climbing. For uneven grounds, it can drop if it needs to but to go up a hill it will simply destroy the part that is in the way thinking it is cutting down a tree.

I uploaded it as a zip file just because I'm too lazy to save it has a txt. So you should only need to unzip it, but if you can't I can upload it has a text file.

EDIT: Fixed some grammar issues.
ironsmith123 #8
Posted 18 March 2012 - 07:14 AM
If your using windows when it takes you to the save as window and it has the bar near the bottom of the GUI that says ".txt" change it to All Files and remove the .txt extension if there is one. As to the lumberjack program, use the one jmc posted or just search the program library, I know for a fact I have seen at least 2.
ZenMonkey #9
Posted 19 March 2012 - 01:29 AM
Thanks to all you guys for your help. Everything worked like a charm :D/>/>

Good times. I have 2 lumber jack programs now lol and I found some other cool stuff in the programs section. This forum kicks ass!