loot / loot.github.io

The website and meta issue tracker.
https://loot.github.io
GNU General Public License v3.0
12 stars 9 forks source link

Update Masterlist-Editing.html #82

Closed pStyl3 closed 3 years ago

pStyl3 commented 3 years ago

Link

pStyl3 commented 3 years ago
<pre><code>{name: Oscuro's_Oblivion_Overhaul.esm, url: [ https://www.nexusmods.com/oblivion/mods/15256 ], req: [{ name: example.esp, display: '[Example Mod](https://www.example.com)', condition: 'version("Oscuro''s_Oblivion_Overhaul.esm", "15.0", ==)' }], tag: [ Actors.Spells, Graphics, Invent, Relations, Scripts, Stats, { name: -Relations, condition: file("Mart's Monster Mod for OOO.esm") or file("FCOM_Convergence.esm") }], msg: [{ type: say, content: Do not clean. "Dirty" edits are intentional and required for the mod to function., lang: eng }]}</code></pre>

@Ortham Is this line still relevant (the one after the first code exampe)? I still would need to update the msg (since I've updated it in the code example above), but I can't get LOOT to recognize it. Once I enter

{name: Oscuro's_Oblivion_Overhaul.esm, url: [ https://www.nexusmods.com/oblivion/mods/15256 ], req: [{ name: example.esp, display: '[Example Mod](https://www.example.com)', condition: 'version("Oscuro''s_Oblivion_Overhaul.esm", "15.0", ==)' }], tag: [ Actors.Spells, Graphics, Invent, Relations, Scripts, Stats, { name: -Relations, condition: file("Mart's Monster Mod for OOO.esm") or file("FCOM_Convergence.esm") }], msg: [{ type: say, content: Do not clean. "Dirty" edits are intentional and required for the mod to function., lang: eng }]}

within the Masterlist (after commenting out the existing entry for - name: 'Oscuro''s_Oblivion_Overhaul.esm'), LOOT gives this error:

An error occurred while parsing the metadata list(s): yaml-cpp: error at line 4432, column 1: end of map not found.

For testing I use the .esm from here, see "Update Files".

sibir-ine commented 3 years ago

It works for me, though I do get that error if I don't indent the entry or add a hyphen like other entries.

pStyl3 commented 3 years ago

Thanks, The missing hyphen was the issue. I've also added german as a translation to the example.

RacerBG commented 3 years ago

Did I read "translation"? :smile:

@pStyl3 Not to be outdone, here is the Bulgarian translation: 'Това е "Образец".'

pStyl3 commented 3 years ago

Did I read "translation"? 😄

@pStyl3 Not to be outdone, here is the Bulgarian translation: 'Това е "Образец".'

While this is only an example that will not find it's way into the masterlists, sure I can add it to this exemplary code piece too, so thanks. 😄 (But this will be the last one I add, otherwise the single line varation of that example code will get unnecessarily long.)

Ortham commented 3 years ago

@Ortham Is this line still relevant (the one after the first code exampe)?

I'm not sure, replacing it with an obvious example like you've done is a good idea just in case it's not.

pStyl3 commented 3 years ago

@Ortham That should be it, do you have any objections for merging this?

pStyl3 commented 3 years ago

Alright, then I will go ahead and merge this PR. Thanks everyone for helping out.