skelooth's Forum Posts

  • This is going to kill. I just switched everything out to arrays.

    The capx is already kinda big with a lot of files, but I'm stuck.

    The problem is on the event sheet "commlink"

    On buttoncommlink press, it calls create data from the c2 data editor then calls my function "open dialog" right below.

    Open dialog just needs to be able to read a value out.... that's, all. -_- I do not have any idea of why it's not working

    Oh damn, it's too big to upload here

  • I even bought the c2 data editor out of desperation....

    here is all the relevant code using nothing but the functions given by the c2 data editor! but again it works fine in a blank object. -_-

    In this example, plundermoon0 is the key in a dictionary that c2dataeditor functions load... asjson still works as normal. I'm kinda losing my mind

  • Thanks Tom, but I was so upset I will never buy another product from scirra again.

    ...

    just joking, I love you guys and your work. Thanks!

  • I've been going in circles trying to figure out why dictionary objects do not work in my project (but work fine in blank projects).

    ALL dictionary values look okay in chrome browser debug and in construct2 native debugger

    dictionary.asjson() works fine as well and shows all values,

    but dictionary.haskey and dictionary.get do not work at all and only return 0 and I have no idea why.

    Here is all of the relevant code from my project:

    http://imgur.com/a/ntsNL

    It's messy because I've spend the last 8 hours changing random things, commenting things out, and pumping out values to try and figure out why "haskey" and "get" don't work on my dictionaries, but it works fine in a new project. Obviously I need it to work in this project and I have no clue what's going wrong.

    If you look I also had to make buffer variables to hold on to the parameters because the parameters DISAPPEAR!!!!! if I try to use them in a sub event. I am completely not understanding scope or how this works or something.

  • Went to buy the C2 data editor and I get an error (below). This happens when clicking "go to payment" on the shopping cart view.

    Also, things never leave the cart until I manually remove them, even after purchasing and redeeming.

    Server Error in '/' Application.
    
    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 
    
    Exception Details: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    
    Source Error: 
    
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    
    Stack Trace: 
    
    [ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index]
       System.ThrowHelper.ThrowArgumentOutOfRangeException() +72
       NewStore_Checkout.UnpermittedCurrLooper(Object sender, RepeaterItemEventArgs e) +391
       System.Web.UI.WebControls.Repeater.OnItemDataBound(RepeaterItemEventArgs e) +111
       System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +138
       System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +9517195
       System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +61
       System.Web.UI.WebControls.Repeater.DataBind() +50
       NewStore_Checkout.Page_Load(Object sender, EventArgs e) +3443
       System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +51
       System.Web.UI.Control.OnLoad(EventArgs e) +92
       System.Web.UI.Control.LoadRecursive() +54
       System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +772
    
    Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.0.30319.34237[/code:mgn1oo4o]
  • Yeah, things are changing, and they're not going back. Don't worry, embrace. You're 10 years younger than me, you should be more tech savvy than me

  • Well, I google FU'd, it looks like there are no clear requirements to be listed on the humblestore, and can't find any instances of games being rejected.

  • Very cool! Thanks all!

  • Follow up, sorry I'm not at a pc with c2 currently,

    How do I "pick" the dictionary object? If I have only the target instance picked, will C2 be able to figure out that the dictionary I'm referencing is the one contained in the picked sprite?

  • Is this possible?

    So, for example, what if I wanted each created "MySprite" to have a defaulted set of values in its own array instance? is this possible? Can These things maybe be put into the "container" functionality?

    Thanks!

  • Have you used windows 8? because that would explain a lot of where software is moving. Closing/freezing applications is handled by the OS in the "metro" part of windows.

    Sometimes in windows the same thing happens, it only pretends to let you close software. For example, when you close steam, utorrent, chrome, etc, they still have services running either in the taskbar or in the "services" dialog.

  • I have a maybe stupid follow up question that could probably be easier by google-fu, but

    What are the requirements to be listed on something like the humble bundle store? Is there a review process of sorts or is it more open? What types of road blocks and requirements can I anticipate?

    Eclipse might be the closest you can come, but PHP is a programming language. It's really not much different than C2. C2 is just a visual programming language.

    In C2 you might put something like

    [Button click] - > set text

    in PHP you might write something like

    if ( $clicked == true ) { $something= "newtext"; }

    Eclipse would help with syntax completion, but most editors do that. They lie when they say C2 isn't programming. It's just visual you are a programmer and didn't even know it.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads

    I Know how code a bit but where should I put the code to export it to .php file?

    I used microsoft office word but it exported to .htm (which is useless since php needs .php file to execute code in HTML).

    Thanks in advance.

    Wait, what? You do not want to use Microsoft word to write PHP code. I recommend looking into the following IDES: Komodo Edit, Sublime Text, Notepad++, or Eclipse, you may benefit from following along with a brief tutorial on building websites with PHP as well.

    The extension of the file matters less than the program that "opens" it. You could create a file named index.html that executes PHP code using htaccess or apache config.

  • Thanks again for all of your help and advice OddConfection it is appreciated! Given enough focus and dedication I'm still months away, but these are all great things to know and keep in mind!