+ Reply to Thread
Page 3 of 19 FirstFirst 1234513 ... LastLast
Results 21 to 30 of 181

Thread: File Functions (Client -> Server)

  1. #21
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: File Functions (Client -> Server)

    Quote Originally Posted by IamMcLovin View Post
    I like to make wire scanners so this is very useful in making scanners that can save pictures. With this you can even load pictures you have formatted into a string. It can also be used to save conversations and I believe HALO said something about it being useful for making an AI that can save phrases.
    Actually, I think I've seen people do all of the above (or similar) using regular memory chips. I guess this is slightly more convenient though... I don't know, have to see how well it works in practice. I'll be honest, I'm tempted to steer clear and wash my hands of this one, since it's a bit of a pain to test thoroughly and I'd much rather someone else did it! I'm also not so interested personally, since as far as I'm aware the basic functionality already exists.

  2. #22
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,346
    Blog Entries
    3

    Default Re: File Functions (Client -> Server)

    The EEPROM really sucks for saving things because if a player goes to a different server there is no way to retrieve that data. Also, the EEPROM cannot save strings and like TomyLobo said its very inefficient at saving small amounts of data.
    Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
    Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
    Drunkie - Logically, Jat Goodwin must be a fist pumping guido.

  3. #23
    Bug Buster TomyLobo's Avatar
    Join Date
    Feb 2009
    Posts
    2,796

    Default Re: File Functions (Client -> Server)

    actually i meant large amounts of data
    also, thanks to the new XWL:writeString(N,S) and XWL:readString(N) functions, you can even store strings in it. But it takes about 16 bytes per character, whereas regular text files take 1 byte per character.
    The inefficiency should be clearly visible
    "It's easy to win forgiveness for being wrong; being right is what gets you into real trouble." - Bjarne Stroustrup

    Lífið læðist lúmskt áfram

  4. #24
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,346
    Blog Entries
    3

    Default Re: File Functions (Client -> Server)

    Quote Originally Posted by TomyLobo View Post
    actually i meant large amounts of data
    also, thanks to the new XWL:writeString(N,S) and XWL:readString(N) functions, you can even store strings in it. But it takes about 16 bytes per character, whereas regular text files take 1 byte per character.
    The inefficiency should be clearly visible
    Ah sorry should have quoted you xD. But anyway the EEPROM has to be server side and that fails for people who want to upload their own personal files...
    Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
    Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
    Drunkie - Logically, Jat Goodwin must be a fist pumping guido.

  5. #25
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: File Functions (Client -> Server)

    I'd say, the major advantage of this is the ability not having to shuffle around entities and advdupes. One contraption can load several different files without any physical interaction. And they are automatically available on the client. (Also, ascii-art nude pictures on the console screen :lol

  6. #26
    Wire Sofaking Jimlad's Avatar
    Join Date
    Dec 2008
    Posts
    941

    Default Re: File Functions (Client -> Server)

    Quote Originally Posted by IamMcLovin View Post
    Ah sorry should have quoted you xD. But anyway the EEPROM has to be server side and that fails for people who want to upload their own personal files...
    I thought it was dupable?

    Quote Originally Posted by Syranide View Post
    I'd say, the major advantage of this is the ability not having to shuffle around entities and advdupes. One contraption can load several different files without any physical interaction. And they are automatically available on the client. (Also, ascii-art nude pictures on the console screen :lol
    I'd agree, that's the main feature as far as I can see. The real benefit 99% of players who use this will notice is the convenience. I'm not going to argue whether convenience is a good reason or not for adding this, or whether anyone will notice the performance difference, but I'm fairly sure you can't say it adds anything new in terms of pure functionality.
    Last edited by Jimlad; 06-24-2009 at 06:43 AM.

  7. #27
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: File Functions (Client -> Server)

    Quote Originally Posted by Jimlad View Post
    I'd agree, that's the main feature as far as I can see. The real benefit 99% of players who use this will notice is the convenience. I'm not going to argue whether convenience is a good reason or not for adding this, or whether anyone will notice the performance difference, but I'm fairly sure you can't say it adds anything new in terms of pure functionality.
    I totally agree, I really don't see any functionality gain from this, but it opens up a few possibilities, but basically, it's all convience. However, I can see a few uses coming up for it simply because it is suddenly convenient.

    Btw, there needs to be some max limit to the filesize as well, not primarily because of size/bandwidth reasons, but simply because if someone tries to load a 10MB textfile and try to split it by spaces with E2, it could take an awfully long time, causing the server to freeze.

  8. #28
    ◕␣◕ McLovin's Avatar
    Join Date
    Sep 2008
    Location
    Batman, Turkey
    Posts
    2,346
    Blog Entries
    3

    Default Re: File Functions (Client -> Server)

    Quote Originally Posted by Syranide View Post
    I totally agree, I really don't see any functionality gain from this, but it opens up a few possibilities, but basically, it's all convience. However, I can see a few uses coming up for it simply because it is suddenly convenient.

    Btw, there needs to be some max limit to the filesize as well, not primarily because of size/bandwidth reasons, but simply because if someone tries to load a 10MB textfile and try to split it by spaces with E2, it could take an awfully long time, causing the server to freeze.
    I already put a 100kb limit ;P.
    Anticept - HP you are terrible at trolling. Always have been. Leave it up to the pros like Jat.
    Black Phoenix - Actually cunt goes into bullshit. Bullshit does not fit in cunt.
    Drunkie - Logically, Jat Goodwin must be a fist pumping guido.

  9. #29
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: File Functions (Client -> Server)

    Quote Originally Posted by IamMcLovin View Post
    I already put a 100kb limit ;P.
    Ah, awesome.

  10. #30
    Wirererer Snuffy's Avatar
    Join Date
    Jun 2009
    Location
    The Interwebz
    Posts
    144

    Default Re: File Functions (Client -> Server)

    i get a lua error when i try to use fileWrite("test.txt","BLA")

    Expression 2: entities\gmod_wire_expression2\core\custom/files.lua:50: attempt to index field '?' (a nil value)

+ Reply to Thread
Page 3 of 19 FirstFirst 1234513 ... LastLast

LinkBacks (?)

  1. 06-08-2010, 02:50 PM
  2. 03-14-2010, 11:47 AM

Similar Threads

  1. File management functions
    By turck3 in forum Expression 2 Discussion & Help
    Replies: 33
    Last Post: 07-03-2009, 02:08 PM
  2. [E2] File Functions
    By Asphid in forum Wiremod Addons & Coding
    Replies: 7
    Last Post: 06-20-2009, 07:17 PM
  3. Running server Lua functions from client
    By Matte in forum Wiremod Addons & Coding
    Replies: 3
    Last Post: 06-09-2009, 02:53 AM
  4. Wire mod problems client and server
    By benjojo in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 02-23-2009, 12:41 PM
  5. SVN Client Server refusal
    By Mesys in forum Wiremod Website Chat
    Replies: 9
    Last Post: 05-22-2008, 02:57 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