File size: 5,606 Bytes
e118a4c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172

LoadLibrary("Tutorial")

Tutorial.IsInSafeScreen
Tutorial.IsInWardrobe
Tutorial.ClearHasEnteredText
Tutorial.IsNavigatorOpen
Tutorial.IsPDAOpen
Tutorial.GetCurrentWardrobeCommand
Tutorial.SetCompleted
Tutorial.IsCompleted
Tutorial.HasEnteredText
Tutorial.ClearHasEnteredText
Tutorial.IsStartupScriptRunning
Tutorial.VidRecAudioFormat
Tutorial.VidRecStatus

LoadLibrary("System")

System.ActivateNavigator( false )  -- Need this regardless of if this app was launched from nav or not as it unblocks the pad
System.SetGlobalOption('isNewsViewerActive', 1) -- Setting this var prevents the easter egg hunt from killing the focus app.
System.IsMenuScreenActive
System.IsSafeScreenActive

LoadLibrary("NavApp")

NavApp.ExitScript

LoadLibrary("Platform")

Used mostly in the START UP, IGA, NEWSVIEWER, AND PROMO APPS objects

Platform.AddNotificationAlert
Platform.ExitScript
Platform.StartSceneDownload
Platform.GetSceneDownloadProgress
Platform.QuerySceneCacheStatus
Platform.RenderNavBackground
Platform.SetNavBackgroundColour
Platform.HasThereBeenANetworkErrorThisSession
Platform.ActivateApp -> 

  Platform.ActivateApp('E28F76F3-D80F4CBB-9A557914-4C88C851', 1)   Startup.ExitScript() Platform.ActivatePlatformScript('EB6ECA9F-389B4140-96F12563-BE7264F8',0)
	Platform.ActivateApp("UUID", "PERSISTENTMINIAPP")
	Platform.ActivateApp( "UUID", "PERSISTENTMINIAPP", "PacRim.xml,fromScript=true" )
	
Platform.AssignAppToQuickChatButton -> 

	Platform.AssignAppToQuickChatButton("UUID", "PERSISTENTMINIAPP")
	
	MINIAPP
	APP
	MINIFOCUS
	ARCADEFOCUS
	PERSISTENTAPP
	PERSISTENTMINIAPP
	PERSISTENTMINIFOCUSAPP
	BACKGROUND
	
Platform.GetSystemOption
Platform.IsSceneLoaded
Platform.AddSillyChatReplacement				|
Platform.RemoveSillyChatReplacement			| --> Can be used to replace text in the chatlog. Best example would be the pirate talk UUID B942369F-84CD4FCA-A26A0930-7A812C91
Platform.RemoveAllSillyChatReplacements	|
Platform.SendChatMessage
Platform.GetAppActivateParam -> 4DF0EDE8-6B2D4F16-921C6E00-77DD2D78
-- Expected param format:
-- 
-- <configFileLocation>,fromScript=bool
--
-- eg.
-- "config/defiance.xml,fromScript=true"
--
-- fromScript - indicates whether this app was launched from script. If ommited, defaults to
--              false and assumes app was launched from the Navigator.

Platform.ActivatePlatformScript   ->
            Platform.ActivatePlatformScript("C14E039A-F4744A39-808EE118-5FA35739", 7)       Platform.ExitScript()
            Platform.KillPlatformScript(0) --Platform.ActivatePlatformScript("C14E039A-F4744A39-808EE118-5FA35739", 0, "shutdown")
            Platform.ActivatePlatformScript(XML.backgroundapp, 7)
            
Platform.IsPlatformScriptActive  
Platform.KillPlatformScript
Platform.GetPlatformScriptActivateParam
Platform.LoadAuxiliaryTssSettings
Platform.RelocateToApartment
Platform.HasVisitedScene
Platform.HasSceneHistory
Platform.EnableChatLogAutoMinimize
Platform.EnableMlaa
Platform.EnableVsync
Platform.IsGameLaunchPoolObjectActive

LoadLibrary("SceneInfo")

SceneInfo.FindSceneNameForId

function GetSceneList()
  local sceneId = 1

  while sceneId <= 65535 do
    sceneName = SceneInfo.FindSceneNameForId(sceneId)

  	if sceneName ~= nil then
  		table.insert(sceneNames, tostring(sceneName))
  		table.insert(sceneNames, 'ENDLOC')
  	end
  	
    sceneId = sceneId + 1
  end
  slMaxIndex = #sceneNames
  SceneListLoaded = true
  System.AddChatLogMessage("SceneList Loaded Successfully")
  
end

SceneInfo.GetSceneId
SceneInfo.GetSceneName
SceneInfo.GetUniqueInstanceId
SceneInfo.FindSceneIdForName
SceneInfo.GetAccessObjectID
SceneInfo.GetSceneType

LoadLibrary("Admin")

Need an object in your inventory that matches the UUID of the <AdminObjectId></AdminObjectId> on the TSS.

if Admin.IsAdminMode() == false then
    Admin.ActivateAdminMode(1) 
		if Admin.IsAdminMode() == true then
			System.AddChatLogMessage("init " .. tostring(Admin.IsAdminMode()))
		end 
  elseif Admin.IsAdminMode() == true then
		System.AddChatLogMessage("already " .. tostring(Admin.IsAdminMode()))
end

Admin.SaveScreenshot - Save 1280x720 UNCENSORED NAMES to usb
Admin.StartChatLogging - Initiate chat logging to file on usb
Admin.StopChatLogging - Stop chat logging
Admin.IsAdminMode - Check if the local player is in Admin Mode
Admin.ActivateAdminMode - Activates Admin Mode!
Admin.RequestInstanceList - Request Instance List
Admin.GetInstanceListStatus -
Admin.GetNumInInstanceList - Returns the list of Instances
Admin.GetInstanceName - Returns the game instance name
Admin.GetInstancePlayerCount - Return game instance player count for scene
Admin.GetInstanceWorldID - Returns the game instance's WorldId
Admin.FindUser - Finds a Player by AccountId in Medius
Admin.FindUserGetStatus - Finds a player, returns PlayerStatus
Admin.FindUserGetWorldID - Finds a player, return WorldID
Admin.GotoInstance - Go To a scene instance
Admin.GetGameWorldInfo
Admin.GetGameWorldInfoStatus
Admin.GetGameWorldInfoSceneID
Admin.GetGameWorldInfoNumPlayers
Admin.GetGameWorldInfoGameName
Admin.SendInstanceSM - Send Server Message? Used to Mute, Kick, or Freeze a player in place
Admin.SendInstanceSMToAll Send Server Message to All?
Admin.SetInvisibility - Sets a Player invisible/Not Invisible
Admin.EnableProximityChat - Enables Proximity Voice Chat!
Admin.EnableFastRun - Enable Fast Run on the local player!
Admin.IsInvisible - Check if invisible
Admin.IsProximityChatEnabled - Check if Proximity Chat is enabled!
Admin.InuIsBusy (?)

LoadLibrary("Portable")

Portable.Destroy
Portable.SetDeactivation
Portable.AddNotificationMessage
Portable.AddRepertoire
Portable.RemoveRepertoire