KitsuSenpai's Forum Posts

  • Problem Description

    I found a really old bug in Construct 2, that prevents the user from changing the Layer background color when pasting a colorcode in the property field. Did this never got fixed?

    fldr reported this bug back in early 2014 but the report got closed without comment: Link

    Ashley please look into it.

    Steps to Reproduce Bug

    • Copy a Color Hexcode
    • Pasted it into the "Background color" property field in Layer options

    Observed Result

    The color in the property field changes and you can even edit the color, but the background color doesn't change. When you switch the focus to everything ales and then back to the property field, the color gets reset.

    Expected Result

    The background color should change without problems.

    Operating System and Service Pack

    Windows 10 latest update

    Construct 2 Version ID

    Latest beta build (246)

  • Ashley I don't plan to disable Chromes security for the sake of my app. I only disabled it for testing. I even disabled all addons and closed all tabs beforehand. The app will only work in local network on a smartphone and is for now only for my personal use. Time will tell when and if i'll publish it.

    So don't worry, i'll do my homework

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • The log in Chrome and NWjs prints the same output for Browser.URL and Browser.Domain:

    http://192.168.0.50/
    192.168.0.50[/code:3d8yhejn]
    
    @Ashley That are the remote server files:
    [img="http://i.imgur.com/3dqBoDp.jpg"]
    
    That is the config file in the app dir, it is primarily for setting up the the real config file in appdata:
    [code:3d8yhejn]<?xml version="1.0"?>
    <configuration>
    <configSections>
        <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="MSIAfterburnerRemoteServer.Properties.MSIAfterburnerRemoteServer" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
        </sectionGroup>
        <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
            <section name="MSIAfterburnerRemoteServer.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
        </sectionGroup>
    </configSections>
    <startup><supportedRuntime version="v2.0.50727"/><supportedRuntime version="v4.0"/></startup>
        <userSettings>
            <MSIAfterburnerRemoteServer.Properties.Settings>
                <setting name="Port" serializeAs="String">
                    <value>82</value>
                </setting>
                <setting name="IPAddress" serializeAs="String">
                    <value>*</value>
                </setting>
                <setting name="Key" serializeAs="String">
                    <value>17cc95b4017d496f82</value>
                </setting>
                <setting name="MonitorOnly" serializeAs="String">
                    <value>False</value>
                </setting>
                <setting name="NormalizeXMLResponse" serializeAs="String">
                    <value>True</value>
                </setting>
                <setting name="UseRealtimeOCValues" serializeAs="String">
                    <value>False</value>
                </setting>
            </MSIAfterburnerRemoteServer.Properties.Settings>
        </userSettings>
    </configuration>[/code:3d8yhejn]
    And that is the config of the remote server in appdata:
    [code:3d8yhejn]<?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <userSettings>
            <MSIAfterburnerRemoteServer.Properties.Settings>
                <setting name="Key" serializeAs="String">
                    <value>b3fe4ee9c3c91bd28ad1b8e144498764</value>
                </setting>
                <setting name="MonitorOnly" serializeAs="String">
                    <value>True</value>
                </setting>
                <setting name="NormalizeXMLResponse" serializeAs="String">
                    <value>True</value>
                </setting>
                <setting name="UseRealtimeOCValues" serializeAs="String">
                    <value>False</value>
                </setting>
            </MSIAfterburnerRemoteServer.Properties.Settings>
        </userSettings>
    </configuration>[/code:3d8yhejn]
    I see no possibility to configure the server  
    
    @ChesVCF Thanks for sharing the topic with me, it was exactly that. I disabled the the security in chrome with this command:
    [code:3d8yhejn]chrome.exe --disable-web-security --user-data-dir[/code:3d8yhejn]Now the AJAX request works.
    
    I will try to export my project and test it on my smartphone. I hope it will work than
  • chrome console gave me this, so you were right with your assumption:

    XMLHttpRequest cannot load http://192.168.0.50:82/mahm. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://192.168.0.50' is therefore not allowed access. The response had HTTP status code 401.[/code:35rntqyk]
    The question is, why is nwjs working and chrome not, and how do i grant construct access for the ajax call?
  • i placed the .htaccess file in the directory of msi remote server, but still nothing.

    Why does it work with nwjs but not with any other browser or on my smartphone?

    If i open the ip directly in browser, i'll get the xml output from the server, even on my phone, but not in construct.

    This is how the code looks like:

    i upload the .capx file, MSI Afterburner and the MSI Remote Server, if somebody likes to help me with my problem.

    .capx

    MSI Afterburner

    MSI Afterburner Remote Server

  • Hi, I need your help.

    I try to make a small personal smartphone app, that shows me my pc stats like cpu load and such.

    I use MSI Afterburner and MSI Remote Server for this. The app is working so far in preview, but only in NWjs, in Chrome or on my smartphone with lan preview, the AJAX request fails. I think the problem is, that i dont have "Access-Control-Allow-Origin: *" in php header. But MSI Remote server has no php files.

    Has somebody an idea, how i can get this to work?

  • Is there no NW.js preview support yet?

  • Ok I found the bug with the font-size. If you use "On start of layout" or "On TextBox created" to set the font-size, the behavior resets this setting, so with "Every tick" it is working but wasting resources. But since your last update it's even works with this two too. So it is fixed

    But i don't really get the AutoFontSize option, what exactly is it doing? And a font-size property would be awesome too, so i dont have to use the css action.

    The "Selectable" option was not working before the update, I tested this with every combination i could, but since the update it has the same function as the native "Enabled" property ... so i can not select the text but also can not typing

    The both new properties are working awesome

    Some optional cosmetic request:

    Marge the two border properties, like the outline one to safe some space and replace the description from "0 to disable" to "none to disable" for both. But this is purely cosmetic, the behavior is awesome even without

    The next step would be to add some expressions like "pointer position" and "selected text"

    Keep up the good work, this is one of the best additions for the textbox plugin ever made. Good job bro

  • Awesome behavior, keep up the good work!

    Previously I used the Advanced Textbox Plugin, but this behavior has some features, that I previously had to script with Construct. Especially the Text restriction.

    If you don't mind, I have some feature requests:

    • I disabled the block context menu function in runtime.js, because I needed the context menu in my game, but, i also need the block function in some fields. Is it possible for you to add a property to enable/disable this features?
    • I miss a font size property or did i overlooked it?
    • A disable outline (not border) property would be awesome

    EDIT:

    Set CSS style "font-size" to "32px" isn't working when i use the behavior, is this a bug or do i miss an option?

    And "Selectable" isn't working too ...

  • I think i found a bug in the CSV Plugin:

    [Action:Append a row] is duplicating the whole table

    Example.capx

    Is this normal?

    EDIT:

    OK, it is not [Action:Append a row]...

    Instead [Expression:TableToCSV] is exporting wrong, because [Expression:TableToString] is working fine.

  • Thank you, it work like a charm now. Btw. your Globals plugin is awesome, i use it in every project. Keep up the good work ;D

  • Very nice plugin, im currently using every feature of it ... but i have a problem! GetTimestamp gives me an error, while GetFullTimestamp is working just fine. Can you look into this?

    EDIT: SHA256 gives also an error on use, while the other both work.

  • This is exectly how it should work

    That would be realy awesome Thanks

  • damn

  • You have to write it like this:

    (MathOpIndex = 1) ?VarX1*VarX2 :VarX1/VarX2

    That is a nearly single liner, but you are limited to 2 operations.