nimos100's Recent Forum Activity

  • Your download link doesn't work I think. The reason you cant upload files are probably because you lack reputation. (Just a guess though)

  • Think you have to explain a bit more. Try to post your code?

  • I think this problem is somewhat the same as with video, it can't figure out how to be precise, have the exact same problem in my program just with a video, it kind of skips around a bit. But haven't gotten around to make a workaround yet. But at least in my case I know by how much it skips, so hopefully I can add or subtract that from the video to make it appear to not doing it. So maybe you can do something similar in your case, if you know how much it skips. But its just a guess/suggestion since I use a video object. But it sounds like somewhat the same problem.

  • Problem Description

    This is a remake of the other post since im not sure you read or reply to them, when they are in the closed bug section.

    So ill just focus on one of the problems.

    If you use NW.js open folder dialog you can select folder on your disk.

    Then you can use "List files from path "C:\Users\" etc.

    However if you use it with "On open folder dialog". Which would make sense since both functionalities are from NW.js you will notice that "List files from path" doesn't work with "Chosenpath" because when that is used with "Open folder dialog" it doesn't return the selected folder. Instead it return all files and sub folders that are in the selected folder.

    That means if you do something like this "List files from path = NWjs.Chosenpath" which would be the most logic thing to do. It doesn't work, because chosenpath returns everything in the folder including sub folder names, but not the selected folder. If you choose an empty folder for instant it doesn't return anything at all. Making "Open folder dialog", "List files from path" and "Chosenpath" not compatible.

    It works in different ways depending on, how you use "List files from path" which complicate the explanation a bit.

    ONLY WHEN YOU USE CHOSENPATH

    1. If the folder selected is empty, meaning no files in it. It doesn't return the folder name as expected. It will return nothing.

    2. If there are files in the folder it doesn't return the folder name, but instead it returns the file names and sub folder names of all the folders in the selected one, under one condition that there are files in the sub folder, those sub folders where there are no files are not returned.

    The problem occurs since "List files from path" requires a folder path ("C:\Users\") and doesn't work if the file name is included ("C:\Users\Test.txt"). It would be logic that "Open folder dialog" which actually let you select a folder, would be compatible with "List files from path" since this needs a folder to work.

    If you compare "List files from path" where you write the path manually like : "C:\Test folder\" and through the "Open folder dialog" where you select the "Test folder" you get the following results.

    Example 1: Uses "Open folder dialog"

    First of all it doesn't actually return the selected folder, but it returns all the files in the folder including those sub folders which have files in it. Comparing that to Example 2, you can see that there is actually a folder in there called "Sub folder 2" which is empty.

    Example 2: Manual written path

    Again it doesn't return the folder name, which is logic, since its manually written. however it does return all the content, except the file d.txt which are in the Sub folder. And which is returned in example 1.

    So putting it all together, its a huge "mess" of incompatible functionality that gives different results depending on how they are used. Which makes it difficult and not very logic to work with, because all things have to be corrected, parsed etc. to make it work.

    That's why it was hard to explain it the first time as a single problem, because it involve a lot of things. Hope it makes a bit more sense now, why there is something wrong with how you as user would expect it to work, compared to how it actually works. Because as it is now its more or less impossible to work with, and requires a lot of workaround to make any use out of it.

    (PS. As I started out saying im not sure if you read closed bug reports, but could you please take a look at this if you normally don't. Whether that would be possible or not: https://www.scirra.com/forum/r200-load-image-from-url-or-nwjs-bug-v2_t128806)

    Attach a Capx

    https://dl.dropboxusercontent.com/u/109921357/More%20nwjs%20bugs/Nwjs_bugs.capx

    Description of Capx

    Just open a folder to be used with the ListAt funtionality

    Steps to Reproduce Bug

    Use open folder dialog, ChosenPath and ListAt

    Observed Result

    Open dialog folder is unable to return the path to the folder.

    Expected Result

    Returns every single file and subfolder in the selected folder.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES)
    • Internet Explorer: (YES)

    Operating System and Service Pack

    Windows 7

    Construct 2 Version ID

    r202

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The problem is the image is chosen by the user of the application through NW.js file dialog and when copied the files are automatically renamed, due to a load and save functionality in my program, so the image(s) needs to be overwritten if the user choose another file and then update the file in my program. However it wont do that because of this problem, which makes NW.js somewhat incompatible when reading an image from the disk when used with the file/folder dialog.

    And my program already have so many workarounds for video not showing when loading, so to fix that, you have to play the video, then stop it, reverse it back to start and pause it. Not able to load audio files during runtime, so to fix that I had to make another workaround to use a video object instead, which makes little sense and also looses all features from the audio object. So I had to apply another fix to the audio functionality as well. The resize of image load had a workaround as well. (which is fix in the last release which is awesome, so thanks a lot for that, really neat.)

    The other bug report regarding the several folders uses a fix as well. I installed the NW.js 0.12.0 Alpha from here: https://www.scirra.com/forum/nw-js-formerly-node-webkit-news-and-update_t122727 pretty sure I already had that one, but if that's the one you are referring to as 0.12.0 in the other post, then the problem is still the same. I will reply to that one in the other post.

    But this is just some of the workarounds, can't remember them all. but they just seem to keep pilling up. So its workaround after workaround and it just keeps lowering the quality of the application im trying to make, because I constantly have to remove things, make weird solutions etc.

    Wouldn't it be possible to simply duplicate the "Load image from URL" and make one called "Load image from disk" which forces update and then if you need one for web you use the first one and if its from the disk where internet speed is not an issues you can use the other one?

  • Sure Ill stick to one problem. Just thought it would be easier since in the example they are related. But im not sure which version of NW.js I use so ill get the newest version and do another test. And see if it have been fixed.

    Would it be possible for you to make a link to it as well in the Download stable and beta release. Since I remember that its no longer part of the download right? Its not crucial but just thought it would be handy.

  • I agree for personal use, but as a business license owner I am already fairly invested into C2 and would rather see it capable of making games rather than needing to move on now, and I don't feel like I'm the only one who thinks that.

    I completely agree with you on that, using a method where people pay a monthly fee for a business license is not a problem in it self. If that will help make C2/C3 a better program. That weren't my point. It was that regardless of whether they do it the current way or with a fee system. They rely on people upgrading to a business license and that requires that people release applications, otherwise they wont upgrade.

    But if C2/C3 doesn't allow a range of games, platforms etc to work correctly then less games will be released and would prevent people from upgrading and then they are back to square one.

  • rexrainbow Agreed, and something like that would be nice especially if they can do it with the money from purchases of C3, or by switching the commercial licence of C3 into a monthly subscription to cover expansion of Scirra

    Don't think that is a good idea. The way the C2 license work now is that if your applications/games make more than 5000$ you have to upgrade to a business license. Which I think is a nice way to do it. Because the better applications users make the more will upgrade. So its more like a collaboration between users and Scirra. The problem as I see it, as others have also mentioned in this post and others, is if projects never reach a point where they are sellable. Some project gets dropped because of new ideas by the creator etc. But also lots of projects gets dropped because people run into limitations with C2. Not that I know a lot about mobile apps to take an example, so this is just in general and what the OP mentioned as well, but no one will release a mobile app which delivers poor performance for the buyer, because they will get complains and not be able to fix the problem will leave them in a very poor situation, so they might shelf there application. Which is a huge frustration for the developer but also a potential loss for Scirra.

    So if Scirra can't promise superb performance on certain platforms, I would be very surprised if anyone would pay a monthly fee for a business license. To me Scirra have to make sure that the tools us users request and errors that are reported gets fixed. So as few projects gets dropped.

    For instant as xanxion mention in his post:

    [quote:350bly24]Personally, i have trashed and dropped about 18 of my games and apps that i have developed with C2. And i have around 6 published out there

    (A couple of my apps are popular, but not my games, because of performance issues)

    That's potentially 18 games that could result in him/her upgrading to a business license and personally I have dropped a lot of projects my self. Due to the reasons of new ideas, but definitely not uncommon that I drop applications due to limitations in C2 and having dropped a lot so far, its at moment more common that the ideas never even gets into C2, because i can in most cases judge whether something will be possible or not, depending on what features are going to be in the game. And some of the features are just to buggy so when adding all the things together you can see that the final product is not something that you would be able to sell, because its just not smooth enough to what a buyer would expect or it is simply not going to work. Which is really sad i think.

  • BasicTribe

    Have to admit that I to some degree can follow the frustration that you express, not in relation to mobile apps as I don't make anything for those. But the frustration of having put a lot of effort into making something, and then the project gets "screwed" for whatever reason. Not that I think that all of it can be pointed at Scirra.

    But there are a lot of things/problems in C2, some of them more severe than others, but overall it generate a lot of frustration, especially because the more programs you make and sack due to running into problems that can't be fixed. You have to design you things based on this, rather than what you want to make. And personally to me, I think its fine that they want to make C3 etc. But cant help feeling like they are abandon ship Meaning that C2 when bought back in the days and to r200 have been a program under development. Loads of the things in it now weren't there at the beginning, which can be nice, but it also means that a lot of things have been added along the way and that C2 is pretty much always in some sort of testing phase, or the stable version lack certain features etc. But to me at least it also appears, that so many new features have been added, that not a lot of them are very deep and a lot of very annoying problems and missing features affect a lot of the functionality that you expect for certain things.

    And since so many features are added, they don't really seem to have time or want to further improve old functionality rather than just bug fixing them a little. Meant that when you release something it will take the community some time to give you some really solid feedback on the new features. But at least to me, following the forum a long time, there have been countless post of suggestions of how to improve workflow, features etc. and most of them are really good ideas, yet I don't think any or hardly any have been added. Which is a real shame I think. Especially because C3 is under development now and they have stated that the amount of releases for C2 will slow down, it just frustrating because C2 is so close to being a really really cool program, if it just weren't for all those small annoying things, that gives the impression that it just need a lot of features, but they don't have to be 100% top notch, just have to be enough.

    And then we move on to C3, its not really encouraging me to invest in C3, because why should it be any different, if C3 is released as C2 was, meaning a program under development and then features are just added a long the way. And major design flaws are just not possible to fix, due to the way it was designed when it was released. Which could have been corrected if the features had been there from the beginning, then you might risk the same thing with C3.

    So personally I think its a very nice program it just lacks the last bit needed to make it really cool.

  • But in the screenshot in the other post where you spawn every 2 seconds. You are spawning NinjaSpawnSpikes is that correct? because it seems wrong why you would select a random NinjaSpawnSpikes and then spawn the same object from it, based on the description and the image you provided. If NinjaSpawnSpikes are your enemies, you have to pick one of the spawn places in that event right? otherwise if the NinjaSpawnSpikes are your spawning place, shouldn't you create enemies in that event rather than more NinjaSpawnSpikes, it just seems like there is something wrong.

    Or in another way.

    What is the name of your Spawn area? and what are the enemies name? (In C2 under name tab)

  • Im pretty sure it wont work, if you have "Pick a random Ninjaspawnplace" and there are none in the layout, then that will turn False and it will never create any new ninjasspawnplace for you.

    It seems a bit weird why you would pick a random Spawn place and then create another spawn place? From your original description, it sounded like you wanted to spawn enemies at the spawn locations and not new spawn places? but maybe I misunderstood that.

  • Also, it would be great to point out, which triggers are actually fake (Trigger once while true and collisions are obvious, but what about On animation "" finished)?

    You can spot triggers by the Green arrow (If I understand what you mean correctly). For instant "On Mouse click" is a trigger and will trigger whenever you click.

    On animation finished is a trigger. Some ought to be triggers in my opinion, but ain't for some unknown reason. For instant Video ended is not a trigger, but would make sense if it was.

    [quote:2xvwkt1x]For each - Generally, when you want apply a code for every instance of a Type in several programming languages (no idea about HTML), you'd use "For each" or another loop. What is the difference between For each Object set variable to 0 and Pick all Object set variable to 0? Is there a difference in performance?

    I don't think there are any performance difference between them and if there is. I doubt its worth worrying about.

    Pick all is something that is often misunderstood, you don't actually need it in 95% of the case as C2 will do that automatically.

    To use pick all correctly imagine something like this:

    ->Bullet hit enemy   (In this case you have picked a bullet and an enemy)
    
    Imagine that you wanted to damage all other enemies as well, if the enemy dies from the hit.
    Since you have already picked an enemy you need to reset the picking, which you can do with a "Pick all Enemy" in a sub event. Which will then allow you to apply damage to those. So you don't have to split up your events etc. 
    [/code:2xvwkt1x]
    
    For each is pretty much as you stated and used whenever you want to work with a group of objects but still as individuals.
    
    [quote:2xvwkt1x]but there's a problem - C2 will not let you create triggers in loops, which is quite understadable as trigger is something to be called only in certain conditions. However there are also rather conviniet fake triggers, that are not really triggers, because they are evaluated every tick. 
    
    Im not sure if it would actually make any sense if triggers worked inside loops. I would assume its because you might organize your things a bit wrong then instead. 
    As with the "On mouse click" it would be a bit strange to put it in a loop. because it needs to trigger whenever you press the mouse button and not during the loop. But might have misunderstood you depending what you are referring to.  
    
    [quote:2xvwkt1x]My problem is - if I start the code for a certain Type with For each-, so I could spare myself trouble with Picking deeper in the code, I will not be able make conditions, that would prevent pointless evaluations for fake triggers.
    
    But you always want to pick as deep and precise as possible. It sounds a bit like you are confusing how triggers works. but maybe if you give an example of what you are trying to do, it might be easier to understand your problem.
nimos100's avatar

nimos100

Member since 23 Sep, 2012

None one is following nimos100 yet!

Trophy Case

  • 12-Year Club
  • Coach One of your tutorials has over 1,000 readers
  • Educator One of your tutorials has over 10,000 readers
  • RTFM Read the fabulous manual
  • Email Verified

Progress

16/44
How to earn trophies