The result in at the end of the article.
UE_LOG and AddOnScreenDebugMessage doesn't work in my case
Hi, i made my custom actor based class Steam_Function_actor_based, inside it i made a method UE_RequestLobbyList()
and made method body in Steam_Function_actor_based.cpp
so when i call my method from blueprint, execution lines show method called https://yadi.sk/i/U1bZIsPfgSD9J , 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
from my custom method won't at all, but i call Print String after my method in blueprint graph
re:
You are aware that UE4 has a common interface to support variues online services under same APIs (called OnlineSubsystem) and has SteamWorks support ready?
https://docs.unrealengine.com/latest/INT/Programming/Online/index.htmlhttps://docs.unrealengine.com/latest/INT/Programming/Online/Steam/index.htmlhttps://docs.unrealengine.com/latest/INT/API/Runtime/OnlineSubsystem/index.html
futher investigation lead me to https://www.youtube.com/watch?t=1543&v=t-7JYG9rvWM, i added
DEFINE_LOG_CATEGORY(MyLog); //into my class .cpp
also added
DECLARE_LOG_CATEGORY_EXTERN(MyLog, Log, All); //into my class .h
made blueprint built from my class actor and added that new blueprint into blueprint SideScrollerCharacter that drive your character by default
after debug -> run new instance in VS i could get in output log my message
MyLog:Warning: hSteamAPICall****
and seems it appeared on screen, but i also got back return bool value and error
LogVoice:Warning: Failed to initialize voice interface LogScript:Warning: Accessed None 'target' SideScrollerExampleMap_C /Game/SideScrollerBP/Maps/UEDPIE_0_SideScrollerExampleMap.SideScrollerExampleMap:PersistentLevel.SideScrollerExampleMap_C_2 Function /Game/SideScrollerBP/Maps/SideScrollerExampleMap.SideScrollerExampleMap_C:ExecuteUbergraph_SideScrollerExampleMap:001F PIE:Error: Error Accessed None 'target' from node Event Begin Play in blueprint SideScrollerExampleMap
so do you have any idea why this PIE:Error: happen? |
example :
DECLARE_LOG_CATEGORY_EXTERN(MyLog, Log, All); //into my class .h
DEFINE_LOG_CATEGORY(MyLog); //into my class .cpp
UE_LOG(MyLog, Warning, TEXT("%f , %f, %f"), Start.X, Start.Y, Start.Z); //use example
출처 : 언리얼엔진 포럼