0 Favourites

Plugin converter

  • 2018-02-04

    *AddCommonAngleACEs was missing.

    *SetIsRotatable was always false.

    *external-css type set for CSS dependencies.

    *plugin-description can now handle commas in the description.

    *PW: scirra

    http://www.blackhornettechnologies.com/Construct3Stuff/SDK/C2C3AddonConverter_1_0_0_15b.zip

    2017-12-01

    *Further fixes for effect ID.

    2017-11-27

    *Small fix to ensure IDs are unique.

    *add -effect to command line to convert effects - not 100% yet.

    2017-11-25

    *Drawing plugins now supported.

    *It is not possible to migrate any edittime code, so the original author must still do any migration manually. The base methods are included, but only Draw() will have default object drawing code, so the plugin shows something to the user. Other changes may be required to the runtime, due to changes in the C3 drawing mechanism.

    2017-08-12

    *Fixed duplicate variadic placeholder - {...} - bug.

    *Fails if AddFunctionNameParam() detected.

    2017-08-11

    *Added missing variadic placeholder - {...}, if needed.

    2017-08-09

    *Dependencies added.

    2017-06-05

    *Added file-list developer data.

    *Anything with dependencies, common.js code, or unsupported flags will no longer generate any output. This should make it clear that the conversion didn't work.

    2017-05-25

    *Fixed combo-param corruption.

    *Support all 'deprecated' flags.

    *(allow for wrong syntax of ef_none instead of cf_none)

    2017-05-22

    *Fixed bad Expression 'translated-name'.

    *Convert <i> & <b> to new format.

    *Fixed bad property conversion.

    2017-05-20

    *Behaviors added!

    *Now enforces placeholder rules. C3 enforces a 1:1 rule on parameters and placeholders in the DisplayString. I now add any missing ones, and remove any extras. Not ideal, but better than nothing.

    *Now allows deprecated ACEs. Display text is marked as DEPRECATED. Not ideal, but better than nothing.

    *Null Versions are dealt with.

    Still need to deal with code in common.js, and dependencies, but these can be hand edited if needed.

    2017-04-16

    *'Categories' supported.

    *Cleanup - won't create any directory for skipped plugins (-noScirra)

    [Moving lower post to OP]

    2017-04-12

    *Single-quotes are valid when encasing double-quotes.

    *'text' properties must have a 'text' initial-value. C2 didn't enforce this.

    *Decode, but warn of dependencies.

    2017-04-09

    (the password isn't for security, it is just an added step to prevent viruses attaching to the exe)

    Requires: .NET 4.5

    WARNING: this is not meant for casual users. Really, only SDK writers should use this as there is no guarantee it is complete, and if you install a plugin that has any kind of syntax error, you have to wipe the Application cache and/or the Browser cache! This means you loose any projects you've saved in local storage!

    Usage:

    -masterblaster inputDirectory outputDirectory

    This lets you point the tool to one top level directory and it will process all plugins in that directory. (ie: C2/../plugins) Outputs to the output-directory.

    -noScirra -masterblaster inputDirectory outputDirectory

    Same thing but it will skip Scirra plugins. Good to try third-party plugins in your plugin directory.

    inputDirectory outputDirectory

    Processed a single plugin and outputs it to output-directory

    inputDirectory outputDirectory "pluginCategory"

    Processed a single plugin and outputs it to output-directory. Sets the plugin category in plugin.js to the specified value. Must be one of the values specified in the SDK manual.

    No code is migrated, only the properties and ACE definitions. Language mappings are all uniquely identified. No extra (.js) files are added. I'm not sure how to support that yet.

    Use the Visual Studio editor to check all JSON files. It points out errors before you upload them.

    Example:

    C2C3AddonConverter.exe -noscirra -masterblaster "C:\Program Files\Construct 2\exporters\html5\plugins" "C:\C3pluginStagingArea\C3conversions"[/code:2zr321y6]
    [code:2zr321y6]
    C2C3AddonConverter.exe "C:\C3pluginStagingArea\C2originals\bht_smart_random" "C:\C3pluginStagingArea\AutoGen\C3_bht_smart_random" "data-and-storage"[/code:2zr321y6]
    
    [b]Remember: only non-drawing plugins will work (and now behaviors)! Support isn't there yet for drawing plugins (or effects).[/b]
    (Note: I have successfully migrated my Smart Random demo, and my Tic-Tac-Toe (part 1), which uses my tic-tac-toe plugin and two Rex plugins. I have processed many more, but have not tested them).
    
    [OP]
    I am making good progress on a C2 to C3 plugin converter. There are still a lot of holes, so I'm not ready to release anything yet.  Just wanted to let people know. Unfortunately C3 only supports non-drawing plugins, so it won't help most people yet. I'm working on "Rex's" format. He takes some liberties I hadn't counted on. 
    
    (If anyone is desperate for my Smart Random plugin, it is done and working.)
  • Keep up good progress!

  • Thank you!

  • [Moved to OP]

  • I wonder how long till we get the rest of the sdk.

    If it has to wait on the C3 runtime, then there will be some issues.

  • v1.0.0.2 available.

  • Highly recommend this for all those c2 plugins to move their way over to c3. Hopefully those 3d plugins will come on over if not better ones be made.

  • v1.0.0.3 available.

  • Please keep developing!

    My projects have many plugins! This accessory will be very useful to me. Thanks

  • Thanks for working on this, it's very handy for SDK users!

  • I'm 95% done with support for Behaviors. I need feedback from Scirra regarding an issue I found.

  • v1.0.0.4 available.

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • i dont understand

    how to use it

    when i click c2c3addonconverter.exe its only show a black window for few seconds and then closed..

    can u make a simple tutorial for common peolpe?

  • hndradaniel

    The instructions are all in the original post, along with strong warnings that 'common' people should not really be using this. There is no guarantee that it will work, and can cause you to wipe your cache if anything goes wrong, possibly wiping out any games saved to local storage. It is meant to help plugin developers to get 90% of the grunt work done, speeding up conversion.

  • [Bug report]

    1.

    Field "translated-name" of expression in en-US.json will have {0}, {1}, {2} like "Date2UnixTimestamp {0} {1} {2}". (Expression "Date2UnixTimestamp" of C2 plugin has 3 parameters)

    But the field "translated-name" might not have {0}, {1}, {2} (document). Only field "display-text" will embed parameters {0}, {1}, {2},..

    2.

    Converted parameters in field "display-text" is <i>{0}</i>, but it should be [ i]{0}[ /i] ( bbcode )

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)