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 joeypc6 · Jul 29, 2019 at 12:50 PM · CloudScriptunity3dlimits

Store Transform Data

i'm trying to create a farm with a selectable size

Unity

if (Cords == ""){	Cords += Postions.x + " , " + Postions.y;}else
{        Cords += ";" + Postions.x + " , " + Postions.y;}
passing it through this code


handlers.BuildPumpkinCrop = function(args,IslandID,Stack) {
    
    
    
    
   var inventory = server.GetUserInventory({ PlayFabId: currentPlayerId});
   var FirstitemInstance = null;


  
    for (var i = 0; i < inventory.Inventory.length; i++) {
      
        if (inventory.Inventory[i].ItemId == 100 ){
            FirstitemInstance = inventory.Inventory[i].ItemInstanceId;
        }
    }
    
     server.ConsumeItem({ PlayFabId: currentPlayerId, ItemInstanceId: FirstitemInstance , ConsumeCount: args.Stack });
     
     
     
    var result = server.GrantItemsToUser({
        // In your game, this should just be a constant
        CatalogVersion : "CustomData",
        PlayFabId : args.IslandID,
        ItemIds : [ 1005 ]
    });
    
    var inventory1 = server.GetUserInventory({ PlayFabId: args.IslandID});
    var FirstitemInstance1 = null;
    FirstitemInstance1 = inventory1.Inventory[0].ItemInstanceId;
  
  
   server.UpdateUserInventoryItemCustomData({ItemInstanceId : FirstitemInstance1  , PlayFabId: args.IslandID, Data: {
    "Cords": args.Cords}
     });
     
}
this code works with 100 kilobytes

but if it's more then that it doesn't anymore

anywork around ?

https://www.dropbox.com/s/0ss4pe2jgfcklen/Capture.PNG?dl=0

Comment

People who like this

0 Show 2
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 joeypc6 · Jul 29, 2019 at 12:52 PM 0
Share

IslandID is a matchmaking thing that i used to split players into groups with playfab / photon network

avatar image Citrus Yan joeypc6 · Jul 30, 2019 at 03:20 AM 0
Share

Hi, may I ask what does it mean by saying “this code works with 100 kilobytes” , I don’t understand where does this “100 kilobytes” come from, could you be more specific about it? And, could you provide us more details about your issue such as error messages, stack traces, etc.

0 Replies

· Add your reply
  • Sort: 

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

    4 People are following this question.

    avatar image avatar image avatar image avatar image

    Related Questions

    How to extend Azure Cloud Script execution time limit,How to extend Azure Cloud Function execution time 2 Answers

    executecloudscript unity Function Parameter 1 Answer

    Does using Http in CloudScript count toward the API limit? 1 Answer

    How do you get total number of entries in a Leaderboard? 2 Answers

    Triggered Azure functions execution time limit exceeded error 1 Answer

    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