DragonBone causing game not to launch

Discussion in 'Javascript/Plugin Support' started by GriffintheD, Mar 20, 2019.

Thread Status:
Not open for further replies.
  1. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm not sure if this is the right place to post this but I couldn't find anywhere else that fit.

    Anyways, straight to the point. I installed DragonBones stuff from Yanfly so I can has some nice looking bad guys, but when I try to launch the game it gives me one error, "Uncaught ReferenceError: dragonBones is not defined"

    I'm sure the fix is simple, but nothing I've been looking up has been able to help.

    Thanks in advance!

    upload_2019-3-19_15-18-41.png
     
    #1
  2. JtheDuelist

    JtheDuelist Just a dev who actually got a game finished Veteran

    Messages:
    1,152
    Likes Received:
    1,414
    Location:
    RMW Forums, Granvia, or Askr
    First Language:
    English
    Primarily Uses:
    RMMV
    My project had a similar error after it was deployed. Unfortunately, the only thing I could do to fix it was to eliminate Dragonbones all together and use static image versions of the Dragonbones assets. Though for this particular error, did you follow the setup instructions on the plugins page of Yanfly's site? Because it states you have to modify the project's index.html file (with a text editor like Notepad++) a certain way to use it.
     
    #2
  3. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    I'm pretty sure I followed the directions correctly, I edited the Index file and all that, though it's entirely possible I did it wrong. I'm going to try a few things but I'm still stumped.
     
    #3
  4. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,520
    Likes Received:
    959
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Please show a screenshot of your index.html file side-by-side with a screenshot of your folder that contains the DragonBones library files.

    And a screenshot of the full error message from the Console for good measure (press F8 when it crashes to open the Console)
     
    #4
  5. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    A screenshot of the contents of the folder, or a screenshot of the one containing the folder?
     
    #5
  6. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
  7. Nekohime1989

    Nekohime1989 Cat Princess Veteran

    Messages:
    289
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMMV
    Chances are you have stuff in the wrong folder. They go in from root
    ROOT/js/libs/dragonbones
    and for assets themselves they go in
    ROOT/dragonbones_assets
     
    #7
  8. hiddenone

    hiddenone Lurker Extraordinaire Moderator

    Messages:
    1,858
    Likes Received:
    4,494
    First Language:
    english
    Primarily Uses:
    RMMV

    I've moved this thread to Plugin Support. Please be sure to post your threads in the correct forum next time. Thank you.

     
    #8
  9. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    Thank you, and sorry!

    Okay, so where exactly is this ROOT folder? I don't see one in my files?
     
    #9
  10. JtheDuelist

    JtheDuelist Just a dev who actually got a game finished Veteran

    Messages:
    1,152
    Likes Received:
    1,414
    Location:
    RMW Forums, Granvia, or Askr
    First Language:
    English
    Primarily Uses:
    RMMV
    @GriffintheD Root refers the folder the file starts in. This is what the root of a RPG Maker MV project looks like:
    upload_2019-3-19_21-40-54.png
     
    #10
  11. Aloe Guvner

    Aloe Guvner Walrus Veteran

    Messages:
    1,520
    Likes Received:
    959
    Location:
    USA
    First Language:
    English
    Primarily Uses:
    RMMV
    Basically your index.html and where the actual files are has to match.

    In your index.html, you have written "js/libs/dragonbones/dragonBones.js"

    Where is that dragonBones.js file? Is it in that folder that you have written? Show us where the dragonBones.js file is.
     
    #11
  12. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    upload_2019-3-19_18-48-27.png
    I believe this is the file you're referring to?
     
    #12
  13. Nekohime1989

    Nekohime1989 Cat Princess Veteran

    Messages:
    289
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMMV
    ah... I see what you did.
    you only need the dragon bones files in that folder.
    dragonbones.js
    dragonbonesPixi.js

    Move the other stuff back to where that where. ROOT/js/libs is where the libs go only dragonbones libs above go in ROOT/js/libs/dragonbones/

    Another way to make sure your javascript files go is to check index.html the path is listed. And that is actually what matters. if your path is wrong. Then the file simply won't load. No Error either IIRC when I tried to install Dragonbones. You just get Dragonbones Not Defined
     
    #13
  14. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    Okay I think we're making progress but now I'm getting a new problem trying to launch the game.
     

    Attached Files:

    #14
  15. Nekohime1989

    Nekohime1989 Cat Princess Veteran

    Messages:
    289
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMMV
    Congrats you got the script working now we gotta get the textures working! :)
    You most likely have your DragonBones Assets folder in the wrong place. The Root Folder is your game folder where all your custom directories should go. You want your dragonbones assets located there.

    e.g.
    ROOT/dragonbones_assets/
     
    #15
  16. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    So you mean something like this?
    (The game in the files is called "Skyborne" still but I'm aware that game already exists, the name is different I just don't know how to change the file name without it freaking out)
    upload_2019-3-19_20-21-49.png
     
    #16
  17. Nekohime1989

    Nekohime1989 Cat Princess Veteran

    Messages:
    289
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMMV
    yep but the folder is sensitive needs to be dragonbones_assets
    won't be read otherwise.

    P.S. As for changing the game title you do that in system.
     
    #17
    GriffintheD likes this.
  18. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    OH MY GOD MY BABY IS ALIVE AGAIN!! Thank you so much! You and everyone else that helped!
    Oh dear god now I have to see if the actual animations work ;-;

    Oh and I know I can change the name in system, it just doesn't change the name in the files, and if I try renaming the folder it refuses to save

    EDIT: Okay now I'm having another issue but the game is playable. The animations aren't working and it's facing the wrong way
     
    Last edited: Mar 20, 2019
    #18
  19. Nekohime1989

    Nekohime1989 Cat Princess Veteran

    Messages:
    289
    Likes Received:
    107
    First Language:
    English
    Primarily Uses:
    RMMV
    Did you copy and paste the notetags? (those are the text files)
    As for facing the wrong way.
    Toggle Sideview battle. (It's In system)
     
    #19
  20. GriffintheD

    GriffintheD [instert custom title here] Member

    Messages:
    28
    Likes Received:
    5
    First Language:
    English
    Primarily Uses:
    RMMV
    Pretty sure the notetags are correct, it's showing the giant kitsune (the file I'm using) but it's not showing any of its animations
    And I have sideview battle turned on
     
    #20
Thread Status:
Not open for further replies.

Share This Page