Jump to content

How To Metin2 & Cython


Recommended Posts

  • Bronze

maybe it's a module that use none txt file such a bug does indeed exist .

Traceback: Error: No module named rootlib

 

https://metin2.download/picture/01I5H9CClBhcOzVrtkI9ls119v3wjpeK/.png

rootlib must be included in client/lib/

if you are not using rootlib then check marty tuto again

Edited by Metin2 Dev
Core X - External 2 Internal
  • Good 1
  • Love 2
Link to comment
Share on other sites

Traceback: Error: No module named rootlib

 

https://metin2.download/picture/01I5H9CClBhcOzVrtkI9ls119v3wjpeK/.png

rootlib must be included in client/lib/

if you are not using rootlib then check marty tuto again

 

How I can include it in clientlib? (note: I had include it when compile the binrary)

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium

https://metin2.download/picture/tv1e8L63H3Pndpg97d8ShBsxx455Ub54/.png

https://metin2.download/picture/M9dGR8kF4VSyZwuJzkb8i6VeRZyaMzS0/.png

I put the uiscript in Cython but it's still pulling in python if I boot the uiscript with python client opens if I get him the error of not having found someone help?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Honorable Member

https://metin2.download/picture/tv1e8L63H3Pndpg97d8ShBsxx455Ub54/.png

https://metin2.download/picture/M9dGR8kF4VSyZwuJzkb8i6VeRZyaMzS0/.png

I put the uiscript in Cython but it's still pulling in python if I boot the uiscript with python client opens if I get him the error of not having found someone help?

For uiscriptlib, you should use the ui.py file you can find in the ./Extra/root/ folder. (at least, the code you can find about __USE_EXTRA_CYTHON__) Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Bronze

 

Traceback: Error: No module named rootlib

 

https://metin2.download/picture/01I5H9CClBhcOzVrtkI9ls119v3wjpeK/.png

rootlib must be included in client/lib/

if you are not using rootlib then check marty tuto again

 

How I can include it in clientlib? (note: I had include it when compile the binrary)

 

what i mean is that you should copy-past rootlib.pyd to your python lib in the client folder there is no such thing as including the full lib folder .

how is that considered as an error from ui? most likely it is an error from the script called if you are using a bad uiscript file.

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • 2 weeks later...

 

How solve this problem? -> IXfm6VZ.jpg

search pack_open here, there's a fix If I remember well

 

For me, when i'm tried to start a compiled uiscript launcher, I got this

<type 'exceptions.KeyError'>:'window'

Now it appears -> qBGXDQq.png

P.S: I have that file in locale/de

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

playerSettingModule.py(line:1385) playerSettingModule.LoadGameData (playerSettingModule.c:37470)
playerSettingModule.py(line:1229) playerSettingModule.__LoadGameNPC (playerSettingModule.c:35331)

LoadGameData - <type 'exceptions.KeyError'>:'srcFileName'
============================================================================================================
Abort!!!!
!!! Failed to load game data : STEP [97]

 

Solved

Edited by XmLX
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...
  • Honorable Member

Anyone can unpack official root gameforge?

You can't "unpack" a cythonized root, since there are no ".py" files at all to extract, but pure compiled c++ code.

You can disassemble the launcher with IDA, but it will be asm/pseudo-c code. Even though you can (vaguely) understand what those scripts could do, you won't be able in any ways to get the original files back.

  • Love 2
Link to comment
Share on other sites

  • 3 weeks later...
  • Honorable Member

Hi i get this error:

https://metin2.download/picture/9w1Hx8i226X0jW9sqkKI0z04QXLA0WdG/.png

Someone knows how to fixx this ?

That's the first time that someone would get such an error. (maybe bad python code)

Does cython trigger any warnings when compiling the .py files?

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Premium
warning: cyTemp\consoleModule.py:106:65: undeclared name not builtin: isVisible
warning: cyTemp\consoleModule.py:289:60: undeclared name not builtin: EffectFileName
warning: cyTemp\introCreate.py:634:31: undeclared name not builtin: MAN_PAGE
warning: cyTemp\introCreate.py:636:33: undeclared name not builtin: WOMAN_PAGE
warning: cyTemp\localeInfo.py:357:20: undeclared name not builtin: PVP_MODE_NORMAL
warning: cyTemp\localeInfo.py:358:21: undeclared name not builtin: PVP_MODE_REVENGE
warning: cyTemp\localeInfo.py:359:18: undeclared name not builtin: PVP_MODE_KILL
warning: cyTemp\localeInfo.py:360:21: undeclared name not builtin: PVP_MODE_PROTECT
warning: cyTemp\localeInfo.py:361:19: undeclared name not builtin: PVP_MODE_GUILD
warning: cyTemp\localeInfo.py:365:44: undeclared name not builtin: GAME_INIT_ERROR_MAIN_WINDOW
warning: cyTemp\localeInfo.py:366:39: undeclared name not builtin: GAME_INIT_ERROR_CURSOR
warning: cyTemp\localeInfo.py:367:41: undeclared name not builtin: GAME_INIT_ERROR_NETWORK
warning: cyTemp\localeInfo.py:368:47: undeclared name not builtin: GAME_INIT_ERROR_ITEM_PROTO
warning: cyTemp\localeInfo.py:369:45: undeclared name not builtin: GAME_INIT_ERROR_MOB_PROTO
warning: cyTemp\localeInfo.py:370:44: undeclared name not builtin: GAME_INIT_ERROR_DIRECTX
warning: cyTemp\localeInfo.py:371:51: undeclared name not builtin: GAME_INIT_ERROR_GRAPHICS_NOT_EXIST
warning: cyTemp\localeInfo.py:372:72: undeclared name not builtin: GAME_INIT_ERROR_GRAPHICS_BAD_PERFORMANCE
warning: cyTemp\localeInfo.py:373:59: undeclared name not builtin: GAME_INIT_ERROR_GRAPHICS_NOT_SUPPORT_32BIT
warning: cyTemp\localeInfo.py:378:52: undeclared name not builtin: GUILD_WAR_USE_NORMAL_MAP
warning: cyTemp\localeInfo.py:378:75: undeclared name not builtin: GUILD_WAR_LIMIT_30MIN
warning: cyTemp\localeInfo.py:378:102: undeclared name not builtin: GUILD_WAR_WIN_CHECK_SCORE
warning: cyTemp\localeInfo.py:379:50: undeclared name not builtin: GUILD_WAR_USE_BATTLE_MAP
warning: cyTemp\localeInfo.py:379:80: undeclared name not builtin: GUILD_WAR_WIN_WIPE_OUT_GUILD
warning: cyTemp\localeInfo.py:379:105: undeclared name not builtin: GUILD_WAR_REWARD_POTION
warning: cyTemp\localeInfo.py:380:80: undeclared name not builtin: GUILD_WAR_WIN_TAKE_AWAY_FLAG1
warning: cyTemp\localeInfo.py:380:111: undeclared name not builtin: GUILD_WAR_WIN_TAKE_AWAY_FLAG2
warning: cyTemp\localeInfo.py:383:26: undeclared name not builtin: MAP_A1
warning: cyTemp\localeInfo.py:384:26: undeclared name not builtin: MAP_A2
warning: cyTemp\localeInfo.py:385:26: undeclared name not builtin: MAP_A3
warning: cyTemp\localeInfo.py:386:26: undeclared name not builtin: MAP_B1
warning: cyTemp\localeInfo.py:387:26: undeclared name not builtin: MAP_B2
warning: cyTemp\localeInfo.py:388:26: undeclared name not builtin: MAP_B3
warning: cyTemp\localeInfo.py:389:26: undeclared name not builtin: MAP_C1
warning: cyTemp\localeInfo.py:390:26: undeclared name not builtin: MAP_C2
warning: cyTemp\localeInfo.py:391:26: undeclared name not builtin: MAP_C3
warning: cyTemp\localeInfo.py:392:28: undeclared name not builtin: MAP_SNOW
warning: cyTemp\localeInfo.py:393:36: undeclared name not builtin: MAP_FLAME
warning: cyTemp\localeInfo.py:394:38: undeclared name not builtin: MAP_DESERT
warning: cyTemp\localeInfo.py:395:33: undeclared name not builtin: MAP_TEMPLE
warning: cyTemp\localeInfo.py:396:40: undeclared name not builtin: MAP_SPIDER
warning: cyTemp\localeInfo.py:397:41: undeclared name not builtin: MAP_SKELTOWER
warning: cyTemp\localeInfo.py:398:31: undeclared name not builtin: MAP_AG
warning: cyTemp\localeInfo.py:399:31: undeclared name not builtin: MAP_BG
warning: cyTemp\localeInfo.py:400:31: undeclared name not builtin: MAP_CG
warning: cyTemp\localeInfo.py:401:30: undeclared name not builtin: MAP_TREE
warning: cyTemp\localeInfo.py:405:39: undeclared name not builtin: MAP_CAPE
warning: cyTemp\localeInfo.py:406:38: undeclared name not builtin: MAP_THUNDER
warning: cyTemp\localeInfo.py:407:37: undeclared name not builtin: MAP_DAWN
warning: cyTemp\localeInfo.py:408:36: undeclared name not builtin: MAP_BAY
warning: cyTemp\localeInfo.py:409:25: undeclared name not builtin: MAP_E1
warning: cyTemp\localeInfo.py:415:14: undeclared name not builtin: JOB_WARRIOR0
warning: cyTemp\localeInfo.py:415:28: undeclared name not builtin: JOB_WARRIOR1
warning: cyTemp\localeInfo.py:415:42: undeclared name not builtin: JOB_WARRIOR2
warning: cyTemp\localeInfo.py:416:15: undeclared name not builtin: JOB_ASSASSIN0
warning: cyTemp\localeInfo.py:416:30: undeclared name not builtin: JOB_ASSASSIN1
warning: cyTemp\localeInfo.py:416:45: undeclared name not builtin: JOB_ASSASSIN2
warning: cyTemp\localeInfo.py:417:11: undeclared name not builtin: JOB_SURA0
warning: cyTemp\localeInfo.py:417:22: undeclared name not builtin: JOB_SURA1
warning: cyTemp\localeInfo.py:417:33: undeclared name not builtin: JOB_SURA2
warning: cyTemp\localeInfo.py:418:13: undeclared name not builtin: JOB_SHAMAN0
warning: cyTemp\localeInfo.py:418:26: undeclared name not builtin: JOB_SHAMAN1
warning: cyTemp\localeInfo.py:418:39: undeclared name not builtin: JOB_SHAMAN2
warning: cyTemp\localeInfo.py:419:14: undeclared name not builtin: JOB_WOLFMAN0
warning: cyTemp\localeInfo.py:419:28: undeclared name not builtin: JOB_WOLFMAN1
warning: cyTemp\localeInfo.py:419:42: undeclared name not builtin: JOB_WOLFMAN2
warning: cyTemp\localeInfo.py:552:29: undeclared name not builtin: CANNOT_WHISPER_NOT_LOGON
warning: cyTemp\localeInfo.py:553:31: undeclared name not builtin: CANNOT_WHISPER_DEST_REFUSE
warning: cyTemp\localeInfo.py:554:31: undeclared name not builtin: CANNOT_WHISPER_SELF_REFUSE
warning: cyTemp\localeInfo.py:558:43: undeclared name not builtin: CANNOT_EQUIP_IN_SHOP
warning: cyTemp\localeInfo.py:559:51: undeclared name not builtin: CANNOT_EQUIP_IN_EXCHANGE
warning: cyTemp\localeInfo.py:564:39: undeclared name not builtin: CANNOT_ATTACK_SELF_IN_SAFE
warning: cyTemp\localeInfo.py:565:44: undeclared name not builtin: CANNOT_ATTACK_DEST_IN_SAFE
warning: cyTemp\localeInfo.py:569:41: undeclared name not builtin: CANNOT_SHOOT_EMPTY_ARROW
warning: cyTemp\localeInfo.py:570:38: undeclared name not builtin: CANNOT_SHOOT_SELF_IN_SAFE
warning: cyTemp\localeInfo.py:571:43: undeclared name not builtin: CANNOT_SHOOT_DEST_IN_SAFE
warning: cyTemp\localeInfo.py:575:38: undeclared name not builtin: CANNOT_SKILL_SELF_IN_SAFE
warning: cyTemp\localeInfo.py:576:41: undeclared name not builtin: CANNOT_SKILL_NEED_TARGET
warning: cyTemp\localeInfo.py:577:53: undeclared name not builtin: CANNOT_SKILL_NEED_EMPTY_BOTTLE
warning: cyTemp\localeInfo.py:578:55: undeclared name not builtin: CANNOT_SKILL_NEED_POISON_BOTTLE
warning: cyTemp\localeInfo.py:579:55: undeclared name not builtin: CANNOT_SKILL_REMOVE_FISHING_ROD
warning: cyTemp\localeInfo.py:580:45: undeclared name not builtin: CANNOT_SKILL_NOT_YET_LEARN
warning: cyTemp\localeInfo.py:581:59: undeclared name not builtin: CANNOT_SKILL_NOT_MATCHABLE_WEAPON
warning: cyTemp\localeInfo.py:582:45: undeclared name not builtin: CANNOT_SKILL_WAIT_COOLTIME
warning: cyTemp\localeInfo.py:583:45: undeclared name not builtin: CANNOT_SKILL_NOT_ENOUGH_HP
warning: cyTemp\localeInfo.py:584:45: undeclared name not builtin: CANNOT_SKILL_NOT_ENOUGH_SP
warning: cyTemp\localeInfo.py:585:42: undeclared name not builtin: CANNOT_SKILL_USE_SELF
warning: cyTemp\localeInfo.py:586:53: undeclared name not builtin: CANNOT_SKILL_ONLY_FOR_ALLIANCE
warning: cyTemp\localeInfo.py:587:63: undeclared name not builtin: CANNOT_SKILL_DEST_IN_SAFE
warning: cyTemp\localeInfo.py:588:42: undeclared name not builtin: CANNOT_SKILL_APPROACH
warning: cyTemp\localeInfo.py:589:38: undeclared name not builtin: CANNOT_SKILL_ATTACK
warning: cyTemp\localeInfo.py:590:49: undeclared name not builtin: CANNOT_SKILL_ONLY_FOR_CORPSE
warning: cyTemp\localeInfo.py:591:53: undeclared name not builtin: CANNOT_SKILL_EQUIP_FISHING_ROD
warning: cyTemp\localeInfo.py:592:49: undeclared name not builtin: CANNOT_SKILL_NOT_HORSE_SKILL
warning: cyTemp\localeInfo.py:593:43: undeclared name not builtin: CANNOT_SKILL_HAVE_TO_RIDE
warning: cyTemp\localeInfo.py:596:28: undeclared name not builtin: HORSE_LEVEL1
warning: cyTemp\localeInfo.py:596:42: undeclared name not builtin: HORSE_LEVEL2
warning: cyTemp\localeInfo.py:596:56: undeclared name not builtin: HORSE_LEVEL3
warning: cyTemp\localeInfo.py:599:14: undeclared name not builtin: HORSE_HEALTH0
warning: cyTemp\localeInfo.py:600:14: undeclared name not builtin: HORSE_HEALTH1
warning: cyTemp\localeInfo.py:601:14: undeclared name not builtin: HORSE_HEALTH2
warning: cyTemp\localeInfo.py:602:14: undeclared name not builtin: HORSE_HEALTH3
warning: cyTemp\localeInfo.py:607:46: undeclared name not builtin: SKILL_NEED_EMPTY_BOTTLE
warning: cyTemp\localeInfo.py:608:48: undeclared name not builtin: SKILL_NEED_POISON_BOTTLE
warning: cyTemp\localeInfo.py:609:48: undeclared name not builtin: SKILL_ONLY_FOR_GUILD_WAR
warning: cyTemp\localeInfo.py:613:43: undeclared name not builtin: SHOP_NOT_ENOUGH_MONEY
warning: cyTemp\localeInfo.py:614:25: undeclared name not builtin: SHOP_SOLDOUT
warning: cyTemp\localeInfo.py:615:39: undeclared name not builtin: SHOP_INVENTORY_FULL
warning: cyTemp\localeInfo.py:616:33: undeclared name not builtin: SHOP_INVALID_POS
warning: cyTemp\localeInfo.py:617:49: undeclared name not builtin: SHOP_NOT_ENOUGH_MONEY_EX
warning: cyTemp\localeInfo.py:621:24: undeclared name not builtin: STAT_MINUS_CON
warning: cyTemp\localeInfo.py:622:24: undeclared name not builtin: STAT_MINUS_INT
warning: cyTemp\localeInfo.py:623:24: undeclared name not builtin: STAT_MINUS_STR
warning: cyTemp\localeInfo.py:624:24: undeclared name not builtin: STAT_MINUS_DEX
warning: cyTemp\localeInfo.py:627:36: undeclared name not builtin: PVP_OPTION_NORMAL
warning: cyTemp\localeInfo.py:627:56: undeclared name not builtin: PVP_OPTION_REVENGE
warning: cyTemp\localeInfo.py:627:73: undeclared name not builtin: PVP_OPTION_KILL
warning: cyTemp\localeInfo.py:627:93: undeclared name not builtin: PVP_OPTION_PROTECT
warning: cyTemp\localeInfo.py:628:30: undeclared name not builtin: PVP_LEVEL0
warning: cyTemp\localeInfo.py:628:42: undeclared name not builtin: PVP_LEVEL1
warning: cyTemp\localeInfo.py:628:54: undeclared name not builtin: PVP_LEVEL2
warning: cyTemp\localeInfo.py:628:66: undeclared name not builtin: PVP_LEVEL3
warning: cyTemp\localeInfo.py:628:78: undeclared name not builtin: PVP_LEVEL4
warning: cyTemp\localeInfo.py:628:90: undeclared name not builtin: PVP_LEVEL5
warning: cyTemp\localeInfo.py:628:102: undeclared name not builtin: PVP_LEVEL6
warning: cyTemp\localeInfo.py:628:114: undeclared name not builtin: PVP_LEVEL7
warning: cyTemp\localeInfo.py:628:126: undeclared name not builtin: PVP_LEVEL8
warning: cyTemp\localeInfo.py:149:19: undeclared name not builtin: pack_open
warning: cyTemp\localeInfo.py:286:35: undeclared name not builtin: SECOND
warning: cyTemp\localeInfo.py:288:22: undeclared name not builtin: MINUTE
warning: cyTemp\localeInfo.py:298:24: undeclared name not builtin: DAY
warning: cyTemp\localeInfo.py:302:26: undeclared name not builtin: HOUR
warning: cyTemp\localeInfo.py:787:28: undeclared name not builtin: DO_YOU_SELL_ITEM2
warning: cyTemp\localeInfo.py:789:28: undeclared name not builtin: DO_YOU_SELL_ITEM1
warning: cyTemp\localeInfo.py:793:27: undeclared name not builtin: DO_YOU_BUY_ITEM2
warning: cyTemp\localeInfo.py:795:27: undeclared name not builtin: DO_YOU_BUY_ITEM1
warning: cyTemp\localeInfo.py:798:40: undeclared name not builtin: REFINE_FAILURE_CAN_NOT_ATTACH0
warning: cyTemp\localeInfo.py:801:35: undeclared name not builtin: REFINE_FAILURE_NO_SOCKET0
warning: cyTemp\localeInfo.py:804:40: undeclared name not builtin: REFINE_FAILURE_NO_GOLD_SOCKET0
warning: cyTemp\localeInfo.py:808:37: undeclared name not builtin: HOW_MANY_ITEM_DO_YOU_DROP2
warning: cyTemp\localeInfo.py:810:37: undeclared name not builtin: HOW_MANY_ITEM_DO_YOU_DROP1
warning: cyTemp\localeInfo.py:814:26: undeclared name not builtin: FISHING_NOTIFY1
warning: cyTemp\localeInfo.py:816:26: undeclared name not builtin: FISHING_NOTIFY2
warning: cyTemp\localeInfo.py:820:27: undeclared name not builtin: FISHING_SUCCESS1
warning: cyTemp\localeInfo.py:822:27: undeclared name not builtin: FISHING_SUCCESS2
warning: cyTemp\localeInfo.py:826:34: undeclared name not builtin: MONETARY_UNIT0
warning: cyTemp\localeInfo.py:830:55: undeclared name not builtin: MONETARY_UNIT1
warning: cyTemp\localeInfo.py:831:56: undeclared name not builtin: MONETARY_UNIT2
warning: cyTemp\localeInfo.py:838:37: undeclared name not builtin: MONETARY_UNIT_JUN
warning: cyTemp\networkModule.py:252:10: Unreachable code
warning: cyTemp\playerSettingModule.py:1409:19: undeclared name not builtin: pack_open
warning: cyTemp\stringCommander.py:62:3: Unreachable code
warning: cyTemp\system.py:292:32: undeclared name not builtin: __DEBUG__
warning: cyTemp\system.py:296:39: undeclared name not builtin: __COMMAND_LINE__
warning: cyTemp\system.py:275:25: undeclared name not builtin: __main__
warning: cyTemp\system_cython.py:128:17: undeclared name not builtin: __USE_CYTHON__
warning: cyTemp\system_cython.py:307:39: undeclared name not builtin: __COMMAND_LINE__
warning: cyTemp\uiAffectShower.py:618:24: undeclared name not builtin: PlayTimeImage
warning: cyTemp\uiInventory.py:842:27: Unreachable code
warning: cyTemp\uiScriptLocale.py:21:19: undeclared name not builtin: pack_open
warning: cyTemp\ui_cython.py:2770:25: undeclared name not builtin: __USE_EXTRA_CYTHON__

This i get

Edited by Amok

..,-

Link to comment
Share on other sites

  • 1 month later...
  • Premium
On 7/6/2015 at 12:48 PM, Aurora said:

I think you need to upgrade your client python 2.2 to 2.7. See here http://www.mpcforum.pl/topic/1138879-aktualizacja-pythona-do-wersji-276/ .

 

 

0807 02:07:00410 :: __main__:2: RuntimeWarning: tp_compare didn't return -1 or -2 for exception
0807 02:07:00411 :: 
introLogin.py(line:546) introLogin.LoginWindow.__LoadScript (introLogin.c:10229)
ui.py(line:3008) ui.PythonScriptLoader.LoadScriptFile (ui.c:71397)
ui.py(line:3210) ui.PythonScriptLoader.LoadChildren (ui.c:74988)
ui.py(line:3210) ui.PythonScriptLoader.LoadChildren (ui.c:74988)
ui.py(line:3015) ui.PythonScriptLoader.LoadChildren (ui.c:71584)
LoginWindow.__LoadScript.LoadObject - <type 'exceptions.OverflowError'>:Python int too large to convert to C long
0807 02:07:00412 :: ============================================================================================================
0807 02:07:00412 :: Abort!!!!

I'm getting those errors when i try to launch the client. It opens for 1 second and then close. 

 

EDIT: I solved the problem with Ken's method from here:

Ty.

Link to comment
Share on other sites

  • 1 month later...
  • 4 weeks later...
  • 2 months later...

Announcements



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