Larian Banner
Previous Thread
Next Thread
Print Thread
Fix for Multiplayer Character Creation Wiki Script #628413
08/10/17 08:46 PM
08/10/17 08:46 PM
Joined: Dec 2013
Posts: 872
Windemere Offline OP

old hand
Windemere  Offline OP

old hand

Joined: Dec 2013
Posts: 872
So using the wiki script provided by Larian we got a huge, helpful head-start on character creation. Some of us did find that it was not working for multiplayer though. The connecting users were ending up in a scratchpad terrain location on the "SYS_Character_Creation_A" level, with a party of all the dummy and generic origins but no assigned character and definitely no character creation.

In any case, I think I have located the issue. Look for this block of code:

Code:
PROC
ProcAssignDummyToUser((CHARACTERGUID)_Dummy,(STRING)_UserName)
AND
NOT DB_AvailableDummy(_Dummy)
THEN
CharacterMakePlayer(_Dummy, NULL_00000000-0000-0000-0000-000000000000);

PROC
ProcAssignDummyToUser((CHARACTERGUID)_Dummy,(STRING)_UserName)
AND
NOT DB_AvailableDummy(_Dummy)
AND
CharacterAddToCharacterCreation(_Dummy,0,1)
THEN
DB_AssignedDummyForUser(_UserName,_Dummy);


The problem seems to be the NOT DB_AvailableDummy() entries. I believe we should remove the NOT. I got multiplayer to work by changing these calls to the following:

Code:
PROC
ProcAssignDummyToUser((CHARACTERGUID)_Dummy,(STRING)_UserName)
AND
DB_AvailableDummy(_Dummy)
THEN
CharacterMakePlayer(_Dummy, NULL_00000000-0000-0000-0000-000000000000);

PROC
ProcAssignDummyToUser((CHARACTERGUID)_Dummy,(STRING)_UserName)
AND
DB_AvailableDummy(_Dummy)
AND
CharacterAddToCharacterCreation(_Dummy,0,1)
THEN
DB_AssignedDummyForUser(_UserName,_Dummy);


For those who prefer graphical diffs


I think the problem was that they copied code from GLOBAL_CharacterCreation of the Origins campaign to implement ProcAssignDummyToUser(), but they never initialized the DB_AvailableDummy database entries with all the dummies in Origins like they do in our wiki script, so they would not have encountered this.

Either way, if you're having problems with multiplayer character creation give these above changes a shot and see if it helps. Or if you have any other insights, by all means share them here.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #628492
09/10/17 01:18 AM
09/10/17 01:18 AM
Joined: Sep 2017
Posts: 27
T
Toomuchbob Offline
apprentice
Toomuchbob  Offline
apprentice
T

Joined: Sep 2017
Posts: 27
Which file is this code located in? I can't seem to find anything even close to it, just a handful of ProcAssignDummyToUser((CHARACTERGUID)_Dummy,(STRING)_UserName) but thats about it.

Edit: Found it in _BasicCC_CharacterCreation, but that file doesn't even use the aforementioned database. Are you speaking of implementing CharacterCreation in a different manner?

Last edited by Toomuchbob; 09/10/17 01:31 AM.
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #628505
09/10/17 02:02 AM
09/10/17 02:02 AM
Joined: Dec 2013
Posts: 872
Windemere Offline OP

old hand
Windemere  Offline OP

old hand

Joined: Dec 2013
Posts: 872
I provided a link to the wiki section where Larian gave us a script to do character creation. I'm addressing that script, e.g., character creation template


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #628507
09/10/17 02:15 AM
09/10/17 02:15 AM
Joined: Sep 2017
Posts: 27
T
Toomuchbob Offline
apprentice
Toomuchbob  Offline
apprentice
T

Joined: Sep 2017
Posts: 27
Ahh, I assumed you were referencing

https://docs.larian.game/Basic_Character_Creation

That zip does things a bit differently then the script you used. Any idea how to modify that to work instead? There's too much in there for me, still.

Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #628624
09/10/17 09:31 AM
09/10/17 09:31 AM
Joined: Sep 2017
Posts: 478
Belgium, Ghent
Larian_KVN Offline
addict
Larian_KVN  Offline
addict

Joined: Sep 2017
Posts: 478
Belgium, Ghent
I updated the script accordingly smile
Thanks again Windemere


CTRL+K the elf
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #629748
11/10/17 02:00 PM
11/10/17 02:00 PM
Joined: Sep 2017
Posts: 28
R
Reltzu Offline
apprentice
Reltzu  Offline
apprentice
R

Joined: Sep 2017
Posts: 28
Nevermind, I took the script fresh off the wiki again and now it is working smile

I have an issue with those changes for my standalone adventure (that is dependent on GM mode):

single player character creation works fine and the game starts correctly

Multiplayer character creation itself works, but then my adventure starts in the main story at "The Hold" again (like it used until Windemere suggested to use this character creation script + an empty GLO_GamerMasterCharacterCreation)

Windemere, have you got this working with a standalone adventur that is importing GM Mode?


Last edited by Reltzu; 11/10/17 02:08 PM.
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #629757
11/10/17 02:14 PM
11/10/17 02:14 PM
Joined: Dec 2013
Posts: 872
Windemere Offline OP

old hand
Windemere  Offline OP

old hand

Joined: Dec 2013
Posts: 872
Ah no, I did not try that configuration.

When you updated to this character creation script, did you also add those GM related objects to the INIT script that I mentioned back at the time? I can't think what would be different other than some timing issues I encountered in multiplayer versus singleplayer.


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #629758
11/10/17 02:14 PM
11/10/17 02:14 PM
Joined: Dec 2013
Posts: 872
Windemere Offline OP

old hand
Windemere  Offline OP

old hand

Joined: Dec 2013
Posts: 872
Ah, great!


DOS2 Mods: Happily Emmie After and The Noisy Crypt

Steam Workshop
Nexus Mods
Re: Fix for Multiplayer Character Creation Wiki Script [Re: Windemere] #630171
12/10/17 12:34 PM
12/10/17 12:34 PM
Joined: Sep 2017
Posts: 28
R
Reltzu Offline
apprentice
Reltzu  Offline
apprentice
R

Joined: Sep 2017
Posts: 28
I actually had to remove those GM related lines you mentioned before. So the vanilla script from the wiki + an empty GLO_GameMasterCharacterCreation script did the trick.


Moderated by  Dom_Larian, Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2