Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Localization with SDK

I think most of non-English people will agree of this.

I don't speak English, so I edited most strings manually in the default scripts to my native language. After installing SDK 1.5, they go back to English. Editing the SDK, as commented in the script, is very risky if I don't know what I'm doing (besides, searching through 2000+ lines of code, although with search function, still seem scary for some people). So, I come to this idea.

Someone, who is SDK-scripter, may want to make a script (either SDK-based or not) that enable us to edit all strings to our native language, without ever have to search what strings and where to find them. Something like this...

Code:
#localization strings
MAIN_TITLE_NEWGAME = "Baru" #or whatever your language says for "new"
MAIN_TITLE_CONTINUE = "Lanjut"
MAIN_TITLE_EXIT = "Keluar"
PARTY_COMMAND_ATTACK = "Serang"
PARTY_COMMAND_RUN = "Lari"
#and so on...
#now the script

If only this script ever exist, I'm sorry then, I have never heard of it. Only when this problem can be solved then I will use SDK. (I can convert SDK script to non-SDK though :D)
 
You should be able to do that by adding this in a new script above main below SDK and edit the things here

Code:
class Scene_Title
  #--------------------------------------------------------------------------
  # * Main Menu Initialization
  #--------------------------------------------------------------------------
  def main_menu
    # Make command window
    s1 = "New Game"
    s2 = "Continue"
    s3 = "Shutdown"
    @command_window = Window_Command.new(192, [s1, s2, s3])
    @command_window.back_opacity = 160
    @command_window.x = 320 - @command_window.width / 2
    @command_window.y = 288
  end
end

class Scene_Menu
  #--------------------------------------------------------------------------
  # * Set Commands
  #--------------------------------------------------------------------------
  def commands_init
    @commands = []
    s1 = $data_system.words.item
    s2 = $data_system.words.skill
    s3 = $data_system.words.equip
    s4 = "Status"
    s5 = "Save"
    s6 = "End Game"
    @commands.push(s1, s2, s3, s4, s5, s6).flatten!
  end
  #--------------------------------------------------------------------------
  # * Update Command Check
  #--------------------------------------------------------------------------
  def update_command_check
    # Loads Current Command
    command = @commands[@command_window.index]
    # Checks Commands
    if command == $data_system.words.item
      command_item
    elsif command == $data_system.words.skill
      command_start_skill
    elsif command == $data_system.words.equip
      command_start_equip
    elsif command == 'Status'
      command_start_status
    elsif command == 'Save'
      command_save
    elsif command == 'End Game'
      command_endgame
    end
  end
  #--------------------------------------------------------------------------
  # * Update Status Check
  #--------------------------------------------------------------------------
  def update_status_check
    # Loads Current Command
    command = @commands[@command_window.index]
    # Checks Command By Name
    if command == $data_system.words.skill
      command_skill
    elsif command == $data_system.words.equip
      command_equip
    elsif command == 'Status'
      command_status
    end
  end
end

The stuff not given can be edited in the database, and if its not just edit it like you would normally, this is just the stuff SDK modifies
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top