Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by Tibor Dandi · Jan 13, 2021 at 09:16 AM · unrealCharacter DataCharacters

Get Character ID in unreal engine 4

Hi there,

I just followed this instructions but i could only get the character name!

https://docs.microsoft.com/en-us/rest/api/playfab/server/characters/getalluserscharacters?view=playfab-rest

Can you explain me how to get the CharacterId? because It request for updating its Data,Statistic and such things!

Target is server.

Thanks your help!



uw0ls.png (492.3 kB)
Comment

People who like this

0 Show 1
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Tibor Dandi · Jan 12, 2021 at 10:24 AM 0
Share

It prints me "0" for Character name and type in the results.

4 Replies

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Jan 14, 2021 at 02:34 AM

I have tried to reproduce this issue but my blueprint works fine. It should be very similar to yours. Would you check the nodes again?

The log outputs seems to be correct:

LogBlueprintUserMessages:[Test_C_1] FighterDude-- 3D8620DCD494E693--Blue Warrior
LogBlueprintUserMessages:[Test_C_1] FighterDude2-- B1535F8763931012--AAAAAA
LogBlueprintUserMessages:[Test_C_1] FighterDude2-- D784CA9010147E47—AAAAAA


screenshot-2021-01-14-101233.png (275.4 kB)
Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

Answer by Tibor Dandi · Jan 14, 2021 at 08:50 AM

hey

Well mine shows : 0

For I'd and type .

Could you show me your whole blueprint parts please ? (Get all user character )

I use server version .

Thanks

Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Jan 14, 2021 at 09:00 AM 0
Share

Sure. Please check Get Character Test > BlueprintUE.com | PasteBin For Unreal Engine 4. I have changed to Server API.

Meanwhile, even though we don't add any Print node, the PlayFab UE4 SDK will generate the full callback content in the log, which will be like:

LogPlayFab: Response : {"code":200,"status":"OK","data":{"Characters":[{"CharacterId":"3D8620DCD494E693","CharacterName":"FighterDude","CharacterType":"Blue Warrior"},{"CharacterId":"B1535F8763931012","CharacterName":"FighterDude2","CharacterType":"AAAAAA"},{"CharacterId":"D784CA9010147E47","CharacterName":"FighterDude2","CharacterType":"AAAAAA"}]}}<br>

Please double-check that you can see this log and make sure the player has the characters.

avatar image

Answer by Tibor Dandi · Jan 14, 2021 at 09:33 AM

hey thanks i was using "number fields" instead "string fields" now its ok!

thanky!!


Also can you tell me why the error says:
"Kills" is not a valid statistic name?
What is the good way to set the statistic name and the value what I want to update for the selected character?

thanks!


Comment

People who like this

0 Show 1 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Jan 14, 2021 at 09:43 AM 0
Share

"Kills" should work fine, and there is no straightforward invalid name for statistics. Any returned error messages for my reference?

avatar image

Answer by Tibor Dandi · Jan 14, 2021 at 09:51 AM

this is how i set the updating json:

here is the error at the end:


1.png (516.5 kB)
2.png (464.9 kB)
Comment

People who like this

0 Show 3 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image SethDu ♦ · Jan 15, 2021 at 03:08 AM 0
Share

Please refer to Update Statistics Server > BlueprintUE.com | PasteBin For Unreal Engine 4

avatar image Tibor Dandi SethDu ♦ · Jan 15, 2021 at 07:24 AM 0
Share

well i would like to update the Character statistic and not player statistic, as you can see i used :

https://docs.microsoft.com/en-us/rest/api/playfab/server/characters/updatecharacterstatistics?view=playfab-rest

And the character is already exist and having the Kills statistic what i added when i grantet the character at "add title data"

avatar image SethDu ♦ Tibor Dandi · Jan 18, 2021 at 08:16 AM 0
Share

Please refer to Server update Character Sta > BlueprintUE.com | PasteBin For Unreal Engine 4.

The corresponding error means the request is not defined properly. The best way to debugging this issue is to check the official documentation and understand the types that defined in request node by SDK. Update Character Statistics API is using an Object instead of an array, hence you will need to construct an Object, which contains KVPs (also in the form of PlayFab JSON Object).

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    How to create a character for each playfabid? 1 Answer

    ModifyItemUSes On Character Inventory... 3 Answers

    How do I get character inventory data from another player's character? 1 Answer

    How to give player EXP after battle? and How to reward player after level up? 1 Answer

    Possible to query all users for the same characterID?,Can I query all character IDs on a server? 2 Answers

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges