One Character Setup Possible?

General discussion about Life is Feudal MMO and Life is Feudal: Your Own, The main section and backbone of the forums.

Nopsi
 
Posts: 11
Joined: 26 Sep 2014, 06:11

One Character Setup Possible?

Post by Nopsi » 22 Oct 2014, 12:34

Hiya,

i would like to know if its possible to setup a server somehow that you can only have one character and not multiple alts?

Thanks alot :)


Capndudeguy
True Believer
 
Posts: 5
Joined: 14 Oct 2014, 09:48

Re: One Character Setup Possible?

Post by Capndudeguy » 22 Oct 2014, 12:38

It depends on the skill cap set by the server. The higher the skill cap is set to the more skills you can learn


Capndudeguy
True Believer
 
Posts: 5
Joined: 14 Oct 2014, 09:48

Re: One Character Setup Possible?

Post by Capndudeguy » 22 Oct 2014, 12:39

On a single character that is


Uno
 
Posts: 229
Joined: 01 Apr 2014, 19:39

Re: One Character Setup Possible?

Post by Uno » 22 Oct 2014, 12:55

From what I read he asked how to set up the SERVER in order to limit one pc per account.


Maegfaer
Mod Developer
 
Posts: 246
Joined: 26 Sep 2014, 08:01

Re: One Character Setup Possible?

Post by Maegfaer » 22 Oct 2014, 14:13

It is possible, give the Account column in the Character table the Unique constraint.

Did it on my modded server as well:

post29315/#p29315
Pioneer LiF:YO modder
Author of Life is Balanced
My Modding Guide

Image


Capndudeguy
True Believer
 
Posts: 5
Joined: 14 Oct 2014, 09:48

Re: One Character Setup Possible?

Post by Capndudeguy » 22 Oct 2014, 15:41

Sorry I misread :)

User avatar
Chessmaster42
 
Posts: 23
Joined: 30 Sep 2014, 22:05

Re: One Character Setup Possible?

Post by Chessmaster42 » 22 Oct 2014, 16:14

I wonder then if it's possible put a different foreign key constraint on the characters table so that we could limit it to an arbitrary number of characters instead of either 1 or unlimited as it is now.

For the most part I am in favor of 1 character per account but currently my server has a low pop so we've been allowing 2 per account and tonight I'm planning on doing some SQL work and am curious if anyone has found any other way than forcing the account id foreign key column to be unique (which works by the way so kudos for that :) )


Nopsi
 
Posts: 11
Joined: 26 Sep 2014, 06:11

Re: One Character Setup Possible?

Post by Nopsi » 23 Oct 2014, 06:54

Maegfaer wrote:It is possible, give the Account column in the Character table the Unique constraint.

Did it on my modded server as well:

post29315/#p29315


thank you! Could you maybe explain that a little bit more? at your post you dont realy explain what or how you did that.


Maegfaer
Mod Developer
 
Posts: 246
Joined: 26 Sep 2014, 08:01

Re: One Character Setup Possible?

Post by Maegfaer » 23 Oct 2014, 12:58

From PM:

Nopsi wrote:How or where can i find this?

I am searching at the directorys but cant find anything[/url]


These changes need to be done in the SQL database. It should be possible to do this with HeidiSQL I think, somehow. I use dbForge Studio myself.

You could try adding this to the patch.sql file in the sql folder in your dedicated server directory:

ALTER TABLE `character`
ADD UNIQUE(AccountID);

No guarantees that it works though, haven't tested it. Else try it through the SQL shell.
Pioneer LiF:YO modder
Author of Life is Balanced
My Modding Guide

Image


HydroxTV
Beta Tester
 
Posts: 84
Joined: 10 Oct 2014, 15:27

Re: One Character Setup Possible?

Post by HydroxTV » 24 Oct 2014, 13:50

Made a video for that:

[youtube]XsvQiYCNDgg[/youtube]


Mighty7788
 
Posts: 6
Joined: 27 Oct 2014, 19:03

Re: One Character Setup Possible?

Post by Mighty7788 » 25 Nov 2014, 21:43

Is there a chance to only allow 1 character and for some trusted peeps a second or third?

Even if you are GM you might need some more NPCs :)


Using dedicated standalone + MAriaDB

User avatar
Vamyan
 
Posts: 198
Joined: 23 Oct 2014, 22:29

Re: One Character Setup Possible?

Post by Vamyan » 25 Nov 2014, 23:18

Yes. There are instructions in this post: character-count-limiter-t4718/

Of course, you may need to add some conditions, but the basics are there.


Mighty7788
 
Posts: 6
Joined: 27 Oct 2014, 19:03

Re: One Character Setup Possible?

Post by Mighty7788 » 25 Nov 2014, 23:20

doesnt work for me .. maybe because im a SQL roockie :/

Return to General Discussion