Dasat's Forum Posts

  • I'm working on an application where i'm running the back end with python. I'm returning a json data to my construct 2 app, on the python layer the json format is fine however when the ajax object gets the returned object, there are some strange back slashes in it. how do i work around it? I'm also using a json plugin in construct, and even when i load the data into an object from the plugin the back slashes are still there.

    An example of what i have is

    "{\"Score\":{\"Shear Modulus\":6,\"Youngs Modulus\":4,\"Compressive Strength\":2,\"Bulk Modulus\":0,\"Tensile Strength\":0},\"Unit\":{\"Shear Modulus\":\"GPa\",\"Youngs Modulus\":\"GPa\",\"Compressive Strength\":\"MPa\",\"Bulk Modulus\":\"GPa\",\"Tensile Strength\":\"MPa\"}}"

  • Thanks you just saved a life ErekT

  • Hello, please i need help changing the font colour of just an item in a list, the css action changes the colour for the whole list object. Is this possible?

  • septeven, i would appreciate if you have sometime to look into this, the major feature i need in the plugin over the construct list box, is using the select item action to preselect or highlight items in case of multiple being active, This is not possible with constuctls Listbox as it higlights the last call index. However i need other expression in listbox which is not in combo such as selectedCount, selectedItemAt etc. I've tried to edit the js for combo to bring in this features with no success and to edit consstruct List to bring in that single feature with no success as i'm a novice in javascript, I would appreciate if you can help look into this and implement it in either of the two for me and send the files or update the pcombo plugin as a whole. I need it in a project i'm working on badly and this is my last resort, the reason i composed this long post.

    Thanks

  • I still need help with this Liam Twose not sure how this would work, i need to pre select some items in a list box, the list box default select index action only selects or highlights the last mentioned index. Save would save the whole game session which might not be necessary, i just need some data from a played sesion

    Hi Dasat you could simply use the [System -> Save] action when they make changes and then [System -> Load] action on startup

  • Please i need help on how to save sessions in node web kit like you do in browsers. I'm handling a log in method, and d admin throws error after logging in and attempting to log in a gain without closing that session

  • i am working with a list object, and i have saved the indices of the selected items by the user, (its a multiselect list).

    Now, on loading of a session, i would like to prehighligh these previously selected indices, to make the user remember what he selected earlier, i cant get this to work as the set selection action keeps track of only the last selection.

    Any help with this

  • Please, i need ideas or plugins to achieve this customised list box. I mean the look, the callout effect on the second list box(you can ignore the checkbox in the second list, its not needed.). What i need is just a simple list spawned base on which item is selected. But its the ecstatic i'm concerned about now, the logic isnt the issue.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • imothep85, did u find any way around it. For me i'm trying to send a file over the internet to my server, any ideas on this.

    hi all, im working on my app, and i would like to save smalls datas to an ftp.

    i want to record the mac adress of the machine and save that on the ftp, it is possible?

    also i need to read the datas stored on the server.

    thanks

  • imothep85, have u found any way around this. I know u can use the node webkit object to write to files

    hi, ho i can write/create a small file 1kb to a server/ftp?

  • may be you make, trigger once the main event/condition with no action while the on collission.... would now be a sub event under it

  • rexrainbow, could it be possible to load some csv data created into a project file, not from a file dis time around

  • fixed most of the issues i had. thanks

  • Noncentz705, i finally got it to work, thanks.

    I have a couple of questions though.

    1) how do i specify the directory to run a file in the app folder, this backward and forward slash things are causing problems?

    2) The same file i want to run with node-webkit, i would like to request it with ajax request url, for ajax request url, it just needs to be in the same folder with the executable, how can i work around this?

    I've written a plugin that pipes to cmd directly, and returns the shell response, but I won't release it.

    The double batch trick works fine. Make sure you've defined a global variable named cd and that you are previewing with node-webkit.

    Global text c:/users/bob/desktop/foo.bat

    On some event browser execute JS "require('child_process').execFile('"&cd&"');"

  • Create two bat files :

    File1.bat

    start C:\Users\%username%\Desktop\project_folder\File2.bat

    rem Notice I didn't use %cd%\File2.bat because preview runs from a temp folder;

    File2.bat

    echo CMD STARTED

    Now in your project back in construct

    - add the browser plugin to your project

    - create a variable named cd and set it's value to the path of your first bat file with \\ 's

    To launch cmd Browser Execute Javascript :

    "require('child_process').execFile('"&cd&"');"

    With that said there's probably a way easier way to do this