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

OpenCCSensors program repository

Started by Mikeemoo, 20 January 2013 - 01:54 AM
Mikeemoo #1
Posted 20 January 2013 - 02:54 AM
Hello everyone!

I wanted a place to post a bunch of OpenCCSensors programs that I've been making, but didn't want to spam the forum full of them and didn't want them getting lost within the OpenCCSensors thread in the main forum, so;

This initial post will list the master versions of each program. If anyone wants to add to them, improve them, make new ones, please please do, and I'll update this post.

If any become highly reliable, easy to use, easy to configure and helpful, there's a chance they'll get added into the OpenCCSensors default install programs if Cloudy and the other devs decide it'd be a good addition.

Start very simple with just one to get the ball rolling, but i'll add more as time goes on..



MapDisplay

Features:
  • Display an image of the map on a monitor
  • Automatically detects your monitor, sensor, chest and uses the first map it can find

Spoiler

Download: http://pastebin.com/pNtTS0MB

TODO:

Spoiler
  • Map should center on GPS location of the computer if GPS is available
  • Map should be scrollable
  • User should be able to switch between any map within any of the detected inventories
  • It should display the name of the map
  • Most of the code should be moved into a reusable API
Mikeemoo #2
Posted 20 January 2013 - 05:26 AM
Updated with a newer version of the map script. It'll now auto-detect the monitor, sensor, chest and map
superaxander #3
Posted 21 January 2013 - 09:22 AM
SO cool
oxbruceox #4
Posted 25 January 2013 - 07:49 PM
can you plz add a MK10 sensor wich will allow you to have Infiate range
Mikeemoo #5
Posted 25 January 2013 - 08:41 PM
can you plz add a MK10 sensor wich will allow you to have Infiate range

No. :)/>
oxbruceox #6
Posted 26 January 2013 - 07:55 AM
can you plz add a MK10 sensor wich will allow you to have Infiate range

No. :)/>
well it would be good for custom maps :D/>
PixelToast #7
Posted 26 January 2013 - 07:56 AM
i like
Leo Verto #8
Posted 26 January 2013 - 08:09 AM
can you plz add a MK10 sensor wich will allow you to have Infiate range
No. :)/>
well it would be good for custom maps :D/>
It would probably cause the server to crash, because the sensor checks for possible targets in it's range and infinite range would result in the sensor checking the whole world, block by block.
Cranium #9
Posted 26 January 2013 - 08:12 AM
Well…..color me impressed! I really like the map display!
onlyhtml #10
Posted 28 January 2013 - 02:17 PM
When I run the program, it can't find the map. I changed item.map to Map (name not rawname), and now I get the words "Map_0" on the bottom right corner of the monitor, but no map itself. Ideas?
Sakata #11
Posted 05 July 2013 - 10:48 PM
Hey there.
I keep getting this error running the program:

mapdisplay:56: bad argument: table expected, got nil

I've been trying to look at the program and see if I can fix it, but I don't see anything wrong.
PirateKitty #12
Posted 06 July 2013 - 10:45 AM
Look great. I will have to install that peripheral now.
TheOddByte #13
Posted 07 July 2013 - 02:56 PM
OMG! I love this!
Really great work :)/>
+1 for this
TheOddByte #14
Posted 07 July 2013 - 03:36 PM
One question.. What sensor card are you supposed to use?
I get this error when trying to run the program

map:56: bad argument: table expected, got nil
I have tried using
  • World Sensor Card
  • All Proximity Cards
Please help me!
DBArcAngel #15
Posted 07 July 2013 - 05:45 PM
One question.. What sensor card are you supposed to use?
I get this error when trying to run the program

map:56: bad argument: table expected, got nil
I have tried using
  • World Sensor Card
  • All Proximity Cards
Please help me!
The Inventory sensor card but the program is outdated so you will need to change some of it to work with the newer version of the the mod. I tried but im a total noob with lua lol