Page 1 of 1

Need help with MCLawl source!

PostPosted: 28 Jul 2013, 20:15
by Leeizazombie
1) When I compile and run the software it shows the following output in console:
Code: Select all
(20:13:01) Starting Server
(20:13:04) MySQL settings have not been set! Please reference the MySQL_Setup.txt file on setting up MySQL!
(20:13:04) !!!Error! See logs/errors/2013-07-28error.log for more information.
I have no idea how to set up SQL at all, can someone please explain in steps to make it work for MCLawl?

2) How do I completly change the namespace? so that custom commands have to be using "MyServerNameSpace".

Re: Need help with MCLawl source!

PostPosted: 29 Jul 2013, 03:56
by ismellike
This really doesn't have to do with anything of mcdzienny, so I moved it to off-topic.

Anyways, go to your properties>server.

Make sure UseMySql is set to false.

You will have to search the project for the place where the file is created, and default it to false.

Re: Need help with MCLawl source!

PostPosted: 29 Jul 2013, 03:58
by Clowny
ismellike wrote:This really doesn't have to do with anything of mcdzienny, so I moved it to off-topic.

Anyways, go to your properties>server.

Make sure UseMySql is set to false.

You will have to search the project for the place where the file is created, and default it to false.

and as for the namespace?

Re: Need help with MCLawl source!

PostPosted: 29 Jul 2013, 04:14
by ismellike
This is roughly how you would do it; I don't really want to open vs.

Right click on "MCLawl", after the namespace, and right click>refractor>rename>"Put your name".

Re: Need help with MCLawl source!

PostPosted: 29 Jul 2013, 22:36
by Leeizazombie
ismellike wrote:This is roughly how you would do it; I don't really want to open vs.

Right click on "MCLawl", after the namespace, and right click>refractor>rename>"Put your name".


Thanks, but the namespace seems to give me problems, there's one more thing, I don't know how to allow email names I tried changing:
Code: Select all
  public static bool ValidName(string name)
        {
            string allowedchars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz01234567890._";
            foreach (char ch in name) { if (allowedchars.IndexOf(ch) == -1) { return false; } } return true;
        }

and added a @ but it still wont work!

Re: Need help with MCLawl source!

PostPosted: 29 Jul 2013, 22:43
by HETAL
and how do you add multiple namespaces without vs

Re: Need help with MCLawl source!

PostPosted: 30 Jul 2013, 01:29
by Leeizazombie
I seemed to fix the illegal name problem by removing the code that reviews the players name, but now email players are still shown with the full email in chat