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

Ta©ti Tac0Z

Members
  • Content Count

    143
  • Joined

  • Last visited

  • Days Won

    5

Posts posted by Ta©ti Tac0Z

  1. i'm currecly useing CC becuse of the fact that the speed of witch lua commands is run is based on a speed factor in the processor item limiting the update speed of a program

    OC is better that CC in all otherways then this, CC does not limit speed (not on purpes anyway) nor does it limit the amout of RAM a spesific computer can use (allso CC have made too much of an effort optimiseing the mod for servers makeing CC look like a simplyfired version of OC - witch i supose it is)

     

    anyway of removieing (i know that ain't going to happen) the limit or at least let the computers run faster?

  2. Thanks guys for helping me it's just so nice

     

    and yes the background beeping is inoring and was just and exaple

     

    and yes i know that my englich is bad (but thank You two to not commend one it :))

     

    so i know that i Can do like this forexaple:

     

    function smartThread (fun, printError) --printError: for debug

      Return thread.create( function() 

        While true do

          s,r = xpcall(fun, debug.traceback) --make sure that a error don''t kill the thread

     

          If s == false and printError then

            Print("debug: error in thread: \n"..r) -- print a error if a error was detected and printError is true

          End

        End --if fails then just run it again

      end): detach()-- hmm detach or don't detach... i Don't know... does not matter

    end

     

    smartThread([place beeps here], true)

     

     

    and again iPad i am srry 

     

    but i don't like the thread to start from the begining evrey time i click ctrl alt c. So is this univiodeple?

     

    and just one more questien:

     

    so when i click on ctrl alt c the computer send a stop evrey thing You are doing event and the os.sleep function get that event and gets a error thats cool i never understood it before now thanks

  3. Ok, so when i ansert your questien for sone hours ago 

     

    the time was like 6 in the morning 

     

    So i forgot to write my exaple code so here it is:

    Quote

     

     

    And this is on my iPad so please understand that this is't easy:

     

    th = thread.create( function() 

      While true do

        Os.sleep(1)

        Computer.beep()

      end

    end ): detach()

     

     

    that's it now remember to see the detach function :)

     

     

    Now the thing is that is makeing the beep Sound and out side the program

     

    but when i type ctrl alt c then it's stops so how to get it to ignore ctrl alt c

     

  4. my life started when i learned to use thread's and my life was completed when i learned the thread handles "detach" function but there is just one thing:

     

    does threads interrupt or not, and i there do then i will like to learn how to provent that

     

    help will be great --please

     

     

    EDIT: interupt: when a program or a thread is geting a error runed by the keys: CTRL, ALT, C ( sry that i did't explain this better )

  5. hi Lizzy Trickster for week ago i posted a isuge i had when

    the function require("serialization").serialize( <table> ) givet the error: too long whenout yelding  it look's like this a error that can be fixed  it's just that there is not eny os.sleep / yields in the function happens evry time that i will serilalize a big table

     

    what i am trying to say is that a guy said that this is up to fix but when will that be?

     

     

    said by: payonel

     

    "

    I am happy to review the serialization code in openos, but not with a repro with your speciifc use case

     

    Note  that the serialization library has been optimization since our last official release. Please retest with a latest dev build from: http://ci.cil.li/

    for example:

    1.7.10: http://ci.cil.li/job/OpenComputers-dev-MC1.7.10/

    1.10: http://ci.cil.li/job/OpenComputers-dev-MC1.10/"

     

    (forum post: url:  https://oc.cil.li/index.php?/topic/1448-too-long-without-yielding-in-the-serialization-lib/)

     

    so what i hear here is that it works in the DEV build and after this is before version 1.7 then it should be in 1.7 right???

     

  6. hallo i am working on a lib that can load a image, take screen shoots, and record the screen and play it after! at more then 20 fps but there is a issue 

     

    the serialization's function serialize is trying to trun a super huge table in to a text(file)  

     

    and becuse of that, the computer is giveing me a too long without yielding error

    NOTE: i do know what that means

     

    what ind the name of gud can i do about that

     

    please some one i tryed this with 1 fps and the table was never being to big and now with 10 fps. oh guys this is working it's just how lua works that makes the issue 

     

     

    Udklip.thumb.PNG.514c924cca8866c0a6e8d780307d2cc7.PNG

  7. i don't know if this is even possible but what i am trying to do is this

     

    NOTE: that is know that useing a thread in this scene is 100% Unnecessary but remeber this is a simple test

    --------------------------------------------------------------------------------

    thread = require "thread"

    e = require "event"

     

    running = true

     

    t = thread.create(function()

      e.pull("touch")

      

    -- i know that i can put a os.exit() here but the thing is to try to get this to work

    running = false --<< that

    end)

     

    while running do

      --some random thing to run a io.read() will be a good combo

     

      print( "you said: "..io.read() )

    end

    -----------------------------------------------------------------------------------------------

     

    so this ends the thread as inspected but does not end the loop my guess is that all things in the thread function is local only but what can i then do to update the "running" value in the global process aka in the while loop???

     

    all help will be great

     

    --thanks

  8. i fix it by deleting the broken hard disk. luckly my server program was on a seperate floppy disk so no data lost.

     

    thank you (all) for helping me.

     

    may god thank you for your good help

     

     

    but i have a new question if you have the time

     

    by trying this power full thread system my self i runned in to a problem

     

    i don't know if this is even possible but what i am trying to do is this

     

    NOTE: that is know that useing a thread in this scene is 100% Unnecessary but remeber this is a simple test

    --------------------------------------------------------------------------------

    thread = require "thread"

    e = require "event"

     

    running = true

     

    t = thread.create(function()

      e.pull("touch")

      

      running = false

    end)

     

    while running do

      --some random thing to run a io.read() will be a good combo

     

      print( "you said: "..io.read() )

    end

    -----------------------------------------------------------------------------------------------

     

    so this ends the thread as inspected but does not end the loop my guess is that all things in the thread function is local only but what can i then do to update the "running" value in the global process aka in the while loop

     

    all help will be great so please help me again

     

    --I beg you 

  9. it's not a modpack i am useing i'am installling all of my mods my self

     

    it's oldere version off open os becuse i am useing minecraft version 1.7.10 becuse a lot off the mods i am useing is old

     

    thanks for the OS updater program

     

    BUT: i found a bug in that updater program the computer that i run it on came whit this boot script error (number 2 computer i run it on worked)

     

    unrecoverable error

    /lib/core/boot.lua:72: boot/94_shell.lua:3: attempt to call a nil value

     

    becuse off this is a boot script error (aka the hole os that's failing on boot) it can't be turn on again now

     

    this is a computer that there is a lot off thing's i need to use again so if you have a fix then please help me (again) 

     

    you have been a big help to me thanks

     

     

  10. where is the thread api. as i understand it, then the thread api is a build in api in openos aka in /lib (/lib/thread.lua)

     

    require("thread") >> file not found (module "thread" not found in: (and so on) )

     

     

    please tell me if i miss understood this and then were i can get it

     

    NOTE: i know that you can get this file on the internet but it does not work that well (at all)

     

  11. hallo i am createing a password login system (please NOTE: that this is useing my window api but is it not that that's makeing the error)

     

    when the text inside the /.pass.info is "true" the computer comes with this blue screen error (aka bios error):

     

    596fdbf971afd_Skrmbillede(2).thumb.png.69d71801c866d04912c34ff76fb72ccb.png

     

     

     

     

     

     

     

     

     

     

    as you can see the bios script is trying to write a table as a error message

    but why? ( and please ignore the xbox message )

     

    here is the bootup file (the file there is run when the computer startup aka: in the /boot dir):

    https://pastebin.com/Wpsb71W0

     

    and the file that the bootup file is useing:

    https://pastebin.com/NTW8iNgM

     

     

    --if you help me then THANKS YOU :)

     

     

     

×
×
  • Create New...

Important Information

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