Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums.  New registrations are by request only.  To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1
Send Topic Print
Bug with SFmpqapi.dll ? (Read 7346 times)
esby
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 23

Bug with SFmpqapi.dll ?
Sep 29th, 2009, 10:16pm
 
I am trying to use the SFmpqapi.dll.
It's fine more or less; but:

SFileReadFile seems to read more bytes than the buffer can actually contain.

For some files; I am having it reading for exemple 8533 bytes, with a buffer size of 8192 and a limit specified of 4096...

Something is wrong here...

this happends when trying to load  "ReplaceableTextures\CommandButtons\BTNTrap.blp"
from the dota map v6.63b... ( www.getdota.com )



Back to top
 
 
  IP Logged
ShadowFlare
Administrator/Lord of Nightmares
*****
Offline

The source of all
chaos

Posts: 125
The Sea of Chaos
Re: Bug with SFmpqapi.dll ?
Reply #1 - Sep 30th, 2009, 5:18am
 
If you haven't already, try using the version of SFmpq.dll that is included with the latest version of WinMPQ.  It was built from the latest source code version on 2009-08-24.  You could even build one from source if you really want to; it is available at http://sfsrealm.hopto.org/projects/gitweb.cgi

I suppose I should package up and upload a new build one of these days...
Back to top
 
 

-ShadowFlare

"My mind is my power. My power is my mind.
When uncorrupted by other elements, my mind is my pure power."

"I am a darkness beyond blackest pitch, deeper than the deepest night.
I am the Sea of Chaos. The source of all chaos.
That is how you describe me...
I am... the Lord of Nightmares."
WWW 46431561 ShadowFlareSFR   IP Logged
ShadowFlare
Administrator/Lord of Nightmares
*****
Offline

The source of all
chaos

Posts: 125
The Sea of Chaos
Re: Bug with SFmpqapi.dll ?
Reply #2 - Oct 1st, 2009, 2:03am
 
You may want to re-download it if you downloaded it before I uploaded a fix just a moment ago.  If you are only using it for reading files, it probably won't matter, though.
Back to top
 
 

-ShadowFlare

"My mind is my power. My power is my mind.
When uncorrupted by other elements, my mind is my pure power."

"I am a darkness beyond blackest pitch, deeper than the deepest night.
I am the Sea of Chaos. The source of all chaos.
That is how you describe me...
I am... the Lord of Nightmares."
WWW 46431561 ShadowFlareSFR   IP Logged
esby
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 23

Re: Bug with SFmpqapi.dll ?
Reply #3 - Oct 1st, 2009, 8:40am
 
I got the version that with WinMPQ
Back to top
 
 
  IP Logged
ShadowFlare
Administrator/Lord of Nightmares
*****
Offline

The source of all
chaos

Posts: 125
The Sea of Chaos
Re: Bug with SFmpqapi.dll ?
Reply #4 - Oct 1st, 2009, 6:04pm
 
So is this a glitch with the current version then?
Back to top
 
 

-ShadowFlare

"My mind is my power. My power is my mind.
When uncorrupted by other elements, my mind is my pure power."

"I am a darkness beyond blackest pitch, deeper than the deepest night.
I am the Sea of Chaos. The source of all chaos.
That is how you describe me...
I am... the Lord of Nightmares."
WWW 46431561 ShadowFlareSFR   IP Logged
esby
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 23

Re: Bug with SFmpqapi.dll ?
Reply #5 - Oct 1st, 2009, 6:16pm
 
That was a glitch with the standalone version that was on the server before i started this topic.
The version with winmpq fixed the issue.

Back to top
 
 
  IP Logged
Pages: 1
Send Topic Print