32 #ifdef PLATFORM_CONSOLE
33 #ifndef PLATFORM_WINDOWS
67 #ifdef PLATFORM_WINDOWS
70 if ( user_list.Count() > 0 )
78 Error(
"BiosClientServices Error: Usermanager does not exist." );
172 return g_Game.GetHostData();
200 foreach ( GetServersResultRow result : result_list.
m_Results )
272 for (
int i = 0; i < friend_list.Count(); ++i )
274 string uid = friend_list[i].m_Uid;
282 friends_simple.Insert( newBfi.
m_Uid );
289 friends_simple.Insert( newBfi.
m_Uid );
333 for (
int i = 0; i < result_list.Count(); i++ )
336 string uid = result.
m_Uid;
339 if ( result_array && result_array2 )
343 new_list.Insert( result );
350 new_list.Insert( result );
394 #ifdef PLATFORM_CONSOLE
400 if (
GetGame().GetHostAddress( addr, port ) )
414 #ifdef PLATFORM_CONSOLE
450 if (
g_Game.GetGameState() != DayZGameState.MAIN_MENU )
456 g_Game.SetLoadState( DayZLoadState.MAIN_MENU_START );
464 if (
g_Game.GetGameState() == DayZGameState.IN_GAME )
532 if (
GetGame().GetHostAddress( addr, port ) )
565 if (
GetGame().GetHostAddress( addr, port ) )
579 if (
GetGame().GetHostAddress( addr, port ) )
602 if ( already_on_server.Find( invitee ) == -1 )
604 new_to_server.Insert( invitee );
607 return new_to_server;
635 GetServersResultRow result;
642 if ( result_temp.m_FreeSlots > 0 )
644 results_free.Insert( result_temp );
649 return results_free.GetRandomElement();
659 g_Game.ConnectFromServerBrowser( result.m_HostIp, result.m_HostPort );
665 GetGame().
GetUIManager().
ShowDialog(
"#str_xbox_authentification_fail_title",
"#str_xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO,
GetGame().GetUIManager().GetMenu() );
678 GetGame().
GetUIManager().
ShowDialog(
"#str_xbox_authentification_fail_title",
"#xbox_authentification_fail", 232, DBT_OK, DBB_NONE, DMT_INFO,
GetGame().GetUIManager().GetMenu() );
702 #ifndef PLATFORM_WINDOWS
713 #ifndef PLATFORM_WINDOWS
EBiosError
Possible Error codes for bios API. This is the list of errors that can be returned from bios API....
array< ref BiosPrivacyUidResult > BiosPrivacyUidResultArray
EBiosPrivacyPermission
EBiosPrivacyPermission represents possible privacy permissions.
EBiosPrivacyPrivilege
EBiosPrivacyPrivilege represents possible privacy privileges.
ErrorCategory
ErrorCategory - To decide what ErrorHandlerModule needs to be called and easily identify where it cam...
BiosClientServices class provides individual online services.
proto native BiosLobbyService GetLobbyService()
proto native BiosPrivacyService GetPrivacyService()
proto native BiosSocialService GetSocialService()
proto native BiosPackageService GetPackageService()
proto native BiosSessionService GetSessionService()
BiosFriendInfo represents friend information.
string m_Uid
The Uid of the friend.
static bool Compare(BiosFriendInfo a, BiosFriendInfo b)
proto native void GetCachedFavoriteServerInfo(array< ref CachedServerInfo > favServersInfoCache)
Get cached info about favorited servers (ONLY ON WINDOWS)
proto native void GetFavoriteServers(TStringArray favServers)
proto native EBiosError GetFirstServerWithEmptySlot(GetFirstServerWithEmptySlotInput inputValues)
First 1st free server.
proto native void AddServerFavorite(string ipAddress, int port, int steamQueryPort)
proto native EBiosError GetServerModList(string serverId)
proto native void RemoveServerFavorite(string ipAddress, int port, int steamQueryPort)
proto native EBiosError GetServers(GetServersInput inputValues)
Query game servers.
proto native EBiosError PromptUpdateAsync()
Prompt user to accept update with system GUI.
proto native EBiosError CheckUpdateAsync()
Async check if exist new update.
BiosPrivacyPermissionResult represents the per permission result of the GetPermissionsAsync reqeust.
static bool Compare(BiosPrivacyPermissionResult a, BiosPrivacyPermissionResult b)
proto native EBiosError GetPrivilegeAsync(EBiosPrivacyPrivilege privilege, bool try_resolution)
Query for privileges.
proto native EBiosError GetPermissionsAsync(array< string > uid_list, array< EBiosPrivacyPermission > permission_list)
Query for privacy permissions.
BiosPrivacyUidResult represents the per user result of the GetPermissionsAsync request.
string m_Uid
Uid of the target user.
ref BiosPrivacyPermissionResultArray m_Results
Array of permission results for this target user.
proto native EBiosError EnterGameplaySessionAsync(string session_address, int session_port)
Enter a gameplay session.
proto native EBiosError InviteToGameplaySessionAsync(string session_address, int session_port, array< string > invitee_list)
Send invite to list of users.
proto native EBiosError ShowInviteToGameplaySessionAsync(string session_address, int session_port)
Show system UI to invite friends to current gameplay session.
proto native EBiosError LeaveGameplaySessionAsync(string session_address, int session_port)
Leave a gameplay session.
void TryGetSession(string join_handle="")
Gets a session from a join handle.
proto native void SetMultiplayState(bool is_active)
Notifiy about interactive multiplayer state.
proto native EBiosError SetGameplayActivityAsync(string session_address, int session_port)
Sets the activity to a gameplay session.
proto native EBiosError GetFriendsAsync()
Query for friends list.
proto native EBiosError ShowUserProfileAsync(string uid_target)
Display small system UI profile for the target.
proto native BiosClientServices GetClientServices()
proto native BiosUser GetSelectedUser()
Returns the currently selected user.
proto native EBiosError GetUserList(array< ref BiosUser > user_list)
Gets the currently present list of users.
proto native World GetWorld()
proto native BiosUserManager GetUserManager()
proto native UIManager GetUIManager()
static ref SyncPlayerList m_LastNewPlayers
static array< string > GetSimplePlayerList()
static void LogErrorAndTrace(string msg)
Prints debug message as error message and prints stack trace of calls.
The error handler itself, for managing and distributing errors to modules Manages the ErrorHandlerMod...
static proto string GetClientMessage(ErrorCategory category, int code, string additionalInfo="")
Gets the Client Message for specified error.
GetServersResult m_Result
GetServersResult the output structure of the GetServers operation.
ref GetServersResultRowArray m_Results
static void AddNotification(NotificationType type, float show_time, string detail_text="")
Send notification from default types to local player.
static void SetSessionHandle(string handle)
static void OnLoadServersAsync(GetServersResult result_list, EBiosError error, string response)
static bool GetMultiplayState()
static void OnFriendsAsync(BiosFriendInfoArray friend_list, EBiosError error)
static protected bool m_MultiplayState
static protected int m_InviteServerPort
static protected ref GetServersResultRow m_CurrentServerInfo
static void GetFavoriteServers(TStringArray favServers)
static protected ref BiosUser m_BiosUser
static protected ref map< string, ref BiosPrivacyPermissionResultArray > m_PermissionsList
static void GetCachedFavServerInfo(array< ref CachedServerInfo > favServersInfoCache)
static protected string m_InviteServerIP
static void ShowUserProfile(string uid)
static void AutoConnectToEmptyServer()
static BiosUser GetBiosUser()
static ref ScriptInvoker m_ServerAsyncInvoker
static void ClearPendingInviteList(array< string > invitees)
static bool IsGameActive(bool sim)
static void SetGameplayActivity()
static void SetMultiplayState(bool state)
static GetServersResultRow GetRandomFreeResult(GetFirstServerWithEmptySlotResult results)
static ref ScriptInvoker m_ServerModLoadAsyncInvoker
static void GetInviteServerInfo(out string ip, out int port)
static protected ref array< string > m_PendingInvites
static void LoadPermissions(array< string > player_list)
static void SetInviteServerInfo(string ip, int port)
static protected string m_CurrentServerIP
static array< string > GetPendingInviteList()
static protected bool m_FirstFriendsLoad
static void LeaveGameplaySession()
static ref TrialService m_TrialService
static bool MutePlayer(string id, bool mute)
static void LoadVoicePrivilege()
static void GetClientServices()
static bool IsGameTrial(bool sim)
static void OnUserProfileAsync(EBiosError error)
static void OnPermissionsAsync(BiosPrivacyUidResultArray result_list, EBiosError error)
static string GetSessionHandle()
static ref ScriptInvoker m_PermissionsAsyncInvoker
static ref ScriptInvoker m_MuteUpdateAsyncInvoker
static map< string, bool > GetMuteList()
static int m_AutoConnectTries
static ref ScriptInvoker m_FriendsAsyncInvoker
static bool IsInitialized()
static bool CheckUpdate()
static void OnLoadMPPrivilege(EBiosError err)
static protected ref map< string, bool > m_MuteList
static void EnterGameplaySession()
static void OnGetServerModList(GetServerModListResult result_list, EBiosError error)
static ref BiosClientServices m_ClientServices
static void GetCurrentServerInfo(string ip, int port)
static void LoadMPPrivilege()
static GetServersResultRow GetCurrentServerInfo()
static protected int m_CurrentServerPort
static void ShowInviteScreen()
static void GetServerModList(string server_id)
static void OnLoadVoicePrivilege(EBiosError err)
static void SetPendingInviteList(array< string > invitees)
static void PromptUpdate()
static protected ref map< string, ref BiosFriendInfo > m_FriendsList
static void SetBiosUser(BiosUser user)
static void OnAutoConnectToEmptyServer(GetFirstServerWithEmptySlotResult result_list, EBiosError error)
static void ClearCurrentServerInfo()
static void LoadFriends()
static ref ScriptInvoker m_ServersAsyncInvoker
static void LoadServers(notnull GetServersInput inputValues)
static bool ErrorCaught(EBiosError error)
static bool IsPlayerMuted(string id)
static void SetServerFavorited(string ipAddress, int port, int steamQueryPort, bool is_favorited)
ScriptInvoker Class provide list of callbacks usage:
proto void Invoke(void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL)
invoke call on all inserted methods with given arguments
proto bool Write(void value_out)
ref array< ref SyncPlayer > m_PlayerList
TrialService is used to query if the game is trial version or not.
proto native bool IsGameTrial(bool bIsSimulator)
proto native bool IsGameActive(bool bIsSimulator)
proto native void ShowDialog(string caption, string text, int id, int butts, int def, int type, UIScriptedMenu handler)
Shows message dialog.
proto native bool DisableReceiveVoN(bool disable)
proto native void DisableTransmitVoN(bool disable)
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
proto native CGame GetGame()
void Error(string err)
Messagebox with error message.