Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Translator Helper es un programa Free Use creado para traducir los textos de los fangames hechos con las bases 16.3, BES y 21
- Autor: Bézier
- Para cualquier pregunta o duda, me tienes en X: @mundo_bezier
- -- LINK DE DESCARGA --
- https://mega.nz/file/v84XST6D#xwSthsNoc5hk5WMsyhYOhhypjoxlT01siNakkJWtQww
- -- TUTORIAL EN YOUTUBE --
- https://www.youtube.com/watch?v=FQuf3C3rpb4
- -- CÓDIGO PARA VERSIÓN 16 Y BES CON LOS SCRIPTS EN UNA CARPETA EXTERNA --
- ## Añade el siguiente código a tu juego antes de la función def pbSetTextMessages
- # Función que extrae el contenido de los scripts que están en la carpeta indicada
- def pbSetTextExternalScripts(texts,path)
- files = []
- folders = []
- Dir.foreach(path) do |f|
- next if f == '.' || f == '..'
- (File.directory?(path + "/" + f)) ? folders.push(f) : files.push(f)
- end
- files.sort!
- files.each do |f|
- code = File.open(path + "/" + f, "r") { |file| file.read }
- pbAddRgssScriptTexts(texts,code)
- end
- folders.sort!
- folders.each do |folder|
- pbSetTextExternalScripts(texts,path + "/" + folder)
- end
- end
- # Este texto es el original del juego
- def pbSetTextMessages
- Graphics.update
- begin
- t = Time.now.to_i
- texts=[]
- for script in $RGSS_SCRIPTS
- if Time.now.to_i - t >= 5
- t = Time.now.to_i
- Graphics.update
- end
- scr=Zlib::Inflate.inflate(script[2])
- pbAddRgssScriptTexts(texts,scr)
- end
- # Añade estas 3 líneas después del bucle for para cargar los scripts de la carpeta
- if $RGSS_SCRIPTS.length == 1 && safeIsDirectory?("Data/Scripts")
- pbSetTextExternalScripts(texts,"Data/Scripts")
- end
- # Se deben agregar mensajes porque este código es usado tanto en el sistema del juego como el Editor.
- [...]
- -- RELEASE NOTES --
- Versión 1.0
Add Comment
Please, Sign In to add comment