blackhornet's Forum Posts

  • But I did, it was in the template:

    "aceCategories": {

    "custom": "Smart Random"

    },

    Edit: full file:

    {

    "languageTag": "en-US",

    "fileDescription": "Strings for BHT_Smart_Random.",

    "text": {

    "plugins": {

    "BHT_Smart_Random": {

    "name": "BHT Smart Random",

    "description": "Generates non-repeating integers in a range with a guaranteed non-repeat threshold.",

    "help-url": "http://blackhornettechnologies.com/construct2/plugins/BHTSmartRandom.aspx",

    "properties": {

    "start":{

    "name":"Start",

    "desc":""

    },

    "end":{

    "name":"End",

    "desc":""

    },

    "threshold":{

    "name":"Repeat threshold",

    "desc":""

    }

    },

    "aceCategories": {

    "custom": "Smart Random"

    },

    "conditions": {

    },

    "actions": {

    "randomize": {

    "list-name": "Randomize",

    "display-text": "Randomize the data.",

    "description": "Given the start and end settings, start the randomization."

    },

    "new": {

    "list-name": "New",

    "display-text": "Generate unique random numbers in the range {{0}-{1}} (inclusive), that will not repeat for {2} value(s).",

    "description": "Generate with new settings.",

    "params":{

    "start": { "name":"Start", "desc":"The initial value to start with."},

    "end": { "name":"End", "desc":"The final value to end on."},

    "threshold": { "name":"Threshold", "desc":"The number of values that must be enforced to be unique when the cycle repeats."}

    }

    }

    },

    "expressions": {

    "next": {

    "description": "Return the next random value within the range specified.",

    "translated-name": "Next"

    },

    "start": {

    "description": "Return the start of range value.",

    "translated-name": "Start"

    },

    "end": {

    "description": "Return the end of range value.",

    "translated-name": "End"

    },

    "threshold": {

    "description": "Return the threshold value.",

    "translated-name": "Threshold"

    },

    "peek": {

    "description": "Return the next value but don't remove it.",

    "translated-name": "Peek"

    }

    }

    }

    }

    }

    }

  • Still have the following, but I think this is a forced-case issue.

    [LANG] Failed to find 'en-US' string plugins.bht_smart_random.aceCategories.custom'

    I have:

    SDK.Lang.PushContext("plugins.BHT_Smart_Random");

    If I switch to:

    SDK.Lang.PushContext("plugins.bht_smart_random");

    then the 'custom' error goes away, but all my other strings fail.

  • Can't it print out which one it's looking for? I'm struggling to find which one is missing.

    Edit: sorry, forgot to check console log. There are 7 errors, so something fundamental went wrong. I'll need to investigate.

  • So I got my addon to load, now on restart I'm getting:

    Error report information

    Type: unhandled rejection

    Reason: Error: category language string missing for '[???]'

    Construct 3 version: r15

    URL: https://editor.construct.net/index.html

    Date: Tue Apr 04 2017 10:17:02 GMT-0700 (Pacific Daylight Time)

    Uptime: 4.5 s

    Platform information

    Browser: Chrome

    Browser version: 57.0.2987.133

    Browser engine: Blink

    Browser architecture: 32-bit

    Context: webapp

    Operating system: Windows

    Operating system version: 10

    Operating system architecture: 64-bit

    Device type: desktop

    Device pixel ratio: 1

    Logical CPU cores: 6

    User agent: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

    WebGL information

    Version string: WebGL 2.0 (OpenGL ES 3.0 Chromium)

    Numeric version: 2

    Supports NPOT textures: yes

    Vendor: Google Inc.

    Renderer: ANGLE (AMD Radeon HD 6570 Direct3D11 vs_5_0 ps_5_0)

    Major performance caveat: no

    Maximum texture size: 16384

    Point size range: 1 to 1024

    Extensions: EXT_color_buffer_float, EXT_disjoint_timer_query_webgl2, EXT_texture_filter_anisotropic, OES_texture_float_linear, WEBGL_compressed_texture_s3tc, WEBGL_debug_renderer_info, WEBGL_debug_shaders, WEBGL_lose_context

  • I have a new error condition you can check for. If the c3addon file has no files (ie: user zipped the directory, not just the files), then nothing is reported.

    Also the GUI text extends beyond the dialog if the URLs are long (my urls always break the addon dialog ).

  • I was able to install the example.

  • Several things:

    1) Pressing Cancel on the Install addon dialog reports: Addon installed, Successfully installed the addon... Clearly this wrong.

    2) There needs to be some kind of feedback other than "Failed to install the addon"

    3) Yikes, this painful. I started with a fairly small plugin, but there are so many fiddly things to add across multiple files, it's not easy to do. I also never did succeed, as there is some kind of error, but I don't know what it is. I did find several issues by using an online JSON validator, so that helped me, but there is no feedback on what the remaining error is.

    It definitely seems like this could be automatable. I'd put my hand up, but I don't want to waste my time if someone else is already doing this.

    How can we download plugins? An important part of plugin development is looking at how the built-in plugins work. Are you going to provide some way to look at the built-in plugins?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • OK, got it. Thank you.

  • Ashley Can you provide an example of the C3 SpriteFont JSON 'Spacing data' so I can update my generator? Thanks. (I wasn't able to figure it out from your blog post.)

  • Ashley

    But the frustrating thing is, the engines actually support gravity as a vector. You've purposely chosen to ignore the one dimension in C2/C3. (I asked for this feature some time ago, and even altered the Physics behaviour to make sure it was easy to do). It would seem like C3 provides the perfect opportunity to introduce gravity as a vector (or angle if that makes things easier), as it should be.

  • Put all objects into a Family and move the Physics behaviour there. Then you can pick anything by UID and apply the impulse.

  • I am seeing odd behaviour in Chrome. It gives an error but also downloads at the same time. I will have my service provider investigate.

  • I'd like to see the original 'comma' separator allowed for dimensions. The new format is 'x', but all tutorials and current users are used to using a comma. Seems like an easy addition. Even if it is substituted to the new format, allow it for data entry.

  • function.Call("get_string", parameter)