Jump to content




Buildcraft controls programs


14 replies to this topic

#1 virtualayu

  • New Members
  • 31 posts

Posted 04 April 2012 - 12:38 PM

Hi, for the record i'm french and my english is not that good so excuse me if i spell or say wrong.
My programs will be in french (only the part print on CC screen) but i put the traduction on commentary.

I open this tread to post my programs for using Buildcaft with computers.
I will try to make everything (if possible) in Buildcraft controllable by computer.

Of course I use the alpha 3.1.4 release of Buildcraft for the new "gates".
That's very very usefull.

My first on : "Tank lvl control"
Spoiler

If you have some advice or comment to do, don't hesitate.

#2 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 04 April 2012 - 12:58 PM

You could make the colors changeable. I could help with a configuration program so if you boot it it ask which color is for example the fuel tank

#3 virtualayu

  • New Members
  • 31 posts

Posted 04 April 2012 - 01:09 PM

effectively now you say that i think i can make something like that but only the part for chosing color not the part that change value on the program.... so i need help ^^

#4 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 04 April 2012 - 09:17 PM

It would be a pleasure

#5 virtualayu

  • New Members
  • 31 posts

Posted 05 April 2012 - 01:20 PM

i think a can create a *.ini file with that command : conf = fs.open("conf.ini", "w")
and i write data inside with : conf.writeLine("..waterColor1..") conf.writeLine("..waterColor2..") etc with the part who ask what color we want
and at the start of the code i check if the file conf.ini exist and read it with : if fs.exists("conf.ini") == true then waterColor1 = conf.readLine() waterColor2 = conf.readLine() ...etc

what dou you think about something like that?

#6 virtualayu

  • New Members
  • 31 posts

Posted 06 April 2012 - 03:48 AM

i finaly made it... ^^ it takes me somthing like 6 or 7 hours of hard coding, but i made it (by my self XD yeah^^)
It was really really difficult for me... This is my first "real" program (my first one was a pasword program ^^) and i'm a beginner on lua.

Now in my place it's almost 6:00 am so i will make the translate and post it tomorrow.
Now i'm tired so i'm going to sleep but i'll go with a real good feeling of fulfillment!! ^^

#7 virtualayu

  • New Members
  • 31 posts

Posted 06 April 2012 - 03:50 PM

Well i changed the pastebin link with my new code.
Now on the first use it say First use and ask for all the colors.
Then he write everything in a configuration file named tankConf.ini
after that at every launch of the program it will read the conf file and apply it.

So now you can do your wire configuration like you want and even change it if you want you juste have to delete the conf file.

if you have a bug, a comment or an advice tell me ^^.

#8 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 06 April 2012 - 11:51 PM

you could create a reconfigure program which automatically removes the conf.ini and starts the config wizard :P/>

#9 virtualayu

  • New Members
  • 31 posts

Posted 07 April 2012 - 04:06 AM

Well... ^^ maybe later ^^ i plain to modify my programs and add rednet in the futur in order to centralize everyting on 1 computer but this will be better ^^

#10 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 07 April 2012 - 10:27 AM

I could help with rednet. and btw: it's plan not plain. Plain would be as far as I know a big open space

#11 nagojolokio

  • New Members
  • 2 posts
  • Locationunpluged and dodging bullets

Posted 08 July 2012 - 02:55 AM

on the last pic, what are those nodes next to the tanks that the wires connect to?

#12 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 10 July 2012 - 10:11 AM

View Postnagojolokio, on 08 July 2012 - 02:55 AM, said:

on the last pic, what are those nodes next to the tanks that the wires connect to?
I think you mean the Buildcraft 3.x Gates. They can read for example inventories of tanks and chests

#13 nagojolokio

  • New Members
  • 2 posts
  • Locationunpluged and dodging bullets

Posted 11 July 2012 - 10:26 PM

View PostWolvan, on 10 July 2012 - 10:11 AM, said:

I think you mean the Buildcraft 3.x Gates. They can read for example inventories of tanks and chests

yep thanks

#14 ShadowZenoX

  • New Members
  • 14 posts

Posted 13 July 2012 - 05:30 PM

Would be nice if this was english but good job

#15 snowmaster97

  • New Members
  • 9 posts

Posted 16 July 2012 - 05:43 AM

Wait, so is it in english yet or no?





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users