lucid's Forum Posts

  • I was just about to reply about needing to use scon file. Glad you got it working.

  • macube - we will be making some tutorials and vids, but the main thing is to make sure the zip file and the scon file have the same name. Also, make sure that the scon file isn't in a subfolder in the zip - it should be in the root of the zip.

  • I guess you want your audio files to go through that dialog so they get transcoded?

    Yes, please. Should I submit a new issue? I'm not seeing the previous request compilation so I'm guessing it was closed.

  • macube and captainsteff - that part of the js you were getting rid of is built into the plugin sdk and not something specific to the scml plugin. Are you still having this issue? I imported successfully both an old style and self drawing project in 120, 121, and 122.

    In any case. Please try the latest version and see if it changes anything.

    RELEASE NOTES 10-17-2018

    • Importer now works in C3 by dragging in a zip of your project. The zip and the scon file must have the same base filename (e.g. myProj.zip and myProj.scon)
    • You can drag in either a modular project or an atlas project and the plugin will automatically import the correct way
    • If you have a hybrid project (atlas for images, but also sounds and/or collision boxes), this will also automatically be handled
    • If your project has sounds, the necessary sound playback events will automatically be added
    • You no longer need a separate scml file to import modular projects

    Note : Until I hear back from Scirra on a fix, you will have to manually reimport sounds even though they show up as imported in the project panel. I apologize for the inconvenience.

  • Ashley - Is there an extra step I need to do after importing a sound through the importer API? I get this:

    BossHit_1 I imported manually through C3 and as you can see it creates the main sound with the .wav and .webm subentries.

    The rest I added with

    const soundBlob = await zipFile.ReadBlob(entry); project.AddOrReplaceProjectFile(soundBlob, fileName, "sound");

    When added this way, there are no subentries for different formats. I can preview them in the project panel with the play button, but when I actually run the layout, only the manually imported sound can be played through actions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Hello macube and captainsteff - Sorry for the delay. Was just finishing up an important internal milestone for Spriter 2. I will look into this soon.

  • Cassianno As far as speed concerns, what sagispin said applies. As far as being able to pick the correct instances belonging to the same character, when it imports everything goes into a container together, so when you pick an instance of a part with a condition, all the other parts' instances are also picked.

  • Bertconstanty I don't want to hijack this thread for Spriter plugin (any more than I already have), but I will say it in this thread.

    And I will also upload it to the Construct 3 Addons repository.

  • Got it. Will do.

  • Just a quick update guys. The latest C3 beta addressed all the issues and requests I made to Ashley, but it turns out I forgot one thing, which is the ability to set the animation speed of each sprite. So I've asked if that will require an additional change. If not for that I would have been able to release the update today.

    The good news is everything else I mentioned is working, including the automatic project type import, and automatically doing the hybrid import for you. Also, the import automatically sets the container to wrapped selection mode, so you drag all the sprites together automatically.

    Lastly, another request Ashley said will most likely be filled in the beta following the next stable C3 update, makes it so the automatic creation of the sound playback events will be a definite inclusion as opposed to a 'maybe'. The code is already in the plugin commented out, so I should be able to release it the day of that C3 update.

  • Ashley Is there any way to set an IAnimation's Speed?

  • Ashley - excellent. thanks.

  • First off, thanks for getting all the requests added and bugs fixed so quickly. Everything is working beautifully. The custom import now exceeds the functionality and ease of use it had for C2.

    For new SDK features, please collect a complete list of everything you need then post an issue to GitHub listing them all.

    Was this just for this initial run of trying to get the basics working, or would you generally like for SDK or importer related feature requests to be submitted in this way? (as opposed to through construct3.ideas.aha.io).

    I'll list the features here in case that makes a difference, and so I have easy access to copy paste them to the appropriate place.

    Make first party plugin ACEs and IDs public

    This would be mainly for plugin developers to be able to easily create and create events for built-in object types.

    The needed items would be:

    • The plugin id (for creating an instance)
    • The id for each ACE entry
    • The parameter list for each ACE entry (the id, the type, and the id's for combo items)

    This would allow a ton of flexibility and power to the SDK. The listed items are all that I believe would be necessary, but if it's more feasible to just publish the entire aces.json that would still serve the same function.

    Methods for retrieving instances of a type within a project or scene

    If it's the only possible one, being able to retrieve the instance of a single-global object like the Audio plugin would be immediately useful. For instance, I was going to make the import process automatically setup audio events if the Spriter project contained sound files, but aside from not being able to figure out the combo id's for the Play (by name) action, I have no way of checking if an Audio object already exists in a scene to use that.

    I would imagine that GetFirstInstance or GetInstances for non-single-global object types would be useful down the line, but I don't have any immediate use for that.

  • valerypopoff thanks!

  • captainsteff I will be putting the c3runtime on the backburner for now. Ashley recommended using the SDK as a template for a rewrite of the code. That will take some time, as the plugin is several thousand lines long. I'd rather take the time to do it correctly, rather than rush through it, leaving it difficult to maintain moving forward.