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 :: Code:
Contact:
angelo5415 scrie: ↑Hi everyone, when I launch client.exe, my screen freezes on the loading screen and I get those errors in the system logCode: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 ::
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.
I've cleaned and rebuilt the entire solution, but I'm still getting that error
Contact:
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.
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.
Autentifică-te
-
Subiecte similare
Informații
Utilizatori ce navighează pe acest forum: ablados1, Aioria, bebame3140, Facebook Crawler, Hound și 3 vizitatori
Discord ID copiat:
