Unable to access steam api objects

When I attempt to use types such as CSteamID I get the following error
error : Unable to find ‘class’, ‘delegate’, ‘enum’, or ‘struct’ with name ‘CSteamID’
I believe I’ve got the defaultengine.ini and build.cs files configured correctly but I’ve pasted them below. Does anyone know wat might be causing this?

using System.IO;
using UnrealBuildTool;

public class GameName : ModuleRules
{
	public GameName(ReadOnlyTargetRules Target) : base(Target)
	{
		PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
	
		PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "Foliage", "PhysicsCore", "EasyMultiSave","UMG","Sockets","Networking","OnlineSubsystem","OnlineSubsystemUtils","OnlineSubsystemSteam","Steamworks"});

		//PrivateDependencyModuleNames.AddRange(new string[] {});
		
		PublicAdditionalLibraries.Add(Path.Combine(ModuleDirectory, "Steam", "lib","steam_api64.lib"));

		// Uncomment if you are using Slate UI
		// PrivateDependencyModuleNames.AddRange(new string[] { "Slate", "SlateCore" });
		
		// Uncomment if you are using online features
		PrivateDependencyModuleNames.Add("OnlineSubsystem");

		// To include OnlineSubsystemSteam, add it to the plugins section in your uproject file with the Enabled attribute set to true
	}
}

type or paste code here

[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName=“GameNetDriver”,DriverClassName=“OnlineSubsystemSteam.SteamNetDriver”,DriverClassNameFallback=“OnlineSubsystemUtils.IpNetDriver”)

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
bInitServerOnClient=true
SteamDevAppId=

[OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=“OnlineSubsystemSteam.SteamNetConnection”

I was being stupid and assumed it was a config error when you can’t have any none unreal code/class in a uproperty or ufunction which is certainly annoying here.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.