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

MeltingBrain

Members
  • Content Count

    31
  • Joined

  • Last visited

  • Days Won

    11

Posts posted by MeltingBrain

  1. VetaTech OS [ABANDONED]

     

    VETATECH OS IS NOW ABANDONED, I AM WORKING ON A NEW OPERATING SYSTEM.

     

    The reason VetaTech OS was abandoned is due to it's unique core which was made really from scratch.

    I am working on the quite same GUI-based os, but working under default OpenOS (like Windows 7 works under DOS).

     

    After doing stresstests and trying to make it daily-use instead of OpenOS it became hard because of lack of features that OpenOS has by default.

    Because of that, i'll work, as said above, under default OpenOS, meaning that OpenOS will be loaded first and then an graphical user interface management program will be loaded instead of default console to work with the default OpenOS environment.

     

     

    Thanks and sorry for this.

    post-1662-0-34262200-1427531121_thumb.png

    post-1662-0-85300500-1427531122_thumb.png

    post-1662-0-06517800-1427531124_thumb.png

  2. I believe the Computronics radar block allows reading nearby entities' locations? If that's not the case or those coords aren't relative I'm open to adding something like a T2 motion sensor that could do something like what you're suggesting.

     

    Computronics are for older versions of OC, and it's not officially built in the mod.

     

    It would be awesome you add a GPS upgrade, allowing to get location of a computer, tablet, robot or drone by a simple command (gps = component.proxy etc... gps.getWorldCoordinates())

    Yes, computronics includes radar upgrade, but also camera upgrade.

    I didn't test yet the camera upgrade for the drone, as I don't know it's API and it's hard to send via modem card the info about components to the computer, since it's using an EEPROM.

     

    If it's possible, after adding a GPS upgrade, I would love you add something like a camera for the turtles/drones, like this mod does for it's submarines:

    https://www.youtube.com/watch?v=-pYPcWJ3y3o#t=269

     

    But not from third-person, i would like a camera upgrade that does like in the video but first person, and depending on tier, it will decide if it has colours, or if it's like black/white (optional).

     

    The spectate can be like in Space Engineers, a 3D single/multiplayer sci fi building game that includes a remote camera.

     

    And if possible, a camera component with this function:

    camera.setViewSide( side_number ) -- so we can view from bottom (like in ArmA2's reconnesance drones), from top and SOME sides, not all sides for example.

     

    Of course, to start spectating like this you can add an remote control item, or a component like remote controller, that will be controlled by a script, like this:

     

    local control = component.proxy(component.list("remote_controller")())
    
    control.spectate(ADDRESS_OF_DRONE_COMPONENT)
    
    while true do
    
    local ev, adr, byte, extra = event.pull("key_down")
    
    local char = unicode.char(byte)
    
    if char == "a" then
    
    drone.move(-1,0,0)
    
    elseif char == "d" then
    
    drone.move(1,0,0)
    
    -- and so on...
    
    elseif char == "x" then
    
    control.exitSpectate()
    break
    
    end
    
    end
    
  3. Is it possible to make a drone follow the player in real world coordinates? (like a floating pet)

    It would be awesome.

    If it's not possible , i demand an upgrade like the navigation one, but more costly that will show World X, Y, Z coordinates of the player (if used in a tablet, like an GPS) and X, Y, Z coordinates of the drone, so we can calculate where the drone has to go to follow the player.

     

    Thanks.

  4. Part of the reason you can't detect newline characters is because your data variable will only ever be one char where the newline pattern is a 2 char string. As for the rest I don't see the point of reading files with a custom lua func. The java Scala background can do this better than the ingame lua interpreter.. Reason?

     

    I can detect a new line, as \n is one byte (Special Character for end of line), and it reads 1 byte per scan.

     

    But OpenComputers made it VERY SLOW to read 1 per 1 until new line...

     

    I'll search more about the java Scala as you said.

     

    + TO THE MODS CHECKING MY POST: Please say thanks from me to fnucke.

  5. Here instructions:

    Put an adapter in front of the chest/controller.

    Connect the adapter with a cable to the computer.

     

    In the computer console, write this command:

    components

    A list of components should appear, search for something of the same name you just connected with the adapter, like ME_CHEST or something like this.

    write this command now:

    lua

    then write this:

     

    for _, Method in pairs(component.methods(component.list( "  <  NAME OF THE COMPONENT FROM AE2, LIKE me_chest OR me_controller >  " )())) do print(Method) end

     

    A list of methods for the controller should appear.

     

    You can use local controller = component.proxy(component.list("<component>")()) for example, to call the methods for it.

     

    It may or not work, depending if OpenComputers is compatible with Applied Energistics 2...

  6. Hello, I would like help optimizing my custom filesystem library, more precisely the 'readLine' function.
    It takes ages to read one line, and I think it's because it's badly optimized.

     

    Here is the code:
     

    local line = ""
    local data = nil
    repeat
    local data = fs.read(handle, 1) -- Reads 1 character
    if data and data ~= "\n" then
    line = line .. (data or "")
    else
    data = nil
    end
    until not data
    return line ~= "" and line or nil

    If possible, it would be nice to help me upgrade the code, as at the end you see it should return nil instead of a text, it's my bad code and in the final return text, there is sometimes a weird icon at the end (the \n char when printing the result).

    Thanks from advance.

     

×
×
  • Create New...

Important Information

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