• Sign Up Login
  • Features
    • Game Services
    • Real-time Analytics
    • LiveOps
    • Add-ons
  • Game Services
  • Real-time Analytics
  • LiveOps
  • Add-ons
  • Games
  • Pricing
  • Blog
  • Support
    • Docs
    • Forums
    • Contact
  • Docs
  • Forums
  • Contact
  • Sign Up Login
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by joeypc6 · Jul 29 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 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 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

    Was the "CloudScript execution API requests issued" limit raised to 15? 1 Answer

    Question: Reading data from player account 1 Answer

    [CloudScript] Playfab Account Initialization 1 Answer

    [UNITY] Help with returning/parsing results of ExecuteCloudScriptResult 1 Answer

    UserData object different between client and server? 1 Answer

    • PlayFab

      • Features
      • Games
      • Pricing
      • Blog
    • Engineers

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

      • Forums
      • Videos
      • Contact
      • Service Health
      • Terms of Service
    • Social

      • Facebook
      • Twitter
      • LinkedIn
      • YouTube
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • About Microsoft
    • Jobs
    • Accessibility
    • Diversity & inclusion
    • Security
    • Company news
    • © Microsoft 2019
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Post an idea
    • Create an article
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Ideas
    • Articles
    • Users
    • Badges