Jump to content

Dimmi

Inactive Member
  • Posts

    93
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Dimmi

  1. Hi guys, I have this log.txt:

    	0921 17:45:00005 ::
    0921 17:45:00005 :: ## Network - OffLine Phase ##
    0921 17:45:00005 ::
    0921 17:45:00042 :: importing from pack debugInfo
    0921 17:45:00043 :: name '__COMMAND_LINE__' is not defined
    0921 17:45:02948 :: Traceback:	Call: File "<string>", line 1, in <module>
    Call: File "system.py", line 1, in <module>
    Error: name '__COMMAND_LINE__' is not defined	0921 17:45:02949 :: SYSERR: RunMain Error
    0921 17:45:02954 :: SYSERR: granny_shared_vbs:
    0921 17:45:02954 :: SYSERR:  0: 0
    0921 17:45:02954 :: SYSERR:  1: 0
    0921 17:45:02954 :: SYSERR:  2: 0
    0921 17:45:02954 :: SYSERR:  3: 0
    0921 17:45:02955 :: SYSERR:  4: 0
    0921 17:45:02955 :: SYSERR:  5: 0
    0921 17:45:02956 :: SYSERR:  6: 0
    0921 17:45:02956 :: SYSERR:  7: 0
    0921 17:45:02957 :: SYSERR:  8: 0
    0921 17:45:02959 :: CResourceManager::__DestroyDeletingResourceMap 0
    0921 17:45:02960 :: CResourceManager::__DestroyResourceMap 0
    0921 17:45:02962 :: CResourceManager::__DestroyResourceMap 0
    0921 17:45:02963 :: CPythonBackground Clear
    0921 17:45:02965 :: PythonIME Clear
    0921 17:45:02966 :: PythonNetworkMainStream Clear
    0921 17:45:02968 :: Python Graphic Clear

     

    Do you know how to solve it?

    1 more question, it generates me the debug version of the starter, how can I build into official (not debug version) starter?

    Here are the 49 warnings got after building binary:

    Severity Code Description Project File Line Suppression State
    Warning LNK4075 ignoring '/INCREMENTAL' due to '/LTCG' specification UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\LINK 1 
    Warning LNK4075 ignoring '/EDITANDCONTINUE' due to '/OPT:LBR' specification UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\devil.lib(il_stack.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jaricom.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jaricom.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcapimin.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcapimin.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcapistd.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcapistd.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcarith.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcarith.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jccoefct.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jccoefct.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jccolor.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jccolor.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcdctmgr.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcdctmgr.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jchuff.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jchuff.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcinit.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcinit.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcmainct.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcmainct.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcmarker.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcmarker.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcmaster.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcmaster.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcomapi.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcomapi.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcparam.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcparam.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcprepct.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcprepct.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jcsample.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jcsample.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdapimin.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdapimin.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdapistd.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdapistd.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdarith.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdarith.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdatasrc.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdatasrc.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdcoefct.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdcoefct.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdcolor.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdcolor.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jddctmgr.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jddctmgr.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdhuff.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdhuff.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdinput.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdinput.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdmainct.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdmainct.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdmarker.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdmarker.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdmaster.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdmaster.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdmerge.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdmerge.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdpostct.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdpostct.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jdsample.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jdsample.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jerror.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jerror.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jfdctflt.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jfdctflt.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jfdctfst.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jfdctfst.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jfdctint.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jfdctint.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jidctflt.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jidctflt.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jidctfst.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jidctfst.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jidctint.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jidctint.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jmemmgr.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jmemmgr.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jmemnobs.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jmemnobs.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jquant1.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jquant1.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jquant2.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jquant2.obj) 1 
    Warning LNK4099 PDB 'jpeg.pdb' was not found with 'jpeg.lib(jutils.obj)' or at 'C:\Users\valii\Desktop\dsa\out\jpeg.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\jpeg.lib(jutils.obj) 1 
    Warning LNK4099 PDB 'lzo+p.pdb' was not found with 'lzo2.lib(lzo1x_d4_a07.obj)' or at 'C:\Users\valii\Desktop\dsa\out\lzo+p.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\lzo2.lib(lzo1x_d4_a07.obj) 1 
    Warning LNK4099 PDB 'lzo+p.pdb' was not found with 'lzo2.lib(lzo_init.obj)' or at 'C:\Users\valii\Desktop\dsa\out\lzo+p.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\lzo2.lib(lzo_init.obj) 1 
    Warning LNK4099 PDB 'lzo+p.pdb' was not found with 'lzo2.lib(pinit.obj)' or at 'C:\Users\valii\Desktop\dsa\out\lzo+p.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\lzo2.lib(pinit.obj) 1 
    Warning LNK4099 PDB 'lzo+p.pdb' was not found with 'lzo2.lib(plzo1x_1p.obj)' or at 'C:\Users\valii\Desktop\dsa\out\lzo+p.pdb'; linking object as if no debug info UserInterface C:\Users\valii\Desktop\dsa\extern\projects\UserInterface\lzo2.lib(plzo1x_1p.obj) 1 

    Thanks! Kind regards!

  2. Hi everybody,

    I got stuck with a source, I just got it from the internet and I am not as expert to debug this:

    Spoiler

    				
    			compile BattleArena.cpp
    		compile FSM.cpp
    		compile MarkConvert.cpp
    		compile MarkImage.cpp
    		compile MarkManager.cpp
    		compile OXEvent.cpp
    		compile TrafficProfiler.cpp
    		compile ani.cpp
    		compile arena.cpp
    		compile banword.cpp
    		compile battle.cpp
    		compile blend_item.cpp
    		compile block_country.cpp
    		compile buffer_manager.cpp
    		compile building.cpp
    		compile castle.cpp
    		compile char.cpp
    		compile char_affect.cpp
    		compile char_change_empire.cpp
    		compile char_battle.cpp
    		compile char_horse.cpp
    		compile char_item.cpp
    		compile char_manager.cpp
    		compile char_quickslot.cpp
    		compile char_resist.cpp
    		compile char_skill.cpp
    		compile char_state.cpp
    		compile PetSystem.cpp
    		compile cmd.cpp
    		compile cmd_emotion.cpp
    		compile cmd_general.cpp
    		compile cmd_gm.cpp
    		compile cmd_oxevent.cpp
    		compile config.cpp
    		compile constants.cpp
    		compile crc32.cpp
    		compile cube.cpp
    		compile acce.cpp
    		compile db.cpp
    		cmd_gm.cpp:2121:9: warning: multi-character character constant
    		compile desc.cpp
    		compile desc_client.cpp
    		compile desc_manager.cpp
    		PetSystem.cpp: In member function 'virtual bool CPetActor::_UpdateFollowAI()':
    		PetSystem.cpp:246: warning: unused variable 'bDoMoveAlone'
    		PetSystem.cpp: In member function 'CPetActor* CPetSystem::Summon(DWORD, CItem*, const char*, bool, DWORD)':
    		PetSystem.cpp:552: warning: unused variable 'petVID'
    		{standard input}: Assembler messages:
    		{standard input}:18925: Warning: end of file not at end of a line; newline inserted
    		{standard input}:19926: Error: unbalanced parenthesis in operand 2.
    		g++: Internal error: Killed: 9 (program cc1plus)
    		Please submit a full bug report.
    		See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    		gmake: *** [Makefile:131: OBJDIR/char_battle.o] Error 1
    		gmake: *** Waiting for unfinished jobs....
    		config.cpp: In function 'void config_init(const std::string&)':
    		config.cpp:434: warning: NULL used in arithmetic
    		config.cpp:458: warning: NULL used in arithmetic
    		config.cpp:482: warning: NULL used in arithmetic
    		config.cpp:504: warning: unused variable 'line'
    		g++: Internal error: Killed: 9 (program cc1plus)
    		Please submit a full bug report.
    		See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    		gmake: *** [Makefile:131: OBJDIR/char.o] Error 1
    		db.cpp: In member function 'void DBManager::Query(const char*, ...)':
    		db.cpp:94: warning: comparison between signed and unsigned integer expressions
    		db.cpp: In member function 'SQLMsg* DBManager::DirectQuery(const char*, ...)':
    		db.cpp:105: warning: comparison between signed and unsigned integer expressions
    		{standard input}: Assembler messages:
    		{standard input}:9458: Warning: end of file not at end of a line; newline inserted
    		{standard input}:9989: Error: suffix or operands invalid for `mov'
    		g++: Internal error: Killed: 9 (program cc1plus)
    		Please submit a full bug report.
    		See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    		gmake: *** [Makefile:131: OBJDIR/char_item.o] Error 1
    		acce.cpp: In function 'void FN_remove_material(CItem**, DWORD, int, int)':
    		acce.cpp:87: warning: unused variable 'count'
    		acce.cpp: In function 'bool Acce_InformationInitialize()':
    		acce.cpp:943: warning: comparison between signed and unsigned integer expressions
    		{standard input}: Assembler messages:
    		{standard input}:0: Warning: end of file not at end of a line; newline inserted
    		{standard input}:935: Error: suffix or operands invalid for `mov'
    		g++: Internal error: Killed: 9 (program cc1plus)
    		Please submit a full bug report.
    		See <URL:http://gcc.gnu.org/bugs.html> for instructions.
    		gmake: *** [Makefile:131: OBJDIR/char_state.o] Error 1				
    			

    {standard input}:19926: Error: unbalanced parenthesis in operand 2.
    g++: Internal error: Killed: 9 (program cc1plus)

    Is here someone to tell me what means this, please? Because 19926 from standard input tells nothing to me...

     

    Kind regards,

    Dimmi

  3. 21 minutes ago, Sonitex said:

    Try using your mouse right button. Hold it down and move. It is much easier than using your keyboard..

    And yeah, maps bigger than 2x2 cannot be fully seen, that is just how it works.

    If I hold down my right button on mouse, I can only move around the sura char, I can't move the sura char around the map. Nevermind, for me it works on the middle button (the wheel), that was a little fk'd up.

  4. 59 minutes ago, martysama0134 said:

    You have to load the metin2_map_a1 (example) from the same folder the WorldEditor.exe is.

     

    3 hours ago, KnighT said:

    You dont have to load Ymir Work folder.. you have to load the map folder.

    The map folder goes in to the Ymir Work folder. If you dont understand reply.

     

     

    Thanks guys, I found it, now it works. I have one more problem now, when I create a map, or load, if it's a lil bit big, we doesn't shows all to me, only a part, and I can't move with the sura char, not even using WASD, neither the arrows. Why?

  5. Hi guys,

    Did anyone know how to run Metin2 on Ubuntu Mate? I tried all I can do, I understood, the only chance it's to install windows by a virtual machine and play there... I wanna develop my client from Ubuntu, so, I need some help.

    I tried with Wine, but I get "CREATE_NO_APPROPIATE_DEVICE" error, even if Wine is set up on Windows 7.

    Thank you very much for any suggestion.

  6. It returns

    nil
    

    but thanks for advice, anyway...

    That's strange. It should actually work exactly how selecting integer works.

    Try using extended MySQL query:

    SELECT `column` FROM player.table LIMIT 1;
    
    Also, do you use source? It would be easier to use the source.

    Yes, I'm using source. Function I used (mysql.query) was added by source, but the query it's ok, cuz' always I test my query in Navicat. The problem is in variable (I think), because integer variable works.

  7. Hi guys,

    I got stuck. I made a quest by myself and got this when I try to compile:

    root@xx:/usr/game/share/locale/romania/quest # ./qc biologist.lua
    QUEST : biologist
    STATE : start
    FUNCTION first_mission()
    FUNCTION set_mission(mission)
    FUNCTION set_cooldown()
    FUNCTION remove_cooldown()
    FUNCTION set_item(vnum,count)
    FUNCTION get_mission()
    FUNCTION get_cooldown()
    FUNCTION get_count()
    FUNCTION get_mission_info(MissionID)
    FUNCTION get_mission_id(MissionLevel)
    FUNCTION Tasks(playerLevel,playerMissionID,playerCooldown,playerItemsBrought,mission_info)
    WHEN  : 20084.take
    Abort (core dumped)
    

    My quest is:

    quest biologist begin
    	state start begin
    		function first_mission()
    			mysql.query(string.format("INSERT INTO quest.biologistchaegirab (playerid, mission, time, item, count) VALUES ('%d', '%d', '%d', '%d', '%d')", pc.get_player_id(), 0, get_time(), 30305, 10))
    		end
    
    		function set_mission(mission)
    			mysql.query(string.format("UPDATE quest.biologistchaegirab SET mission = '%d' WHERE playerid = '%d'", mission, pc.get_player_id()))
    		end
    
    		function set_cooldown()
    			mysql.query(string.format("UPDATE quest.biologistchaegirab SET time = '%d' WHERE playerid = '%d'", get_time() + settings.biologist_time * 60, pc.get_player_id()))
    		end
    		
    		function remove_cooldown()
    			syschat("Timpul a fost eliminat.")
    			mysql.query(string.format("UPDATE quest.biologistchaegirab SET time = '%d' WHERE playerid = '%d'", get_time() * 1 + 1, pc.get_player_id()))
    			pc.removeitem(71035, 1)
    		end
    
    		function set_item(vnum, count)
    			mysql.query(string.format("UPDATE quest.biologistchaegirab SET item = '%d', count = '%d' WHERE playerid = '%d'", vnum, count, pc.get_player_id()))
    		end
    		
    		function get_mission()
    			local mission = mysql.query(string.format("SELECT mission FROM quest.biologistchaegirab WHERE playerid = '%d' LIMIT 1", pc.get_player_id()))
    			return mission[1][1]
    		end
    		
    		function get_cooldown()
    			local time = mysql.query(string.format("SELECT time FROM quest.biologistchaegirab WHERE playerid = '%d' LIMIT 1", pc.get_player_id()))
    			return time[1][1]
    		end
    
    		function get_count()
    			local count = mysql.query(string.format("SELECT count FROM quest.biologistchaegirab WHERE playerid = '%d' LIMIT 1", pc.get_player_id()))
    			return count[1][1]
    		end
    		
    		function get_mission_info(MissionID)
    			mission_info_map = {
    				-- ID = Level, Nume, VnumItem, Cantitate, Recompensa, BonusID1, BonusVAL1, BonusID2, BonusVAL2, RecompensaItem, RecompensaCantitate 
    				[1] = {30, "Dinþii de orc", 30305, 10, "+10% viteza de miºcare (permanentã)[ENTER]Cutie roºie de ebonitã ", 8, 10, 0, 0, 50109, 1 },
    				[2] = {40, "Cãrþile blestemelor", 30306, 15, "+5% viteza de atac (permanentã)[ENTER]Cutie de abanos maro", 7, 5, 0, 0, 50110, 1 },
    				[3] = {50, "Suvenirele Demonului", 30307, 15, "+60 apãrare (permanentã)[ENTER]Cutie de abanos galbenã ", 54, 60, 0, 0 , 50111, 1 },
    				[4] = {60, "Globuri de gheaþã", 30308, 20, "+50 atac (permanent)[ENTER]Cutie de abanos verde-deschis", 53, 50, 0, 0, 50112, 1 },
    				[5] = {70, "Crengile Zelkova", 30165, 25, "+10% viteza de miºcare (permanentã)[ENTER]+5% puternic împotriva monºtrilor (permanent)[ENTER]Cutie de abanos verde", 8, 10, 63, 5, 50113, 1 },
    				[6] = {80, "Tãbliþele Tugyis", 30166, 30, "+10 forþã (permanent)[ENTER]+10% viteza de atac (permanentã)[ENTER]Cutie de abanos albastrã ", 5, 10, 7, 10, 50114, 1 },
    				[7] = {85, "Rãmurelele roºii", 30167, 40, "+10% reducerea pagubelor încasate de la[ENTER]ceilalþi jucãtori[ENTER]Cutie de abanos purpurie", 73, 10, 0, 0, 50115, 1 },
    				[8] = {90, "Însemnele Liderilor", 30168, 50, "+10% puternic împotriva semi-oamenilor[ENTER]Cutie de abanos albastrã ", 17, 10, 0, 0, 50114, 1 }
    			}
    			MissionID = tonumber(MissionID)
    			return mission_info_map[MissionID]
    		end
    		
    		function get_mission_id(MissionLevel)
    			mission_level_map = {
    				[30] = 1,
    				[40] = 2,
    				[50] = 3,
    				[60] = 4,
    				[70] = 5,
    				[80] = 6,
    				[85] = 8,
    				[90] = 9
    			}
    			MissionLevel = tonumber(MissionLevel)
    			return mission_level_map[MissionLevel]
    		end
    		
    		function Tasks(playerLevel, playerMissionID, playerCooldown, playerItemsBrought, mission_info)
    	
    			local Bonus1 = mission_info[6]
    			local BonusValue1 = mission_info[7]
    			local Bonus2 = mission_info[8]
    			local BonusValue2 = mission_info[9]
    			local ItemBonus = mission_info[10]
    			local ItemBonusCount = mission_info[11]
    		
    			if get_time() < playerCooldown then
    				say_title(mob_name(20084))
    				say("")
    				say("Momentan nu am terminat de studiat obiectul ")
    				say("care mi le-ai adus. Revin-o mai târziu. ")
    				say("Poþi aduce un obiect odatã la 10 minute. ")
    				say("")
    				return
    			end
    			if playerLevel < mission_info[1] then
    				say_title(mob_name(20084))
    				say("")
    				say("Îmi pare rãu, dar trebuie sã ai nivelul " .. mission_info[1])
    				say("pentru aceastã misiune! Revin-o când atingi ")
    				say("nivelul necesar. ")
    				say("")
    				return
    			end			
    			
    			say_title(mob_name(20084))
    			say("")
    			say("Pentru a finaliza aceastã misiune este nevoie de ")
    			local ItemRemaining = mission_info[4] - playerItemsBrought
    			say(""..item_name(mission_info[3])..", "..ItemRemaining.." de bucãþi.")
    			say("")
    			say("Recompensa pentru aceastã misiune este:")
    			say_reward(mission_info[5])
    			say("")
    			if select("Am adus "..item_name(mission_info[3]).."", "Înapoi") == 1 then
    				if pc.count_item(mission_info[3]) == 0 then
    					say_title(mob_name(20084))
    					say("")
    					say("Nu ai obiectele necesare.")
    					say("Pentru aceastã misiune este nevoie de " .. item_name(mission_info[3]))
    					say("")
    					return
    				end
    				local Sansa = { 
    					[30] = 2, -- 50%
    					[40] = 2, -- 50%
    					[50] = 2, -- 50% 
    					[60] = 3, -- 33%
    					[70] = 3, -- 33% 
    					[80] = 3, -- 33% 
    					[85] = 4, -- 25% 
    					[90] = 4  -- 25% 
    				}
    				local Prob = number(1, Sansa[mission_info[1]])
    				if Prob ~= 1 then
    					say_title(mob_name(20084))
    					say("")
    					say("Îmi pare rãu, dar acest exemplar nu este bun!")
    					say("Revin-o cu un exemplar nou.")
    					say("")
    					pc.remove_item(mission_info[3], 1)
    					return
    				end			
    				playerItemsBrought = playerItemsBrought + 1
    				biologist.set_item(mission_info[3], playerItemsBrought)				
    				if playerItemsBrought == mission_info[4] then
    					pc.remove_item(mission_info[3], 1)
    					say_title(mob_name(20084))
    					say("")
    					say("În sfârºit! Am terminat de studiat aceste obiecte.")
    					say("Mulþumesc pentru ajutor. Recompensa ta este")
    					say("")
    					say_reward(mission_info[5])
    					say("")
    					affect.add_collect(mission_info[6], mission_info[7], 60*60*24*365*60)
    					pc.give_item2 (mission_info[10], mission_info[11])
    					if mission_info[8] != 0 then
    						affect.add_collect(mission_info[8], mission_info[9], 60*60*24*365*60)
    					end
    					-- Noua misiune					
    					local NextMissionID = playerMissionID + 1
    					local NextMission = biologist.get_mission_info(NextMissionID)
    					biologist.set_mission(NextMission[1])
    					-- Noul item de colectat
    					local ItemChallange = NextMission[3]
    					biologist.set_item(ItemChallange, 0)
    				else
    					say_title(mob_name(20084))
    					say("")
    					say("Excelent! Acest exemplar este de calitate.")
    					ItemRemaining = mission_info[4] - playerItemsBrought
    					say("Mai trebuie sã aduci doar "..ItemRemaining.." de exemplare.")
    					say("")
    					biologist.set_cooldown()
    					pc.remove_item(mission_info[3], 1)
    				end
    			end
    		end
    		
    		when 20084.take with pc.get_level() >= 30	
    			local mission_info = biologist.get_mission_info(biologist.get_mission_id())
    			biologist.Tasks(pc.get_level(), biologist.get_mission_id(), biologist.get_cooldown(), biologist.get_count(), mission_info)
    		end
    	end
    end
    

    Any help please?

    Thanks!

  8. Here has the following functions in C ++

     

    mysql.query

    mysql.direct_query

    mysql.update

    mysql.real_escape_string

    mysql.get_table_postfix

     

    go to game / src

     

    open queslua.cpp

     

    under

    RegisterDragonSoulFunctionTable();
    

    add

    RegisterMysqlFunctionTable();
    

    open queslua.h

     

    under

    extern void RegisterDragonSoulFunctionTable();
    

    add

    extern void RegisterMysqlFunctionTable();
    

    add in the makefile 

    questlua_mysql.cpp
    

    Download the file

     

    This is the hidden content, please

     

    VirusTotal

     

    This is the hidden content, please

     

    Thanks. It works. :D

    I used mysql.query for update and mysql.direct_query for select.

    • Metin2 Dev 6
    • Good 1
    • Love 3
×
×
  • 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.