+ Reply to Thread
Page 1 of 9
1 2 3 ... LastLast
Results 1 to 10 of 81

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

  1. #1
    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
    292

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

    I present: The Free Fall Extension. It Contains the stuff i made, for what i was to lazy to start a new addon each time, so i will bundle my addons into this. Right now it contains:

    -The Wire Socket Radio (WSR)
    -Adv. Dupe. Teleporter
    -RAM-Cards
    -Interacable Holography Emitter
    -Some small things

    The list might grow, because i'm still working on some addons, or will start new projects.

    ---Description of "Wire Socket Radio"---
    It's a device, to send wire values, of the types Number, String or expression-gate-packets to other game-sessons, like another server or even a singleplayer game. It is based on the idea from -=Fox=- and was developed in this thread.

    You will need the LuaSocket library for this to run.

    Update: The WSR is now seperated from the Free Fall Extension itself, because it doesn't match that well into the Wiremod-Extras SVN (Requires DLL). But you can still download it and use it.

    Another Update: The WSR is now Hi-Speed able. There is a second STool for it. It only has two modes right now: "Shared RAM" and "Two Sided RAM". First one stores any changes local and transfers them to other device. Second one only transfers changes to other device.
    There is a small slider called "cells". With that you can change the amount of cells which is available in the device.

    Rev2-Update: The WSR has wen through a complete recode, what caused it to be much more stable, a little bit more customizeable (You can choose the model for the device ) and even working on slow connection.
    Me and -=Fox=- tested it out (We got a ping of 200 to 300, what is pretty slow) and I cannot remember, that we ever had a disconnect like with Rev1.

    You can get Rev2 over the ZIP attached to this post, or over SVN. The SVN is:

    "http://svn.assembla.com/svn/wiresocketradio/"

    Then you have to decide, whether you add "trunk" to the path, for stable versions, or "dev" for latest version. the ZIP is always only the latest version. Or just checkout both (Bot not directly in addons, otherwise it will result in mess) and try what you prefer to use .

    PS: I put in the LuaSocket DLL into the addon dir from now on, so users don't need to get it on theirself, as the FacePunch thread might get into Archieve sometimes, and nobody will find it anymore. But you still need to install the VS2008 Redistributables from Microsoft.

    PSS: Hi-Speed isn't there yet, but should be easy to do.
    ---End Description--

    ---Description of "Adv. Dupe. Teleporter"---
    This Device works like the Advanced Duplicator, but as an SENT, means it can copy a prop and then spawn it again. but it is more advanced.
    After you copied an entity, the device can serialise it, and then send it over String-Wires to another teleporter device, which then deserialises the data and then can spawn your constraption.
    Being so, that this is using the String-wire method, you can even send your constraptions to another server over the WSR (for which i developed this )
    ---End Description---

    ---Description of "RAM-Cards"---
    I think, that most of you remember the "Wire Keycard" addon by "adb". This was pretty nice. And for those, who like it, and are using CPU a lot, this could be a good extension to those keycards.
    RAM-Card's are basicly RAM-Chips in form of a keycard (I took the models ) which are then plugged into the RAM-Card Reader/Writer (In "Wire - Data" After that, you can use a Hi-Speed connection to the reader and access the card via it, like a normal RAM-Chip, but as cards, which you can take with you.
    For those who want to use it: Right now, it contains only default cards, sizes 24 Values, 32KB, 64KB, 128KB and 1MB. Those can be found in the Entities Tab, in Category "RAM-Card's (Wire)". In view of memory, you can access them like normal (ESI or EDI register behind 65535), BUT the first address is used by the reader. The first address (65536) tells you, if a card is plugged in (1) or not (0). You can also write a 0 to it to unplug a card. This doesn't mean, that a byte is missing, but that all addresses a moved one byte to the back, so the first address would be (relative) 1 and not 0.

    Credits for the models go to adb, who made the original Keycards addon.

    UPDATE:

    Now, there are Proxy (Proximity)-Cards too, which will refuse Read/Write, if the Owner gets too far away. Right now only sizes 24 Values and 32KB. The "U" in the PrintName means "Units", so if you get more than 100U away, means just 100 Units (few steps only. Units are pretty small). Those cards have an addition to their normal memory. At the end of their space (for example: memory goes from 0-23), they have 6 extra-cells, which contain some information (relative to card-size now):

    0 Max user distance
    1 Current user distance
    2 Is read/write possible? (1 or 0)
    3 first number of SteamID ("STEAM_0_1_17367591" would be 0)
    4 second number of SteamID ("STEAM_0_1_17367591" would be 1)
    5 third number of SteamID ("STEAM_0_1_17367591" would be 17367591)

    Also, the way Memory is accessed changed a little bit. like the first address on cardreader (0), the second one (1) is now used to give reserved data. The second one now gives the card-size. Everything else is still the same.
    ---End Description---

    ---Description of "Interacable Holography Emitter"---
    These are based on this idea.

    It adds another tool to the "Wire - Holography" category, named "Interacable Holography Emitter". It looks exactly like the normal one, I know. Only new thing in menu is the option "Show Emitter->Point beams". I am sure some of you guys liked the beam-setting, but hated the fact, that there was also a beam between the emitter and the point. with this option, you can disable that beam.

    Okay, there aren't really new things in the device either. You have the normal settings. But the thing i added now is, that you can walk close to any of the point the device draws, and press your "use" key. The emitter will then output X,Y and Z from that point. Notice, that you will get exactly the coordinates you gave the device to create the point. So the point 0,0,0 will give you 0,0,0 again, not the world-position of it.

    It works fine with the hologrid too.

    but keep in mind, that you can only activate points, that are there (they fade out with time, like normal holo emitter) and that many points at one spot make it hard to be precise. So maybe use a normal holo to draw borders and such, and just some few points from this one to make like buttons or stuff.

    Notice: Interacable Holographs don't change shape or color when you activate points. they just give values.
    ---End Description---

    ---Describtion of "Some small things"---
    Right now it's only a few things.
    First is an String-Switch gate. It takes eight strings input and one number input and gives one string output. The number you put into the switch will be the number of the string you put it. So |Num=2 A="Hello" B="Muh" | Output = "Muh"|. You can find it under "Gate - String"

    Second is a small Hi-Speed String Converter, to find in the String category of wire tools. It works pretty simple. You wire some String input (like a constant string) to the "String" Input. The Chip will convert that into a lot of single bytes, that are stored in the chip, like in a RAM, so that you can read it with a CPU.
    Note: the first cell (0) is always the size of the string. So if you have a string like "Test", cell 0 will be "4", and then cells 1 to 4 will contain the chars as ASCII numbers.

    Third thing is a ram module for the Adv. Dupe. Teleporter. You can save the data the teleporter sent into this and then let the "RAM" send it again, back to a teleporter. Right now i didn't limit the amount of those chips. You can find it under "Gate - Memory"

    I admit that i ripped pretty much of the code out of the original advanced duplicator, so parts of the credits are going to the Wire-Team, which made the Adv. Dupe.
    I just put the cuted out parts together, until they worked
    ---End Description---

    This Pack might grow, if I got any good ideas for anything to code, or if you offer some good ideas.

    So, I'm awaiting your feedback, and even if it is only like "What a ultra-stupid idea to put some things into one pack and then call the pack like himself".

    PS: If anybody wonders about the numbers at the end of the name:
    It is the creating date. format is Year (4 number),Month (2 numbers),day(2 numbers) hour(2 numbers) and minute(2 numbers)
    So, those files, which have highest numbers are the newest.

    EDIT: deleted old version of the Free Fall Extension to save attachment space and to make it easier to find newest version
    Attached Files
    Last edited by Free Fall; 07-28-2009 at 04:35 PM.
    Needz moar Lua

  2. #2
    Inactive Mechanical433 is on a distinguished road Mechanical433's Avatar
    Join Date
    Mar 2007
    Posts
    159

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

    Damn you are so great Free fall * bow*
    [img]http://img84.imageshack.us/img84/8387/portalan1.jpg[/img]

  3. #3
    <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,047

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

    Can you see that you are NOT a lua noob?
    "It's my favourite country song. And I hate it."

  4. #4
    Wirererer CCFreak2K is on a distinguished road CCFreak2K's Avatar
    Join Date
    Apr 2007
    Posts
    107

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

    Installed on loliserv in case anyone's itching to try it.

  5. #5
    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
    292

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

    Quote Originally Posted by IEF015 View Post
    Can you see that you are NOT a lua noob?
    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!
    Needz moar Lua

  6. #6
    Faron's Assistant


    Anticept will become famous soon enough Anticept will become famous soon enough Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    835

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

    weaponsgmod_toolstools/wire_socketradio.lua:92: attempt to call method 'SendLua' (a nil value)
    Doesn't seem to cause a bug, but still don't like

  7. #7
    Wire Amateur Brian is on a distinguished road Brian's Avatar
    Join Date
    May 2007
    Location
    Texas
    Posts
    34

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

    Quote Originally Posted by Anticept View Post
    Doesn't seem to cause a bug, but still don't like
    Do you have [ame="http://forums.facepunchstudios.com/showthread.php?t=495940"]Luasocket[/ame] installed?

  8. #8
    Faron's Assistant


    Anticept will become famous soon enough Anticept will become famous soon enough Anticept's Avatar
    Join Date
    Feb 2008
    Location
    Ohio, USA
    Posts
    835

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

    It's working fine brian, I read the post :P. The thing I posted seems to either be a conflict or a bug. However it does not seem to affect anything.

    Mods in use are at dagamers.net/mods.txt if you are insterested in comparing.

  9. #9
    Wire Amateur Brian is on a distinguished road Brian's Avatar
    Join Date
    May 2007
    Location
    Texas
    Posts
    34

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

    Quote Originally Posted by Anticept View Post
    It's working fine brian, I read the post :P.
    Just a suggestion. I had placed Luasocket in an Addons folder (being a modularity whore) and received a similar error. Didn't mean to suggest you hadn't read the post.

  10. #10
    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
    292

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

    Now I'm confused. The place where this error (wire_socketradio.lua:92) appears means that
    1) the Luasocket Library isn't installed
    2) the stool can't find the player entity

    But i think both of them are things i can't fix
    Needz moar Lua

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

LinkBacks (?)

  1. 01-27-2010, 01:27 PM

Similar Threads

  1. Wire Socket Radio Documentation
    By Free Fall in forum Wiremod Addons
    Replies: 9
    Last Post: 03-25-2009, 09:28 PM
  2. Wire plug/socket
    By xixo12e in forum Help & Support
    Replies: 10
    Last Post: 02-26-2009, 09:07 AM
  3. Complex stuff made easy
    By Black Phoenix in forum CPU Tutorials & Programs
    Replies: 16
    Last Post: 01-21-2009, 11:04 AM
  4. Creating pre-made wire contraptions in Hammer?
    By Kron in forum Wiremod General Chat
    Replies: 0
    Last Post: 04-30-2008, 01:10 PM
  5. CPU/computer made only with standart wire gates
    By Black Phoenix in forum Contraptions & Saves
    Replies: 7
    Last Post: 11-27-2007, 09: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