Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[BUGS]Destroybanlist and /ban
#1
When you use /destroybanlist, or at least for me, it crashes the server, I can then not log in, because it keeps giving me RTE 62. Input past the end of a file. If I open the Banlist, I can see that the cursor is down one line, it appears that it's creating a blank space in the file, and I think this is what is causing the problem, as deleting the space fixes everything.
The fix:
Replace:
Code:
Open FileName For Output As File
        Print #File, vbNullString
    Close File

With:
Code:
open filename for binary as file
put file,,vbnullstring
close file
Note: I DID NOT COME UP WITH THE FIX. I GOT THE ANSWER FROM MY MSN FRIEND ROTT.
Reply
#2
I recently found that /kill, and /kick also do the same thing. Am I the only one getting this?
Reply
#3
Weird.
It's not happening with me, the ban list file is successfully destroyed.

EDIT:
Whoops! It doesn't crash the server here, but I can't join the server after deleting my ban list.
Reply
#4
Kraft Wrote:Weird.
It's not happening with me, the ban list file is successfully destroyed.

Do it twice in a row, and then close the client, and open it again. I tried this on a clean source, and it still does it.
Reply
#5
Nean Wrote:Do it twice in a row, and then close the client, and open it again. I tried this on a clean source, and it still does it.
I see. Your fix really... fix this up? It doesn't here.

EDIT:
Hey, isn't easier just to delete banlist.txt? Tongue
Reply
#6
Kraft Wrote:
Nean Wrote:Do it twice in a row, and then close the client, and open it again. I tried this on a clean source, and it still does it.
I see. Your fix really... fix this up? It doesn't here.

EDIT:
Hey, isn't easier just to delete banlist.txt? Tongue

It's still better, to fix the code, and get things working as they should. Who knows, maybe it'll boost the speed of the game too. You can't let these small bugs accumulate, or soon you have another playerworlds. (No offense to PW's)
Reply
#7
Deleting is not letting the bug there. It's just using an alternative way.
There's probably none speed difference.

Sorry about my weird English. Tongue
Reply
#8
Kraft Wrote:Deleting is not letting the bug there. It's just using an alternative way.
There's probably none speed difference.

Sorry about my weird English. Tongue

It's all good. It's just that this is a bug, and well.... In beta's and whatnot, you're usually supposed to report bugs. Anyways, this up to DFA to deem worthy to fix or not.
Reply
#9
I'm not saying your fix isn't good. You did very well, thank you.
I'm just pointing an easiest and lazy way. Tongue
Reply
#10
I'll check it out :|
Reply
#11
Fixed it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)