![]() |
Multi Player game with Single character and direct login. - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: Source Code Development (https://mirage-engine.uk/forums/forumdisplay.php?fid=51) +----- Forum: Mirage Source 4 (Visual Basic 6) (https://mirage-engine.uk/forums/forumdisplay.php?fid=44) +------ Forum: Tutorials (https://mirage-engine.uk/forums/forumdisplay.php?fid=13) +------ Thread: Multi Player game with Single character and direct login. (/showthread.php?tid=2357) |
Multi Player game with Single character and direct login. - genusis - 08-11-2008 Ok this tutorial is to change it so there is only 1 character Re: Multi Player game with Single character and direct login. - Dragoons Master - 08-11-2008 Really, this is the easy way. A real conversion should join AccountRec and PlayerRec and REMOVE MAX_CHARS constant. Re: Multi Player game with Single character and direct login. - carloso - 08-11-2008 Does this make sure the CanMove part of the code doesnt bump you into other players? Re: Multi Player game with Single character and direct login. - William - 08-11-2008 carloso Wrote:Does this make sure the CanMove part of the code doesnt bump you into other players?Why would CanMove change when adding this tutorial? Re: Multi Player game with Single character and direct login. - carloso - 08-11-2008 OH, if you change max_players to 1, it only checks if you're in the way of yourself. Probably would be better to remove that part of the code ![]() Re: Multi Player game with Single character and direct login. - Mattyw - 08-11-2008 It'd be better for a lot to be re-written & no Server. =-p Or just full-instanced. But this is so you can only have one character. Re: Multi Player game with Single character and direct login. - genusis - 08-11-2008 i don't think you understand the concept of this ^^. Well ok it is for when you have a multi player game but don't want people to have 3 characters like on frmchar the lstchar shows 3< this gets rid of two of them, and sets it to active frmnewchar after you make a new account so once you make your account it opens up frmNewChar then you make your Character then it saves it to slot 1. After this when you go to login it doesn't not go to the frmchar screen anymore Re: Multi Player game with Single character and direct login. - Rian - 08-11-2008 Dragoons Master Wrote:Really, this is the easy way. A real conversion should join AccountRec and PlayerRec and REMOVE MAX_CHARS constant. That's the way I wanted him to do it, meh, I guess you'll never know the difference if you're just someone playing the game. Thanks for the credit, Genusis, but to your credit, I never typed a single line of code. Glad you got this sorted out like you wanted. Re: Multi Player game with Single character and direct login. - genusis - 08-11-2008 Dragoons Master Wrote:Really, this is the easy way. A real conversion should join AccountRec and PlayerRec and REMOVE MAX_CHARS constant.the problem with this is your basically redoing all of the code ^^ Sonire Wrote:Dragoons Master Wrote:Really, this is the easy way. A real conversion should join AccountRec and PlayerRec and REMOVE MAX_CHARS constant. ya i know but you did help me out a bit so i added you =]. Re: Multi Player game with Single character and direct login. - Dragoons Master - 08-11-2008 genusis Wrote:Well, the code was made to be 2 or more characters per account, so if you remove this ability, the correct thing to do would be remove the code that handles more than 1 char. The way your tut makes it, you basically declares an array of one position, which is weird and useless xD, but it works...Dragoons Master Wrote:Really, this is the easy way. A real conversion should join AccountRec and PlayerRec and REMOVE MAX_CHARS constant.the problem with this is your basically redoing all of the code ^^ Re: Multi Player game with Single character and direct login. - genusis - 08-11-2008 but i also change it so the regular subs that use 2 or more are change to using only 1 since now Maxchar =1 so that fixes the mutli char stuff right there ^^ and saves only 1 Char to your account.bin and so on. and login is still smooth and so is creating a character ^^. |