Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Luna Engine MV

A script that modifies RPG Maker MV UI easily · By Archeia

Octopack Compatability?

A topic by SLG created Nov 06, 2019 Views: 1,060 Replies: 9
Viewing posts 1 to 3

Any way we can get a compatability patch for use with Olivia's Octopack?
Or better yet, a tutorial guide showing how we Set up LunaMV to work with Octopack, which could be used not only as a reference to apply it to Octopack, but a reference for applying LunaMV to any other custom battle system as well?

Developer (4 edits) (+1)

Hi Dm0X, Please join our Discord Server so fellow users can help you as well. Olivia is compatible with Luna Engine and just knowing the basics of Luna Engine is enough. The biggest challenge is the Actor Shield Display and the Boost Icon Display, in which case here are the YAML file settings:

Actor Shield:

      ActorShield:
        type: Text
        x:
          type: percentage
          value: 110
        y:
          type: percentage
          value: 85
        width:
          type: percentage
          value: 100
        height:
          type: percentage
          value: 100
        anchor:
          x: 1
          y: 1
        fontSize: 14
        text: "${data.currentBreakShield}"
        bind: true
```

Boost Display:

      BattlerBoost:
        type: grid
        x:
          type: fixed
          value: 0
        y:
          type: fixed
          value: 0
        width:
          type: fixed
          value: 48
        height:
          type: fixed
          value: 100
        anchor:
          x: 0
          y: 0
        horizontal: true
        bind: true
        itemList: ${Array(data.storedBP()).fill(Olivia.OctoBattle.BoostPoint.BoostIcon).concat(Array(Olivia.OctoBattle.BoostPoint.BP_MaxStored - data.storedBP()).fill(Olivia.OctoBattle.BoostPoint.EmptyIcon))}
        components:
          BoostIcon:
            type: icon
            x:
              type: fixed
              value: 0
            y:
              type: fixed
              value: 0
            anchor:
              x: 0
              y: 0
            iconSet: IconSet
            iconIndex: ${data}
        template:
          type: FreeLayout
          components:
            - BoostIcon
    contents:
      type: FreeLayout
      components: []
    lunaticItems:
      x:
        type: percentage
        value: 0
      y:
        type: percentage
        value: 0
      anchor:
        x: 0
        y: 0
      width:
        type: percentage
        value: 100
      height:
        type: percentage
        value: 100
      itemList: ${party.members}
      template:
        type: FreeLayout
        x:
          type: percentage
          value: 0
        y:
          type: percentage
          value: 0
        anchor:
          x: 0
          y: 0

then to display add them to components like this for example:

        components:
          - ActorFace
          - ActorHP
          - ActorMP
          - ActorHPGauge
          - ActorMPGauge
          - BattlerStates
          - ActorShield
          - BattlerBoost

Sorry that i reply. But i tried this and it didn´t work. the code is from above.


YAMLException: bad indentation of a mapping entry at line 1048, column 3:
      BattlerBoost:
      ^
    at m (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:11972)
    at _ (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:12070)
    at chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:18228
    at K (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:18381)
    at $ (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:25315)
    at H (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:25966)
    at V (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:26116)
    at t.exports.safeLoad (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/libs/js-yaml.min.js:1:26446)
    at L (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/plugins/LunaEngine.js:14:33188)
    at P (chrome-extension://odlameecjipmbmbejkplpemijjgpljce/js/plugins/LunaEngine.js:14:33300)




i paste this after this code

    lunaticItems:
      itemList: ${party.members}

Developer

Read your error log:

YAMLException: bad indentation of a mapping entry at line 1048, column 3

It says it right there. That you have wrong indentation on that specific line and column. Remember from the documentation stating that YAML is very sensitive to spacing.

Thank you very much  but they say now:

Olivia_AntiPlayerStress.js:331 TypeError: Cannot read property 'components' of undefined
    at e.value (SpriteGrid.js:133)
    at e.value (SpriteGrid.js:123)
    at e.value (SpriteGrid.js:28)
    at e.value (SpriteLunatic.js:67)
    at Window_BattleStatus.s.Window_Selectable.drawLunaticItems (WindowSelectable.js:73)
    at Window_BattleStatus.Oe.s.Window_Base.refreshLunatic (WindowBase.js:144)
    at Window_BattleStatus.refresh (WindowBase.js:122)
    at Window_BattleStatus.Oe.s.Window_Base.setupLuna (WindowBase.js:349)
    at Window_BattleStatus.s.Window_Selectable.setupLuna (WindowSelectable.js:54)
    at Layout.js:186

Developer (1 edit)

I can't help you if you don't show your config files. Did you put components on the right section?

(1 edit)

Hello,


Developer

can you edit this and put it in pastebin or something. It doesn't tell me your indentation and stuff in a whole config file.

Yes. I edit the last post.

(3 edits) (+1)

I'm not too familiar with the specific windows present in the plugin, but from the pastebin, it's clear the problem is caused starting around this section:


If ActorShield and BattlerBoost are their own windows, please reference the Lunatic section of the documentation for the correct structure of a lunatic-window config.


If they're not their own windows, but instead a component of another window, please include them under the correct window at the correct indentation.


From what you've already done, I assume you're trying to add them into BattleStatus, the correct indentation should be this instead: https://pastebin.com/E6p94kRL

Please pay attention to your nesting.