14 mesaje
Membru Începător Membru Începător
  • Mesaje: 2
  • Reacții: 0
  • Mesaje utile: 0
  • Medalii

    Code:
    0510 17:32:16469 :: Traceback (most recent call last):
    
    0510 17:32:16471 ::   File "networkModule.py", line 244, in SetGamePhase
    
    0510 17:32:16471 ::   File "system.py", line 120, in __pack_import
    
    0510 17:32:16471 ::   File "system.py", line 103, in _process_result
    
    0510 17:32:16471 ::   File "game.py", line 38, in <module>
    
    0510 17:32:16471 ::   File "system.py", line 120, in __pack_import
    
    0510 17:32:16471 ::   File "system.py", line 103, in _process_result
    
    0510 17:32:16472 ::   File "uiAffectShower.py", line 445, in <module>
    
    0510 17:32:16472 ::   File "uiAffectShower.py", line 556, in AffectShower
    
    0510 17:32:16472 :: AttributeError
    0510 17:32:16472 :: : 
    0510 17:32:16472 :: 'module' object has no attribute 'NEW_AFFECT_AUTO_HUNT'
    0510 17:32:16472 :: 
    Hi everyone, when I launch client.exe, my screen freezes on the loading screen and I get those errors in the system log
    Membru Începător Membru Începător
  • Mesaje: 4
  • Reacții: 0
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Server: -
  • Regat: Chunjo
  • [ID Discord]
  • Contact:

    Medalii

    Avatar utilizator
    Membru Începător
    Membru Începător

    Mesaj de bebame3140 »

    angelo5415 scrie:
    Code:
    0510 17:32:16469 :: Traceback (most recent call last):
    
    0510 17:32:16471 ::   File "networkModule.py", line 244, in SetGamePhase
    
    0510 17:32:16471 ::   File "system.py", line 120, in __pack_import
    
    0510 17:32:16471 ::   File "system.py", line 103, in _process_result
    
    0510 17:32:16471 ::   File "game.py", line 38, in <module>
    
    0510 17:32:16471 ::   File "system.py", line 120, in __pack_import
    
    0510 17:32:16471 ::   File "system.py", line 103, in _process_result
    
    0510 17:32:16472 ::   File "uiAffectShower.py", line 445, in <module>
    
    0510 17:32:16472 ::   File "uiAffectShower.py", line 556, in AffectShower
    
    0510 17:32:16472 :: AttributeError
    0510 17:32:16472 :: : 
    0510 17:32:16472 :: 'module' object has no attribute 'NEW_AFFECT_AUTO_HUNT'
    0510 17:32:16472 :: 
    Hi everyone, when I launch client.exe, my screen freezes on the loading screen and I get those errors in the system log


    The issue isn’t coming from the server side, it’s caused by the client/binary. Your root is trying to use `chr.NEW_AFFECT_AUTO_HUNT` inside `uiAffectShower.py`, but that constant isn’t exposed in the C++ `chr` module.

    In short, you ported the Python/UI side, but the client binary still doesn’t include the full Auto Hunt patch, or it wasn’t recompiled after applying it. Check `PythonCharacterModule.cpp` and the Auto Hunt define, then make sure `NEW_AFFECT_AUTO_HUNT` is registered with that exact name. After rebuilding the client, it should get past the loading screen.
    Membru Începător Membru Începător
  • Mesaje: 2
  • Reacții: 0
  • Mesaje utile: 0
  • Medalii

    Avatar utilizator
    Membru Începător
    Membru Începător

    Mesaj de angelo5415 »

    [C++/Py] System AutoHunt V2 - Mesaj 13 - Imagine 1
    I've cleaned and rebuilt the entire solution, but I'm still getting that error
    Membru Începător Membru Începător
  • Mesaje: 4
  • Reacții: 0
  • Mesaje utile: 0
  • Status: Pierd vremea ^.^
  • Server: -
  • Regat: Chunjo
  • [ID Discord]
  • Contact:

    Medalii

    Avatar utilizator
    Membru Începător
    Membru Începător

    Mesaj de bebame3140 »

    angelo5415 scrie: [C++/Py] System AutoHunt V2 - Mesaj 14 - Imagine 1
    I've cleaned and rebuilt the entire solution, but I'm still getting that error

    The problem is not that the line is missing. The problem is that the compiler is probably skipping it.

    In your picture, the line is inside:

    `#ifdef __AUTO_HUNT__`

    That means this line is only compiled if `__AUTO_HUNT__` is enabled in the client project. If the macro is not active, this code is completely ignored, even if you can see it in the source file.

    Do this test:

    1. Open `PythonCharacterModule.cpp`
    2. Find the line that adds `NEW_AFFECT_AUTO_HUNT`
    3. Move it outside the `#ifdef __AUTO_HUNT__` block, like this:

    ```cpp
    PyModule_AddIntConstant(poModule, "NEW_AFFECT_AUTO_HUNT", CInstanceBase::NEW_AFFECT_AUTO_HUNT);

    #ifdef __AUTO_HUNT__
    // other auto hunt constants/code can stay here
    #endif
    ```

    Then clean and rebuild the client.
    Scrie răspuns

    Creează-ți un cont sau autentifică-te pentru a participa la discuție

    Trebuie să fii membru pentru a răspunde

    Creează-ți un cont

    Membrii pot crea subiecte noi și pot descărca resurse Metin2 Gratuit!


    Te poți înregistra sau conecta rapid utilizând contul tău de Discord, Github sau Google.

    Înregistrare

    Autentifică-te

    Înapoi la “Sisteme Metin2”

    Informații

    Utilizatori ce navighează pe acest forum: _supermago, ablados1, Aioria, Amazon [Bot], Facebook Crawler, megarusso, nagyakos, sosofrg_62955 și 4 vizitatori

    Discord ID copiat: