def ConfigureSettings(): print "Configuring Settings" #World User (clean this up.. for instance, if we change the username we'll leave row crumbs) try: user = User.byName(CONFIG["World Username"]) except: user = User(name=CONFIG["World Username"], password="") key = RegKey(key=CONFIG["World Username"] + "!") account = Account(regkey=key.key, publicName=CONFIG["World Username"], email="", password="") account.addProduct("MOM") user.addRole(Role.byName("Player")) user.addRole(Role.byName("World")) #fix me, this shouldn't really be here... and allowGuests is used for testing worlds World(name="Premium MMORPG", announcePort=int(CONFIG["Default World Port"]), account=account, allowGuests=True, maxLivePlayers=-1, maxLiveZones=-1, demoWorld=False) user.password = CONFIG["World Password"] account = Account.byPublicName(user.name) account.password = user.password cserver = User.byName("CharacterServer") cserver.password = CONFIG["Character Server Password"]
def ConfigureSettings(): print "Configuring Settings" #World User (clean this up.. for instance, if we change the username we'll leave row crumbs) try: user = User.byName(CONFIG["World Username"]) except: user = User(name=CONFIG["World Username"], password = "") key = RegKey(key=CONFIG["World Username"]+"!") account = Account(regkey=key.key, publicName=CONFIG["World Username"], email="", password="") account.addProduct("MOM") user.addRole(Role.byName("Player")) user.addRole(Role.byName("World")) #fix me, this shouldn't really be here... and allowGuests is used for testing worlds World(name="Premium MMORPG", announcePort=int(CONFIG["Default World Port"]), account=account, allowGuests=True,maxLivePlayers=-1,maxLiveZones=-1,demoWorld = False) user.password = CONFIG["World Password"] account = Account.byPublicName(user.name) account.password = user.password cserver = User.byName("CharacterServer") cserver.password = CONFIG["Character Server Password"]
def ConfigureSettings(): print "Configuring Settings" #World User (clean this up.. for instance, if we change the username we'll leave row crumbs) try: user = User.byName(CONFIG["World Username"]) except: user = User(name=CONFIG["World Username"], password="") key = RegKey(key=CONFIG["World Username"] + "!") account = Account(regkey=key.key, publicName=CONFIG["World Username"], email="", password="") account.addProduct("MOM") user.addRole(Role.byName("Player")) user.addRole(Role.byName("World")) user.password = CONFIG["World Password"] account = Account.byPublicName(user.name) account.password = user.password cserver = User.byName("CharacterServer") cserver.password = CONFIG["Character Server Password"]