Jump to content




[MC 1.2.5] - [CC 1.33] ccSensors [SMP/SSP]

peripheral java lua

454 replies to this topic

#81 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 02 April 2012 - 03:09 PM

View Postgigagames, on 02 April 2012 - 02:47 PM, said:

console1
and console
What is the difference

console1 is the old console program. (just keeping 1 previous version as well)

console is the new program - added save state and big monitor support

#82 gigagames

  • Members
  • 55 posts

Posted 02 April 2012 - 03:48 PM

1. whats in the new v. new ?
2. what is this on the top from the pc on the screen "page 4 ?"

#83 gigagames

  • Members
  • 55 posts

Posted 02 April 2012 - 04:35 PM

console doint work her the error :
API sensors is already being loaded
API sensorsUI is already being loaded
console:12: attempt to index ? (a nil value)

#84 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 04 April 2012 - 02:41 PM

giga,
do you have a controller placed near the computer?

a Question for you all....

should i keep updating the MC 1.1 version?

or keep only 1.2.3 + 1.2.5?

#85 gigagames

  • Members
  • 55 posts

Posted 04 April 2012 - 03:21 PM

yes i haven controller near the compter, i have save my world, get in again and then its works Ö.Ö xD

#86 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 04 April 2012 - 04:39 PM

For anyone having trouble, i'm making a few programs that will be useful, and possibly be part of ccSensors?, with the mods i use.

#87 Turtlemoviesco

  • New Members
  • 22 posts
  • LocationKansas :( (Was Germany)

Posted 04 April 2012 - 06:15 PM

Does the 1.1 version work with tekkit? The server?

#88 ChilliConCarnage

  • New Members
  • 2 posts

Posted 04 April 2012 - 07:21 PM

A guide to the functions in the API would be nice.

#89 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 05 April 2012 - 05:07 PM

View PostChilliConCarnage, on 04 April 2012 - 07:21 PM, said:

A guide to the functions in the API would be nice.

Check the latest version, each function has been commented.

#90 vvenaya

  • Members
  • 27 posts

Posted 08 April 2012 - 09:50 AM

i am getting an NPE with the build 14 version

http://pastebin.com/1FTUi3hD

this happens when i click on any button on the SensorGUI

#91 pkmnfrk

  • New Members
  • 1 posts

Posted 09 April 2012 - 03:37 AM

Wow, I really like this mod! It was really easy to get it set up so I could remotely monitor my Industrial Craft Reactor!

Anyway, now I want to be able to monitor the MFSUs storing the output from the reactor, but I can't seem to be able to get the sensor to point at them. They only want to monitor the reactor, no matter how far away I go. Is there some way to make them point at the MFSU instead of the reactor?

Thanks!

#92 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 10 April 2012 - 12:47 PM

View Postpkmnfrk, on 09 April 2012 - 03:37 AM, said:

Wow, I really like this mod! It was really easy to get it set up so I could remotely monitor my Industrial Craft Reactor!

Anyway, now I want to be able to monitor the MFSUs storing the output from the reactor, but I can't seem to be able to get the sensor to point at them. They only want to monitor the reactor, no matter how far away I go. Is there some way to make them point at the MFSU instead of the reactor?

Thanks!

i'll look into that - might be a typo in the lua API.

#93 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 10 April 2012 - 12:50 PM

just a quick update, working on a new lua API, new console program, and new machine specific dashboard programs...

a quick peek at "current" design for BC Engine dashboard:

the code for this program:
Spoiler
Posted Image

#94 Cybergebi

  • New Members
  • 4 posts

Posted 11 April 2012 - 03:45 PM

Hi, i use BUILD 11 with MC 1.1, i wanted to use the Console, it Works, but Only at the Targets did not Work(Only MENUE:TARGET). And i can't get Read Information, i place a Sensor Bock, left form the Computer and the Sensor 2 Block Right from the Ractor! I Use IndustrialCraft Chip with 0.Reactor! Sensor Block and Sensor are Connected!

Why it didn't works?

Greetings Cybergebi

#95 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 11 April 2012 - 04:25 PM

View Postyoskaz01, on 10 April 2012 - 12:47 PM, said:

View Postpkmnfrk, on 09 April 2012 - 03:37 AM, said:

Wow, I really like this mod! It was really easy to get it set up so I could remotely monitor my Industrial Craft Reactor!

Anyway, now I want to be able to monitor the MFSUs storing the output from the reactor, but I can't seem to be able to get the sensor to point at them. They only want to monitor the reactor, no matter how far away I go. Is there some way to make them point at the MFSU instead of the reactor?

Thanks!

i'll look into that - might be a typo in the lua API.

can you copy here the function you were using?
the setActiveReading() function requires the string name of the probe:
for IC2:
"targetInfo",
"Reactor",
"EUStorage",
"WirelessEUStorage",
"ReactorContent",
example:
sensor="PUT YOUR SENSOR NAME HERE"
target="PUT TARGET NAME HERE"   - can be retrieved by getAvailableTargets
local side=sensors.getController()
local content = sensors.getSensorReadingAsTable(side,sensor,target,"ReactorContent")
    for i,v in ipairs(content) do
        print(v)
    end


#96 Cybergebi

  • New Members
  • 4 posts

Posted 11 April 2012 - 06:06 PM


term.clear()
term.setCursorPos(1,1)
if sensorInfo.cardType == "IndustrialCraft2 SensorModule" then
-- example:
--result = sensors.getReading(side, sensor,"heat","maxheat","output","chambers")
end
result = sensors.getReadingAsTable(side, sensor) 


print(textutils.pagedTabulate(result))
pause("press any key to continue")


#97 theubie

  • New Members
  • 9 posts

Posted 11 April 2012 - 08:52 PM

View Postyoskaz01, on 10 April 2012 - 12:47 PM, said:

View Postpkmnfrk, on 09 April 2012 - 03:37 AM, said:

Wow, I really like this mod! It was really easy to get it set up so I could remotely monitor my Industrial Craft Reactor!

Anyway, now I want to be able to monitor the MFSUs storing the output from the reactor, but I can't seem to be able to get the sensor to point at them. They only want to monitor the reactor, no matter how far away I go. Is there some way to make them point at the MFSU instead of the reactor?

Thanks!

i'll look into that - might be a typo in the lua API.

I can confirm this behavior as well.

When I first placed my sensor next to a nuclear reactor and a simple batbox and got a list of targets, it listed everything (including a computer console I had in range as well, fyi). once I set a target (in this case, the batbox) every subsequent call to the get target function returned only the batbox.

I even placed a second sensor out of range of the batbox but in range of the reactor. That one returned no targets.

I removed both sensors and rebuilt them with the same results.

#98 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 11 April 2012 - 09:41 PM

View Posttheubie, on 11 April 2012 - 08:52 PM, said:

View Postyoskaz01, on 10 April 2012 - 12:47 PM, said:

View Postpkmnfrk, on 09 April 2012 - 03:37 AM, said:

Wow, I really like this mod! It was really easy to get it set up so I could remotely monitor my Industrial Craft Reactor!

Anyway, now I want to be able to monitor the MFSUs storing the output from the reactor, but I can't seem to be able to get the sensor to point at them. They only want to monitor the reactor, no matter how far away I go. Is there some way to make them point at the MFSU instead of the reactor?

Thanks!

i'll look into that - might be a typo in the lua API.

I can confirm this behavior as well.

When I first placed my sensor next to a nuclear reactor and a simple batbox and got a list of targets, it listed everything (including a computer console I had in range as well, fyi). once I set a target (in this case, the batbox) every subsequent call to the get target function returned only the batbox.

I even placed a second sensor out of range of the batbox but in range of the reactor. That one returned no targets.

I removed both sensors and rebuilt them with the same results.

Make sure you change the sensor's reading type to Energy storage :P/>

#99 theubie

  • New Members
  • 9 posts

Posted 11 April 2012 - 09:48 PM

View PostFuzzyPurp, on 11 April 2012 - 09:41 PM, said:

View Posttheubie, on 11 April 2012 - 08:52 PM, said:

View Postyoskaz01, on 10 April 2012 - 12:47 PM, said:

View Postpkmnfrk, on 09 April 2012 - 03:37 AM, said:

Wow, I really like this mod! It was really easy to get it set up so I could remotely monitor my Industrial Craft Reactor!

Anyway, now I want to be able to monitor the MFSUs storing the output from the reactor, but I can't seem to be able to get the sensor to point at them. They only want to monitor the reactor, no matter how far away I go. Is there some way to make them point at the MFSU instead of the reactor?

Thanks!

i'll look into that - might be a typo in the lua API.

I can confirm this behavior as well.

When I first placed my sensor next to a nuclear reactor and a simple batbox and got a list of targets, it listed everything (including a computer console I had in range as well, fyi). once I set a target (in this case, the batbox) every subsequent call to the get target function returned only the batbox.

I even placed a second sensor out of range of the batbox but in range of the reactor. That one returned no targets.

I removed both sensors and rebuilt them with the same results.

Make sure you change the sensor's reading type to Energy storage :P/>

Tried that. No joy. I did notice that after completely quitting out of minecraft the targets appear correctly again...until I choose one and get a reading from it.

From that point forward, whatever target I got the reading from is the only target that appears when get targets is called.

#100 FuzzyPurp

    Part-Time Ninja

  • Members
  • 510 posts
  • LocationHarlem, NY

Posted 12 April 2012 - 05:55 AM

WHat is the sensor range you set?





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users