is there anyone willing to update this addon to make it work with Garry's Mod 13? [url]http://www.garrysmod.org/downloads/?a=view&id=103559[/url]
if anyone does thanks
That addon was out dated and poorly coded in Gmod 12... I'd recommend looking for a different one made for use in Gmod 13.
As I recall it uses text files to save a single number: your time played. That's allocating 4+kb of disk space (depending on ur hard drive / file system) to store about 10 chars... simply retarded.
[QUOTE=thelastpenguin;43342099]As I recall it uses text files to save a single number: your time played. That's allocating 4+kb of disk space (depending on ur hard drive / file system) to store about 10 chars... simply retarded.[/QUOTE]
10 characters in a text file takes up less than four bytes
I have no idea how you got it in your head that it would take four thousand
[QUOTE=Bletotum;43342403]10 characters in a text file takes up less than four bytes
I have no idea how you got it in your head that it would take four thousand[/QUOTE]
Depending on the way the hard drive is partitioned, penguin is right. The minimum size on disk a file can be is the size of a cluster, which seems to default to 4kb in Windows 7.
[img]http://puu.sh/62b7T.png[/img]
[url]http://support.microsoft.com/kb/140365[/url]
It has to do with what microsoft is calling Cluster size.
It's essentially a limit of the smallest amount of space a file can take up for a filesystem. In larger drives it can inflate quite a bit.
[url]http://en.wikipedia.org/wiki/Block_(data_storage)[/url]
You have to remember digital data is physically stored on a medium, so they have blocks. A block is the smallest unit of physical storage that can be addressed.
1 byte is the smallest addressable memory storage because reasons (CPU registers). I remember looking up the storage space in C++ for a boolean and going, WHY I only want to use 1 bit!!
I really nerded out on this one. I feel like most people can script and program object oriented without ever knowing about underlying ASM, Binary, CPU registers.
Binary is a very interesting topic.
The source of why you see powers of 2 everywhere.
2^4 = 16. 16x16 pixels. [not storage related, but power of 2 related]
2^5 = 32. 32x32 pixels. [ '' ]
2(base)^8(number of bits) = 256 = 0-255. (1 byte = 8 bits). 255 is the highest value 1 byte can hold.
binary representation of a byte
00000000 = 0
00000001 = 1
00000010 = 2
...
11111111 = 255
It would be better to use something like UTime and modify it for singleplayer.
Sorry, you need to Log In to post a reply to this thread.