MV Help with Iavra's Localization Plugin?

The event and json file that I'm experimenting with look like this:
Spoiler: Event page
캡처.JPG

Spoiler: .json file
캡처2.JPG

And I'm starting to think that it'll be way too confusing for me to write all the dialogues looking at this.
I think I'll lose track of what I am writing in the middle of a dialogue.
Is there a better way to do this?
You have to try setting some kind of rules/format/categories for your .JSON file so that it becomes easier to maintain and add new stuff later. Expect the file to reach the 5-7k lines or even more for an 6-8 hours game.
I highly recommend using formatters/validators like https://jsonlint.com/ to check for mistakes and ease of read.

Here I give you a live example of what I mean (some of the stuff taken from my current game):
Spoiler
{ "commands": { "new_game": "New Story", "continue": "Continue", "options": "Options", "shutdown": "Close", "game_end": "Exit", "save": "Journal", "inventory": "Inventory", "to_title": "To Title", "cancel": "Return", "item": "Items", "key_item": "Key Items", "fight": "Fight", "escape": "Escape", "attack": "Attack", "guard": "Guard", "skill": "Skill" }, "options": { "all": "All", "general": "Gameplay Settings", "audio": "Audio Configuration", "visual": "Video Options", "controls": "Controls", "exit": "Return", "always_dash": "Always Dash", "save_message": "Write to which file?", "load_message": "Read from which file?", "file": "File", "master_volume": "Master Volume", "bgm_volume": "BGM Volume", "bgs_volume": "BGS Volume", "se_volume": "SE Volume", "me_volume": "ME Volume", "vo_volume": "VO Volume", "remember_command": "Remember Command", "language": "Language", "message_speed": "Message Speed", "message_instant": "Instant", "quest_window": "Objective Window", "fullscreen": "Fullscreen", "monitor_sync": "Monitor FPS Sync", "animated_tiles": "Animated Tiles" }, "items": [ {"n": "Apple", "d": "This is an apple! Yummy!"}, {"n": "Orange", "d": "I don't like oranges."}, {"n": "(empty)", "d": "(empty)"}, {"n": "(empty)", "d": "(empty)"} ], "maps": { "house": "House", "school": "School", "park": "Park" }, "disclaimer": [ "This is a work of fiction.<br>Names, characters, places and incidents are either products of<br>the author's imagination or are used fictitiously.<br>Any resemblance to actual events or locales or persons, living or<br>dead, is purely coincidental." ], "tutorial": { "movement": "\\c[1]Controls\\c[0]<br>> Movement: \\I[1395] / \\I[1377] / \\I[1378]<br>> Confirm: \\I[1395] / \\I[1366] / \\I[1367]<br>> Cancel/Menu: \\I[1396] / \\I[1365]" }, "scenes": { "event_1": [ "Welcome to my game!", "This is test text", "More teeest!" ], "event_2": [ "This is another event!!!", "This is the second event of the story!!! Below there is a branching path...", [ [ "Branch 1", "Nice!! You chose branch 1!!" ], [ "Branch 2", "Awwww!! You chose branch 2 :(" ] ] ] }, "random_npcs": { "john": [ "Hello there, traveler!" ], "king": [ [ "I'm the king baby!" ], [ "Now that you know that. Kiss my feet!" ] ] } }

Remember to make the most use of {} and [] containers and you should be (mostly) fine ;D
It's a lot of work, I know. But trust me, it will pay off in the end and you will be thankful you put in the work!

Thank you iavra for making this awesome plugin btw!
You have to try setting some kind of rules/format/categories for your .JSON file so that it becomes easier to maintain and add new stuff later. Expect the file to reach the 5-7k lines or even more for an 6-8 hours game.
I highly recommend using formatters/validators like https://jsonlint.com/ to check for mistakes and ease of read.

Here I give you a live example of what I mean (some of the stuff taken from my current game):
Spoiler
{ "commands": { "new_game": "New Story", "continue": "Continue", "options": "Options", "shutdown": "Close", "game_end": "Exit", "save": "Journal", "inventory": "Inventory", "to_title": "To Title", "cancel": "Return", "item": "Items", "key_item": "Key Items", "fight": "Fight", "escape": "Escape", "attack": "Attack", "guard": "Guard", "skill": "Skill" }, "options": { "all": "All", "general": "Gameplay Settings", "audio": "Audio Configuration", "visual": "Video Options", "controls": "Controls", "exit": "Return", "always_dash": "Always Dash", "save_message": "Write to which file?", "load_message": "Read from which file?", "file": "File", "master_volume": "Master Volume", "bgm_volume": "BGM Volume", "bgs_volume": "BGS Volume", "se_volume": "SE Volume", "me_volume": "ME Volume", "vo_volume": "VO Volume", "remember_command": "Remember Command", "language": "Language", "message_speed": "Message Speed", "message_instant": "Instant", "quest_window": "Objective Window", "fullscreen": "Fullscreen", "monitor_sync": "Monitor FPS Sync", "animated_tiles": "Animated Tiles" }, "items": [ {"n": "Apple", "d": "This is an apple! Yummy!"}, {"n": "Orange", "d": "I don't like oranges."}, {"n": "(empty)", "d": "(empty)"}, {"n": "(empty)", "d": "(empty)"} ], "maps": { "house": "House", "school": "School", "park": "Park" }, "disclaimer": [ "This is a work of fiction.<br>Names, characters, places and incidents are either products of<br>the author's imagination or are used fictitiously.<br>Any resemblance to actual events or locales or persons, living or<br>dead, is purely coincidental." ], "tutorial": { "movement": "\\c[1]Controls\\c[0]<br>> Movement: \\I[1395] / \\I[1377] / \\I[1378]<br>> Confirm: \\I[1395] / \\I[1366] / \\I[1367]<br>> Cancel/Menu: \\I[1396] / \\I[1365]" }, "scenes": { "event_1": [ "Welcome to my game!", "This is test text", "More teeest!" ], "event_2": [ "This is another event!!!", "This is the second event of the story!!! Below there is a branching path...", [ [ "Branch 1", "Nice!! You chose branch 1!!" ], [ "Branch 2", "Awwww!! You chose branch 2 :(" ] ] ] }, "random_npcs": { "john": [ "Hello there, traveler!" ], "king": [ [ "I'm the king baby!" ], [ "Now that you know that. Kiss my feet!" ] ] } }

Remember to make the most use of {} and [] containers and you should be (mostly) fine ;D
It's a lot of work, I know. But trust me, it will pay off in the end and you will be thankful you put in the work!

Thank you iavra for making this awesome plugin btw!
Thanks a lot!!!
This will be really handy. 🙂
You have to try setting some kind of rules/format/categories for your .JSON file so that it becomes easier to maintain and add new stuff later. Expect the file to reach the 5-7k lines or even more for an 6-8 hours game.
I highly recommend using formatters/validators like https://jsonlint.com/ to check for mistakes and ease of read.

Here I give you a live example of what I mean (some of the stuff taken from my current game):
Spoiler
{ "commands": { "new_game": "New Story", "continue": "Continue", "options": "Options", "shutdown": "Close", "game_end": "Exit", "save": "Journal", "inventory": "Inventory", "to_title": "To Title", "cancel": "Return", "item": "Items", "key_item": "Key Items", "fight": "Fight", "escape": "Escape", "attack": "Attack", "guard": "Guard", "skill": "Skill" }, "options": { "all": "All", "general": "Gameplay Settings", "audio": "Audio Configuration", "visual": "Video Options", "controls": "Controls", "exit": "Return", "always_dash": "Always Dash", "save_message": "Write to which file?", "load_message": "Read from which file?", "file": "File", "master_volume": "Master Volume", "bgm_volume": "BGM Volume", "bgs_volume": "BGS Volume", "se_volume": "SE Volume", "me_volume": "ME Volume", "vo_volume": "VO Volume", "remember_command": "Remember Command", "language": "Language", "message_speed": "Message Speed", "message_instant": "Instant", "quest_window": "Objective Window", "fullscreen": "Fullscreen", "monitor_sync": "Monitor FPS Sync", "animated_tiles": "Animated Tiles" }, "items": [ {"n": "Apple", "d": "This is an apple! Yummy!"}, {"n": "Orange", "d": "I don't like oranges."}, {"n": "(empty)", "d": "(empty)"}, {"n": "(empty)", "d": "(empty)"} ], "maps": { "house": "House", "school": "School", "park": "Park" }, "disclaimer": [ "This is a work of fiction.<br>Names, characters, places and incidents are either products of<br>the author's imagination or are used fictitiously.<br>Any resemblance to actual events or locales or persons, living or<br>dead, is purely coincidental." ], "tutorial": { "movement": "\\c[1]Controls\\c[0]<br>> Movement: \\I[1395] / \\I[1377] / \\I[1378]<br>> Confirm: \\I[1395] / \\I[1366] / \\I[1367]<br>> Cancel/Menu: \\I[1396] / \\I[1365]" }, "scenes": { "event_1": [ "Welcome to my game!", "This is test text", "More teeest!" ], "event_2": [ "This is another event!!!", "This is the second event of the story!!! Below there is a branching path...", [ [ "Branch 1", "Nice!! You chose branch 1!!" ], [ "Branch 2", "Awwww!! You chose branch 2 :(" ] ] ] }, "random_npcs": { "john": [ "Hello there, traveler!" ], "king": [ [ "I'm the king baby!" ], [ "Now that you know that. Kiss my feet!" ] ] } }

Remember to make the most use of {} and [] containers and you should be (mostly) fine ;D
It's a lot of work, I know. But trust me, it will pay off in the end and you will be thankful you put in the work!

Thank you iavra for making this awesome plugin btw!
I'm testing with your current game codes to see how I can make good use of {} and []
and I keep getting 'undefined' when I test play the game.
I just copied and pasted your code from the first '{' to the last '}' and I checked if it's valid by JSONLint.
I put the events like this:
Spoiler: EVENTS
캡처.JPG

I tested more and I think [] is causing the error.
Do you know why it's not working? 🙁
#{scenes.event_1.0} //First dialog of the scene
#{scenes.event_1.1} // 2nd..
#{scenes.event_1.2} // 3rd...

and

#{scenes.event_2.3.0.0} //(This one you place in Show 1st Choice Text
#{scenes.event_2.3.0.1} //This is the text inside the 1st Choice Branch.

#{scenes.event_2.3.1.0} //(This one you place in Show 2nd Choice Text
#{scenes.event_2.3.1.1} //This is the text inside the 2nd Choice Branch.


If you want to show off you can assign a variable and increase it automatically for each dialog. Like...

Line A = 0 //Line A is Variable ID: 50
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}

For items:
Name (ID1): #{items.0.n}
Description (ID1): #{items.0.d}

I hope that helped lol

PS: I recommend changing "event_1" name to some wording that becomes easier to identify said scene in your game like "encountering_first_enemy" or "champion_trial" etc..
#{scenes.event_1.0} //First dialog of the scene
#{scenes.event_1.1} // 2nd..
#{scenes.event_1.2} // 3rd...

and

#{scenes.event_2.3.0.0} //(This one you place in Show 1st Choice Text
#{scenes.event_2.3.0.1} //This is the text inside the 1st Choice Branch.

#{scenes.event_2.3.1.0} //(This one you place in Show 2nd Choice Text
#{scenes.event_2.3.1.1} //This is the text inside the 2nd Choice Branch.


If you want to show off you can assign a variable and increase it automatically for each dialog. Like...

Line A = 0 //Line A is Variable ID: 50
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}

For items:
Name (ID1): #{items.0.n}
Description (ID1): #{items.0.d}

I hope that helped lol

PS: I recommend changing "event_1" name to some wording that becomes easier to identify said scene in your game like "encountering_first_enemy" or "champion_trial" etc..
Now I can see how [] works!
Thanks a lot! This is really useful. It will make the json file much more readable (for me) !! 🙂
#{scenes.event_1.0} //First dialog of the scene
#{scenes.event_1.1} // 2nd..
#{scenes.event_1.2} // 3rd...

and

#{scenes.event_2.3.0.0} //(This one you place in Show 1st Choice Text
#{scenes.event_2.3.0.1} //This is the text inside the 1st Choice Branch.

#{scenes.event_2.3.1.0} //(This one you place in Show 2nd Choice Text
#{scenes.event_2.3.1.1} //This is the text inside the 2nd Choice Branch.


If you want to show off you can assign a variable and increase it automatically for each dialog. Like...

Line A = 0 //Line A is Variable ID: 50
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}
Line A += 1
#{scenes.event_1.\V[50]}

For items:
Name (ID1): #{items.0.n}
Description (ID1): #{items.0.d}

I hope that helped lol

PS: I recommend changing "event_1" name to some wording that becomes easier to identify said scene in your game like "encountering_first_enemy" or "champion_trial" etc..
I'm really sorry to bother you once more, but I think this will be the last chance for me before I give up using this plug-in.
I understand how the plug-in works, and I've succeeded in making some of the texts appear in a different language with it.

Once I've tried translating a text and it kept appearing as 'undefined'.
It worked fine when I changed the order of the plug-ins. (I put Iavra's above Galv's Visual Novel Choices and it worked)
And now that I'm working on almost the same series of events, again the plug-in just shows 'undefined' instead of the texts I've written in the json file.
Can you point out why this doesn't work?

Spoiler: codes
{
"common": {
"workrules_1": [
"(방문 앞에서 다이어리를 열어\n열쇠를 사용해보자.)\\TA[0]",
"안전하고 평화로운 근무환경 조성을 위해\n다음 수칙들을 필히 준수하십시오.\\TA[1]",
"※참고: 해당 지침서에는 1-(1), 2-(1) 같은\n부가항목이 존재하지 않습니다.\\TA[1]",
"이 같은 항목을 보셨다면\n그 내용은 철저히 무시하십시오.\\..\\..\\..\\..\\..\\..\\..\\..\\TA[1]",
"수칙이 꽤 많은걸?\\TA[0]",
"내일 일 시작하기 전까지만\n읽어두면 되겠지.\\TA[0]",
"시간도 늦었으니 오늘은 이만 자자.\\TA[0]"
],

"storage_1": [
"이곳에서는 사용할 수 없다.\\TA[1]",
"식료품 창고 열쇠를 사용해서 문을 열까?\\TA[1]",
[
[
"연다"
],
[
"관둔다"
]
]
]
}
}

Spoiler: screenshot
2021-02-13T09-40-17-967Z.png
캡처2.JPG
Syntax seems fine to me. You said it worked before, right? Then maybe some other plugin is interfering with it? Go through the list and disable them one by one to find out which one is causing the issue. It's kinda weird though because I haven't had any compatibility issues using this plugin so far :v so this is likely not the case, I'm just going with what you told me and discarding options.

Double check the Menu options and see which language is chosen there and which one is specified in the plugin config (the iavra language menu plugin). Maybe the plugin is looking for another .json lang file than the one you believe the game is currently pointing to. In fact, this is most likely the case of what's happening lol. For now, I'd suggest working with only 1 language file. Later, when the game is fully written, you can start working on the other files.

If it still doesn't work you can send me a DEMO see if I can figure it out lol 😛 Don't give up!

Original thread: https://forums.rpgmakerweb.com/threads/help-with-iavras-localization-plugin.133257/