Jump to content

ericx12

Inactive Member
  • Posts

    4
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by ericx12

  1. On 10/18/2021 at 10:47 PM, TMP4 said:

    Small update, mostly convenience.

    2021.10.18: - Changed "localhost" to "127.0.0.1" in Ch3-4 CONFIG files (just to be uniform with Ch1-2).
                - Changed the test server numbers from 11-12 to 21-22 in serverinfo.py to avoid state conflict.
                - Changed folder "horse_event1" to "pony" in mob_proto (20119 & 20219) so they will work better.
                - Commented 2410 from metin2_map_skipia_dungeon_02/regen.txt since that group_group not exists.
                - Fixed metin2_map_skipia_dungeon_01/boss.txt (changed Yonghan with Mighty Ice Witch, 8 hours).
                - Applied two fix regarding the client position & playarea size:
                  1. https://metin2.dev/topic/27934-fixwindows-opening-at-the-wrong-position/
                  2. https://metin2.dev/topic/22740-fix-clients-height-taskbar-collision-after-vsupdate/
                - Added the old Tim extractor because Eternexus can't extract every file. (Eternexus_readme.txt)

    hi what about epack32? why dont we use epack32 instead of older than one extractor like tim?

     

    btw can u bring foxfs system to client? thanks

  2. 3 hours ago, astroNOT said:
    
    import os
    
    #no of channels
    channels = 4
    
    #no of cores
    cores = 2
    
    #Channels path
    chan_location = "/usr/home/main/srv1/chan/"
    
    #New ip to replace the old
    ip_value = "123.443.9.1"
    
    try:
        os.mkdir("%sbackup_config" % chan_location)
    except Exception:
        pass
    
    for i in range(1, channels + 1):
        # print(i)
        for core in range(1, cores + 1):
            with open(f"%sch{i}/core{core}/CONFIG" % chan_location, 'r') as cfg:
                count = 0
                proxy_index = 0
                list_of_lines = cfg.readlines()
                with open(f"%sbackup_config/config_channel{i}_core{core}" % chan_location, "w") as bk_file:
                    bk_file.writelines(list_of_lines)
    
                for line in list_of_lines:
                    count += 1
                    # print(line)
                    if "proxy" in line.lower():
                        proxy_index = count - 1
                # print(len(list_of_lines), 'list of lines len')
                print("proxy index ", proxy_index)
                list_of_lines[proxy_index] = "proxy_ip: %s\n" % ip_value
            with open(f"%sch{i}/core{core}/CONFIG" % chan_location, 'w') as cfg_w:
                cfg_w.writelines(list_of_lines)
                print(f"Succesfully updated config for Channel{i}, Core{core}")

     

    can u explain more what is that

×
×
  • 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.