Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions FicsitRemoteMonitoring.uplugin
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"FileVersion": 3,
"Version": 1,
"VersionName": "1.5.0",
"SemVersion": "1.5.0",
"VersionName": "1.5.1",
"SemVersion": "1.5.1",
"AcceptsAnyRemoteVersion": true,
"FriendlyName": "Ficsit Remote Monitoring",
"Description": "Statistical and GeoLocation Monitoring for Satisfactory",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "RemoteMonitoringLibrary.h"
#include "Components/SplineComponent.h"
#include "Kismet/KismetSystemLibrary.h"
#include "WheeledVehicles/FGDockingStationIdentifier.h"
#include "WheeledVehicles/FGVehiclePathPreset.h"
#include "WheeledVehicles/FGVehicleSubsystem.h"
#include "WheeledVehicles/FGWheeledVehicleIdentifier.h"
Expand Down Expand Up @@ -184,7 +185,7 @@ TArray<TSharedPtr<FJsonValue>> UVehicles::getVehicles_Helper(UObject* WorldConte
//AFGDrivingTargetList* TargetList = VehicleInfo->mTargetList;
const FString VehiclePathName = "PathName"; //GetPathNameForTargetList(TargetList);

JVehicle->Values.Add("Name", MakeShared<FJsonValueString>(WheeledVehicle->mDisplayName.ToString()));
JVehicle->Values.Add("Name", MakeShared<FJsonValueString>(VehicleInfo->GetVehicleName().ToString()));
JVehicle->Values.Add("ClassName", MakeShared<FJsonValueString>(UKismetSystemLibrary::GetClassDisplayName(WheeledVehicle->GetClass())));
JVehicle->Values.Add("location", MakeShared<FJsonValueObject>(getActorJSON(WheeledVehicle)));
JVehicle->Values.Add("PathName", MakeShared<FJsonValueString>(VehiclePathName));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#include "FGTrainStationIdentifier.h"
#include "FicsitRemoteMonitoring.h"
#include "FicsitRemoteMonitoringModule.h"
#include "Buildables/FGBuildableDockingStation.h"
#include "Endpoints/World/Research.h"
#include "Settings/SMLOptionsLibrary.h"
#include "Logging/StructuredLog.h"
Expand All @@ -27,6 +28,7 @@
#include "Policies/CondensedJsonPrintPolicy.h"
#include "Serialization/JsonSerializer.h"
#include "Serialization/JsonWriter.h"
#include "WheeledVehicles/FGDockingStationIdentifier.h"

TSharedPtr<FJsonObject> URemoteMonitoringLibrary::getActorJSON(AActor* Actor) {

Expand Down Expand Up @@ -527,6 +529,12 @@ TSharedPtr<FJsonObject> URemoteMonitoringLibrary::CreateBuildableBaseJsonObject(
{
JObject->Values.Add("Name", MakeShared<FJsonValueString>(StationIdentifier->GetStationName().ToString()));
}
} else if (AFGBuildableDockingStation* TruckStation = Cast<AFGBuildableDockingStation>(Buildable))
{
if (AFGDockingStationIdentifier* StationIdentifier = TruckStation->GetStationIdentifier())
{
JObject->Values.Add("Name", MakeShared<FJsonValueString>(StationIdentifier->GetStationName().ToString()));
}
} else if (AFGBuildableCircuitSwitch* PowerSwitch = Cast<AFGBuildableCircuitSwitch>(Buildable))
{
JObject->Values.Add("Name", MakeShared<FJsonValueString>(PowerSwitch->GetBuildingTag_Implementation()));
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/commands.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,15 @@ Usage: `/frm debug <info/file> <endpoint>`

Intended for getting outputs of API Endpoints to save for future information or debugging/troubleshooting.

=== info
== info

Info will display back to the in-game chat, this is useful for quickly checking if JSON populates.

=== file
== file

Info will be saved as file to the *host's* Debug folder located in the Remote Monitoring's Mod Folder.

=== test
== test

Usage: `/frm test endpoints`
Dumps all API endpoints to the *host's* Debug Folder for testing and debugging purposes.
Expand Down
2 changes: 1 addition & 1 deletion docs/modules/ROOT/pages/config/current/config.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ image:https://raw.githubusercontent.com/porisius/FicsitRemoteMonitoring/refs/hea
Dedicated Server Config Location
image:https://raw.githubusercontent.com/porisius/FicsitRemoteMonitoring/refs/heads/main/docs/modules/ROOT/pages/config/images/server_manager.png[Dedicated Server Location]

== NOTE:
NOTE:

The configuration values are stored in the GameUserSettings.ini file, which can be found in the following locations: +
- Single Player/Host Session: +
Expand Down
Loading