AnD4D's Forum Posts

  • Thanks for replying newt

    I have that plugin already, but can't figure out how to grab it. I've tried LoadJSON... but that's not working.

    Is there another section I'm meant to be using? I was in the process of creating a PHP to scrape the text :D

  • Does anyone have any idea how I can use Construct 2 to grab the data displayed from this link?

    https://tmi.twitch.tv/group/user/and4d/chatters

    I have tried AJAX, but it just shows up as blank. I've used AJAX throughout my project to display php, etc... but it can't grab this.

    Am I using the wrong object/plugin?

  • > I would rather suggest you to buy assets.Many already would had/have been using open source assets,so it gives a very bad taste.Also using open source assets depict less seriousness of the programmer towards game development.

    That doesn't really work in the game jam scene.

    The Idea is that if you come up with something worthwhile you then replace the artwork if necessary.

    There's more than enough free stuff out there to make something that looks decent.

    Besides everyone knows if you're realllly serious you make your own assets from scratch.

    Lol! Exactly :)

  • AnD4D

    Sorryyyyyy :)

    Hahahahaha! :)

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Oh man, imagine all the extra sleep I could have gotten with an additional 4 days :D

  • OK, well my game has been submitted!

    That was a lot of fun, although I wish I'd spent more than 6 days on it. Was a last minute decision whether I'd enter or not, but I'm glad I did :)

    Good luck everyone!

  • Mine? 2. But they're basically the same.

  • So this is what I have...

    But I have no idea if it'll work or not, as I do not know the name of what Gamee stores the save data as.

    The log I use at the top simply doesn't do anything, so I can't even take a peek at the JSON.

    I just guessed at "save" because why not? :D

  • From what I can tell, there's no way to test the save state mechanic. Anyone managed to have any luck with that?

    I have created the data that needs to be saved, and can submit that data as save data, but I have no way to figure out how to get that data back down to me :D

    Saving isn't really that important... but it sure would be a nice feature...

  • You can get the userID by calling the action "Request Player Data" or Player's Friends userID "Request Social" then you will receive a JSON with the player data :

    > {name:"playerName", firstName: "John", lastName: "Wick", highScore:1000, avatar:url, userID: 123456, coins:1000}
    

    Then you can use the userID for "Request Player Replay" or "Request Player SaveState"

    Check this JS Wiki for better understanding github.com/gameeapp/gamee-js/wiki/advanced-usage or the Construct Documentation : github.com/gameeapp/gamee-js-construct

    The problem is that we can't see any of this data within Construct 2's debug mode. This means that testing these features are like pulling teeth unfortunately. It's a lot of trial and error.

    For example, I have a bug now where it's pulling up the wrong data, but the only way to test it is with the CTRL-SHIFT-J approach, which gives me:

    {"c2array":true,"size":[4,3,1],"data":[[[55681],[55681],["data:image/jpeg;base64,/9j/4RHlRXhpZgAAT

    Etc... etc... The actual amount of this small array's JSON is significantly longer in console, and I mean 84996 characters long...

    This makes searching through all of the code insanely time consuming.

    Is there a reason why we can't have access to the Gamee dummy data while using Construct's debug? Or are we forced to use the emulator?

    *EDIT*

    As a heads up to people, it turns out that the huge amount of data I was seeing was only appearing while trying to access the Avatar icons. If you don't access these (at least during testing) you'll have a lot less data to sort through :)

    Hope that helped!!!

  • Would someone be kind enough to explain me the meaning of" unique id of the player you want to get the save state"

    I have still not begun my work

    I'm not 100% sure! That's something that's bothering me. I know I can grab the user's ID with the other steps, but how I go about using that is a mystery to me :(

    For example, I have no idea if I can save different sets of data; I.E. individual highscores for multiple levels.

  • The most painful thing seems to be that we can't use Construct 2's debug to actually look at the data we're accessing.

    This means that when I'm testing, I have to run it through Gamee's Emulator and create logs all over the place, then open up the console and figure it all out.

    This is doubling the time it would usually take to make the game.

    I just want to be able to grab the data, and look at it within C2.

    I'm currently looking at savestates, and it's really tricky, while in Construct 2, it's really simple.

    Isn't there a way of being able to see my downloaded JSON within Construct's Debug?

  • Ahhh, ok, I may be able to do something for that! Thanks!

  • Say for example I have some data that reads:

    "Bob|25|Male|Tall|Mary|24|Female|Short|Alex|48|Male|Medium"

    I note that each section is divided into 4. So every 4 tokens is a different Name, and the following 3 are details about said person.

    I want to put this data into an array.

    Now, I've found that when I have data such as:

    "Bob|25|Mary|24|Alex|48|"

    I can sort this data easily by counting the "|" tokens and using a for-loop.

    For 0 to TokenCount-1

    if loopindex%2 = 0

    How do I do this kind of thing when I have more than 2 columns for my data?

    Sorry if I'm not making much sense :) Please ask and I'll try again to explain :)

  • Nice one sizcoz !

    Quick question. Why do you have &"" at the end? I haven't tested it, but I was told by a friend today that if I replaced intval with spritef it would then work.

    Interesting that there are so many ways to get the same result.

    Thanks again! I'll implement it soon!