Jump to content

liukefu

Inactive Member
  • Posts

    17
  • Joined

  • Last visited

  • Feedback

    0%

About liukefu

  • Birthday 08/06/1984

Informations

  • Gender
    Male
  • Country
    China
  • Nationality
    Chinese

Recent Profile Visitors

1265 profile views

liukefu's Achievements

Enthusiast

Enthusiast (6/16)

  • Collaborator Rare
  • Conversation Starter
  • One Year In
  • First Post
  • Dedicated

Recent Badges

1

Reputation

  1. do you completed the upgrade? I need to do this,too Thanks
  2. Has anyone completed the upgrade? Thanks
  3. Hello! This tutorial is designed to help beginners who don't know how to change the file encoding. Since the default encoding is EUC-KR, if I use Chinese, the comments in the code will be garbled. It's very uncomfortable. The first step is to convert the file encoding You can use any IDE to convert, I provide my python script here。 import os import chardet binary_extensions = [ '.o', '.exe', '.dll', '.so', '.a', '.lib', '.dat', '.bin', '.img', '.iso', '.bak', '.apk', '.jar', '.war', '.class', '.gz', '.tar', '.zip', '.7z', '.rar', '.eix','.epk', ] source_extensions = ['.cpp', '.h', '.py', '.txt', '.lua', '.quest'] def detect_encoding(file_path): with open(file_path, 'rb') as f: raw_data = f.read(10000) result = chardet.detect(raw_data) # Or write "EUC-KR" here return result['encoding'] def convert_encoding(file_path, dest_encoding='utf-8'): try: src_encoding = detect_encoding(file_path) if src_encoding is None: print(f"Cannot detect encoding for {file_path}") return with open(file_path, 'r', encoding=src_encoding, errors='ignore') as f: content = f.read() with open(file_path, 'w', encoding=dest_encoding) as f: f.write(content) #print(f"Converted: {file_path} from {src_encoding} to {dest_encoding}") except Exception as e: print(f"Failed to convert {file_path}: {e}") def convert_directory(directory, exclude_dirs=None): if exclude_dirs is None: exclude_dirs = [] for root, dirs, files in os.walk(directory): dirs[:] = [d for d in dirs if d not in exclude_dirs] for file in files: if any(file.endswith(ext) for ext in binary_extensions) or not any(file.endswith(ext) for ext in source_extensions): continue file_path = os.path.join(root, file) convert_encoding(file_path) if __name__ == "__main__": # SETTING target_directory = r"F:\metin2\github_ulthar\DumpProto" excluded_folders = ['.git','.idea', 'Extern','.vs'] # START convert_directory(target_directory, exclude_dirs=excluded_folders) Save code files in UTF-8 IN Visual Studio Visual Studio supports generating an .editorconfig file based on local settings. The operation path is Tools / Options / Text Editor / C/C++ / Code Stype / General: Generate .editorconfig file from settings. root = true [*] end_of_line = lf charset = utf-8 trim_trailing_whitespace = true insert_final_newline = true indent_style = space indent_size = 4 [*.{c++,cc,cpp,cppm,cxx,h,h++,hh,hpp,hxx,inl,ipp,ixx,tlh,tli}] The second step is to modify the client locale.cfg file. The file contents are as follows: 10002 65001 newcibn Make sure the middle value is changed to: 65001 That's all, I hope it helps. I'll add more if you need it. I didn't encounter any problems compiling on the server side! Have a nice day!
      • 1
      • Metin2 Dev
  4. I compared the files with tmp, they are exactly the same. but it runs normally in tmp sf. Does anyone know why?
  5. After switching characters, some errors lead to memory recycling after interface initialization def __del__(self): systemSetting.DestroyInterfaceHandler() event.SetInterfaceWindow(None) Make sure it is not empty event.SetInterfaceWindow(None) Check the file interfacemodule.py
  6. Hi, bro I have the same problem, how to fixed it I used Ulthar_sf_v2
  7. Hello! When I first logged into the game, I had the letter given by the quest, but after switching characters and re-entering, the letter disappeared, and the newly generated letter would not appear. I completely exited the app and re-entered everything and everything worked perfectly. I use Ulthar SF V2, does anyone know this problem? Thank you for your help.
  8. I think collision detection is needed changed.
  9. Reinstall system drivers and directx
  10. Where to get image files?
  11. Where can I find the complete database update script,Thanks !
  12. I also encountered this problem, how to solve it?
  13. qq:1771024762 You can contact him, but you may need to pay
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.