tatogame's Recent Forum Activity

  • Beautiful!

  • Problem Description

    "StringValue" Method of "XML" plugin doesn't work properly on IE.

    In the runtime.js of xml plugin (row 270) actually Construct use this method

    						
    			if (!result)
    				ret.set_string("");
    			else if (this.runtime.isIE)
    				ret.set_string(result.nodeValue || "");
    			else
    				ret.set_string(result.stringValue || "");
    [/code:2p5lwknn]
    But The nodeValue property of XML elements is always null, because the element content is actually stored within text nodes inside the element. If the content is simple enough, you can do something like [i]result.firstChild.nodeValue[/i] but i personally prefer the [url=http://help.dottoro.com/ljmmmksq.php]nodeTypedValue[/url] method. 
    Actually, I've modified the code as
    [code:2p5lwknn]
    			if (!result)
    				ret.set_string("");
    			else if (this.runtime.isIE)
    				ret.set_string(result.nodeTypedValue || ""); //Workaround by RisingPixel
    			else
    				ret.set_string(result.stringValue || "");
    [/code:2p5lwknn]
    And it works!
        
    [b]Attach a Capx[/b]
    I can't upload my full project at this moment, but i can attach a screenshot of the debugger's precise line [url=http://imgur.com/8aCx4Er]http://imgur.com/8aCx4Er[/url]
    If you need, I can make a custom .capx later
    
    [b]Steps to Reproduce Bug[/b]
    [ul]
        [li] Create a multi-level XML with some text and number value
        [/li][li] Use XMLPlugin.StringValue('/yournode/yourchildnode") in a console.log or in a textbox[/li][/ul]
        
    [b]Observed Result[/b]
     Returns nothing...
        
    [b]Expected Result[/b]
    Returns some text
        
    [b]Affected Browsers[/b]
    [ul]
        [li] Chrome: (NO)
        [/li][li] FireFox: (NO)
        [/li][li] Internet Explorer: (YES)[/li][/ul]
        
    [b]Operating System and Service Pack[/b]
    Windows 8.1 with Internet Explorer 11
        
    [b]Construct 2 Version ID[/b]
    Construct R200 64bit with Business license
  • I think it would be better one effect.fx file each effect than an unique big "else if" file... anyway thanks for sharing

  • Gigatron You can also look some inspirational stuff in http://shadertoy.com/

  • good work! You will release it as a downloadable construct 2 effect?

  • You say right! Sometimes Microsoft gives free account xD (BizSpark, YouthSpark... if you are a student or a startup... it's free!) https://www.dreamspark.com/student/

    Once it was annual subscription, now it's one time registration payment <img src="{SMILIES_PATH}/icon_e_wink.gif" alt=";)" title="Wink">

  • Windows App store is one-time registration payment of $19 for individuals and $99 for companies

    Windows App Store is actually free...

  • I'm using this https://github.com/pipwerks/scorm-api-wrapper with some javascript hardcoded stuff... and it works <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

  • Any updates?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I'm not so sure that this

    Is the best way to make an easy level editor... How you define the (eventually) custom prop of a cell? Ex: custom sound, custom tile image, custom life value etc...

    Also the image-animation-frame trick definitely isn't a best practice... why not use external files like .json? You can make it with a custom internal editor or with software like Tiled

  • eli0s I've just posted it

    Maybe anata can add it on his official plugin.

  • There are some performance measurements on that site (ops/sec)... dunno how much objectivity it is, "Never ask a barber if you need a haircut."

    However I've profiled sometimes the C2 js and jQuery isn't the problem

tatogame's avatar

tatogame

Early Adopter

Member since 21 Jan, 2012

Twitter
tatogame has 1 followers

Connect with tatogame

Trophy Case

  • 12-Year Club
  • Jupiter Mission Supports Gordon's mission to Jupiter
  • Forum Contributor Made 100 posts in the forums
  • Regular Visitor Visited Construct.net 7 days in a row
  • RTFM Read the fabulous manual
  • Email Verified

Progress

17/44
How to earn trophies