Zakeru's Recent Forum Activity

  • Hello,

    I'm setting up a linguistic experimental task with Construct 2. At the beginning, I have a layout with 2 pages of instructions (you can try it out here : lamarque.lpl-aix.fr/).

    The first page is just text, you can click the "suivant" button (= "next"). On the second page, I want to display an instruction video. So I recreated a very simple video player. Everything is functionnal except one thing: the slider bar I used to show the progression of the video. Here is what I did :

    When the video is paused, it works perfectly. The problem is when the video is playing, I cannot use the slider bar dynamically to jump to a specific time of the video. From what I understand, it is because event 12 will always immediately "erase" event 13. I have tried many combinations to avoid that issue, but I am out of ideas. If anybody can help me, that would be very appreciated.

    Tagged:

  • Hey! Thanks for helping me again. See, I made use of the csv plug in you suggested to me before!

    The files are about 250MB and I have three of them. So that would be a loooot of different parts. And I guess the thing would still be slow as hell in the end.

    I guess I'll look into MySQL. Sounds like a better option for that purpose.

    The TEST.txt is just a silly example. The data in there is just nonsense. See letters as nominal data and "swag" and "awesomeness" as numerical data. I could have named them "characteristic 1" to "characteristic 5" with random characters/numbers in the cells.

  • Hi everyone !

    I'm trying to build an interface for a lexical database of Mandarin. Basically, I have huge text files with data separated by tabs. I use the rex_csv plug in to read them in C2 and I built the interface to make queries on this database.

    (rex_csv plugin: c2rexplugins.weebly.com/rex_csv.html )

    The interface allows you to search in two different ways:

    1. Search for info by words: you type in words, and if it is found in the database, you get all the data concerning those words.

    2. Search for words by info: you pick all the criteria you need and you get all the words in the database that match those criteria.

    Once you've done your query, you can download a file with all the data you need (you can pick what data shows up in the file).

    So I made this .capx. It's a draft, but everything works as it should. It's better than long explanations:

    drive.google.com/open

    In this draft, the database I use is a very small text file (TESTV3.txt in the .capx). In short, it's made of 6 rows (i.e. 6 words) with 5 columns (5 different pieces of informations for each).

    Now, I want to scale that up to a text files with approximately 100 000 rows and 300 columns. That's a lot of data. Which makes the AJAX request for the file fail. I get a javascript error. I can't recreate it right now, but it was something like: "allocation size overflow localhost :50000/myfile.txt on line 185 col 1".

    I think I have been too optimistic on the power of Construct 2. Maybe it can not deal with so much data? If so, do you have any recommandation on what tools I should use to get my interface working ?

  • So with your second method, I do not need to create an empty text file on my server right?

    For some reason I can't make it work. I think it's because php files don't have the authorization to write on my server or something like that.

    I will check that with the I.T guy of my lab and try again ^^

    Thanks anyway !

    Just out of curiosity. What part of the php code deals with the creation of a new file if there is no matching file name on the server ? Is it just how "fopen" works ? Then why do you need to create in advance a text.txt file with the first method ?

  • Unfortunately, adding "wait 0" did not change a thing. But thanks for trying.

    I'll consider making my own buttons.

    Thanks again.

  • Hi all,

    I have a linguistic experiment I created in Construct 2 and hosted here:

    lpl-aix.fr/~lamarque

    It's about choosing 1 of 4 ways to abbreviate loanwords in Japanese. So I have one button for each abbreviation strategy. After each answer given. The buttons' positions are randomized. I don't want the focus to stay on the clicked button, otherwise, when starting a new question, the same button, even if it moved, will be highlitghted. This can have an influence on people's answers. So I want to avoid that.

    Of course, I simply added an event like "when 'button' is clicked, set 'button' unfocused". And it works perfectly fine on all browsers but IE and Edge...

    As long as the mouse doesn't move, the focus will stay on the button.

    The event sheet for this part looks like that (I disabled everything that is irrelevant to the answer buttons'behaviors):

    Anybody has an idea why IE and Edge work differently than the rest ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Yes! Thanks! I wanted to do this kind of things at first.

    But if I have a single .txt file, won't every player erase the data from the previous player? Is there a way to prevent this ? Have several files ? Have each player's data be written after the previous player's data in the same file?

    Anyway. I'm satisfied with my e-mail solution. I'm just asking out of curiosity. So if you don't already know the solution, don't think about it too much :)

  • Hello,

    Thank you very much for your help. In the end, I managed to solve my problem using the e-mail sending tutorial above.

    Now I get all my data perfectly fine, sent directly in an e-mail :D

  • Oh, sorry about the add-on. Here goes the .capx without the smart random:

    drive.google.com/open

    The data I need all fits in a dictionary (with about 200 keys/values). If I can get the informations of that dictionary in any way. That would be great.

    (regarding my initial problem, the tech guy from my lab told me the problem was caused by the "~" in the URL I'm hosting the game to. It's a rewriting of the actual URL (which is not usable either). He thinks he can solve that.)

  • Sorry for the double post. I have made some good progress on my project, but I'm still stuck on getting data from the game to be saved... anyhow.

    So my experiment is fully fonctional now, but I still don't know how to get the answers back from my participants.

    I have considered having them sent by e-mail. So I tried to follow this tutorial : scirra.com/tutorials/4897/sending-an-email-from-construct2

    It's even a simpler version of it since the e-mail adress to send to, and the subject would be the same everytime. But it doesn't work for me.

    I must admit I'm copying things blindly without understanding what I'm doing. So maybe I did something wrong.

    In this .capx I tried to send a test message "hello world" to my professional e-mail address (I changed it for a fake example before making the .capx file). But it seems nothing is sent.

    drive.google.com/open

    My experiment is hosted here : lpl-aix.fr/~lamarque

    And the .php file I uploaded is this one : drive.google.com/open

    Does anybody know what I'm doing wrong ?

    By the way, I don't actually care in what way I get the data back. If anybody has a better solution to get (text) informations back from a player, I will gladly try it.

    Thank in advance

  • Oh ! That sounds neat !

    The explanations were a bit complex for me, and in the end I'll end up with a lot of text instances (be it generated by the plug-in or manually), so I decided to do it manually this time. But I'm glad to know this plug-in exists.

  • Oh... too bad it did not work. Can you tell me what you tried ? If it's just a matter of permissions, maybe I can get around that ?

    Anyway, since my verb generator is done (thanks to your help) and those questions about servers are unrelated, I made a new topic on my other project with more detailed questions. If you want to have a look at it : construct.net/forum/construct-2/how-do-i-18/how-do-i-save-a-csv-file-to-my-137535

Zakeru's avatar

Zakeru

Member since 5 Dec, 2016

None one is following Zakeru yet!

Trophy Case

  • 8-Year Club
  • RTFM Read the fabulous manual
  • Email Verified

Progress

10/44
How to earn trophies