wmsgva's Recent Forum Activity

  • Problem Description

    A C2 application I use to generate XML files for my serious game and which worked fine before moving to the latest version of NWjs

    is now crashing when exported to an .exe file (works fine when running in test mode within C2).

    The problem occurs when I move to a new layout and then click with my mouse into the first Text Box. The application simply closes.

    Attach a Capx

    Can't provide a Capx as content is confidential, but as the problem only occurs on export and there's no active code behind the Text Box,

    it is not needed.

    Description of Capx

    The application contains several layouts with many Text Box and List fields which are used to generate content for an XML file.

    Steps to Reproduce Bug

    • Move from main layout to another layout
    • Click with the mouse in the first Text Box

    Observed Result

    App quits without any error messages

    Expected Result

    Nothing (just be able to type text)

    Affected Browsers

    Not relevant (.exe for Win64)

    Operating System and Service Pack

    Windows 7 64 bit with all latest patches applied

    Construct 2 Version ID

    Verssion 221 (not sure if I need to use the latest beta versions to solve the problem with NWjs 0.13.0 RC3 ?)

  • yemi Yes, I will add more of the TC API functionality in the future. If you have any specific needs which come to mind, don't hesitate to share.

  • emkolar Well I agree with your feedback in principle, but there are situations in which it is not true.

    For example, the first plugin I worked on, an audio plugin that allows to use audio streams instead of just audio files, works fine when you export to HTML, but one of its functions (stop the audio stream currently playing in this case) doesn't work when you export the game using NW.js (the stream will not stop playing). I must admit this was a first attempt at plugins and I haven't had time to revisit the code to check why this may be happening, but the simple fact that it works in some cases and not others shows there is some cross-platform variance.

  • xanxion I will attempt in the future to ensure the plugin also works fully with NW.js, but won't be working on other platforms such as CocoonJS (some changes may however work throughout different platforms). No schedule yet however, as quite busy on my current project.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Does anyone know of any good reference website regarding issues/limitations with the various platforms/formats C2 can export to?

    In other words, how can one ensure a plugin created for C2 will work with the various export formats? I noticed looking at the standard C2 plugins that Scirra have had to create platform/browser specific code in many places. How does one know what issues may require such special treatment without having to test on all possible platform/browser combinations?

  • The plugin has been posted to the Completed Addons section of the forum, as [Plugin] Tin Can.

  • A plugin for anyone building educational games using Construct 2 and who needs to save learner data to a LRS (Learning Record Store) using the Tin Can API.

    Want to find out more about Tin Can? Check this: tincanapi.com/overview

    Current version of Tin Can plugin: 1.00 (24.02.2016)

    Current capabilities (1.00):

    • Connect to LRS
    • Post a statement about a learner

    All details about using this plugin are available here: securitygame.biz/en/tin_can.html

  • I have just written a new plugin which allows people wanting to access a LRS (Learning Record Store) from a game to be able to, using the Tin Can API.

    As I'm working on a serious game, this is useful to allow clients to record the progression data of their learners.

    At this stage, the plugin only allows you to connect to the LRS and to post a statement (Actor, Verb, Target), but I will be improving it sometime in the future.

    If anyone is interested in this plugin, I can post it to the plugin section of the forum.

  • Using Browser.close doesn't always work, as Kyatric stated.

    Another way that works in other cases to close the browser is to fake opening a new window and closing it, This can be done by using the following command with

    the Browser plugin:

    Browser.ExecuteJavaScript "window.open('','_parent','');window.close();"

  • Yes, the files are part of the game.

    It's not a major issue, but as there are many files, the organisation on the file server would be better if C2 copied them into specific directories, rather than copying them to the same location as the core files game files.

  • The serious game I'm working on has many video and pdf files on top of the usual image & sound files.

    Although these are sorted into directories in the project panel, when C2 exports to HTML5, only the images & sounds are placed in proper directories and all other files are just copied at the root.

    Does anyone know if it is possible to customise C2 to have it create a structure under the /media directory which would be the same as the one you have in the project panel, e.g. /media/video and /media/pdf ?

    This would probably be quite easy for Scirra to manage and would be useful for large projects if it's not currently possible.

  • Hi Rex,

    It works fine with the new property & action.

    Great job, thanks.

wmsgva's avatar

wmsgva

Member since 4 Sep, 2014

None one is following wmsgva yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies