Hi, i made my custom actor based class Steam_Function_actor_based, inside it i made a method UE_RequestLobbyList()
Steam_Function_actor_based.h
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "GameFramework/Actor.h"
#include "Steam_Function_actor_based.generated.h"
UCLASS()
class STEAM_TRAINING_API ASteam_Function_actor_based : public AActor
{
GENERATED_BODY()
public:
// Sets default values for this actor's properties
ASteam_Function_actor_based();
// Called when the game starts or when spawned
virtual void BeginPlay() override;
// Called every frame
virtual void Tick( float DeltaSeconds ) override;
UFUNCTION(BlueprintCallable, Category = "Steam")
void UE_RequestLobbyList();
};
and made method body in Steam_Function_actor_based.cpp
// Fill out your copyright notice in the Description page of Project Settings.
#include "steam_training.h"
#include "Steam_Function_actor_based.h"
#include "steam_api.h"
#pragma comment(lib, "steam_api64.lib")
void ASteam_Function_actor_based::UE_RequestLobbyList()
{
UE_LOG(LogTemp, Warning, TEXT("hSteamAPICall"));
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("hSteamAPICall"));
SteamAPICall_t hSteamAPICall = SteamMatchmaking()->RequestLobbyList();
//SteamAPI_SetMiniDumpComment("Minidump comment: SteamworksExample.exe\n");
//SteamAPI_WriteMiniDump(1, 0, 0);
UE_LOG(LogTemp, Warning, TEXT("hSteamAPICall is %d"), hSteamAPICall);
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, FString::Printf(TEXT("hSteamAPICall is %d"), hSteamAPICall));
}
so when i call my method from blueprint, execution lines show method called Oops! , but no onscreen message and no log message, why? i also tryed call my method in other way - by casting after jump and casting fail (target variable just empty)
to be clear, i use 4.7.6 UE version
investigated interesting thing - Print String from blueprints work fine, but
UE_LOG(LogTemp, Warning, TEXT("hSteamAPICall"));
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Red, TEXT("hSteamAPICall"));
from my custom method won’t at all, but i call Print String after my method in blueprint graph