Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal

Nexarius

Members
  • Content Count

    129
  • Joined

  • Last visited

  • Days Won

    19

Posts posted by Nexarius

  1. 3 minutes ago, Ranub1s said:

    Thought about it too but than i will need atleast 5 Servers, monitoring each stock itself. this much space we dont have in our control room and we want to keep the pc's as low as possible ^^ so ... not the bst solution.
    btw. can the server get inputs from different ports at once? so it could name the incoming messages itself if you install the client with different ports.

    822a9e-1502615774.png

    Sadly no it only works with a single port.

  2. 2 hours ago, Ranub1s said:

    Very nice :) Thank ya very much ;) What was the issue?

    1) I didn't save the entered range so it didn't survive reboot.
    2) I tried io.read() alone in the autorun.lua and it just skipped it. I added a 2sec delay and then it works (I guess the OS needs a bit more time to load completely).

    2 hours ago, Ranub1s said:

    Now i have an other idea, only if you are interested in it ;)

    Currently your nice program/server accepts the outputs of many different clients at the same time and putting them on one screen. Sadly its not possible to see which message/liquid-storage was sended from which client. So you have only an overview of all at once.
    (as sample: we have 4 different unload stations (1x ship, 2x train and 1x airship) and a main Storage. When i add to each unloadstation/buffer a client i can only see what i have all over so i cant see from control room what was delivered and what is already in our storage)
    So is it possible that the Clients can be labeled while installing and send theese messages to the servers so it can print it out?

    Thanks :)

    Airship unload station?

     Giving a label to the clients displaying them with the label is sadly not a small change. I can't promise anything here.

     

    But you could make 4 servers each with their own client and go into "/tank/auslesen.lua" on the client and into "/tank/anzeige.lua" on the server to change the port from 70 to whatever you want so they dont interfere with each other.

  3. The autorun.lua looks to be ok.

    Normally any error that occurs will be printed to the screen but its hidden for autorun. I looks to me like an error occured and then it just goes on as usuall as if nothing happend.

    If you launch the program again then it should print any errors to the screen. Can you do that? Just write "tank", "/autorun.lua" or "/tank/anzeige.lua"

    I have a relay and a power distributor connected in my test world and I'm not seeing any changes.

     

    Update: 1.8.3
    -added autorun will write any errors messages now

  4. 22 hours ago, Ranub1s said:

    Great Work !! :)

    and so quick ;) thanks.
    sadly i found a strange bug in spreading informations over more monitors, a few gets only strange informations. (half of text and wrong colors)
    (NVM- the bug happens if you work with a Power-Distributor and a Relay)

    and the wireless broadcast (with a setting of 2000range) cant reach a server (chunkloaded) which is further away (arround 500blocks)

    Ah, and the liquids you see here are from "tinkers" so maybe thats why they are unknown to your program. (just took them as test)

     

    2017-08-11_17.57.34.png

     

    20 hours ago, Ranub1s said:
    • and next point i have figured out. the programs run smoothly but wont be saved on the mc-server. or the autorun.lua is bugged. after restart of the pc the program is gone/not working until you reinstall it

    The wireless range is limited in the opencomputers config too.
    I've been playing almost exclusivly on modpacks with gregtech and there are almost none with tinkers construct so I didn't have any chance to add them.I tested my program by repeatedly pressing the turn on / off button and it always booted into my program.
    Can you write "edit /autorun.lua" and check whats in that file? Furthermore what is your OpenOS version? I'm running on 1.6.7. You can run this program of mine "pastebin run -f icKy25PF" to update OpenOS.

    I have no idea how that white display happend. Maybe someone has some ideas why it was happening?

  5. Update to 1.8

    -added support for multiple sceens (but sadly it will flicker when the gpu is switching to the next screen; anyone got ideas for that?)
    -added support for more screen sizes (optimal is 8x5; 4x1; 8x2)
    -added client will ask for wireless range on startup (default 400)

    dl1WOE5.png

    __________________________________________________________________________________________________

     

    You have 3 liquids on the screen that are unknown to my program and thats the reason why they are all grey. If you want colors you can help me here and I will add them to this program.

    This will be helpful for that.
    gyjs9mW.png

    And those are all colors.
    oc-256-color.png

     

    I have never tested it but there shouldn't be anything in the code that prevents you from making 2 servers with a screen each that will get the information from the clients.

     

     

    edit:

    Update 1.8.1
    -fixed flckering with multiple screens :)

  6. 3 hours ago, Ranub1s said:

    Hello .. Nice program :) but got a little bug with the client. it shows only 1% of full storage even if the drum/tank is full. on the server its shown correctly.

    and got a question. possible to setup the server with higher resultion? if you only use a small 1x3 Monitor its kinda hard to read the content if you have only a few liquids.

    Thanks :)

    I only really concentrated on the display of the server and never noticed that on the client because I only used it as debug view to see the names of the fluids. The percent calculation was switched up. It was capacity / amount not amount / capacity.

    I've optimised it for a big screen 8x5 http://i.imgur.com/E4N2qat.png
    The resolution is already on maximum the screens cannot give more.

    But do you mean something like this?

    dsTU4np.png

  7. On 19.7.2017 at 6:14 PM, CrazyTolradi said:

    Is there anyway an IDC can be sent via a tablet or other device? Or must it be via this program?

    I found a quick dirty solution. You will have to manually add this function to the file /stargate/Kontrollprogramm.lua (somewhere in the middle; after initialisation but before the main loop is called).
    QUgfVd2.png

    If that function is included and you added a (wireless) network card then you can use this function on any other computer to transmit the IDC.
    BuheDID.png

     

    I'm not going to add this to the automated updater because it has some problems.
    1) If you spam the broadcast then you can essentially block the stargate computer because this solution is slow (even at 20tps).
    2) It doesn't give you on the other side any feedback if the IDC was accepted or not.

    I might make a proper solution later.

  8. I've tried this here
    Z4E51qE.png

    and I'm getting a really strange result.

    NlwZM32.png

    Why is it printing nil?

     

    As far as I understand this it should be printing

    true   false   b

     

  9. Right now it only works via this program because I'm not using any network cards but instead the built in sg.sendMessage() system from the stargate computer interface to the stargate computer interface on the other side.

     

    edit: I will check the code. I will add it if it is possible to add it without having to rewrite everything.

  10. It's pretty easy.
    1cAPTYz.png

    Whatever you write here as the IDC will be the code that people have to send to open the iris of your stargate. (If Iris control is turned on)

     

    If you want to connect to a stargate and it is protected with an iris and an IDC then you can send the code manually by pressing E.
    UQiDP2D.png

    or if you are lazy (like me) and want to automate it.
    P6w5Mzf.png

    If you enter the IDC (for the other gate not for your own gate) here next to the address then it will be automatically transmitted when you connect to that address.

  11. I tried it now and it stops at "InstallData read into memory, decoing..."

    edit:
    btw pastebin run mH1ymDs3

    It was not enough memory. I had two 1,5 memory now I switched it to two 3,5 memory and I'm getting "too long without yielding".
    Why do you have to press a key just to be able to input a command again?

    And I don't really understand what I can do with this OS.

     

    I found some bugs.

    nuJ1vxo.png

    wFh2pjT.png

    rOMcdSh.png

    WcVKply.png

     

    I think its highly unlikly that it removes those on every start.
    FyrNUV4.png

     

    This was a bit confusing. I thought it was still loading.
    qjlKPXF.png

  12. On 20.4.2017 at 8:32 AM, Elijahlorden said:

    All saved addresses are stored on the server, the tablets only keep a cache of this kind of information.  Any change to the registered gates will automatically be replicated to other tablets.  This means large groups of players won't have to manually share any newly created gates.

    My stargate control program shares new addresses automatically too but my approach is a bit different it is decentralized instead of centralized.

     

    How do you even get the OS to an ingame computer for testing? Do you have an installer?

    Could you explain how to use this OS?

  13. Looks pretty good but you haven't written for which mod this is. I've looked at the code (btw you should select Lua for syntax highlighting on pastebin) and found "br_reactor" and "br_turbine" so I guess its Big Reactors.

    To remove the flickering you shouldn't use term.clear() at all but instead only clear the areas that you are writing to otherwise there will be flickering because it takes time to write stuff to the entire screen.

    You can increase performance (and with that reduce the time it takes to write to screen) by not having long if then elseif chains especially those long chains inside a for loop (L343) and replace those with this (havent tested it).

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.