ekhartpl

Veteran
Veteran
Joined
Apr 18, 2015
Messages
71
Reaction score
37
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
200
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
71
Reaction score
37
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
200
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,731
Reaction score
929
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

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD

Forum statistics

Threads
105,868
Messages
1,017,074
Members
137,578
Latest member
JamesLightning
Top