+ Reply to Thread
Page 2 of 9 FirstFirst 1 2 3 4 ... LastLast
Results 11 to 20 of 81

Thread: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

  1. #11
    while(1){ printf("<3"); }
    IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,632

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    Quote Originally Posted by Free Fall View Post
    Okay, I admit that I'm not a lua-noob anymore. I learned a lot about Lua while viewing code and then trying to locate the code I need.

    BUT I STARTED AS ONE!
    That's how you learn it. I started out as one too, I bet everyone has.




    but I'm still a lua noob.
    "It's my favourite country song. And I hate it."

  2. #12
    Wire Noob Frankes is on a distinguished road Frankes's Avatar
    Join Date
    Mar 2007
    Location
    Poland (Michalin)
    Posts
    23

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    Any tutorial how to use adv. dup. teleporter?

  3. #13
    General Purpose Madman

    Free Fall is on a distinguished road Free Fall's Avatar
    Join Date
    Dec 2007
    Location
    Got digitalized and now lives in his PC's RAM
    Posts
    351

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    Ouh, thought that somebody would ask. Was to lazy to make one until now.

    Well, i'll see if i can do one (shouldn't be not that hard) and then post it here

    EDIT:

    Tutorial for the Adv. Dupe. Teleporter:

    I have to admit that this device has pretty many In/Outputs, so i make a list of them, and explain what they do.

    Inputs
    • "Read Entity" (This inputs makes the Device read in a constraption. It works similar as the right click with normal adv. dupe.)
    • "Serialise Entity" (If you trigger this input, the device will convert the scanned constraption to a string, which is then splitted into blocks. You will not see any physical effect or anything)
    • "Piece Size" (This says how big the blocks created be the Serialise function will be (in Bytes). But keep in mind, that if you want to transfer blocks with the WSR, you should use smaller blocks (like 128/256))
    • "Start Data Sending" (I think you can guess what it does)
    • "Data Input":STRING (This is where you connect a "Data Output" from another Teleporter to, to receive the serialised Data)
    • "Deserialise Input" (After you received all the Data, you have to trigger this to make the scanned and serialised data spawnable again)
    • "Spawn Entity" (If you successfully received and deserialised data, you can spawn the Entity)
    • "Clear Input" (With this you can clear the data you received)
    Outputs
    • "Entity Scaned" (After you scanned/read an Entity, this will output 1, otherwise 0
    • "Entity Serialised" (This will go to 1 after you serialised the Entity)
    • "Data Output":STRING (This is where the serialised data blocks go out. Has to be connected to an "Data Input" to make any sense)
    • "Sending" (This is 1 while the device send the data blocks, otherwise 0)
    • "Receiving" (Same as "Sending")
    • "Serialised Output Block Count" (This is how many blocks your serialised data has)
    • "Serialised Input Block Count" (This is how many blocks the data you're just receiving has)
    • "Blocks Sended" (While the sending process, this outputs how many Blocks are already sent to the other device)
    • "Blocks Received" (same as "Blocks Sended", but for receiving)
    • "Deserialisable Input Available" (After successfully receiving this turns to 1, means you can deserialise something)
    • "Spawn Available" (After successfully deserialising this turns to 1)

    I hope i forgot nothing, and i think with this you can easily understand how it works. For those who just want to use it, without understanding it, i attached an Adv. Dupe. (Normal one) file, which contains an easy teleporter platform.
    Attached Files
    Last edited by Free Fall; 05-30-2008 at 04:26 AM.
    Needz moar Lua

  4. #14
    Inactive Kill coDer is on a distinguished road Kill coDer's Avatar
    Join Date
    Feb 2008
    Posts
    6

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    How can I use this to send commands from a web server into gmod? I would like to be able to control a contraption using a web interface...

  5. #15
    General Purpose Madman

    Free Fall is on a distinguished road Free Fall's Avatar
    Join Date
    Dec 2007
    Location
    Got digitalized and now lives in his PC's RAM
    Posts
    351

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    For that you would need an extra programm, because the WSR itself doesn't support Web-access now.
    That would be a task for TCP, what is kinda hard to code.
    Or you would have to code your own thingy, which opens a web interface, and then converts your inputs to UDP-packets for the WSR.

    Maybe, if i have time and figured out how TCP works (it didn't work until now) i could try to code a web interface. But this won't be an easy task, unless i would have to learn HTML and so on too.....
    Needz moar Lua

  6. #16
    Inactive Kill coDer is on a distinguished road Kill coDer's Avatar
    Join Date
    Feb 2008
    Posts
    6

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    Arg.. The problem is I'm pretty experienced in PHP and HTML but I've got nothing with complicated LUA...

  7. #17
    while(1){ printf("<3"); }
    IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015 is a jewel in the rough IEF015's Avatar
    Join Date
    Feb 2008
    Location
    London, ON (Canada, eh?)
    Posts
    1,632

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    LUA isn't too complicated.
    Just learn the simple structure of code, then learn what the commands are.

    It's basic math is what it is.
    (By "basic" I mean harder than Gr9 Applied math...)
    "It's my favourite country song. And I hate it."

  8. #18
    Inactive Kill coDer is on a distinguished road Kill coDer's Avatar
    Join Date
    Feb 2008
    Posts
    6

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    If it's easier than learning C++ I'll be fine...

    Gr9 Applied math, I did that in Gr7... (Set 1 Extension Class)

    *Goes to fetch old maths books from attic.*

  9. #19
    General Purpose Madman

    Free Fall is on a distinguished road Free Fall's Avatar
    Join Date
    Dec 2007
    Location
    Got digitalized and now lives in his PC's RAM
    Posts
    351

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    Lua is MUCH easier than C++, especially, because you don't need to give variables a type and so on.

    So, if you have some time (not like me, school exams and so on) you should look over some addon-lua-codes and learn from them.
    And if you only learn to copy and paste the right code; You learned it!
    Needz moar Lua

  10. #20
    Inactive Kill coDer is on a distinguished road Kill coDer's Avatar
    Join Date
    Feb 2008
    Posts
    6

    Default Re: The Free Fall Extension (Wire Socket Radio and other Stuff i made)

    OK, Thanks!

    Arg... I've got exams starting in 2 weeks

+ Reply to Thread
Page 2 of 9 FirstFirst 1 2 3 4 ... LastLast

LinkBacks (?)

  1. 02-20-2010, 08:18 AM
  2. 01-27-2010, 12:27 PM

Similar Threads

  1. Wire Socket Radio Documentation
    By Free Fall in forum Wiremod Addons
    Replies: 9
    Last Post: 03-25-2009, 08:28 PM
  2. Wire plug/socket
    By xixo12e in forum Technical Support
    Replies: 10
    Last Post: 02-26-2009, 08:07 AM
  3. Complex stuff made easy
    By Black Phoenix in forum CPU, GPU, and Hi-speed
    Replies: 16
    Last Post: 01-21-2009, 10:04 AM
  4. Creating pre-made wire contraptions in Hammer?
    By Kron in forum Wiremod General Chat
    Replies: 0
    Last Post: 04-30-2008, 12:10 PM
  5. CPU/computer made only with standart wire gates
    By Black Phoenix in forum Finished contraptions
    Replies: 7
    Last Post: 11-27-2007, 08:25 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots