Jump to content

Koray

Active Member
  • Posts

    384
  • Joined

  • Last visited

  • Days Won

    58
  • Feedback

    0%

Posts posted by Koray

  1. open your system.py;

     

    find this

    def __pack_import(name,globals=None,locals=None,fromlist=None):
    	if name in sys.modules:
    		return sys.modules[name]
    
    	filename = name + '.py'
    
    	if pack.Exist(filename):
    		dbg.Trace('importing from pack %sn' % name)
    
    		newmodule = _process_result(compile(pack_file(filename,'r').read(),filename,'exec'),name)		
    
    		module_do(newmodule)
    		return newmodule
    		#return imp.load_module(name, pack_file(filename,'r'),filename,('.py','r',imp.PY_SOURCE))
    	else:
    		dbg.Trace('importing from lib %sn' % name)
    		return old_import(name,globals,locals,fromlist)
    

    Change with this

    def __pack_import(name,globals=None,locals=None,fromlist=None, level=-1):
    	if name in sys.modules:
    		return sys.modules[name]
    
    	filename = name + '.py'
    
    	if pack.Exist(filename):
    		if name in sys.modules:
    			dbg.Tracen('importing from sys.modules %s' % name)
    			return sys.modules[name]
    
    		dbg.Tracen('importing from pack %s' % name)
    
    		newmodule = _process_result(compile(pack_file(filename,'r').read(),filename,'exec'),name)		
    			
    		module_do(newmodule)
    		return newmodule
    	else:
    		dbg.Tracen('importing from lib %s' % name)
    		return old_import(name,globals,locals,fromlist, level)
    
    
  2. is there a need for new class?

    import os
    wut = raw_input("Folder directory: ")
    whichfiles = raw_input("extension: ")
    files = os.listdir(wut)
    for name in files:
        if name.endswith('.'+whichfiles): print name
    

    print out >>

    C:Python27python.exe C:/Users/asus/PycharmProjects/test-esteron.py
    Folder directory: c:/python27
    extension: py
    adminpage.py
    constInfo3.py
    dll.py
    hash_id.py
    insa.py
    post.py
    stealer.py
    uiminimap.py
    uitaskbar.py
    version.py
    xd.py
    xd2.py
    
    Process finished with exit code 0
    
    

    or manuel

    import os
    files = os.listdir("c:/python27")
    for name in files:
        if name.endswith('.py'): print name
    
    • Love 1
  3. Hi devs, does know the cause of this error? 

     

     

    Source part(input_db): 

     

    	WORD endCheck=decode_2bytes(data);
    	if (endCheck != 0xffff)
    	{
    		sys_err("boot packet end check error [%x]!=0xffff", endCheck);
    		thecore_shutdown();
    		return;
    	}
    	else
    		sys_log(0, "boot packet end check ok [%x]==0xffff", endCheck );
    	data +=2; 
    
     

     

    but I have not change input_db

     

    syslog

    Dec 05 14:39:07.687000 :: GLOBAL_TIME: Dec 05 14:39:00 time_gap -7
    Dec 05 14:39:07.687000 :: InsertGMList(account:0.0.1, player:, contact_ip:, server_ip:, auth:0)
    Dec 05 14:39:07.687000 :: GM Use ContactIP
    Dec 05 14:39:07.687000 :: [ADMIN] Size 104 Count 1
    SYSERR: Dec 05 14:39:07 :: CInputDB::Boot: boot packet end check error [0]!=0xffff
    Dec 05 14:39:07.687000 :: InputDB::MapLocations 2
    Dec 05 14:39:07.703000 :: QUEST eventflag oxevent_status 0 prev_value 0
    Dec 05 14:39:07.703000 :: QUEST eventflag trading_offer_item_a 30011 prev_value 0
    Dec 05 14:39:07.703000 :: QUEST eventflag trading_offer_item_b 30046 prev_value 0
    Dec 05 14:39:07.703000 :: QUEST eventflag trading_offer_time 1388631824 prev_value 0
    Dec 05 14:39:07.703000 :: QUEST eventflag xmas_boom 0 prev_value 0
    Dec 05 14:39:07.703000 :: QUEST eventflag xmas_snow 0 prev_value 0
    Dec 05 14:39:07.703000 :: QUEST eventflag xmas_tree 1 prev_value 0
    Dec 05 14:39:07.703000 :: SpawnMob: cannot create monster at non-exist sectree 434900 x 214500 (map 61)
    Dec 05 14:39:07.703000 :: QUEST eventflag oxevent_status 0 prev_value 0
    Dec 05 14:39:07.703000 :: <shutdown> Starting...
    Dec 05 14:39:07.703000 :: <shutdown> Destroying CArenaManager...
    Dec 05 14:39:07.703000 :: ARENA: ArenaMap will be destroy. mapIndex(112)
    Dec 05 14:39:07.703000 :: ARENA: End Duel PID_A(0) vs PID_B(0)
    Dec 05 14:39:07.703000 :: ARENA: End Duel PID_A(0) vs PID_B(0)
    Dec 05 14:39:07.703000 :: ARENA: End Duel PID_A(0) vs PID_B(0)
    Dec 05 14:39:07.703000 :: ARENA: End Duel PID_A(0) vs PID_B(0)
    Dec 05 14:39:07.703000 :: <shutdown> Destroying COXEventManager...
    Dec 05 14:39:07.703000 :: <shutdown> Disabling signal timer...
    Dec 05 14:39:07.703000 :: <shutdown> Shutting down CHARACTER_MANAGER...
    Dec 05 14:39:07.703000 :: <shutdown> Shutting down ITEM_MANAGER...
    Dec 05 14:39:07.703000 :: <shutdown> Flushing db_clientdesc...
    Dec 05 14:39:07.703000 :: FLUSH START 46
    Dec 05 14:39:07.703000 :: FLUSH SUCCESS
    Dec 05 14:39:08.953000 :: <shutdown> Flushing p2p_manager...
    Dec 05 14:39:08.953000 :: <shutdown> Destroying CShopManager...
    Dec 05 14:39:08.953000 :: <shutdown> Destroying CHARACTER_MANAGER...
    Dec 05 14:39:08.953000 :: <shutdown> Destroying ITEM_MANAGER...
    Dec 05 14:39:08.953000 :: <shutdown> Destroying DESC_MANAGER...
    Dec 05 14:39:08.953000 :: PARTY Disable
    Dec 05 14:39:08.953000 :: SYSTEM: closing client socket. DESC #680
    Dec 05 14:39:08.968000 :: <shutdown> Destroying quest::CQuestManager...
    Dec 05 14:39:08.984000 :: <shutdown> Destroying building::CManager...
    Dec 05 14:39:08.984000 :: <shutdown> Flushing TrafficProfiler...
    Dec 05 14:39:08.984000 :: <shutdown> Canceling ReloadSpamEvent...
    Dec 05 14:39:08.984000 :: <shutdown> regen_free()...
    Dec 05 14:39:08.984000 :: <shutdown> Closing sockets...
    Dec 05 14:39:08.984000 :: <shutdown> fdwatch_delete()...
    Dec 05 14:39:08.984000 :: <shutdown> event_destroy()...
    Dec 05 14:39:08.984000 :: <shutdown> CTextFileLoader::DestroySystem()...
    Dec 05 14:39:08.0 :: <shutdown> thecore_destroy()...
    
    
     

     

    syserr

    SYSERR: Dec 05 14:39:07 :: CInputDB::Boot: boot packet end check error [0]!=0xffff
    

  4.  

    why don't you just do it in python ? :P

    i can't xd

     

    d0bb39efa18fd0592449bfbc41ef1eb3.png this i can't do with python xD

     

    PD: I use the method of p3ng3r and when select character the client close without any log or sysser i go to try now with the method or sanchez.

     

    PD2: I have this problem now:

    6ad5c856b17f3a819fb41f81964db1fb.png8d8765c19bf4bbcdf50bedc0276b7d27.png

     

     

    http://en.wikibooks.org/wiki/C++_Programming/Code/Standard_C_Library/Functions/printf

     

     %d a decimal integer

     :)

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