Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Log

Members
  • Content Count

    44
  • Joined

  • Last visited

  • Days Won

    13

Log last won the day on January 6

Log had the most liked content!

About Log

  • Rank
    Junior Member

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1697 profile views
  1. There is an interesting device in the OpenComputers mod that allows you to determine the block hardness at a distance. But the trouble is, the data it gives out is rather noisy and the greater the distance, the more noise. To determine the true hardness of a block, we can scan it several times and average the result. The noise that interferes with scanning is of a probabilistic nature. And after several scans, you can statistically find what the most likely hardness of the block is. In one tick, we can scan 64 blocks. To analyze the entire available area (65 x 65 x 64) with hundred of
  2. Log

    Drone Pathfinding?

    Depends on the size of the known area. At a distance of 1-2 chunks, A* or JPS work quite well even on a 1 tier CPU. A* requires a lot more memory, but its heuristics are better for drones.
  3. I own black magic. Сan determine the block hardness in one scan, at any distance. Maybe I'll write a post explaining how to do it.
  4. I know an easy way to find out the hardness of a block at any distance in one scan. Accuracy 99.31% When move the robot a couple of blocks, the accuracy will be 100%.
  5. Yes, this program is outdated. here is fixed https://pastebin.com/eZkdDK7N
  6. That is mighty easy. computer.pullSignal = nil
  7. local function compass() local sides = {2, 1, 3, 0} -- links of cardinal points, for raw data local D = nil for s = 1, #sides do if robot.detect(3) or robot.place(3) then -- check for block in front side local A = geolyzer.scan(-1, -1, 0, 3, 3, 1) -- scan blocks around the robot robot.swing(3) local B = geolyzer.scan(-1, -1, 0, 3, 3, 1) for n = 2, 8, 2 do if math.ceil(B[n])-math.ceil(A[n])<0 then -- check the difference between two scans D = sides[n/2] -- set the direction break end end else -- turn if there is
  8. Robot can determine the facing using the geolizer. And you can scan 16x16 blocks at a time, as I did.
  9. Program and library for building GPS network. https://github.com/DOOBW/OC-GPS Download: wget https://raw.githubusercontent.com/DOOBW/OC-GPS/master/usr/bin/gps.lua /bin/gps.lua wget https://raw.githubusercontent.com/DOOBW/OC-GPS/master/usr/lib/gps.lua /lib/gps.lua The functionality is the same as in the ComputerCraft. Additional command "flash" allows to upload firmware to EEPROM. When the coordinates are precisely determined, when flashing the position of the microcontroller can be omitted - at the first start it will determine its position from neighboring sate
  10. Update Added ability to work with solar panels. When the energy level falls below 30 percent, the robot climbs to the surface and charges from the built-in solar panel. There is a check of time of day and weather conditions.
  11. Log

    Transposer

    This bug has already been fixed You need update the mod to the latest version.
  12. There are quite a few games, but their do not post them on this forum. For example: simple RPG Or flappy bird
  13. I fixed it. Download the file again, please. The error was due to the computer.beep(), which is not compatible with the old versions OpenComputers. P. S. Instead of batteries, I advise you to use the experience upgrade or additional generator
  14. Such objects are just tables, they must be processed in the correct sequence. players = component.debug.getPlayers() -- get a players list for i = 1, players.n do print(players[i]) -- display the name of the next player end player = component.debug.getPlayer(players[1]) -- get player proxy by name from list world = player.getWorld() -- get the proxy of the world in which the player is located print(world.getDimensionName()) -- print the name of the world -- Or you can get everything at once players = component.debug.getPlayers() for i = 1, players.n do print(players[i], component.d
  15. There are variables in the code that can be customized chunks - how many chunks need to be processed min and max - the minimum and maximum hardness of mined blocks port - port for interaction with the robot (if a wireless card is installed)
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.