- ComputerCraft | Programmable Computers for Minecraft
- → Lion4ever's Content
Lion4ever's Content
There have been 23 items by Lion4ever (Search limited from 10-February 22)
#241874 secure modem type
Posted by
Lion4ever
on 30 December 2015 - 01:50 AM
in
Suggestions
#241855 secure modem type
Posted by
Lion4ever
on 29 December 2015 - 11:37 PM
in
Suggestions
It would be really useful for bank servers or door locks or shops.
Aditionally this would make long range modems a bit less over powerd since the secure modem would only return the id of the last repeater. And because of that there would be more than one long range modem per world.
#241871 Ranged Turtles (again)
Posted by
Lion4ever
on 30 December 2015 - 01:39 AM
in
Suggestions
Wait_, on 27 October 2015 - 06:35 AM, said:
Run "pastebin run zeYgY0NF" on a command computer -> admin bow
#239785 Random 3D Maze Builder
Posted by
Lion4ever
on 06 December 2015 - 11:07 PM
in
Turtle Programs
function forward() turtle.forward()with
function forward() repeat until turtle.forward()and same with up and down? that would make the program a lot more robust if something stands in its way.
the line
turtle.select(3)is no longer nessary because of the selectBlock method and only causes the turtle slots index to flicker after every move.
I love running through your mazes and i have created quite a few of them in my world
#241873 Piston placement
Posted by
Lion4ever
on 30 December 2015 - 01:45 AM
in
Suggestions
#240002 Minesweeper with Pistons
Posted by
Lion4ever
on 10 December 2015 - 01:48 AM
in
Command Programs
pastebin get rg3Bx79Z minesweeper
minesweeper [cells in x-dir] [cells in z-dir] [mines] [min x corner of board] [min y] [min z]
#241810 Minesweeper with Pistons
Posted by
Lion4ever
on 29 December 2015 - 03:09 PM
in
Command Programs
Bomb Bloke, on 11 December 2015 - 01:57 AM, said:
If there's anything above the play area (eg raised indicator blocks from the last play), building a minefield in that spot may bug out.
Bomb Bloke, on 11 December 2015 - 01:57 AM, said:
Bomb Bloke, on 11 December 2015 - 01:57 AM, said:
But that would not be survival like and would not be able to explode at all.
The disadvantage with cables is that there can be computercraft without the cables and that the computer must not restart for the game to work...
#241807 Is there a better way to get world orientation without gps?
Posted by
Lion4ever
on 29 December 2015 - 02:35 PM
in
Ask a Pro
http://www.computerc...ch-or-a-ladder/
#239631 Ingame Step-by-Step Debugger
Posted by
Lion4ever
on 03 December 2015 - 09:14 PM
in
Programs
Yevano, on 03 December 2015 - 08:27 PM, said:
SquidDev, on 03 December 2015 - 08:53 PM, said:
If it is possible, there would not be any need to worry about syntax.
SquidDev, on 03 December 2015 - 08:53 PM, said:
That is very true, using patterns sure is flakey. Atm my debugger is not able to handle quite a few unusual snytaxes which lua allowes. I will look into your parser, but replacing is for the normal stuff easier.
#239640 Ingame Step-by-Step Debugger
Posted by
Lion4ever
on 03 December 2015 - 10:45 PM
in
Programs
Yevano, on 03 December 2015 - 09:51 PM, said:
#239606 Ingame Step-by-Step Debugger
Posted by
Lion4ever
on 03 December 2015 - 05:42 PM
in
Programs
SquidDev, on 23 May 2015 - 05:25 PM, said:
This is an advanced lua debugger without using the debug api.
Features:
- stepping through your program while seeing the source
- show local and globals variables
- show which functions have been called (f4)
- set breakpoint and run until you reach them
- step-into own function and step-over
- stepping backwards lightweight (undoing changed)
- stepping backwards heavyweight (replay the program to last point)
- stops on lines which throw errors (so you can see the locals or step back)
- reverses some functions (like the turtle ones)
- stop the program while it is running (f6 in source window)
- lua prompt in the middle of the program execution (f10)
local function poop() end
Screenshots:


The red line is a breakpoint:

Now the turtle stepping:


And after some stepping back:

Technical details:
Every start of a line gets a _lbpcf() call (line breakpoint call function). It prints the source and waits for user input. The local statements get replaced by _cnlv (create new local variable) so that they can be handled with the __index-metamethod of the environment. _bscf and _becf (block start/end call function) handle the scoping. For how the modified program look, see the .crash file that is created.
System requirements:
Required:
- CraftOS 1.74 (might work for lower versions)
- >0 tps
- Advanced Computer with CraftOS 1.74
- 20 tps
pastebin get LdKK3BTE
#239637 Ingame Step-by-Step Debugger
#239635 Ingame Step-by-Step Debugger
Posted by
Lion4ever
on 03 December 2015 - 09:50 PM
in
Programs
SquidDev, on 03 December 2015 - 09:26 PM, said:
That would be so slow
To prevent the keywords in strings problem, i could simply remove all strings with something like
gsub('"(.-)"',function(t) table.insert(strings,t) end)
and put them back after the modifying. Once i can think of a way to do that with both " and '
#240545 Command Computer's Turtle API
Posted by
Lion4ever
on 15 December 2015 - 05:46 AM
in
Command Programs
http://pastebin.com/rYsd9J8B
#240576 Command Computer's Turtle API
Posted by
Lion4ever
on 15 December 2015 - 04:23 PM
in
Command Programs
Bomb Bloke, on 15 December 2015 - 02:26 PM, said:
Bomb Bloke, on 15 December 2015 - 02:26 PM, said:
@e[type=Pig,c=1]Asking for a selcetor was my first choice because it is by far the most flexible way to select a entity and the ability to seize a creeper running by and let him do your work is quite satisfying. Only asking for the type may indeed be a bit easier for the user.
Wojbie, on 15 December 2015 - 02:36 PM, said:
I am going to add that as a default.
#240580 Command Computer's Turtle API
Posted by
Lion4ever
on 15 December 2015 - 05:08 PM
in
Command Programs
Window is top left again
Only asking for type instead of selector now.
And default is an ArmorStand with a turtle on its head.
#240472 Command Computer's Turtle API
Posted by
Lion4ever
on 14 December 2015 - 03:56 PM
in
Command Programs
Bomb Bloke, on 12 December 2015 - 01:50 AM, said:
It returns false, a complain that nothing has changed and the nbt tag.
Since 1.8 has a /entitydata: Can you modify your api so that the turtle can be represented by any mob (with {NoAI:1b} ) and Armorstands (with {NoGravity:1b} )? Or allow me to modify your script and link it from here?
With the ArmorStand Pose tag it would even be possible to have an animated turtle/player like thing.
- ComputerCraft | Programmable Computers for Minecraft
- → Lion4ever's Content


