xboxscene.org forums

Pages: [1] 2 3 ... 7

Author Topic: Is It Possible ?  (Read 396 times)

alphaxav

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Is It Possible ?
« on: June 27, 2004, 12:44:00 PM »

wink.gif
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Is It Possible ?
« Reply #1 on: June 27, 2004, 11:25:00 PM »

how do you use it then ?
Logged

alphaxav

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Is It Possible ?
« Reply #2 on: June 28, 2004, 01:45:00 AM »

ohmy.gif
Logged

tayior7

  • Archived User
  • Full Member
  • *
  • Posts: 195
Is It Possible ?
« Reply #3 on: June 28, 2004, 08:51:00 AM »

it is for lite, and it gives you the number of free blocks (not KB or GB), i think there are 16 blocks in one KB?  well anyways, ive never used it so i dont kno how.
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Is It Possible ?
« Reply #4 on: June 28, 2004, 10:21:00 AM »

CODE
DriveSpace = yourMemoryMonitor.GetTotalFreeBlocks(X);
X = 8(E Drive) , 9(F Drive) , 10(G Drive)


and this

You can use GetFreeTotalRatio function to compute the full drive space.

EG:
CODE
FreeSpaceRatio = FreeSpace / TotalSpace
TotalSpace = FreeSpace / FreeSpaceRatio
Logged

JbOnE

  • Archived User
  • Full Member
  • *
  • Posts: 242
Is It Possible ?
« Reply #5 on: June 28, 2004, 01:50:00 PM »

CODE


DEF theHDDMonitor MemoryMonitor

function ShowFreeSpaceOn(drive)
{
   var a = drive;
   var b = theHDDMonitor.GetTotalFreeBlocks(a);
   var c = (b * 16) / 1024;
   var d = Math.round(c);
   return d;
}

function ShowTotalSpaceOn(drive)
{
   var a = drive;
   var b = theHDDMonitor.GetFreeTotalRatio(a);
   var c = theHDDMonitor.GetTotalFreeBlocks(a);
   var d = (c * 16) / 1024;
   var e = d / b;
   var f = Math.round(e);
   return f;
}   


usage...
CODE


   var a = new Array(6);
   a[0] = ShowFreeSpaceOn(8);    // E:
   a[1] = ShowFreeSpaceOn(9);    // F:
   a[2] = ShowFreeSpaceOn(10);  // G:
   a[3] = ShowTotalSpaceOn(8);   // E:
   a[4] = ShowTotalSpaceOn(9);   // F:
   a[5] = ShowTotalSpaceOn(10); // G:


values are returned in MB as GB in xbox math is very inaccurate
that'll give you an array filled with drive info to insert into wherever ya want
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Is It Possible ?
« Reply #6 on: June 28, 2004, 10:10:00 PM »

going to test and put a pic
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Is It Possible ?
« Reply #7 on: June 29, 2004, 12:32:00 AM »

i cant get it to work
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Is It Possible ?
« Reply #8 on: June 29, 2004, 12:52:00 AM »

well i cant get it to work need help. i tryed and tryed but no luck
Logged

tayior7

  • Archived User
  • Full Member
  • *
  • Posts: 195
Is It Possible ?
« Reply #9 on: June 29, 2004, 07:13:00 AM »

putting that code in the xaps will not do the mod in the pic, it will just assign values to an array.  ur gonna have to figure out what to do with the variables urself. (i dont think jbone will write a tut for it, considering he is with ava (corect?), and he didnt do the mod in the pic)

edit....
just noticed... why did my 1st post get deleted?
Logged

xxwillisxx

  • Archived User
  • Sr. Member
  • *
  • Posts: 364
Is It Possible ?
« Reply #10 on: June 29, 2004, 09:59:00 AM »

QUOTE
edit....
just noticed... why did my 1st post get deleted?


i dont know ohmy.gif
Logged

JbOnE

  • Archived User
  • Full Member
  • *
  • Posts: 242
Is It Possible ?
« Reply #11 on: June 30, 2004, 08:54:00 AM »

nice new thread xxwillisxx - funny how ppl get what they were looking for and then post it like it's something they came up with - hmmm seen that b4 - everybody looks like a genius when they paste code - it wouldn't have been deleted if it was continued in this thread - for pete's sake - i handed you the code (and yes the math is perfect in it - you just made up you own MB size in yours) and you go running off like you just reinvented the wheel without saying you bought if from the michelin man - it's this lack of respect for other's work that brought about BullshitX's existence. so if that's the way you guys wanna be then fine - take everything we have done and given you, all the original code - the features - all our hard work - and go join the BullshitX forums - cuz we're not putting up with it here anymore
Logged

-WebSurfer-

  • Archived User
  • Jr. Member
  • *
  • Posts: 63
Is It Possible ?
« Reply #12 on: June 30, 2004, 09:13:00 AM »

grr.gif
Logged

JbOnE

  • Archived User
  • Full Member
  • *
  • Posts: 242
Is It Possible ?
« Reply #13 on: June 30, 2004, 09:33:00 AM »

QUOTE (JbOnE @ Jun 30 2004, 11:54 AM)
... we're not putting up with it here anymore



from now on anything posted without reference to it's origin will be deleted - whether it's our code or your mom's code. the xbe and ORIGINAL xaps are the only part of the ms dash that is M$ code - the xaps are c compiled on boot - making their contents the original code of the creator. so if someone writes something original in the xaps - it is their intellectual property. you go spend a year of your time creating something and then have someone else claim credit for it - then you can lecture me on what to/not be pissed about
Logged

alphaxav

  • Archived User
  • Jr. Member
  • *
  • Posts: 73
Is It Possible ?
« Reply #14 on: June 30, 2004, 09:40:00 AM »

wink.gif

THX a lot !
Logged
Pages: [1] 2 3 ... 7