Skip to content

Commit

Permalink
2024-09-05T0918Z
Browse files Browse the repository at this point in the history
  • Loading branch information
Windows81 committed Sep 5, 2024
1 parent 98d2bda commit 8262fc1
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion Examples/Crossroads 2007/GameConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def f(*a):
'''

retrieve_username = '''
def f(user_code):
def f(user_id_num, user_code):
return user_code
'''

Expand Down
16 changes: 8 additions & 8 deletions Examples/F3X Server/GameConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end)
'''

[game_setup.place_file]
path = '_.rbxl'
rbxl_uri = '_.rbxl'
# When game:SavePlace() is called, overwirtes the place at `.place_path`
enable_saveplace = true

Expand Down Expand Up @@ -86,13 +86,13 @@ end
'''

retrieve_avatar_type = '''
function(user_iden, user_code) -- str -> str
function(user_iden, user_code)
return 'R15'
end
'''

retrieve_avatar_items = '''
function(user_iden, user_code) -- str -> [str]
function(user_iden, user_code)
if user_code:find('Mary') then
return {
8746101819,
Expand Down Expand Up @@ -137,7 +137,7 @@ end
'''

retrieve_avatar_colors = '''
function(user_iden, user_code) -- str -> {[str]: number}
function(user_iden, user_code)
return {
head = 315,
left_arm = 315,
Expand All @@ -150,7 +150,7 @@ end
'''

retrieve_avatar_scales = '''
function(user_iden, user_code) -- str -> {[str]: number}
function(user_iden, user_code)
if user_code:find('Mary') then
return {
height = 0.95,
Expand All @@ -173,19 +173,19 @@ end
'''

retrieve_username = '''
function(user_iden, user_code) -- str -> str
function(user_iden, user_code)
return user_code
end
'''

retrieve_user_id = '''
function(user_iden, user_code) -- str -> int
function(user_code)
return math.random(1, 16777216)
end
'''

retrieve_account_age = '''
function(user_iden, user_code) -- str -> int
function(user_iden, user_code)
return 6969
end
'''
Expand Down
2 changes: 1 addition & 1 deletion Examples/Lumber Tycoon 2/GameConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ end
'''

retrieve_username = '''
function(user_code) -- str -> str
function(user_id_num, user_code) -- str -> str
return user_code
end
'''
Expand Down
2 changes: 1 addition & 1 deletion Examples/Photo/GameConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ def f(id_num, user_code):
'''

retrieve_username = '''
def f(user_code):
def f(user_id_num, user_code):
return user_code
'''

Expand Down
2 changes: 1 addition & 1 deletion Examples/Roblox High/GameConfig.toml
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ function(user_iden, user_code)
'''

retrieve_username = '''
def f(user_code):
def f(user_id_num, user_code):
return user_code
'''

Expand Down
6 changes: 3 additions & 3 deletions Source/config/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def f(*a):
return False
''') # type: ignore

retrieve_username: callable[[str], str] = textwrap.dedent('''\
def f(t, *a):
return t
retrieve_username: callable[[int, str], str] = textwrap.dedent('''\
def f(i, n, *a):
return n
''') # type: ignore

retrieve_user_id: callable[[str], int] = textwrap.dedent('''\
Expand Down
2 changes: 1 addition & 1 deletion Source/util/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
GIT_RELEASE_VERSION = '''0.51.2'''
GIT_RELEASE_VERSION = '''0.52.0'''

ZIPPED_RELEASE_VERSION = '''0.50.0'''
ZIPPED_RELEASE_LINK_FORMAT = 'https://github.com/Windows81/Roblox-Freedom-Distribution/releases/download/%s/%s.%s.7z'
Expand Down
4 changes: 2 additions & 2 deletions Source/web_server/endpoints/joinscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@

def init_player(self: web_server_handler, user_code: str, id_num: int) -> tuple[str, int, str]:
config = self.server.game_config
username = config.server_core.retrieve_username(user_code)
username = config.server_core.retrieve_username(id_num, user_code)

(user_code, id_num, username) = self.server.storage.players.add_player(
user_code, id_num, username,
)
# This method only affects a player's fund balance if they're joining for the first time.
self.server.storage.funds.init(
id_num, config.server_core.retrieve_default_funds(id_num, user_code),
id_num, config.server_core.retrieve_default_funds(id_num, user_code),
)
return (user_code, id_num, username)

Expand Down

0 comments on commit 8262fc1

Please sign in to comment.