DMV Map Buttons

● ARCHIVED · READ-ONLY
Started by ?????? 130 posts Page 3 of 7 View original ↗
  1. Is there a way to disable tapping/clicking on the map menu icons while an event is running (or messages active)? I seem to get an erorr if any of the icons are tapped/clicked on during said situations.

    More specifically, when I close the menu. The error that is given is:

    TypeError
    Cannot read property 'bitmap' of undefined
  2. That is a bug I have fixed in the latest unreleased version. When I do release my updates, the new version will fix that :)
  3. I hope, it will have switch, so..

    when cutscene, i can hide it :3
  4. It will also have the ability to hide buttons. :)
  5. Randomly the buttons have all become black. I disabled all plugins I added since it last worked and they are still black on test
  6. I have no idea.. maybe something to do with a black iconset being used?

    Are any error messaages for the script popping up on the console? (F8 in game to access)
  7. ■ ᴆᴀřᴋ ᴆᴈᴋᴉᴦᴀ ■ said:
    I have no idea.. maybe something to do with a black iconset being used?

    Are any error messaages for the script popping up on the console? (F8 in game to access)
    I wonder if it has anything to do with the size of my icon set? it's 16,000 x 512. Icons work normally everywhere else with no issues (it's so big because its a collection of every icon I had from ace. every time I got more I combined them onto one sheet and it grew. it is my "messing around experimenting icon sheet)\

    edit: yes, it seems like the size of the icon sheet is causing it from the console menu
  8. Can you screenshot the console and its errors for me? :)
  9. @Bernkastel - you said your iconset was all old ace icons? are they in a 32x32 size?

    If not, you would need to change the values show below;

    var bw = 32, bh = 32, button = new Sprite_Button();to whatever values you are using.

    These lines can be found within my core plugin at line 278..

    That is the only reason i can think of for you getting those notifications. :/
  10. ■ ᴆᴀřᴋ ᴆᴈᴋᴉᴦᴀ ■ said:
    @Bernkastel - you said your iconset was all old ace icons? are they in a 32x32 size?

    If not, you would need to change the values show below;

    var bw = 32, bh = 32, button = new Sprite_Button();to whatever values you are using.

    These lines can be found within my core plugin at line 278..

    That is the only reason i can think of for you getting those notifications. :/
    My icon set is exactly 512 x 18,016. (it WAS 18,000 before a min ago but fixing it to 18,016 didn't seem to fix it.)

    the icon set is now 32x32 with the same result
  11. He means the size of each icon. In Ace, each icon was 24 x 24. In MV they are 32 x 32.
  12. mlogan said:
    He means the size of each icon. In Ace, each icon was 24 x 24. In MV they are 32 x 32.
    yes, each icon is 32 x 32 for a total size of 512 x 18,016
  13. with those iconset dimentions though it should just show a cut up icon image instead of pure black..

    Can you change the whole function in my core script (found at the lines stated previous) to this one, and then show me the new console printouts :)

    Code:
      $.createIconButton = function(icon1, icon2, parent) {    var bw = 32, bh = 32, button = new Sprite_Button();    button.bitmap = ImageManager.loadSystem('IconSet');    var cx = icon1%16*bw, cy = Math.floor(icon1/16)*bh;    var hx = icon2%16*bw, hy = Math.floor(icon1/16)*bh;    console.log('Cold: ['+cx+','+cy+'] '+'Hot: ['+hx+','+hy+']');    button.setColdFrame(cx, cy, bw, bh);    button.setHotFrame(hx, hy ,bw, bh);    if (parent != undefined && parent.addChild){      parent.addChild(button);    }    button.visible = true;    return button;  };
  14. ■ ᴆᴀřᴋ ᴆᴈᴋᴉᴦᴀ ■ said:
    with those iconset dimentions though it should just show a cut up icon image instead of pure black..

    Can you change the whole function in my core script (found at the lines stated previous) to this one, and then show me the new console printouts :)

    $.createIconButton = function(icon1, icon2, parent) { var bw = 32, bh = 32, button = new Sprite_Button(); button.bitmap = ImageManager.loadSystem('IconSet'); var cx = icon1%16*bw, cy = Math.floor(icon1/16)*bh; var hx = icon2%16*bw, hy = Math.floor(icon1/16)*bh; console.log('Cold: ['+cx+','+cy+'] '+'Hot: ['+hx+','+hy+']'); button.setColdFrame(cx, cy, bw, bh); button.setHotFrame(hx, hy ,bw, bh); if (parent != undefined && parent.addChild){ parent.addChild(button); } button.visible = true; return button; };
    I blanked out an error that had nothing to do with your pluggin as to not make it confusing (I forgot to turn it off like last time)
  15. ok, it seems to be crashing when its registering the 8th button icon - did you ever change the default settings? by default, they should be -1 for all unused buttons x and y positions
  16. ■ ᴆᴀřᴋ ᴆᴈᴋᴉᴦᴀ ■ said:
    ok, it seems to be crashing when its registering the 8th button icon - did you ever change the default settings? by default, they should be -1 for all unused buttons x and y positions
    yes, I have two unused buttons and they both say 

    -1, -1, 0, 0

    null
  17. ok this is strange as anything :/

    Could you upload a project for me that replicates the issue? I only need what you send to contain the js folder and the iconset image :)