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.
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.
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.
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
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.
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 thought it was dupable?
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.
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.
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.
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)
Bookmarks