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

Problems with monitor

Started by brainytwoo, 25 January 2017 - 08:24 PM
brainytwoo #1
Posted 25 January 2017 - 09:24 PM
Hello to all who see this!

You will have to excuse me if I have posted this in the wrong location as I am new to both this site and CC.

As the title states I am having some trouble with a bit of code I have written to monitor an unlimited number of Draconian energy cores using wireless modems.
The monitor connected to the main computer via wired modem displays a progress bar per computer that you enter into a table upon installation of the program.
When the computer starts everything appears to be working until you realize that one of your energy cores is not 100% full as it was when you started the program.
To get it to display the correct info you have to restart the program. I have been trying to solve this issue for the last 4 hrs with 0 results. If there is anyone that can tell me why it does this it would be much appreciated.

Currently I am testing it with 2 Draconian energy cores – 1 "core computer" each– and 1 main computer with a 3x5 monitor attached via wired modems.


This code is in development and does not work fully just yet.
–Outdated
–Instructions for setting up computers:
–1. Grab an advanced computer (idk if it has to be advanced but that is what I use) and place it next to one of the pylons for a draconic energy core.
– You can have as many of these computers/cores as you like.
–2. Grab another advanced computer and place a 5x3 monitor next to it or connect it via wired modems.
–3. Throw a wireless modem on each of your computers
–4. Now you can put the installer on all you computers: pastebin get 4x7cSPMX installer
– Note: As the installer says , you don't need the energy matrix computer, it is a future feature.



This code is in development and does not work fully just yet.

All of these require the touchpoint API: http://pastebin.com/pFHeia96

Here is the main code: http://pastebin.com/Y2QHQc0V

Here is my tester code (this code changes frequently): http://pastebin.com/c3e4V0EJ

If you want to take a look at my tester code you will need:
1. One advanced monitor (soon will be two) size: 4x8
2. A few BigReactors Trubines (the more turbines you have the more monitor space it needs for buttons)
3. A few BigReactors Reactors (these do nothing at the moment, they are here only so the program can find them and wont error out)
4. A few Draconic Energy Cores (However many energy bars will fit on your monitor)
5. Connect everything with wired modems




Thank you in advance to all who help me!

#Edit: I discovered that my issue was the way I was putting data into the table. I was using -table.insert- which keeps making new parts inside the table… I did not know that. To fix my issue all i did was move the cores table into the function so that it resets when u call it.
PS: I have given up on the wireless draconinc energy core reader computer. I could not get them to accurately math the output as draconic cores have no .getEnergyOut or whatever.

#Edit: Fixed the pastebins, sorry for any trouble it caused, I am still new to this site.
Edited on 01 February 2017 - 12:39 PM
KidBrine #2
Posted 26 January 2017 - 07:50 PM
I would probably be able to help if the code was still on the pastebin links…
brainytwoo #3
Posted 01 February 2017 - 01:36 PM
Fixed the pastebins.
I did not know that you had to right click them and change the hyperlink or whatever.
It was mb, sorry
Lupus590 #4
Posted 01 February 2017 - 09:11 PM
Related? http://www.computercraft.info/forums2/index.php?/topic/14784-touchpoint-api/page__view__findpost__p__264256

So what's the issue here? Your OP has a lot of edits and it's a bit hard to keep track of what needs doing.
brainytwoo #5
Posted 01 February 2017 - 09:44 PM
Is there a way to remove a topic?
I kind of made a mess of this one…
Bomb Bloke #6
Posted 02 February 2017 - 11:33 AM
As a general rule, we prefer not to remove threads without a rather strong reason. But I will lock this one and point out that it's more or less continued here.