The Hacker Project - a free online game

Feedback Terminal => Suggestions => Topic started by: neo alpha on August 01, 2008, 01:32:50 PM



Title: Text Files
Post by: neo alpha on August 01, 2008, 01:32:50 PM
Instead of some notepad , why don't you create text files...


For writting , should be a formula , like :
(( TEXT File size in kb )  / RAM Nº[MB] ) - ((Ram nº * 0.1 )*CPU Nº))

Text file size : The size of the file
CPU Nº : You may chose how much CPU do you want to use to save the file
RAM Nº :  You may chose how much RAM you wanna use to save the file


File size formula :
0 ~ 255 characters
32 characters pack = + 128 kb
( each single character = 5 kb )

256 ~ 1023 characters
32 characters pack = + 96 kb
( each single character = 4 kb )

1024 ~ 32768 characters
32 characters pack = + 64 kb
( each single character = 3 kb )

And pick the number times 64


So , for example ; read this text :
Quote
Hello
It have less than 256 characters , so the 32 characters pack is 128 kb and single character is 5 kb
it have 5 characters ; so , it is worth " 25 kb * 64 " =  1600 kb

Quote
1234567890123456789012345678901234567890
It have 40 characters;
so , it is a 32 characters pack + 8 single characters = 168 kb * 64 = 10752 kb

Quote
1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890 1234567890123456789012345678901234567890
It has 285 characters
285 / 32 = 8 characters pack + 29 single characters = 768 kb + 116 kb = 884 kb * 64 = 56576 kb

So, let's say we save the last document ( 285 characters )
we tell the pc to use 100 Mhz CPU and 32 mb ram

(( 56576 / 32 ) - (( 32 * 0.1)* 100))
(1768 - 320 ) = 1448 seconds = 24 mins ( and some seconds )


Minimun should be 20 seconds or 30 seconds or 1 min...


WEll... read this slowlly and  you may understand  :13:


Title: Re: Text Files
Post by: rokalth on August 01, 2008, 01:47:00 PM
Good idea. Maybe something simpler, but yes, its more in the spirit of this game to save your memo in your server... others may steal it or delete it..


Title: Re: Text Files
Post by: neo alpha on August 01, 2008, 01:54:57 PM
Or even add more info :)


Like a guestbook for who cracked the server...



Or , by the roleplay spirit ; if you own a research server ; a research log would be very cool !  :laugh: