- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
Nexarius
-
Content Count
129 -
Joined
-
Last visited
-
Days Won
19
Posts posted by Nexarius
-
-
The translation looks pretty good.
hier: is easy it checks whether or not the event.pull() reached the timeout or got a message. On timeout it skips everything and displays a message that there is no available data to display.
dazu: It first checks if the id is already known and then replaces all the information with the new message and then sets dazu = false to prevent adding it at L56. (If you get the second message from the same computer you have to deal with the fact that you still have the first message and it has to be overwritten or deleted.)If you get infromation only from the me system then you don't need update() at all. You only need if component.isAvailabe("MeSomething") then dostuff() else nodata() end
I don't think that amount > capacity would be a big problem. It will just display percent > 100% and the bar will be filled completly.
6 hours ago, xilni said:EDIT: Does this forum have an inline code block formatting? Sometimes I don't want to create a large paragraph block for a few random code words.
idk
-
I guess you could start from L135 anzeigen(tankneu). tankneu is all the information about all liquids already added together and anzeigen is looping through the table and decides the position on the display and on L177-L185 it is giving it to zeigeHier([...stuff...]) label (visible liquid name), name (hidden liquid name, this will be used to check with the color table), menge (amount), maxmenge (max amount), prozent (percent, this is calculated and not in tankneu).
zeigeHier combines the variables into the message for the screen, changes the color and then writes to the screen.
You could probably start by making a table like this for anzeigen(tankneu)
tankneu = {
{name="water", label="water", menge=1000, maxmenge=2000, somethingnewhere=500},
{name="lava", label="lava", menge=4000, maxmenge=5000, somethingnewhere=1000},
}After that add somethingnewhere to L185 into zeigeHier and then change zeigeHier in L205 to include somethingnewhere and then change the table.inserts to have it too. There are two different messages shown if breite==40 (It means width==40) because there isn't enough space left and I decided to not show max amouint anymore on a width of 40 otherwise its too big and doesn't fit.
You will have to add anything new to farben.lua to get the colors. https://github.com/Nex4rius/Nex4rius-Programme/blob/master/Tank/server/tank/farben.lua
-
I didn't even know transposers existed because I stopped searching once I found the adapter + tank controller. I've changed it now to work with transposers and adapters at the same time.
The enderio ender fluid conduit trick is pretty neat.
-
Update to 2.8.10:
- added support for remote terminal
-
Its easy the program is looking for a file name "TPSBaseRaw" not "tpsBaseRaw" xDD
-
On 10.4.2017 at 0:21 PM, noahthegame said:
I know how to get the file on the web but how do i "translate it" like so
Input:
<!DOCTYPE html><html><h1>hallo world</h1><code1>i am dum just so you know</code1></html>
output:
hallo World
i am dum just so you know
say on a 2'st way:
have someone made a lua code that Can run a html code
ah You are looking for an ingame browser. I don't think anyone has made something like that.
-
That should work now. I also prevented interruption with ctrl + c and brute force attacks by increasing the time between each try by 1 sec.
-
os.sleep(1) require("term").clear() local event = require("event") function event.shouldInterrupt() return false end local passwort = "blabla" local anzahl = 0 print("Passwort") while io.read() ~= passwort do print("nicht OK") os.sleep(anzahl) anzahl = anzahl + 1 end print("OK")
-
I just tested it with
OpenComputers-MC1.10.2-1.6.2.7
SGCraft-1.13.2-mc1.10.2and it worked without problems.
-
5 minutes ago, tipclaydon said:
ill try make a vid of it but im using mc1.10.2 not 1.7.10
That might be a problem so far I've only used it in 1.7.10 :/
-
Could you update the mods?
I tested it with these versions.OpenComputers-MC1.7.10-1.6.2.12-universal
SGCraft-1.13.3-mc1.7.10Could you make a short video (or screenshots) of you trying to run it? That would be the easiest method to troubleshot.
-
1 hour ago, tipclaydon said:
im trying to use this program im currently using OpenComputers-MC1.10.2-1.6.2.7 and SGCraft-1.13.2-mc1.10.2 but once the program detects the stargate it reverts back to the main openOS 1.6.1 screen
Is there any kind of error displayed? You might have to start it manually by typing "stargate" (OpenOS doesn't show any error from programs in autorun).
Is there a file called /log ?
Did you reinstall it completely fresh? If not could you do that?
"pastebin run -f YVqKFnsP neu"
If that doesn't work could you run this "pastebin run -f icKy25PF" and then run this again
"pastebin run -f YVqKFnsP
neu" . -
On 28.3.2017 at 3:08 PM, noahthegame said:
That i mean in number 2 is how to translate html (webbrowser code) into a file or string on OC. computer
Every html file you download will always be in this format
<!DOCTYPE html><html><h1>hallo world</h1><code1>i am dum just so you know</code1></html>
just use
wget http://www.test.de
/targetFileNameHere
btw for question 1 http://neildowning.com/HEX_to_RGB_color_converter.php
-
Should be pretty simple program.
I just did this here. Save it to /autorun.lua
local passwort = "blabla" while io.read() ~= passwort do print("nicht OK") end print("OK")
-
I've made a very simple to use program to update OpenOS directly with the newest files from github. Now you don't have to wait for the server admin to update the mods to get the newest OpenOS.
It will download all OpenOS files first before it replaces any of the old files just to make sure you don't end up with half of your OpenOS in a different version.
Pastebin:
pastebin run -f icKy25PF
GitHub:
wget -f https://raw.githubusercontent.com/Nex4rius/Nex4rius-Programme/master/OpenOS-Updater/updater.lua /updater.lua
I only recommend to use this on a freshly installed computer.
Check out my other programs:
-
Update to 1.4
- increase max amount of liquids from 32 to 64
- dynamically change width of the bars
- decrease update frequency with low tps (this thing)
- added colors for lots of new liquids (especially gregtech liquids)
I changed the picture from my first post to a gif thats cycling through 8 pictures so you can better see how it works.
-
You found a realy good method to measure the tps
I've tested it now on a server during a 5-10tps time and it showed the tps very acurately
The next step is now to include it in other programs and change the update time depending on tps. For that I've already modified your program. I removed all the fancy tps displaying stuff.
You can see the program here and with "pastebin run -f ZbxDmMeC" it will automatically download it into /lib/tps.lua
-
How acurate is it?
It might be pretty useful to include it in other programs because you could let them check tps and update more frequently with 20tps.
-
16 hours ago, minechris said:
das Programm funktioniert in keinster weiße weder Touch noch mit keyboard und das mit dem update wird schwierig weil ich ein vorgefertigtes modpack(FTB Galactic science 1.7.10) spiele wo das mit den neueren versionen meist nicht so prickelnd leuft. Und das mit dem log wird schwierig weil ich davon keine Ahnung habe.
Schreib einfach
view /log
wenns existiert sollte er etwas anzeigen.
Hat das Programm ursprünglich funktioniert bis du eine Adresse / Einstellungen geändert hast?
Sieht es bei dir den zumindest so aus wie hier ?
Zeigt es dir etwas an, wenn du das Stargate einfach mit einem stargate controller aktivierst?
Kannst du es mal updaten lassen indem du
/stargate/check.lua ja
eingibst?
Falls das nicht funktioniert kannst du es komplett löschen und neuinstallieren? Gib dies ein
pastebin run -f YVqKFnsP neu
Solange du mit dem Modpack nicht auf einem Server spielst solltest du das Updaten von OpenComputers problemlos schaffen. (Soweit ich weis sind keine neuen Blöcke oder Rezepte in 1.6 dazugekommen)
edit: Kannst du denn sonst überhaupt etwas mit dem Computer machne? Vielleicht bist du nicht in der Liste der zulässigen Benutzer des Computers.
(Serveradmins sind immer erlaubt. Frag also mal einen von denen ob er den PC bedienen kann.) -
On 3.2.2017 at 7:12 PM, minechris said:
hi! Es ist ein schönes Programm doch leider funktioniert es bei mir nicht! Auf dem tier 3 screen ist das bild abnormal klein. Außerdem kann ich nichts anklicken oder kontrollieren .
Ps: wäre schön wenn du eine Open Modular Turrets integration hinzu bringen könntest .
Open Computers version: 1.5.22.46
Open Modular Turrets integration wird wahrscheinlich nicht möglich, weil ich den Mod überhaupt nicht kenne.
Benutz einfach einen T2 screen der hat die selben Funktionen, dann wird es nicht so klein sein. Geht nur der Touchscreen nicht oder hast du es auch mit einem Keyboard versucht?
Kannst du nachschauen ob die Datei /log existiert?
Für OpenComputers gibt es schon eine neuere Version 1.6.1.11 und damit wurde OpenOS auf 1.6 geupdated mit starken Veränderungen. Ich musste einige Änderungen vornehmen um es zum laufen zu bekommen
und ich hab nicht mehr getestet ob es mit der älteren Version immernoch geht.
Kannst du OpenComputers updaten und dann den Computer komplett neuinstallieren? (Das ist benötigt um von OpenOS 1.5 auf OpenOS 1.6 zu wechseln) -
This program can display the contents of tanks on a big screen with a colored bar that can dynamically change its size.
It can show up to 256128 64different liquids which are sorted from highest amount to lowest.
5x8 is the optimal size for the screen.
Multiple tanks with the same liquids are automatically added together and empty tanks are ignored.This display is split into 2 programs.
1) Server - this receives the tank information and displays it
2) Client - this has the adapter with the tank controller (you can have as many as you like)
optimal screen sizes: 8x5; 8x2; 4x1
pastebin run -f cyF0yhXZ
installation guide:
https://www.youtube.com/watch?v=avvYO2xSxGw
github: https://github.com/Nex4rius/Nex4rius-Programme/tree/master/Tank#start
server / display components:
- Internet Card (to install)
- Network Card
- Graphics Card T3
- Screen T3
client / adapter + tank components:
- Internet Card (to install)
- (Wireless-) Network Card
It supports now the following blocks:
- Adapter + Tank Controller Upgrade
- Transposer
- Batbox
- CESU
- MFE
- MFSU
- Gregtech Batterybuffer
- Capacitor Bank
- ALL RF storage blocks
- ME Interface
- ME Controller
- Warded Jar
- Void Jar
Big Update version 2
The screen scales better to utilize the "room" to the fullest.
Thaumcraft:
I've added support for jars and essentia (Thaumcraft 6 needs the Thaumic Computers mod)ExtraCells:
It's now possible to connect this to the ME System and read all liquids from it.Thaumic Energistics:
Additionally it can read essentia from the system if you have Thaumic Energistics installed.Energy EU:
You can connect EU storage devices and it will show it on the screen.Energy RF:
Furthermore you can also connect any RF storage block and it will work too.The version 2 is not compatible with the version 1. You will have to update the server and all clients.
I've double the limit from 64 to 128 and doubled it again to 256!
- Fingercomp, Totoro, xilni and 2 others
- 5
-
Good to hear that the autorun fixed itself.
edit:
I added extra colors just for tier3 screens so that should be fixed aswell. (not purple anymore)
-
Update to 2.7.1
You can now type "pastebin run YVqKFnsP" to install it but so far I haven't been able to figure out how OpenOS 1.6 messed up autorun so you will have to start the programm manually by typing "stargate" after its installed.
-
I haven't seen that one because I've been using my already installed computer when I updated OpenComputers to 1.6 which means it still had OpenOS 1.5 on it and OpenComputers 1.6 now has OpenOS 1.6.
They've changed something in OpenOS 1.6 that broke it and figuring out what will be fun because the changelog is the "most helpful thing ever".QuoteChanged: OpenOS got a major overhaul, in particular term related things, and also a few new built-in programs (payonel). This would deserve a changelog of its own, really...
I will try to fix this.
Tank Display Program | now with energy and essentia too !
in Programs
Posted
I thought more about the upper threshold as capacity otherwise all bars will be at 100% all the time because its always producing to keep everything above 100%.
You could do something pretty simple and just change the label to have something like "Water (On)" and give that to anzeigen(tankneu) (btw color works over name not label).