ekhartpl

Veteran
Veteran
Joined
Apr 18, 2015
Messages
70
Reaction score
36
First Language
Polish
Primarily Uses
RMVXA
@Ebanyle after "variables" change the "//" signs into "::", so it turns into:
Code:
<<variables/YEA::STATUS::PROPERTIES_COLUMN1[0][1]>>
 

Ebanyle

açspasl~d~dfflass
Veteran
Joined
Sep 2, 2016
Messages
338
Reaction score
198
First Language
Portuguese
Primarily Uses
RMVXA
@Ebanyle after "variables" change the "//" signs into "::", so it turns into:
I've done that, but I noticed that when the script loads the file, it turns the "::" into "//".
I even tried it in a clean project, but it seems it won't even change single modules like that D:

Code:
<<variables/YEA::SYSTEM::COMMAND_NAME>>
Sistema
1583860861941.png

Would you mind sending a clean project with your examples?
 

ekhartpl

Veteran
Veteran
Joined
Apr 18, 2015
Messages
70
Reaction score
36
First Language
Polish
Primarily Uses
RMVXA
I've done that, but I noticed that when the script loads the file, it turns the "::" into "//".
I even tried it in a clean project, but it seems it won't even change single modules like that D:

Code:
<<variables/YEA::SYSTEM::COMMAND_NAME>>
Sistema
View attachment 136448

Would you mind sending a clean project with your examples?
Could be something with your encoding. What editor do you use to edit the files? Also, make sure you named your file DatabaseTextLANGUAGE, instead of plain exported DatabaseText, otherwise it won't read it (done that just now myself, when making the small demo )

Anyway, I attached a quick demo with just language script, yanfly's settings script, and quick makeshift database file. Data in Yanfly's script is default, so all changes come from databasetext file.
 

Attachments

Ebanyle

açspasl~d~dfflass
Veteran
Joined
Sep 2, 2016
Messages
338
Reaction score
198
First Language
Portuguese
Primarily Uses
RMVXA
Could be something with your encoding. What editor do you use to edit the files? Also, make sure you named your file DatabaseTextLANGUAGE, instead of plain exported DatabaseText, otherwise it won't read it (done that just now myself, when making the small demo )

Anyway, I attached a quick demo with just language script, yanfly's settings script, and quick makeshift database file. Data in Yanfly's script is default, so all changes come from databasetext file.
Huh... That's weird! It works perfectly now????
I mean... I admit I forgot to specify the switch I was modifying.. :facepalm:
But not even the single modules were working for me, and now they are.
I always deleted the # LFS DATABASE VERSION 13 at the start because I thought it wouldn't update with it, maybe that was what I was doing wrong
Anyways, thank you so much =D
 

Bukk

Villager
Member
Joined
Jun 20, 2014
Messages
9
Reaction score
2
Primarily Uses
Thank you so much @ekhartpl. Your help with variable solution was great idea. I came up with script mod that allows arrays translations.

If you insert this function above/below extract_database function (~line 1480) you can simply call
Code:
extract_module(f, Vocab)
to extract all strings and arrays from the selected module. You can replace Vocab by any module you want to translate.
You should place this command call inside extract_database function.

def extract_module(f, mod)
mod.constants.each { |c|
value = mod.const_get(c)

if value.is_a?(Array)
i = 0
value.each do |v|
f.write("\n")
f.write("<<variables/#{mod.to_s}::#{c}[#{i}]>>\n")
f.write(v + "\n")
i += 1
end

next
end

next if !value.is_a?(String)
f.write("\n")
f.write("<<constants/#{mod.to_s}/#{c}>>\n")
f.write(value + "\n")
}
end
 

BCj

Veteran
Veteran
Joined
Jun 19, 2014
Messages
1,694
Reaction score
900
First Language
Dutch
Primarily Uses
N/A
The demo link died :(
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Posts

Latest Profile Posts

Brioche with a crème patissiere filling is so tasty!
A group of Game creators and others who trying to revive the Feel of Multiplayer and TOWN/ROLEPLAY games
Wow, lots of RPG Maker MV stuff on sale on Steam for 50%-75% off. Steam, why you not tell me?!
looking for help on top secret project
The nick "Toeuia" that I'm using comes from a, idk, you okay the chess game while chit chatting them. The first two are students. Then you know, finally, the champion, and then the champion's sensei. I played like this so many times until suddenly there's another chess master. Very naive but super smart. After he lost, he kinda advised me not to give up on chest. Because the next one was never seen beaten. Touya.

Forum statistics

Threads
99,383
Messages
964,654
Members
131,002
Latest member
SaltedFish
Top