Valentine90 Posted September 26, 2012 Author Share Posted September 26, 2012 **Sorry my english**The error happens when you try someone ban and happens server error saying it could not find the folder.**Open Server****1 -** In **modDatabase**, In **Sub BanIndex** and **Sub ServerBanIndex**, look for:```filename = App.Path & "data\banlist.txt"```**2 -** Replace with:```filename = App.Path & "\data\banlist.txt"```**3 -** Look for:```If Not FileExist("data\banlist.txt") Then```**4 -** Replace with:```If Not FileExist(filename) Then```**Credits:**Valentine Link to comment Share on other sites More sharing options...
Matt Posted September 26, 2012 Share Posted September 26, 2012 I'm rather grateful that you've put in so much effort to make these bug fixes. I've never come across lots of these though… Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 26, 2012 Share Posted September 26, 2012 > I'm rather grateful that you've put in so much effort to make these bug fixes. I've never come across lots of these though…Because you don't look Link to comment Share on other sites More sharing options...
Matt Posted September 26, 2012 Share Posted September 26, 2012 > I've **never** come across **lots** of these though…I have come across a few of them, but not all of them. I don't go hunting for bugs. Link to comment Share on other sites More sharing options...
JohnPony Posted September 26, 2012 Share Posted September 26, 2012 - SnipI don't know what i was thinking. Link to comment Share on other sites More sharing options...
Justn Posted September 26, 2012 Share Posted September 26, 2012 > Now fix about half the subs in the server & client by using public or private based on how they are used. Rather then just Sub which is currently used.Hmm I never thought of that.. what's bad about the current way they are? Link to comment Share on other sites More sharing options...
JohnPony Posted September 27, 2012 Share Posted September 27, 2012 > Hmm I never thought of that.. what's bad about the current way they are?Well, i thought just using Sub is the same as public sub.If you look in modHandleData alot of the packet handlers are just Sub, when they should be private. Link to comment Share on other sites More sharing options...
Justn Posted September 27, 2012 Share Posted September 27, 2012 Can u give me an example of one that should be private so I have an idea of what needs to be changed? Link to comment Share on other sites More sharing options...
JohnPony Posted September 27, 2012 Share Posted September 27, 2012 > Can u give me an example of one that should be private so I have an idea of what needs to be changed?Pretty much everything in modHandleData needs to be, well everything that handles packets anyway.Leave the few things in there that are accessed elsewhere such as IncomingData alone. Link to comment Share on other sites More sharing options...
Growlith1223 Posted September 27, 2012 Share Posted September 27, 2012 what does it do specifically? does it speed things up? or does it make it more organized? Link to comment Share on other sites More sharing options...
blkcrow Posted September 27, 2012 Share Posted September 27, 2012 it just doesnt allow the rest of the project to access these subs Link to comment Share on other sites More sharing options...
JohnPony Posted September 29, 2012 Share Posted September 29, 2012 > it just doesnt allow the rest of the project to access these subsA private sub is actually processed quicker then a public one, don't comment on something if you have no idea what you are talking about. Link to comment Share on other sites More sharing options...
blkcrow Posted September 30, 2012 Share Posted September 30, 2012 > A private sub is actually processed quicker then a public one, don't comment on something if you have no idea what you are talking about.Like you know what you are talking about. Private subs can only be called from the module they are in and not by the rest of the program when public subs can be called from anywhere in the program Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now