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.
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