speppoz
-
Posts
8 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by speppoz
-
-
Hi all!
Months ago I updated the my client source because I wanted to compile it with Visual Studio 2017 and I haven't had problems.
These days I needed to compile it again and it gave me a linking error saying: "libjpeg-6bMT.lib(jerror.obj) : error LNK2001: unresolved external symbol ___iob_func".I tryed to do a lot of thing written in various posts but they didn't solve the problem.
Can someone help me here or via skype please?
Edit: I don't know if it's better or not but now I have these errors:
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_std_error
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_CreateCompress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_CreateDecompress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_destroy_compress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_destroy_decompress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_stdio_src
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_set_defaults
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_set_quality
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_start_compress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_write_scanlines
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_finish_compress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_read_header
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_start_decompress
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_read_scanlines
16>eterlib.lib(JpegFile.obj) : error LNK2001: unresolved external symbol _jpeg_finish_decompress -
10 hours ago, WeedHex said:
Ok now It works. It was a problem of communication between the client and the server I think because I only added a
"chat.AppendChat(chat.CHAT_TYPE_INFO, "Button Clicked")" inside the "def OnClickBlockExp(self):" to see if the button reacted and did a reboot.Thanks all!
- 1
-
8 hours ago, WeedHex said:
I cant see this things....
Exp function is in INT if you upp your level over 2kkk exp you will get fucking errors.
function format_exp()
local expp = pc.get_exp()
if expp < 1999999999 then --Do it thinking how many exp is required
pc.give_exp2(-pc.get_exp())
else
pc.give_exp2(-1999999999)
pc.give_exp2(-pc.get_exp())
end
endquest.format_exp()
pc.block_exp() --I hope that you have it........Thanks for your reply! I will apply that to the quest but the problem was about the switching of the quest flag between 0 and 1.
I don't see nothing in chat when I press the button.8 hours ago, WeedHex said:If you can't use LUA or PY is better doing a LETTER for this system or item with .use
I don't think that this is the best advice. I don't mean me but all. I think everyone has to make his experience and you can learn also by making mistakes.
Don't judge people. Help them if you really want to be usefull and you will be respected. Take that like a friend adviceP.s.: I have already do that by Letter but I decided to do it by button
- 1
-
Hi all!
I followed the guide at that link about the connection between client and quest:
https://metin2dev.org/board/index.php?/topic/1698-howtooldquest-client-communicationfor-any-version/
But when I press the button in game, nothing happens in the quest! If I do it only on a graphical point of view, the button reacts to the click, but it doesn't get the anti exp active.
This is my code added for the quest:- game.py:
def OnClickBlockExp(self):
event.QuestButtonClick(int(constInfo.BLOCK_EXP))----------------------------------------------------------------------------------------------------------------
def __ServerCommand_Build(self):
serverCommandList={"blocco_exp" : self.blocco_exp,
----------------------------------------------------------------------------------------------------------------
def blocco_exp(self,value):
constInfo.BLOCK_EXP = int(value)- quest:
quest anti_exp begin
state start begin
when login begin
cmdchat("blocco_exp "..q.getcurrentquestindex())
if pc.getqf("blocco_exp") == 1 then
pc.setqf("exp_pc",pc.get_exp())
chat("[Blocco Esperienza] - Attivato!")
elseif pc.getqf("blocco_exp") == 0 then
chat("[Blocco Esperienza] - Disattivato!")
end
end
when button or info begin
if pc.getqf("blocco_exp") == 0 then
pc.setqf("blocco_exp", 1)
pc.setqf("exp_pc",pc.get_exp())
chat("[Blocco Esperienza] - Attivato!")
elseif pc.getqf("blocco_exp") == 1 then
pc.setqf("blocco_exp", 0)
chat("[Blocco Esperienza] - Disattivato!")
end
end
when kill with not npc.is_pc() begin
if pc.getqf("blocco_exp") == 1 then
pc.give_exp2(pc.getqf("exp_pc")-pc.get_exp())
end
end
end
endCould someone tell me why it doesn't work please?
-
17 hours ago, Tasho said:17 hours ago, Tasho said:
You have tuple not a dictionary
So i can implement a function or try to do it in a different way..
Meanwhile I will work on it and if it will works I will share itEdit: I think the problem is in characterwindow.py. Pheraps it is written in a bad way but I don't know why..
Edit_2: I managed to insert the buttons in the bonus page area and when I click on them they give me a blank page how did I expect. Now I will try to show the correct content after the click. If someone want to help me I can share the code
- 1
- 2
- 2
-
Hi all!
I'm trying to do a bonus page inside the character window but with more pages.
For example one player has to press C or V or B or N, then left click on 'BONUS' (on the right of 'QUEST') and then he can click on various buttons inside the bonus page.If I put only 1 page with no other buttons in the bonus page it works, but if I try to insert them it gives me the error:
uiCharacter.py(line:424) __LoadWindow
uiCharacter.py(line:161) __LoadScript
ui.py(line:2854) LoadScriptFile
ui.py(line:3072) CheckKeyListCharacterWindow.__LoadWindow - <type 'exceptions.AttributeError'>:'tuple' object has no attribute 'has_key'
0214 14:44:17942 :: ============================================================================================================
0214 14:44:17942 :: Abort!!!!Can someone help me please?
- 1
- 1
- 1
-
Hi all!
I saw a post on the forum about "[C++]Reload map regens ingame" and I want to ask you a question: can i do that in lua too?
I have to reload the regen ingame when I start, for example, the Halloween Event and so to spawn Jack Pumpkin.
If I use regen_in_map, when I restart the machine, that NPC will disappears, so I need to have your /reload_regen in lua funcion after a changing on the regen of the village from WinSCP.Thanks in advance!
[help] Query at character creation - C++
in Community Support - Questions & Answers
Posted
Hi guys!
I'm trying to find in source files a point where I can initialize a new table in player called player.mount.
I would like to take the character id at it creation and do an INSERT INTO query into the new table.
I need to do it only once.
Does anyone know where I can find the query which initializes the character for the first time?