timcs's Forum Posts

  • > But is it possible, for example, to make a text file that I can save and then access from Windows afterwards? E.G I make a text file with my game, save it to the desktop and then I can open it up in Notepad?

    >

    I know i am answering an old question but it might help for someone in the future,

    If you add the "Browser" object to the project, there is an action you can add to the event sheet called "Invoke download of string", which is usually reserved for downloading .JSON files for all sorts of things, now im not too sure if this feature is intended, but if you want the game to download regular .TXT with the text of your choice, simply add the string you want in the "String" box, change the MIME type to "text/plain", and replace in the filename the ".json" to ".txt", hope that helps!

    Hi GreatProgPluto

    I stumbled across this thread and your reply while trying to achieve this myself. Not sure if my goal is the same, but currently my project is to learn French and when I add new data , I have to open the text file from within the project via construct 2 add the new data save it back and then re-compile the project for my own use.

    Currently I had added quite a lot of data to these text files and it becomes very time consuming to do it this way. Can you use this method you have stated for this purpose and if so how, as I have tried to do as you have stated but I cannot get it to work

  • timcs

    Your might try this tool to install my plugins.

    rexrainbow

    Thanks, sadly when running this (had to do this as administrator to allow it to write to the construct 2 folder) it appeared to have installed but when I go and run Construct 2 it does not open and sadly does not error either

    **HELP**

    removed this plugin via removing it from the folder but I still cannot open Construct 2 even though I could before I installed it

    **UPDATE**

    Had to re-install Construct 2 before I got this to work,very strange.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hi I am trying to install this plugin but if I unzip the file and copy the folder into either the behaviour folder or the plugin folder it stops construct 2 from loading if it is in the behaviour folder and errors on loading if it is the plugin folder.

    Please help

  • HI all

    Would like to test these plugins for Construct 3 as I bought them for 2 and most of my projects include them and would like to test these in 3.

    Does anyone know if the developer is going to port them over ?

  • From what I have seen... c3 is basically c2 that you have to rent. Whats the point? I feel as though I am part of a c2 community that begged for just a few simple features. Features that you sort of need to actually make a decent game (something beyond flappy phone games)... Heck, even working box2d physics sure would have been nice. We weren't asking for 3d, we were asking for the basic tools any game engine needs. (collision filtering, raytracing, collision callbacks, swept shapes, ... I could go on) Not to mention extreme scalability issues when making complex games. And javascipt is stupid for games (but thats obviously a given, a compromise that wont be changed)

    Is c3 going to address these problems? I haven't heard, frankly, I don't care because I got sick of not having the tools needed for really making a game in c2 and so dropped it.

    And I'm not someone who thinks a behavior should make my game. I program. I have rolled 3 different platform engines on my own, and a custom retro based physics behavior for c2. I just wanted basic features literally almost every other engine has.

    I've been happily using Unity for free. With c#. Why would I rent c3 when I only use c2 for simple prototypes ?

    I don't care that it is on mac (see above). I don't care that its in the cloud (see above). I don't care that it has a 3 in its name if it doesn't actually fundamentally address the major issues with making a game with c2.

    Anyone have any insight?

    I would agree on the need for collision filtering, if Construct 2 or 3 had this it would be a huge step forward plus the need to be able to move the sprite without the need of the collision polygon would also be good .

  • > [quote:ys2lnk11]Other than that from the glimpse of it so far I can only say why just Chrome? I use Opera and Firefox and it does not operate on either of these. Also I updated Chrome on my phone but this only goes to version 56 so I could not run it on that either

    >

    Thanks for the feedback! Chrome only for now as it's the only browser that supports all the advanced features we're using (nearly) out the box. If you load it in FF or Opera, it will show you what specific features the browser is missing exactly.

    We don't see any reason why other browsers wont be able to support it in the future. Hopefully not too distant!

    Tom

    I cannot open it at all in Opera and Firefox so there is no chance of testing at all there. As for my Android phone any reason why it would not open on the latest version ?

    I do hope the collision point is looked at soon because this will be a BIG selling point for me to move to C3!

    Tom

    Got the mobile device to work by using the Chrome Beta version now. Still would like to see Construct 3 to have the multiple collisions on a sprite as at the moment I am having to split the sprite up and with help from 99Instances2Go I have got to put the separate parts back together using another sprite to be able to drag them about and add the set to bounds as well as one collision set to a part of the sprite for the interaction of it.

  • [quote:3mzhtqcv]Other than that from the glimpse of it so far I can only say why just Chrome? I use Opera and Firefox and it does not operate on either of these. Also I updated Chrome on my phone but this only goes to version 56 so I could not run it on that either

    Thanks for the feedback! Chrome only for now as it's the only browser that supports all the advanced features we're using (nearly) out the box. If you load it in FF or Opera, it will show you what specific features the browser is missing exactly.

    We don't see any reason why other browsers wont be able to support it in the future. Hopefully not too distant!

    Tom

    I cannot open it at all in Opera and Firefox so there is no chance of testing at all there. As for my Android phone any reason why it would not open on the latest version ?

    I do hope the collision point is looked at soon because this will be a BIG selling point for me to move to C3!

  • Not a bad interface as far as I can tell at this stage, seems to operate quickly and looks and feels no different to the desktop version in my opinion, I would like to see however the ability to have a better collision editor so that a sprite can have multiple collision points and also not to have to rely on the collision polygon to be used for the drag and drop . This has only ever been the issue I have had with C2 the fact that the collision polygon is where the dragging is based on and that there cannot be multiple drag points.

    Other than that from the glimpse of it so far I can only say why just Chrome? I use Opera and Firefox and it does not operate on either of these. Also I updated Chrome on my phone but this only goes to version 56 so I could not run it on that either

  • thanks oosyrag for your answer on this it explains why I was struggling with this and will explain why my below method works as well.

    However , I have found a work around for this by storing the string from the array into a single text variable while removing the ; at the same time and then stripping out the text before and after the - from that variable when storing it into the text objects.

    A little long winded but it works but I will consider to try nested tokenats

  • Hi

    I am currently storing and loading using ajax various text files for my project. The format of the text file in this example is as follows

    Text 123 - Text 456;

    Text 789 - Text 10112;

    |

    So each line has a - and a ; as a delimiter , the - allows for the two texts value to be split out and the ; is for the end of that line. The | is a record separator . So I load this format into the array using the | to store each record into each cell of the array.

    My problem is trying to get the text before and after the - . On the first line this works :

    Textobject1.Text = trim(tokenat(array.at(counterpos),0,"-"))

    Textobject2.Text = trim(tokenat(array.at(counterpos),1,"-"))

    But when I try and use this logic for the second line :

    Textobject2.Text = trim(tokenat(array.at(counterpos),2,"-"))

    Textobject3.Text = trim(tokenat(array.at(counterpos),3,"-"))

    Textobject2 does not equal the value before the - but the value afterwards and textobject3 shows the value from the next line (which is not here in this example).

    My reason for holding the data in this way is I am storing each type of language verb per record and then the various definitions of that verb e.g. I am , they are etc on each line.

    Any help to solve this would be appreciated

    ** EDIT **

    Still struggling to get this to work so if I am using tokenat incorrectly or if there is another/better way of doing this I would appreciate if someone could advise on that. Not sure if this is any clue to the problem but the file is loaded via an included event sheet and that sheet then calls the function from the original sheet that called it and that the file is saved in a UTF-8 format to preserve the accents for the language.

  • Would like to debug the project. Has me puzzled at this point.

    Do you trust me enough to PM me the project?

    99Instances2Go , well I am either imagining things or in the throws of changing things about , it now appears to be working. So hopefully without any additions to the events just simply re-enabled some of the logic that I disabled which was me just trying things out got it to work. Hmmm will have to watch this carefully next time

    Thanks anyway

  • 99Instances2Go

    The first image is from the main event sheet and yes there are other events there as well. However the other events are called based on functions so until the GetRandomQuestions is called, the others do not start.

    In the second image, this is the entire contents of that sheet and that as you can tell is the sheet I am calling to load the files. I hope this answers your questions

    When I get chance I will post that function (GetRandomQuestions) but I know that it worked when I called it from within the same event sheet

  • Included event sheet acts as its events are in the base sheet.

    You gots to have some logic flaw.

    Maybe you have the 'Ajax on unique tag load completed' as a sub in the function ?

    Or you forgot to reset the parameter in 'if parameter equals 1', so it keeps calling the function until 'load is completed'. Actual executing the 'load' several times in a row ?

    Does the below screen grabs help to see what I have done wrong ? :

  • Hi

    I am probably misunderstanding what can and cannot be done when using the "include event sheet" method. At the moment my project is getting too big because I am , in each event sheet, loading files in and reading the data via ajax.

    So I thought it would be a good idea to create an event sheet that allowed for the handling of loading files. Then each event sheet would call a function from that included event sheet (say call it B for now) and that function had a parameter to identify each call.

    this all sounded good , I tried it with one call from one sheet to start with. The logic goes as follows :

    On start of layout - Call function from included event sheet (B) with parameter (1)

    (In included event sheet):

    on function call - > if parameter equals 1 - load required file via ajax using unique tag.

    Ajax on unique tag load completed

    -> set variable recordcount(from called event sheet) to tokencount(look for record marker from ajax loadlastdata)

    -> array(from called event sheet) set size (recordcount,1,1)

    -> subevent -> loop through loadlast.data to populate array with data

    -> blank subevent after loop finished - call function from called event sheet to load data to sheet.

    The problem I have is that the final call to the function from the called sub even seems to loop. Now this logic was originally in the event sheet that was calling the included event sheet before the include event sheet even existed so I know this logic works. Also if I enable this code back in the original called event sheet the looping stops.

    I have also tried to call the last function at the end part of on start of layout but this does not work as no data is loaded to screen.

    Any help would be appreciated.

  • Hi

    I know that phonegap is not every ones favourite compiler for Construct 2 projects but in general I find the resulting compiled apk for Android is more of a realistic file size over that of Intel XDK.

    So I still want to use phonegap and on purchasing a plugin for Construct 2 which is the Cordova SQLite Database I have been really struggling to get this to work. On being in touch with the author of this plugin he has not really tried this via phonegap and pointed me in the direction of the phonegap guide on how to include a cordova plugin.

    I really nearly gave up on this after trying various xml settings within the config.xml before uploading it to phonegap with little luck. As there have been many attempts at this with different errors it is hard to provide one definitive message that I get from Phonegap , however if someone could provided ideas on what I need to do I would appreciate it

    ** EDIT **

    On making further tried I found that one of the issues is that the plugin reference on the authors site had a capital C in the name now that I have corrected that I get the following error message :

    Error - Plugin error (you probably need to remove plugin files from your app): Fetching plugin "cordova-sqlite-storage@1.4.4" via npm Installing "cordova-sqlite-storage" at "1.4.4" for android Error during processing of action! Attempting to revert... Failed to install 'cordova-sqlite-storage':CordovaError: Uh oh! "/tmp/gimlet/26548780/2479767/www_android/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/libs/sqlite-connector.jar" not found! at copyFile (/tmp/gimlet/26548780/2479767/www_android/project/cordova/lib/pluginHandlers.js:219:36) at copyNewFile (/tmp/gimlet/26548780/2479767/www_android/project/cordova/lib/pluginHandlers.js:250:5) at install (/tmp/gimlet/26548780/2479767/www_android/project/cordova/lib/pluginHandlers.js:43:17) at Object.process (/tmp/gimlet/26548780/2479767/www_android/project/cordova/node_modules/cordova-common/src/ActionStack.js:56:25) at PluginManager.doOperation (/tmp/gimlet/26548780/2479767/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:117:20) at PluginManager.addPlugin (/tmp/gimlet/26548780/2479767/www_android/project/cordova/node_modules/cordova-common/src/PluginManager.js:147:17) at /tmp/gimlet/26548780/2479767/www_android/project/cordova/Api.js:254:18 at _fulfilled (/tmp/gimlet/26548780/2479767/www_android/project/cordova/node_modules/q/q.js:834:54) at self.promiseDispatch.done (/tmp/gimlet/26548780/2479767/www_android/project/cordova/node_modules/q/q.js:863:30) at Promise.promise.promiseDispatch (/tmp/gimlet/26548780/2479767/www_android/project/cordova/node_modules/q/q.js:796:13) Uh oh! "/tmp/gimlet/26548780/2479767/www_android/project/cordova/plugins/cordova-sqlite-storage/node_modules/cordova-sqlite-storage-dependencies/libs/sqlite-connector.jar" not found!