tecbug's Forum Posts

  • WOW. Big thanks!

    The code looks like a magic I'll try to analyze it step by step.

  • Thak you all for replies.

    Especially Magistross - your example is incredibly helpful. I've changed expression newline to "," to separate elements by commas despite new lines.

    I have one problem with it, when I change JSON into:

    {"otherData":"not important","otherData2":"also not important","status":0,"playerData":{"name":"john","surname":"sesese","age":66}}[/code:108btinh]
    there's problem with reading nested data (eg. "name").
    
    --edit--
    And here is working example (with commas but without nesting): 
    [url=https://dl.dropboxusercontent.com/u/17601731/forum/parse_v2.capx]https://dl.dropboxusercontent.com/u/176 ... se_v2.capx[/url]
  • - Do you mean Hash Table plugin ()?

    Joskin - I understand. But to import JSON into array I should have "{"c2array":true,"size":[10,2,1]" and i should have an array with predefined size.

  • Index isn't fixed. Could you please explain in little more detail how to use foreach on JSON?

  • I'd like to parse JSON like this:

    {
    "otherData":"not important",
    "otherData2":"also not important",
    "name":"john",
    "status":0,
    "otherData3":"also not important",
    "otherNumber":666
    }
    [/code:2uifpw4b]
    And I'd like to:
    1. find and retrieve value for key "name" (it should be "john") and save it as variable
    2. find and retrieve value for key "status" (it should be 0) and save it as variable
  • It works :)

    Thanks.

  • You can request fullscreen on startup with node-webkit.

    Unfortunately there is only option to maximize the window. When I export to EXE with node-webkit, after maximizing the game it still has the top bar and the bottom bar (with tray and opened apps).

  • If I set "Fullscreen in browser" to "Off" the ads don't show up. All other options works fine with ads.

  • Thank you very much :)

  • Hi,

    I'd like to make interactive product catalog. Part of its functionality is to enable users to download files on his HDD/SSD. I'd like to provide C2 an URL to this file and user should download it via C2.

    How to do it and what plugins to use?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Is there possibility to make a game that is sending POST message to the server and then receiving XML file and then parsing it?

    What plugins should I use and are there any examples?

    --edit--

    I see that plugin scirra.com/forum/plugin-ajaxpost_topic49039.html enables sending POST, but how to get back XML. How it usually works?

  • Thanks. I finally managed to open it. After 10 installations of different versions of C2 and all plugins.

  • Link to .capx file (required!):

    tecbug.pl/pub/c2/TreeFractions_v13.capx

    Steps to reproduce:

    1. Open CAPX

    Observed result:

    Crash

    Expected result:

    Open file

    Operating system & service pack:

    Win 7

    Construct 2 version:

    Tried on r109, r114, r121, r122

    While trying to open file it says:

    ---------------------------

    Unable to load project

    ---------------------------

    Could not open project '\\?\C:\Users\Rafal\AppData\Local\Temp\cap1049Z0\Tree Fractions.caproj':

    Cannot find action by ID

    ---------------------------

    OK   

    ---------------------------

    I used plugins: rex_moveto, rex_function and linkit plugin (download: tecbug.pl/pub/c2/linkit_1-4.zip ) and I know it could cause the crash.

    But this project is very important to me. I've been working on it over a month and now I can't open it. Please could you even copy all the actions that I could somehow rewrite the code. Or maybe you can open it partially...

    This file was saved in r109.

    I'll buy 5 more C2 licences if it'll be needed just not to loose all my work.

  • Is it possible?

  • How can I allow user to pick a photo from his harddrive and import it as a sprite?