Save Menu

● ARCHIVED · READ-ONLY
Started by BCj 10 posts View original ↗
  1. Hi,


    I have two more quesions.


    a) How can I add playtime + location on the save menu? I tried taking the example from the Ys demo, but it gave me errors.


    B) My characters are standing with one foot forward instead of their 'standing straight' pose. I found my piece of code in the Factory demo, but I'm not sure what value I should change:

    Spoiler
    return result unless header
    header[:characters].each_with_index do |data, i|


    x = 366


    y = 48


    bitmap = Cache.character(data[0])


    cw = bitmap.width / 12


    ch = bitmap.height / 8


    n = data[1]


    result.push(


    ["$bitmap[Characters, #{data[0]}]", [x+i*47, y+1], 255, [(n%4*3+1)*cw - 10, (n/4*4)*ch, cw + 27, ch + 27]]
    Question__.png
  2. Which script are you using for save menu?
  3. Lunatic config Save Menu (for the characters + the save file number the 1/2/3 etc) + configuration save menu.


    And I have added this in Lunatic Backgrounds


    module SaveMenu


    BACKGROUND = [


    ["$bitmap[system, \"SaveMenu\"]", 255, 0],


    Other than that I'm using YEA Menu, not sure if thta has any influence?
  4. Can you try using CP/Neonblack's instead? It's in the complete script list :)
  5. Hmm I checked it out but it's not quite what I want...


    Is there no way to add the things that I want to my current lunatic config?
  6. You have to edit it configuration wise (the final fantasy demo shows how it's done), it's just like Luna Engine and does these things automatically :o


    You can use lunatic but I'd have to poke Yami for some confirmation.
  7. finally my net went back!

    So after investigating Evileagles menu and asking Yami for some confirmation, this is how it looks like:

    3EIUia4.png

    Code:
        def self.user_save_text(index, contents, enable)      result = []      alpha = enable ? 255 : 128      header = DataManager.load_header(index)      result = [        ["#{index+1}",           [164, 4], [120, 0], [255, 255, 255], ["VL Gothic", 20, false, false], [66, 33, 49,alpha]],      ]      return result unless header      #---------------------------------------------------      # Show Characters      #---------------------------------------------------      header[:characters].each_with_index do |data, i|        x = 356        y = 48        bitmap = Cache.character(data[0])        cw = bitmap.width / 12        ch = bitmap.height / 8        n  = data[1]        result.push(          ["$bitmap[Characters, #{data[0]}]", [x+i*47, y+1], 255, [(n%4*3+1)*cw - 10, (n/4*4)*ch, cw + 20, ch + 20]]        )      #---------------------------------------------------      # Show Playtime      #---------------------------------------------------      header[:playtime_s]        result.push(["#{header[:playtime_s]}",           [130, 45], [150, 0], [255, 255, 255, alpha], [Font.default_name, Font.default_size, Font.default_bold, Font.default_italic]],        )      #---------------------------------------------------      # Show Location      #---------------------------------------------------      data = DataManager.get_savefile_data(index)      luna_map_name = data[:map].display_name          result.push(        [luna_map_name, [380, 12], [400, 0], [255, 255, 255], ["VL Gothic", 20, false, false], [66, 33, 49,alpha]],        )        end      result    end  endend
  8. Thank you :)
  9. Sorry for the doublepost, but it gives me an error on line 81: Can't convert symbol into Integer.


    Line 81 is: luna_map_name = data[:map].display_name


    My maps do all have a name, so not sure what is happening.
  10. Ok I just updated the code, I copied the wrong one for some reason.