Jump to content




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

peripheral java lua

454 replies to this topic

#61 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 11:28 AM

Deutsch :
Hi, wie kann ich mit CCsensors machen das er mir in einer schleife die hitze meines reaktors anzeigt , die cellen und denn output ?
wenn man das script startet soll er auch direckt mit denn richtigen sensor connecten

English :
"sry for the bad english i use google translater" :
Hi, how can I do with CCsensors he shows me in a loop, the heat of my reactor, because themicelles and output?
when the script starts, he is right because direckt with sensor-connect

#62 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 31 March 2012 - 11:37 AM

View Postgigagames, on 31 March 2012 - 10:18 AM, said:

Hi,
it works whit cc 1.3.1 ^^
but i have a bug :o/>
http://img140.images.../3509/wtfqc.png -> it is confused
http://img256.images.../4672/blubr.png -> it doint check the heat why ? i need this for the heat , and this doint work -.-



try re-downloading the .zip , i think you might have an old console program.
i just checked again and it works ok.

http://imgur.com/a/ZPJEn#0

you mentioned you use cc 1.3.1, which minecraft version? 1.1 or 1.2.3 ?

Also, i found a bug in textutils - it exits the lua program when trying to display a boolean value.
to fix:
change line 56 in /rom/apis/textutils:
from:
nMaxLen = math.max( string.len( sItem ) + 1, nMaxLen )
to:
nMaxLen = math.max( string.len( tostring(sItem) ) + 1, nMaxLen )

#63 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 11:41 AM

hi,
i have install this mod new and no its work xD
but by bc reading the skript say nil / day night check = nil -.-
can you say all lua commands from this mod ? then i can code for me an lua script xD

edit : oh i doint have see you question xD i use mc 1.2.3

#64 mrrg

  • New Members
  • 9 posts

Posted 31 March 2012 - 12:41 PM

Hello

Awesome mod! I have some trouble to get it work though.

First I set up a computer a controler, encoded a transmitter, then I set up a sensor
with a transmitter card and a IC2 module.

When I tried to run ccSensors/console I got attempt to index ? (a nil value) on line 3

Okay so I stopped for the night and restarted today, and voila!! everything worked...
I could read the reactor heat and all..

And then suddenly the console program lost the target..also I had to restart the console program.
It can see the sensor but no target..

Here's my Modloader.txt

Spoiler

I am using a newer forge than you recommend but that is to get latest buildcraft working.

#65 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 12:58 PM

FINE: Mod Initialized: "mod_ccSensors 0.1_MC1.1.0" from mod_ccSensors.class
Mar 31, 2012 2:26:26 PM ModLoader readFromModFolder
FINER: Adding mods from /home/rg/.minecraft/mods/ccSensors_extractMe123_build010.zip

^^ you muss extract the ccSensors folder
then you became an Mods folder , in this where 2 folder :
ccSensors
and
ccSensors.zip

put the 2 folders in the mods folder , and change the name from the
ccSensors.zip to Sensors.zip :o/>

#66 mrrg

  • New Members
  • 9 posts

Posted 31 March 2012 - 01:15 PM

Hi

Thanks I did this now and so far it works.
Leaving the ..extractMe.. was a mistake.. I did not now about the renaming though.

View Postgigagames, on 31 March 2012 - 12:58 PM, said:

FINE: Mod Initialized: "mod_ccSensors 0.1_MC1.1.0" from mod_ccSensors.class
Mar 31, 2012 2:26:26 PM ModLoader readFromModFolder
FINER: Adding mods from /home/rg/.minecraft/mods/ccSensors_extractMe123_build010.zip

^^ you muss extract the ccSensors folder
then you became an Mods folder , in this where 2 folder :
ccSensors
and
ccSensors.zip

put the 2 folders in the mods folder , and change the name from the
ccSensors.zip to Sensors.zip :o/>


#67 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 01:56 PM

Leaving the ..extractMe.. was a mistake.. I did not now about the renaming though.
what ? i'm and google translater not understand what you will say xD

#68 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 31 March 2012 - 02:46 PM

great to hear it's all working now.

i think i know why you had the issue running the console command.
since any system apis are only loaded when the computer starts, if you connect the peripheral after the computer is started it won't automatically load the sensor api.

i'll fix it in the next build - in the meantime you can do one of the following:

1. add the following 2 lines in the beginning of the console program:
os.loadAPI("/rom/apis/sensors")
os.loadAPI("/rom/apis/sensorsUI")

or

restart the computer after the peripheral is attached/placed - (hold control+r)


i'm working on writing a full help on all commands available in the API.

#69 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 03:00 PM

On the first side you have say :
DOWNLOAD & INSTALL
but you doint say what about install add it pls xD so nobody "who read" have problems ^^

#70 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 31 March 2012 - 03:09 PM

i've sent giga a sample program showing a possible usage of the sensors api to get IC2 reactor info and thought, why not post it here as well:)


Reactor simple demo program:
Spoiler


#71 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 31 March 2012 - 03:18 PM

View Postgigagames, on 31 March 2012 - 03:00 PM, said:

On the first side you have say :
DOWNLOAD & INSTALL
but you doint say what about install add it pls xD so nobody "who read" have problems ^^

fixed..

not sure where my how to install section gone to....
must have been deleted when i reposted.

#72 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 03:20 PM

oh you have send it me nice thx :o/>

#73 Yurameki

  • Members
  • 25 posts

Posted 31 March 2012 - 06:54 PM

Any idea when SMP support might happen? I'm really excited for this mod it'd be perfect for my server!

#74 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 07:01 PM

i doint have an idea
but i think , befor you make SMP support , make a wiki / list whit all new commands

AND first edit you lua script , day check is wrong , redstone signal is wrong "say all time true"

#75 mrrg

  • New Members
  • 9 posts

Posted 31 March 2012 - 08:04 PM

View Postgigagames, on 31 March 2012 - 01:56 PM, said:

Leaving the ..extractMe.. was a mistake.. I did not now about the renaming though.
what ? i'm and google translater not understand what you will say xD

Leaving the file with extractMe in the file name inside the mods directory was a mistake.
I did not now that I needed to rename the ccSensors.zip file though.

#76 mrrg

  • New Members
  • 9 posts

Posted 31 March 2012 - 08:06 PM

Ok, it explais why a restart fixed it.

View Postyoskaz01, on 31 March 2012 - 02:46 PM, said:

great to hear it's all working now.

i think i know why you had the issue running the console command.
since any system apis are only loaded when the computer starts, if you connect the peripheral after the computer is started it won't automatically load the sensor api.

i'll fix it in the next build - in the meantime you can do one of the following:

1. add the following 2 lines in the beginning of the console program:
os.loadAPI("/rom/apis/sensors")
os.loadAPI("/rom/apis/sensorsUI")

or

restart the computer after the peripheral is attached/placed - (hold control+r)


i'm working on writing a full help on all commands available in the API.


#77 gigagames

  • Members
  • 55 posts

Posted 31 March 2012 - 10:16 PM

i have edit you script screenshot :
http://imageshack.us...0401001115.png/
its works on the PC and on the monitor togheter xDD
and her the script xD :
Spoiler


#78 gigagames

  • Members
  • 55 posts

Posted 01 April 2012 - 12:20 PM

print("heat / maxHullHeat = "..result.heat.." / "..result.maxheat)
i will make a head check
what i need ? if heat ...
or
if result.heat ?

and can you maken an program wo he show whether one uranium cell was empty ? and when one was empty then print ("empty")

#79 yoskaz01

    Featured on Reddit!

  • New Members
  • 92 posts

Posted 02 April 2012 - 01:59 PM

updated 1.2.3 version - check out the main post.
Posted Image

#80 gigagames

  • Members
  • 55 posts

Posted 02 April 2012 - 02:47 PM

console1
and console
What is the difference





2 user(s) are reading this topic

0 members, 2 guests, 0 anonymous users