Nov 14 2012, 7:15 pm
|
|
Are you being serious? the fact that they all shared one file "player" would mean if you banned one person .. they would all be banned... and you didn't even check that the file existed with fexists() ... nothing wrong eh you seem to be pretty stubborn, so I am going to leave it at this perhaps read the Guide and Reference wouldn't hurt.. Don't forget to search before you make a new post!
|
Again, nothing wrong (aside where you helped me make it so each player had their own file). Are you incapable of reading in between brackets?
|
No I am not, The fact that you failed to show the rest of the Login() snippet makes you think we can magically solve the problem? all you had shown was the "ban" everyone code.
You are digging a hole for yourself and looking pretty dirty perhaps this topic should be locked, the problem (which wasn't shown in the first place (can you read this?)) has been solved. |
No. You've got the wrong idea.
I suggested that because, at first, I assumed that what you posted was a save system. After taking a better look, I noticed that it is actually a ban system. For a ban system, you can use a single savefile. Your fault was that you were not saving any information on who you banned. This will cause unexpected denial of access upon login (which is similar to the problem you stated). I gave you a solution for that. Yes, the actual source of the problem is the mismatch between the name of the folder and .dme file which will give a prompt for security purposes. Nevertheless, saying that nothing is wrong with your code, that we are just rewriting the same thing, is rude. I hope I have proven to you that it is not just a rewrite. It is a fix and you need that. |
A.T.H.K, as I stated earlier in this topic, everything else in Login() wasn't linked to the savefile/ban codes at all. And it isn't. The rest of Login(), after the ban check, is just various other things in my game used to do things such as take the player to the title page, etc.
All I needed to show was what I had shown. I also provided everything needed to see. After that, Keeth's theory was what pointed me in the right direction. While most of your comments have been telling me that I'm not doing enough research, and then provide me with links to things irrelevant to the problem at hand. I always investigate the reference and guide thoroughly. If I don't fully understand it, I fiddle around with it on my project with trial and error for a while. If I'm still unable to solve it, I keep switching back and forth between reference, guide and my project. Usually I eventually solve whatever problem I'm stuck on by then. If not, I then do a quick key word search on the forums, basically check out the 1st page of topics. Then if I'm still at a loss, I post a new topic. I try to be as specific and straight forward as possible. Sometimes, less experienced programmers have difficulty doing that. |
Jemai1, the whole "re-writing the same thing" statement was morely directed at A.T.H.K, which is what he was doing. I apologize for that misunderstanding and not being more clear and specific with that harsh statement. Some of your comments did and have helped me with savefiles. It was just off course of the main problem.
|
We asked you to post the rest of the Login proc so we could check if you are not doing anything funny that would disconnect the client like deleting the mob if a certain condition was met. However, you did not comply.
|
I made sure to check the rest of my Login() before posting. Nothing else caused any problems.
|
We have not seen it so we cannot take your word on that. You overlooked the mismatch in the name of the folder and the .dme file. You could have done the same somewhere in the Login proc. This is our reason.
|
I guess it would have helped if I said I simply took out the savefile codes in Login() and then tested. That would have been enough to ensure nothing else is the cause. However, you didn't exactly state this before.
|
What about this lib?
http://www.byond.com/developer/PrinceVegeta122/PVBan i think this is what ur looking for |
Well, you gave me a partially explained question. To which I gave a partially explained answer. Though, I think now we're at an understanding. Yes, I was too quick to make that harsh judgement on you, and I apologize. While not helping with the main problem, it did help in other ways. And it did save me the time it would have taken afterwards, trying to figure out what the new main problem was. I thank you for that.
|
Great finally a resolution! We aren't mind readers :) but I forgive you for being a touch rude to me, good luck with your project I hope it turns out to be a success!
|
In response to Sers000
|
|
Sers000 wrote:
wanna Group hug? |
In response to Jemai1
|
|