Hacking Estimate Bug in WBFS (?Win?)

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
Hi
i cant find any WBFS version for windows without the estimate bug.
Nights: Journey... Pal Estimate 0.01G real size 4.01G
Fifa08 Estimate 0.00G real size 4.00G
.....
It would be easy if there arent some games with 0.19 and som with 4.19 out
unsure.gif


Does someone know a version without this bug.
I´m no c programmer so i cant find/fix the bug in source.
 

palasx

Well-Known Member
Newcomer
Joined
Oct 17, 2007
Messages
98
Trophies
1
XP
227
Country
United States
confirmed in WBFS Manager 2.2.1 as well. its likely in libwbfs then, what versions are you seeing this bug in?
 

steve-p

Well-Known Member
Member
Joined
Apr 13, 2009
Messages
503
Trophies
0
XP
143
Country
i'd like to test this,
is it only games over 4gig?
and does it do this when you list the contents of a wbfs partition?
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
It´s only the estimating games over 4GIG Gamepartition
if you copy it to usb everything is ok and on usb the size shown is ok.

I tested every version i found out there.
All have the same bug.
wbfs_win + wbfs_win_delta
hermes version
Sorgs version
WiiNinja version
...
 

wiiNinja

Well-Known Member
Member
Joined
Jan 13, 2009
Messages
645
Trophies
1
XP
1,794
Country
United States
I see the problem. It's in the routine:

u32 wbfs_estimate_disc

The return value is a 32 bit value, which has a max value of 4GB. This is a minor bug but I can't test it right now 'cause I'm at work (no WBFS drive). Will make a change tonight.
 

AlexDP

Well-Known Member
Member
Joined
Jun 17, 2007
Messages
133
Trophies
0
XP
53
Country
Italy
wiiNinja said:
I see the problem. It's in the routine:

u32 wbfs_estimate_disc

The return value is a 32 bit value, which has a max value of 4GB. This is a minor bug but I can't test it right now 'cause I'm at work (no WBFS drive). Will make a change tonight.
This most likely is the bug indeed. I'll look into getting that fixed for WBFS Manager 3.0. Nice job.
Actually, looking at it again, that can't be the problem, Super Smash Bros. Brawl correctly reports as 6.95 GB (at least in WBFS Manager 2.2.2).
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
Godd for you AlexDP
But the problem with your gui ist .net 3.5
smile.gif


With the normal wbfs tools you get 2.75Gig for Super smash Bros. Brawl
 

AlexDP

Well-Known Member
Member
Joined
Jun 17, 2007
Messages
133
Trophies
0
XP
53
Country
Italy
PrixM said:
Godd for you AlexDP
But the problem with your gui ist .net 3.5
smile.gif


With the normal wbfs tools you get 2.75Gig for Super smash Bros. Brawl
Is that so? well, I can compare the libwbfs code I'm using with the latest version and see how it is that I fixed it. I'll post it back here.
Btw, is there something wrong with .NET 3.5 SP1 that I'm not aware of? I don't get what all the reluctance towards .NET is about, it's just like installing the VC++ redist, or like installing the MFC redist, or installing the Java Runtime Environment....
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
No problem with .net
I also like your GUI

But not everyone has .net 3.5 on his pc
I´m fan of programms that run on a standard windows an don´t need 200MB download
wink.gif


And i misunderstood you.
If you want to post a solution why yours work and all others dont work
Great job
 

PrixM

Well-Known Member
OP
Member
Joined
Apr 14, 2009
Messages
176
Trophies
0
XP
279
Country
Germany
Ok it seems that i fixed the problem doing a dirty trick
Think you can do it better if you are a C coder
So please post if you find a way to do it

Canged following lines

In Libwbfs.c / u32 wbfs_estimate_disc:
u32 tot; to u64 tot;
return tot * (p->wbfs_sec_sz / p->hd_sec_sz)*512); to return tot * ((p->wbfs_sec_sz / p->hd_sec_sz)*512)/10;

in wbfs.c / void wbfs_applet_estimate.....
u32 estimation = wbfs_estimate_disc.... to u64 estimation = wbfs_estimate_disc....
fprintf(stderr, "%.2fG\n", estimation / (GB)); to fprintf(stderr, "%.2fG\n", estimation *10 / (GB));

now i got the right size for all games
rolleyes.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • Minox @ Minox:
    No idea what any of those things you mention are
    +1
  • K3Nv2 @ K3Nv2:
    Cholesterol and Triglycerides? Basically a way they measure fatty cells in your blood
  • AncientBoi @ AncientBoi:
    Cholesterol is sorta high, according to my doc
    +1
  • K3Nv2 @ K3Nv2:
    I've been taking fiber pills, eating more grapes, switched to wheat bread in hopes to lower it
    +1
  • BigOnYa @ BigOnYa:
    I like wheat bread, I even like the chunky wheat bread with pieces of whole grain in it.
  • K3Nv2 @ K3Nv2:
    Been getting this honey wheat bread from aldis pretty decent not very sweet to out do it
  • K3Nv2 @ K3Nv2:
    Me making any food at home is an improvement to how I use to be
    +1
  • BigOnYa @ BigOnYa:
    I have an bread machine and use it alot, better than breads you buy, but don't last as long, cause no bs preservatives
  • K3Nv2 @ K3Nv2:
    I got compliments about my weight loss and thought well guess I can pig out again now I'm the piggy
  • BigOnYa @ BigOnYa:
    My biggest prob is alcohol, definitely is fattening
  • K3Nv2 @ K3Nv2:
    I know when to stop at least honestly don't get those that go and go with food
  • BigOnYa @ BigOnYa:
    Or those that order 2 big macs , large fry, ice cream sundie, then a diet coke
  • K3Nv2 @ K3Nv2:
    I might get downing two big macs but nah that's it
  • BigOnYa @ BigOnYa:
    Ok that will be $15.99, cash or charge?
  • K3Nv2 @ K3Nv2:
    My go to orders usually a mcdouble and a mcchicken and I'm happy rarely mess with fries
  • K3Nv2 @ K3Nv2:
    Pro tip ask for that clowns jizzmac sauce on your mcdouble
    +1
  • BigOnYa @ BigOnYa:
    Do they charge extra when you add sauce,etc? I know burger king used to not, but don't know nowadays
  • K3Nv2 @ K3Nv2:
    They may squrit it for free if you ask nice
    +1
  • K3Nv2 @ K3Nv2:
    Last time I got bk it was 35c per sauce fuck you king of my nutsack
    +1
  • K3Nv2 @ K3Nv2:
    I'll buy a bottle of baby rays BBQ for $2 and add it from home out of spite
    +1
  • BigOnYa @ BigOnYa:
    I like baby rays, my favorite is KC masterpiece tho. Figured all you could buy is that there.
  • K3Nv2 @ K3Nv2:
    The metro doesn't discriminate good sauce
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Baby Rays isn't that what killed the crocodile hunter?
  • Psionic Roshambo @ Psionic Roshambo:
    If only he had done an endorsement for them....
  • Psionic Roshambo @ Psionic Roshambo:
    Oy mate don't let a bad bbq sauce kill your party! Baby Rays are killing it!! The flavor hits you right in the chest!
    +1
    Psionic Roshambo @ Psionic Roshambo: Oy mate don't let a bad bbq sauce kill your party! Baby Rays are killing it!! The flavor hits... +1