New globals dump

Some old functions I was using vanished, so I dug up how to get a list of the new ones. This is from the campaign gamerule scope. If anyone knows how the old dumps got argument lists for the functions I’d love to know, as I couldn’t figure it out myself and asking the devs about every single one strikes me as inefficient.

_ALERT() _ERRORMESSAGE() abs() acos() appendto() AreAllied() ascii() asin() assert() atan() atan2() ATI_AddColour() ATI_AddFloat() ATI_AddGraphic2D() ATI_AddGraphic3D() ATI_AddPosition() ATI_AddScale() ATI_AddString() ATI_AddWString() ATI_Clear() ATI_CreateParameters() ATI_Display2D() ATI_Display3D() ATI_LoadTemplates() bind1() bind2() bind3() bindup() BKG_EditFilter() BKG_MeshAddAnim() BKG_MeshDelAnim() BKG_MeshGetJointLocalOrient() BKG_MeshGetJointLocalPos() BKG_MeshGetJointStackOrient() BKG_MeshGetJointStackPos() BKG_MeshSetParamF1() BKG_MeshSetParamF2() BKG_MeshSetParamF3() BKG_MeshSetParamF4() BKG_MeshSetParamI1() BKG_MeshSetParamI2() BKG_MeshSetParamI3() BKG_MeshSetParamI4() BKG_MeshSetParamTime() BKG_MeshSetSurface() BreakAlliance() call() Camera_AllowControl() Camera_AltFocus() Camera_AltFocusWithVolume() Camera_CollapseOnTimeout() Camera_FocusCancel() Camera_FocusOnFleet() Camera_FocusRestore() Camera_FocusSave() Camera_FocusSobGroup() Camera_FocusSobGroupWithBuffer() Camera_FocusVolume() Camera_FocusVolumeKeepingEyePosition() Camera_FocusVolumeWithBuffer() Camera_GetDistanceToSobGroup() Camera_GetLastZoomAmount() Camera_Interpolate() Camera_IsFocused() Camera_PlayerHasFocused() Camera_PlayerHasPanned() Camera_PlayerHasRotated() Camera_ResetFocused() Camera_ResetPanned() Camera_ResetRotated() Camera_SetLetterboxState() Camera_SetLetterboxStateNoUI() Camera_SetVerticalFOV() Camera_UseCameraPoint() Camera_UsePanning() Camera_ZoomClose() Campaign_QuickSaveNb() ceil() clock() closefile() collectgarbage() copytagmethods() cos() CPU_AddDefendSobGroup() CPU_AddDefendTarget() CPU_AddSobGroup() CPU_DoFile() CPU_DoString() CPU_Enable() CPU_EnableAll() CPU_Exist() CPU_GetDebugFlag() CPU_GetVar() CPU_GetVarString() CPU_IsDebugFlagSet() CPU_RemoveDefendTarget() CPU_RemoveResourceBlob() CPU_RemoveSobGroup() CPU_SetAttackTargetPriority() CPU_SetDebug() CPU_SetDebugFlag() CPU_SetDebugMode() CPU_SetDebugPlayer() CPU_SetDefendTargetCapturePriority() CPU_SetDefendTargetPriority() CPU_SetDefendTargetRadius() createAmbientLight() createDirLight() date() debug() deg() dofile() dofilepath() doscanpath() dostring() EnableBuildInBadges() error() Event_IsDone() Event_IsRunning() Event_Start() Event_Stop() EventPointer_AddSobGroup() EventPointer_AddSubSystemFromSobGroup() EventPointer_AddVolume() EventPointer_Remove() exp() FE_ExitToMainMenu() FE_ExitToWindows() FE_FocusOnLastEvent() FE_GetCurrentPlayerIndex() FE_LoadGameScreen() FE_LoadGameScreen_Campaign() FE_LoadGameScreen_RecordedGame() FE_NextTutorial() FE_RestartGame() FE_Retire() FE_SaveGameScreen() FE_SaveGameScreen_Campaign() FE_TaskbarIgnoreProfilePhase() floor() flush() foreach() foreachi() foreachvar() format() FOW_ForceUpdate() FOW_RevealGroup() frexp() function_set_error() FX_DestroyEffectOnBackground() FX_Flush() FX_FlushLod() FX_Lights() FX_PlayEffect() FX_PlayEffectBetweenPoints() FX_PlayEffectOnBackground() FX_PlayEffectOnBackgroundVolume() FX_StartEvent() FX_StopEffect() FX_StopEffectOnBackground() FX_StopEvent() GameEvent_IsListening() GameEvent_Listen() GameEvent_UnListen() gcinfo() GetActualPlayerFleetExtraRU() GetActualPlayerFleetSizeInRU() getCurrentLevelName() GetGameSettingAsNumber() GetGameSettingAsString() getglobal() GetMultiplierForExtraRU() GetMultiplierForExtraShips() getn() GetReactiveFleetExtraRU() GetReactiveFleetSizeInRU() GetResearchId() GetRulesFormat() GetRulesHasTag() GetRulesName() GetShipId() GetSubSystemId() gettagmethod() globals() gsub() Hyperspace_SetStateForPlayer() Hyperspace_SetStateForVolume() LCWatcher_Activate() LCWatcher_AddFilter() LCWatcher_AddFilterCPUPlayer() LCWatcher_RmvFilter() LCWatcher_SpecifyLocalFilter() ldexp() Locale_AddDictionary() LocationCard() LocationCard_IsDone() log() log10() MainUI_ActivateScreen() MainUI_CurrentSelection() MainUI_DisableAllCommands() MainUI_DisableCommand() MainUI_ElementVisible() MainUI_Enable() MainUI_FadeTo() MainUI_FlashButton() MainUI_GetVisible() MainUI_LoadScreen() MainUI_PopAllEnabledCommandStates() MainUI_PopEnabledCommandState() MainUI_PushEnabledCommandState() MainUI_ScarEvent() MainUI_SelectedShips() MainUI_SelectingShips() MainUI_SetEnabled() MainUI_SetItemText() MainUI_SetVisible() MainUI_ShowElement() MainUI_UnloadScreen() MainUI_UserEvent() MainUI_UserEventData() MainUI_UserEventData2() MainUI_UserEventDataTarget() math_and() math_or() math_shl() math_shr() Matrix3_GetVector3FromCol() Matrix3_Identity() Matrix3_MakeRotateX() Matrix3_MakeRotateY() Matrix3_MakeRotateZ() Matrix3_MultiplyByMatrix3() Matrix3_MultiplyByVector3() Matrix3_MultiplyVector3ByMatrix() Matrix3_Transpose() max() Message_FormatFf() Message_FormatFff() Message_FormatFffs() Message_FormatFffw() Message_FormatFs() Message_FormatFsf() Message_FormatFss() Message_FormatFw() min() mod() newtag() next() nextvar() NISComplete() NISDebug() NISDisableInterface() NISGetAnyPlayingHandle() NISGetPlayingHandle() NISLoad() NISPlay() NISPlayFromCoordSys() NISPlayFromGroup() NISSeek() NISSeekForward() NISSetSkippable() NISShipStartPosition() Objective_Add() Objective_AddDescription() Objective_AddDescriptionw() Objective_AddPresetID() Objective_Addw() Objective_GetState() Objective_Select() Objective_SetDescription() Objective_SetDescriptionw() Objective_SetState() OnInit() openfile() Ping_AddDescription() Ping_AddDescriptionW() Ping_AddPoint() Ping_AddSobGroup() Ping_AddVector() Ping_LabelVisible() Ping_Remove() playBgLightAnim() Player_AddLocalChatMessage() Player_AllowDockFromUIOverride() Player_BuildOptionIsRestricted() Player_CancelResearch() Player_CanResearch() Player_FillProximitySobGroup() Player_FillShipsByType() Player_FillSobGroupInVolume() Player_GatheredRUs() Player_GetLevelOfDifficulty() Player_GetLocalPlayerID() Player_GetName() Player_GetNumberOfSquadronsOfTypeAwakeOrSleeping() Player_GetRace() Player_GetResearchCost() Player_GetRU() Player_GetShipsByFilterExclude() Player_GetShipsByFilterInclude() Player_GetShipsByType() Player_GrantAllResearch() Player_GrantResearchOption() Player_HasQueuedBuild() Player_HasQueuedResearch() Player_HasResearch() Player_HasResearchPrequisitesToBuild() Player_HasShipWithBuildQueue() Player_HasSubsystem() Player_InstantDockAndParade() Player_InstantlyGatherAllResources() Player_InstantlyGatherAllResourcesAllTypes() Player_IsAlive() Player_IsResearching() Player_IsShipInVolume() Player_Kill() Player_NumberOfAwakeShips() Player_PauseBuildQueues() Player_Research() Player_ResearchOptionIsComplete() Player_ResearchOptionIsRestricted() Player_RestrictAllResearch() Player_RestrictBuildOption() Player_RestrictResearchOption() Player_SetBadgeTexture() Player_SetBounty() Player_SetGlobalROE() Player_SetGlobalStance() Player_SetPlayerName() Player_SetResearchCost() Player_SetRU() Player_SetTeamColours() Player_SetTeamColourTheme() Player_ShareVision() Player_UnpauseBuildQueues() Player_UnrestrictBuildOption() Player_UnrestrictResearchOption() PlayerRace_DoesHaveTag() PlayerRace_GetNumber() PlayerRace_GetString() Preload_Ship() print() Profile_GetTeamColourBadge() Profile_GetTeamColourBase() Profile_GetTeamColourStripe() Profile_SetMissionsComplete() Profile_SetSingleMissionComplete() Profile_UnlockAll() Profile_UnlockMovies() Race_DoesHaveTag() Race_GetCount() Race_GetName() Race_GetNumber() Race_GetPrefix() Race_GetString() rad() random() RandomIntMax() RandomRange() randomseed() rawget() rawgetglobal() rawgettable() rawset() rawsetglobal() rawsettable() read() readfrom() Rule_Add() Rule_AddInterval() Rule_AddIntervalParam() Rule_AddParam() Rule_Exists() Rule_ExistsParam() Rule_Remove() Rule_RemoveParam() Scar_TracesDisableAll() Scar_TracesEnable() Scar_TracesEnableAll() seek() Selection_Create() Selection_FilterExclude() Selection_FilterInclude() Selection_GetMissiles() Selection_GetResources() Selection_SetVelocity() Sensors_EnableCameraZoom() Sensors_EnableToggle() Sensors_FlashWorldPlane() Sensors_ManagerIsActive() Sensors_ManagerIsUp() Sensors_SetCameraMinMax() Sensors_SetZoomOutDistance() Sensors_Switch() Sensors_Toggle() SetAlliance() setBattleMusic() setDefaultMusic() setGameOver() setGlareIntensity() setglobal() setLightColour() setLightSpecular() setMissionComplete() setMusicPath() setRecoverCostOnDestroy() SetStartFleetSuffix() settag() settagmethod() setUseLighting() sin() Sob_DoesHaveTag() Sob_GetStaticNumber() Sob_GetStaticString() SobGroup_AbilityActivate() SobGroup_AddFilterExclude() SobGroup_AddFilterInclude() SobGroup_AllowPassiveActionsAlways() SobGroup_AreAllInHyperspace() SobGroup_AreAllInRealSpace() SobGroup_AreAnyFromTheseAttackFamilies() SobGroup_AreAnyOfTheseTypes() SobGroup_AreAnySquadronsInsideDustCloud() SobGroup_AreAnySquadronsInsideNebula() SobGroup_AreAnySquadronsOutsideDustCloud() SobGroup_AreAnySquadronsOutsideNebula() SobGroup_AssignedToGroup() SobGroup_Attack() SobGroup_AttackPlayer() SobGroup_AttackSelection() SobGroup_AttackSobGroupHardPoint() SobGroup_AutoEngineGlow() SobGroup_AvoidanceIgnore() SobGroup_CanDoAbility() SobGroup_CaptureSobGroup() SobGroup_ChangePower() SobGroup_Clear() SobGroup_ClearScriptFlag() SobGroup_ClearTumble() SobGroup_CloakToggle() SobGroup_Copy() SobGroup_Count() SobGroup_CountByFilterExclude() SobGroup_CountByFilterInclude() SobGroup_CountByPlayer() SobGroup_CountByScriptFlag() SobGroup_Create() SobGroup_CreateIfNotExist() SobGroup_CreateShip() SobGroup_CreateSubSystem() SobGroup_CurrentHealthTotal() SobGroup_CustomCommand() SobGroup_CustomCommandTargets() SobGroup_DeployMines() SobGroup_DeployMinesInCuboid() SobGroup_DeployMinesInSphere() SobGroup_DeSelectAll() SobGroup_Despawn() SobGroup_Disable() SobGroup_DockSobGroup() SobGroup_DockSobGroup_NoLatch() SobGroup_DockSobGroupAndStayDocked() SobGroup_DockSobGroupInstant() SobGroup_DockSobGroupWithAny() SobGroup_DoDamageProximitySobGroup() SobGroup_Empty() SobGroup_EnterHyperSpaceOffMap() SobGroup_Exists() SobGroup_ExitHyperSpace() SobGroup_ExitHyperSpaceSobGroup() SobGroup_FillBattleScar() SobGroup_FillBattleScar_Debug() SobGroup_FillCompare() SobGroup_FillIntersect() SobGroup_FillProximityPoint() SobGroup_FillProximitySobGroup() SobGroup_FillShipsByIndexRange() SobGroup_FillShipsByType() SobGroup_FillSobGroupByHealthBelow() SobGroup_FillSobGroupInVolume() SobGroup_FillSubstract() SobGroup_FillSubtract() SobGroup_FillUnion() SobGroup_FilterExclude() SobGroup_FilterInclude() SobGroup_FollowPath() SobGroup_ForceStayDockedIfDocking() SobGroup_FormHyperspaceGate() SobGroup_FormStrikeGroup() SobGroup_GetActualSpeed() SobGroup_GetAttackers() SobGroup_GetCentrePosition() SobGroup_GetCommandTargets() SobGroup_GetCoordSys() SobGroup_GetCurrentOrder() SobGroup_GetHardPointHealth() SobGroup_GetNextPathPoint() SobGroup_GetPlayerOwner() SobGroup_GetPosition() SobGroup_GetROE() SobGroup_GetShipType() SobGroup_GetSobGroupBeingCapturedGroup() SobGroup_GetSobGroupCapturingGroup() SobGroup_GetSobGroupDockedWithGroup() SobGroup_GetSobGroupRepairingGroup() SobGroup_GetSobGroupSalvagingGroup() SobGroup_GetSpeed() SobGroup_GetSquadronsInsideDustCloud() SobGroup_GetSquadronsInsideNebula() SobGroup_GetStance() SobGroup_GetStaticF() SobGroup_GetTechHarvestedAmount() SobGroup_GroupInGroup() SobGroup_GuardSobGroup() SobGroup_HasBeenRendered() SobGroup_HasFiredAtSobGroup() SobGroup_HasSubsystem() SobGroup_HasUpgrade() SobGroup_HealthPercentage() SobGroup_HyperspaceTo() SobGroup_HyperspaceToVector() SobGroup_InactiveWhenCaptured() SobGroup_InStrikeGroup() SobGroup_InWorldBound() SobGroup_IsBuilding() SobGroup_IsCloaked() SobGroup_IsDocked() SobGroup_IsDockedCompletely() SobGroup_IsDockedSobGroup() SobGroup_IsDoingAbility() SobGroup_IsGateDeployed() SobGroup_IsGuardingSobGroup() SobGroup_IsInControlGroup() SobGroup_IsInVolume() SobGroup_IsReturningHarvest() SobGroup_IsReturningSalvage() SobGroup_IsSelectable() SobGroup_IsShipNearPoint() SobGroup_Kamikaze() SobGroup_Launch() SobGroup_LaunchSelf() SobGroup_LeaveStrikeGroup() SobGroup_LoadPersistantData() SobGroup_MakeDead() SobGroup_MakeSelectable() SobGroup_MakeUntargeted() SobGroup_ManualEngineGlow() SobGroup_MaxHealthTotal() SobGroup_MinimumHealth() SobGroup_Move() SobGroup_MoveToPoint() SobGroup_MoveToSobGroup() SobGroup_OnScreen() SobGroup_OwnedBy() SobGroup_ParadeSobGroup() SobGroup_PlayerIsInSensorRange() SobGroup_ReleaseSalCapSobGroup() SobGroup_RemoveFromAll() SobGroup_RemoveType() SobGroup_RepairSobGroup() SobGroup_ResearchModuleExistOrSelected() SobGroup_ResetAvoidanceIgnore() SobGroup_ResetRenderedFlags() SobGroup_Resource() SobGroup_RestrictBuildOption() SobGroup_SalvagedByPlayer() SobGroup_SalvageSobGroup() SobGroup_Selected() SobGroup_SelectSobGroup() SobGroup_SetAsDeployed() SobGroup_SetAutoLaunch() SobGroup_SetBuildSpeedMultiplier() SobGroup_SetCaptureAlwaysDisables() SobGroup_SetCaptureState() SobGroup_SetDamageMultiplier() SobGroup_SetDisplayedRestrictedHardpoint() SobGroup_SetEventID() SobGroup_SetFiredAtSobGroup() SobGroup_SetGhost() SobGroup_SetHardPointHealth() SobGroup_SetHealth() SobGroup_SetHidden() SobGroup_SetIgnoreWorldBounds() SobGroup_SetInherentVisibility() SobGroup_SetInRadiation() SobGroup_SetInvulnerability() SobGroup_SetInvulnerabilityOfHardPoint() SobGroup_SetMadState() SobGroup_SetMaxSpeed() SobGroup_SetMaxSpeedMultiplier() SobGroup_SetPosition() SobGroup_SetRetaliation() SobGroup_SetROE() SobGroup_SetScriptFlag() SobGroup_SetShaderValues() SobGroup_SetSpeed() SobGroup_SetStance() SobGroup_SetSwitchOwnerFlag() SobGroup_SetTeamColours() SobGroup_SetTransform() SobGroup_SobGroupAdd() SobGroup_Spawn() SobGroup_SpawnNewShipInSobGroup() SobGroup_SpawnToVector() SobGroup_Stop() SobGroup_SubSystemSelected() SobGroup_SwitchOwner() SobGroup_TakeDamage() SobGroup_TakeDamageAbsolute() SobGroup_Tumble() SobGroup_UnderAttack() SobGroup_UnRestrictBuildOption() SobGroup_UseHyperspaceGate() sort() Sound_CurrentMusicTrack() Sound_CurrentMusicType() Sound_EnableAllSpeech() Sound_EnterIntelEvent() Sound_ExitIntelEvent() Sound_MusicPlay() Sound_MusicPlayType() Sound_SetMuteActor() Sound_SFXPlay3D() Sound_SFXPlay3DPos() Sound_SpeechPlay() Sound_SpeechSubtitlePath() Sound_StingerPlay() sqrt() Stats_BuildShipsBuilt() Stats_BuildShipsBuiltInRUs() Stats_DumpFramesToDisk() Stats_EnemyShipsCaptured() Stats_EnemyShipsCapturedInRUs() Stats_GatheredRUAsteroid() Stats_GatheredRUDustCloud() Stats_GatheredRUNebula() Stats_GatheredRUs() Stats_GatheredRUSalvage() Stats_HarvestersBuilt() Stats_HarvestersBuiltInRUs() Stats_OwnShipsCaptured() Stats_OwnShipsCapturedInRUs() Stats_PlayerAt() Stats_PlayerCount() Stats_ResearchCount() Stats_ResearchRUValue() Stats_ResearchTotal() Stats_ShipsCaptured() Stats_ShipsCapturedInRUs() Stats_ShipsCreated() Stats_ShipsCreatedInRUs() Stats_ShipsFirstBuilt() Stats_ShipsLost() Stats_ShipsLostInRUs() Stats_SpentRUs() Stats_SquadronsActive() Stats_SquadronsMax() Stats_SquadronsQueued() Stats_SubsystemsBuilt() Stats_SubsystemsBuiltInRUs() Stats_TimeKilled() Stats_TotalDuration() Stats_TotalKills() Stats_TotalKillsInRUs() Stats_TotalLosses() Stats_TotalLossesInRUs() Stats_TotalShipsBuilt() Stats_TotalShipsBuiltInRUs() Stats_TotalSquadKillsInRUs() Stats_TotalSquadLossesInRUs() Stats_TributeDonated() Stats_TributeReceived() strbyte() strchar() strfind() strlen() strlower() strrep() strsub() strupper() Subtitle_Add() Subtitle_AddSkippable() Subtitle_IsDone() Subtitle_IsMessageDone() Subtitle_Message() Subtitle_Messagew() Subtitle_Skipped() Subtitle_TimeCounter() Subtitle_TimeCounterEnd() tag() tan() tinsert() tmpname() tonumber() tostring() tremove() Trig_acos() Trig_DEG_TO_RAD() Trig_RAD_TO_DEG() type() typeid() UI_AddContextMenuItem() UI_AddDropDownListboxItem() UI_AddToEventScreen() UI_AnchorSetPos() UI_AnchorSetScale() UI_AnchorSetSize() UI_AnchorSetVisible() UI_BindKeyEvent() UI_ClearDropDownListbox() UI_ClearEventScreen() UI_DialogAccept() UI_DialogAcceptID() UI_DialogCancel() UI_DialogCancelID() UI_ExitApp() UI_FlashButton() UI_GetContextMenuSourceControlCustomDataString() UI_GetCurrentScreenID() UI_GetDropdownListBoxSelectedCustomDataString() UI_GetElementCustomData() UI_GetListBoxSelectedCustomDataString() UI_GetScreenID() UI_GiveFocus() UI_HideScreen() UI_IsNamedElementVisible() UI_IsScreenActive() UI_LoadUILibrary() UI_NextScreen() UI_PlaySound() UI_PopState() UI_PreviousScreen() UI_PushState() UI_RaceDoesHaveTag() UI_RaceGetCount() UI_RaceGetIndex() UI_RaceGetName() UI_RaceGetNumber() UI_RaceGetPrefix() UI_RaceGetString() UI_ReloadAllScreens() UI_ReloadCurrentScreen() UI_ReloadScreen() UI_RulesDoesHaveTag() UI_RulesGetNumber() UI_RulesGetString() UI_ScreenIsActive() UI_SelectDropDownListboxItemIndex() UI_SetButtonPressed() UI_SetButtonText() UI_SetButtonTextHotkey() UI_SetButtonTextW() UI_SetElementCustomData() UI_SetElementCustomDataString() UI_SetElementEnabled() UI_SetElementPosition() UI_SetElementPositionPixels() UI_SetElementScale() UI_SetElementSize() UI_SetElementSizePixels() UI_SetElementVisible() UI_SetInterfaceEnabled() UI_SetInterfaceVisible() UI_SetLabelTextHotkey() UI_SetNextScreen() UI_SetPreviousScreen() UI_SetProgressBarPercent() UI_SetScreenEnabled() UI_SetScreenVisible() UI_SetTextLabelText() UI_SetTextLabelTextCF1() UI_SetTextLabelTextW() UI_SetTextLabelTextWF1() UI_SetTimerOffset() UI_ShowDialog() UI_ShowElementContextMenu() UI_ShowScreen() UI_SobDoesHaveTag() UI_SobGetStaticNumber() UI_SobGetStaticString() UI_StopFlashButton() UI_SubtitleNarrow() UI_SubtitleWide() UI_TimerReset() UI_TimerStart() UI_TimerStop() UI_TimerToggleNegativeDisplay() UI_ToggleScreen() UI_ToggleScreenElement() UI_UINavAccept() UI_UINavAcceptPressed() UI_UINavCancel() UI_UINavCancelPressed() UI_UINavSelectNextElement() UI_UINavSelectRelativeDirElement() UI_UnBindKeyEvent() Universe_AllowClicks() Universe_AllowPlayerOrders() Universe_AllowSelect() Universe_ClipToWorldBounds() Universe_CurrentPlayer() Universe_EnableCmd() Universe_EnableSkip() Universe_Fade() Universe_FadeColour() Universe_GameTime() Universe_GetCurrentMoveHeight() Universe_GetWorldBounds() Universe_GetWorldResources() Universe_IsPiePlateActive() Universe_MoveRestrictToVolume() Universe_NebulaDelete() Universe_Pause() Universe_PlayerCount() Universe_RulesFormat() Universe_RulesHasTag() Universe_RulesName() Universe_SetAvoidance() Universe_SlowDown() Vector3_DotProduct() Vector3_Magnitude() Vector3_Normalize() Vector3_Subtract() Volume_AddCube() Volume_AddSphere() Volume_Delete() Volume_GetPoint() Volume_GetPosition() Wait_End() Wait_Start() write() writeto()

5 Likes

there is a lot of new UI function in there (I saw them also by looking in the exe some time ago)

I wonder what’s the difference between these :

UI_SetButtonText()
UI_SetTextLabelText()

UI_SetButtonTextW()
UI_SetTextLabelTextW()
UI_SetTextLabelTextCF1()
UI_SetTextLabelTextWF1()

MainUI_SetItemText()

.

UI_SetElementVisible()
UI_SetElementEnabled()

MainUI_SetVisible()
MainUI_SetEnabled()

In short – they didn’t. At least not using Lua functions to do it. I can see someone having gone through every file (either manually, or scripted) and comparing/guessing what the arguments are.


UI_SetButtonText – sets the text on a clickable item.
UI_SetTextLabelText – sets the text on a non-clickable item.

Visible vs Enabled – Can I see it, and can I click it? Note this is different than the non-clickable item above.

These are my inferences though.

1 Like

I wonder if there’s a way to determine at least the number of arguments and the data types going into a function using scripting? I’ve asked about individual functions in the past, but never got responses from GearBox.

1 Like

Sorry, the way I presented it was confusing, I know those differences ^^
My question was about :

  • the difference between “…Text”, “…TextW”, “…TextCF1”, “…TextWF1”
  • when to use MainUI_SetItemText() (UI_SetButtonText() being specific for buttons elements and UI_SetTextLabelText() for textlabel elements)
  • the difference between UI_SetElementVisible() and MainUI_SetVisible() (same for Enabled versions)

good question…
I don’t remember the error message when we try to call a function with a bad number (or type) of arguments. Perhaps it would give some indications ?

I’d imagine maybe different character sets it supports? Maybe? Now I’m just reaching…

There isn’t any functionality built into the Lua scripting engine to verify number of arguments passed. Same with argument types.

This is especially true of built-in (C-language) accessible functions. The scripting engine takes what arguments you gave it, pushes them onto the stack in the Lua Script Object, then calls a callback function whose only argument is the Script Object. The callback function then access the Script Object’s stack, and does whatever it needs to do with it.

So with that being said, it’s up to the C or Lua function to validate the arguments passed to it.

The same sort of applies with Lua functions, although they tend to be more forgiving.

1 Like

Has anybody discovered the arguments for SobGroup_GetCommandTargets()? I tried just a single argument (the SobGroup name) but no joy. I can’t find it used in any scripts either…

After some trial and error, I think it is:

SobGroup_GetCommandTargets(<sSobGroupName>, <sOutputSobGroupName>, <sMUICommandID>)

for example:

SobGroup_Create("target_group")
SobGroup_GetCommandTargets(CustomGroup, "target_group", MUI_AttackCommand)

However my target group remains empty, even when I know I have commanded CustomGroup to attack something…

@BitVenom @thisquietreverie @JoeKGBX can you help?

Hey @Dom2,

Hopefully @BitVenom will have a chance to pop in at some point. I’m really not savvy in the programming department, unfortunately. :confused:

3 Likes

I contacted @pdeupree in a PM and he provided the answer on this one. In case anyone is interested:

The function is:

SobGroup_GetCommandTargets(<sOutputSobGroup>, <sSobGroupDoingTargetting>, <sCommand>)

The function gets the targets of the command and puts them into the output sob group.

The only values that are accepted for <sCommand> are COMMAND_Attack and COMMAND_Guard.

5 Likes

Interesting, I was trying to discover a way to get AI ships to hyperspace around a target found by a scout. This function looks like it would allow the AI to determine the scouts attack target and then call a function to jump the other ships in.

Edit: strange that this post was marked new and at the top of the threads… oh well

3 Likes

A few details that I can’t find elsewhere:

SobGroup_CustomCommand(<sSobGroupToDoCommand>)
SobGroup_CustomCommandTargets(<sAttackingSobGroup>, <sTargetSobGroup>)
1 Like