-
Posts
38 -
Joined
-
Last visited
-
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by topolino1958
-
-
Hi guys, do you have any idea how to fix this error? I'm trying to install the stola system.
-
On 7/28/2021 at 9:01 PM, topolino1958 said:
Hi guys, I mounted the projection transmutation system but I have this error in the client sysser.txt.
Can anyone help me with a fix?
0728 20:53:27529 :: Traceback (most recent call last):
0728 20:53:27530 :: File "networkModule.py", line 239, in SetGamePhase
0728 20:53:27530 :: File "game.py", line 99, in __init__
0728 20:53:27530 :: File "interfaceModule.py", line 324, in MakeInterface
0728 20:53:27530 :: File "interfaceModule.py", line 274, in __MakeChangeLookWindow
0728 20:53:27530 :: File "uichangelook.py", line 69, in LoadWindow
0728 20:53:27530 :: TypeError
0728 20:53:27530 :: :
0728 20:53:27530 :: not all arguments converted during string formatting
0728 20:53:27530 ::Guys after fixing the sysser.txt that I had posted above, now I have others someone knows how can you solve?
Spoiler0810 22:50:49069 :: Traceback (most recent call last):
0810 22:50:49069 :: File "game.py", line 2211, in ActChangeLook
0810 22:50:49069 :: AttributeError
0810 22:50:49069 :: :
0810 22:50:49069 :: 'Interface' object has no attribute 'ActChangeLook'
0810 22:50:49069 :: -
On 7/29/2021 at 7:40 AM, FlorinMarian said:
Publish your uichangelook.py.
Best regards, Florin.
Spoilerimport ui
import player
import uiCommon
import uiToolTip
import changelook
import localeInfo
import mouseModuleclass Window(ui.ScriptWindow):
def NumberToMoneyString(self, number):
number = str(number)
strNumber = "%s" % (','.join([number[::-1][k : k + 3][::-1] for k in xrange(len(number)+1, -1, -3)]))
strNumber = strNumber[1:]
return "%s" % (strNumber)def __init__(self):
ui.ScriptWindow.__init__(self)
self.isLoaded = 0
self.PositionOut = 0
self.PositionStartX = 0
self.PositionStartY = 0
self.dialog = Nonedef __del__(self):
ui.ScriptWindow.__del__(self)def Destroy(self):
self.ClearDictionary()
self.titleBar = None
self.titleName = None
self.accept = None
self.cancel = None
self.slot = None
self.cost = None
self.PositionOut = 0
self.PositionStartX = 0
self.PositionStartY = 0
self.dialog = Nonedef LoadWindow(self):
if self.isLoaded:
return
self.isLoaded = 1
try:
pyScrLoader = ui.PythonScriptLoader()
pyScrLoader.LoadScriptFile(self, "uiscript/changelookwindow.py")
except:
import exception
exception.Abort("ChangeLookWindow.LoadDialog.LoadScript")
try:
self.titleBar = self.GetChild("TitleBar")
self.titleName = self.GetChild("TitleName")
self.accept = self.GetChild("AcceptButton")
self.cancel = self.GetChild("CancelButton")
self.cost = self.GetChild("Cost")
self.slot = self.GetChild("ChangeLookSlot")
except:
import exception
exception.Abort("ChangeLookWindow.LoadDialog.BindObject")
self.titleBar.SetCloseEvent(ui.__mem_func__(self.OnClose))
self.titleName.SetText(localeInfo.CHANGE_LOOK_TITLE)
self.cancel.SetEvent(ui.__mem_func__(self.OnClose))
self.accept.SetEvent(ui.__mem_func__(self.OnPressAccept))
self.cost.SetText(localeInfo.CHANGE_LOOK_COST % (self.NumberToMoneyString(changelook.GetCost())))
self.slot.SetSelectEmptySlotEvent(ui.__mem_func__(self.OnSelectEmptySlot))
self.slot.SetUnselectItemSlotEvent(ui.__mem_func__(self.OnSelectItemSlot))
self.slot.SetUseSlotEvent(ui.__mem_func__(self.OnSelectItemSlot))
self.slot.SetOverInItemEvent(ui.__mem_func__(self.OnOverInItem))
self.slot.SetOverOutItemEvent(ui.__mem_func__(self.OnOverOutItem))
self.tooltipItem = Nonedef SetItemToolTip(self, itemTooltip):
self.tooltipItem = itemTooltipdef IsOpened(self):
if self.IsShow() and self.isLoaded:
return True
return Falsedef Open(self):
self.PositionOut = 0
(self.PositionStartX, self.PositionStartY, z) = player.GetMainCharacterPosition()
self.cost.SetText(localeInfo.CHANGE_LOOK_COST % (self.NumberToMoneyString(changelook.GetCost())))
for i in xrange(changelook.WINDOW_MAX_MATERIALS):
self.slot.ClearSlot(i)
self.Show()def Close(self):
if self.tooltipItem:
self.tooltipItem.HideToolTip()
self.OnCancelAccept()
self.Hide()def OnClose(self):
changelook.SendCloseRequest()def OnPressEscapeKey(self):
self.OnClose()
return Truedef OnPressAccept(self):
(isHere, iCell) = changelook.GetAttachedItem(1)
if not isHere:
return
dialog = uiCommon.QuestionDialog()
dialog.SetText(localeInfo.CHANGE_LOOK_CHANGE_ITEM)
dialog.SetAcceptEvent(ui.__mem_func__(self.OnAccept))
dialog.SetCancelEvent(ui.__mem_func__(self.OnCancelAccept))
dialog.Open()
self.dialog = dialogdef OnAccept(self):
changelook.SendRefineRequest()
self.OnCancelAccept()def OnCancelAccept(self):
if self.dialog:
self.dialog.Close()
self.dialog = None
return Truedef OnUpdate(self):
LIMIT_RANGE = changelook.LIMIT_RANGE
(x, y, z) = player.GetMainCharacterPosition()
if abs(x - self.PositionStartX) >= LIMIT_RANGE or abs(y - self.PositionStartY) >= LIMIT_RANGE:
if not self.PositionOut:
self.PositionOut += 1
self.OnClose()def OnSelectEmptySlot(self, selectedSlotPos):
isAttached = mouseModule.mouseController.isAttached()
if not isAttached:
return
attachedSlotType = mouseModule.mouseController.GetAttachedType()
attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber()
attachedInvenType = player.SlotTypeToInvenType(attachedSlotType)
mouseModule.mouseController.DeattachObject()
if attachedSlotType == player.SLOT_TYPE_INVENTORY and attachedInvenType == player.INVENTORY:
changelook.Add(attachedInvenType, attachedSlotPos, selectedSlotPos)def OnSelectItemSlot(self, selectedSlotPos):
mouseModule.mouseController.DeattachObject()
changelook.Remove(selectedSlotPos)def OnOverInItem(self, selectedSlotPos):
if self.tooltipItem:
(isHere, iCell) = changelook.GetAttachedItem(selectedSlotPos)
if isHere:
self.tooltipItem.SetInventoryItem(iCell)def OnOverOutItem(self):
if self.tooltipItem:
self.tooltipItem.HideToolTip()def Refresh(self):
for i in xrange(changelook.WINDOW_MAX_MATERIALS):
self.slot.ClearSlot(i)
(isHere, iCell) = changelook.GetAttachedItem(i)
if isHere:
self.slot.SetItemSlot(i, player.GetItemIndex(iCell), 1)This my uichangelook.py @FlorinMarian
-
Hi guys, I mounted the projection transmutation system but I have this error in the client sysser.txt.
Can anyone help me with a fix?
Spoiler0728 20:53:27529 :: Traceback (most recent call last):
0728 20:53:27530 :: File "networkModule.py", line 239, in SetGamePhase
0728 20:53:27530 :: File "game.py", line 99, in __init__
0728 20:53:27530 :: File "interfaceModule.py", line 324, in MakeInterface
0728 20:53:27530 :: File "interfaceModule.py", line 274, in __MakeChangeLookWindow
0728 20:53:27530 :: File "uichangelook.py", line 69, in LoadWindow
0728 20:53:27530 :: TypeError
0728 20:53:27530 :: :
0728 20:53:27530 :: not all arguments converted during string formatting
0728 20:53:27530 :: -
Hi, guys I know maybe the first level mission for Lycan is not the best written! But it works perfectly!
Spoiler--**
--**Quest for (metin2.dev) by topolino1958
--**
quest wolf_quest_lv1 begin
state start begin
when login or levelup with pc.get_level() == 1 and pc.get_job() == 4 begin
set_state ( gotoinformation )
end -- when login
end -- state start
state gotoinformation begin
when letter begin
send_letter(gameforge.wolf_quest_lv1._10_sendLetter)
end -- when letter
when button or info begin
say_title(gameforge.wolf_quest_lv1._10_sendLetter)
say(gameforge.wolf_quest_lv1._20_say)
set_state ( gototeacher )
end -- when button
end -- state
state gototeacher begin
when letter begin
local v=find_npc_by_vnum(20400)
if 0==v then
else
target.vid("__TARGET__", v, gameforge.wolf_quest_lv1._30_targetVid)
end -- else
end --when letter
when button or info begin
say_title(gameforge.wolf_quest_lv1._40_sayTitle)
end -- button or info
when __TARGET__.target.click begin
target.delete("__TARGET__")
say_title(gameforge.wolf_quest_lv1._50_sayTitle)
say(gameforge.wolf_quest_lv1._60_say)
say(gameforge.wolf_quest_lv1._70_say)
wait()
say_title(gameforge.locale.reward)
say_reward(gameforge.wolf_quest_lv1._80_sayReward)
pc.give_exp2( 250 )
clear_letter()
set_state (__CLOMPLETE__)
end -- when __TARGET__
end
state __CLOMPLETE__ begin
end
endSpoiler--WOLF LV1 Quest
gameforge.wolf_quest_lv1 = {}
gameforge.wolf_quest_lv1._10_sendLetter = "A Life Reborn"
gameforge.wolf_quest_lv1._20_say = "Ah, you're awake! Good. How do you feel? Still a[ENTER]bit weak-kneed? That will soon pass.[ENTER]Are you wondering what happened? You've been[ENTER]bitten by an infected wolf. My friend, you have[ENTER]metamorphosed.[ENTER]Oh yes, it's incurable - and no, it's not a[ENTER]disease! It's irrelevant now who you once were.[ENTER]Henceforth you will be one of us: a Lycan![ENTER]Soon you will feel how the power of the wolves[ENTER]courses through your veins! Your mind and your[ENTER]senses will become sharper than ever before!"
gameforge.wolf_quest_lv1._30_targetVid = "Find Myonghorang the Wise"
gameforge.wolf_quest_lv1._40_sayTitle = "Find Myonghorang the Wise"
gameforge.wolf_quest_lv1._50_sayTitle = "Myonghorang the Wise"
gameforge.wolf_quest_lv1._60_say = "Welcome Lycan!"
gameforge.wolf_quest_lv1._70_say = "Ah, you're awake! Good. How do you feel? Still a[ENTER]bit weak-kneed? That will soon pass.[ENTER]Are you wondering what happened? You've been[ENTER]bitten by an infected wolf. My friend, you have[ENTER]metamorphosed.[ENTER]Oh yes, it's incurable - and no, it's not a[ENTER]disease! It's irrelevant now who you once were.[ENTER]Henceforth you will be one of us: a Lycan![ENTER]Soon you will feel how the power of the wolves[ENTER]courses through your veins! Your mind and your[ENTER]senses will become sharper than ever before!"
gameforge.wolf_quest_lv1._80_sayReward = "300 experience points [ENTER] 6 Small Red Potions"
Explanation of how to compiling the quest
1) Open your winscp
2) Go to the "/usr/game/share/locale/yourlocal/" folder and look for the "translate.lua" file
3) Copy the contents of "translate.lua" by placing it at the last line and save
4) Now go to the folder "/usr/game/share/locale/yourlocal/quest" (change from file to file)
5) Create a new file and name it "wolf_quest_lv1.lua"
6) Copy and paste "wolf_quest_lv1.lua"
7) Compiling the quest ./qc namequest.lua
8) Enter the game with a "GM" character and do /reload q and enjoy your quest for the lv1 lican- 8
- 3
- 1
- 4
-
Hi @Mali61, I would like to compile it on my freebsd with gcc8 how can I do?
-
Solved the various problems, now I was wondering how can I add the new bonuses? Resistance type lycan or some that does not calculate as%?
Thanks u -
-
No don't work effect my sash!
-
6 minutes ago, ArsenK2 said:
Yeash this official effect!
-
1 minute ago, ArsenK2 said:
You don't see the shining effect?
I can't see the brilliant effect on the stole and I also looked at a lot of fixes, but all of them were already there
-
Hi guys, I ask for a little help.
I have implemented the stoles in my source server and client side, client side and it's all working.
But I have a "bug that I can't fix it", it's about the effect of the lv 19% and 25% stoles.
Any solution to the merit?
-
What would I need to tweak to make it work? in files? @Doose
-
Hi guys, I wanted to ask for information, I would like to transform the "local" folder (client side which would be local / local / it) into "local" (local / it).
If I edit, I am mistaken:
0329 00:25:00048 :: packLoadLocaleGame(c_szFileName=locale/it/locale_game.txt) - Load Error
0329 00:25:00049 ::
system.py(line:272) RunMainScript
system.py(line:233) execfile
prototype.py(line:3) <module>
system.py(line:178) __hybrid_import
system.py(line:142) _process_result
localeInfo.py(line:369) <module>
Run - <type 'exceptions.NameError'>:name 'PVP_MODE_NORMAL' is not defined
0329 00:25:01789 :: ============================================================================================================
0329 00:25:01789 :: Abort!!!!
How could I do? Thanks for the replies.
-
Hi guys from metin2dev, I have a problem with the client, I transformed and I went out and gave me this error as soon as I try to enter the pg could anyone help me? Used source based martysama.
1124 20:33:00139 ::
game.py(line:221) Open
game.py(line:632) StartGame
game.py(line:784) RefreshCharacter
interfaceModule.py(line:600) RefreshCharacter
uiCharacter.py(line:1296) RefreshCharacter
uiCharacter.py(line:1344) __SetSkillSlotData
uiCharacter.py(line:1032) RefreshSkill
uiCharacter.py(line:1008) __RefreshSkillPageGameWindow.Open - <type 'exceptions.RuntimeError'>:skill.GetSkillType - Failed to find skill by 119
1124 20:33:00139 :: ============================================================================================================
1124 20:33:00139 :: Abort!!!!
-
Can anyone reupload this code please?
-
I ran the "folder tutorial", but thanks I'll try!
-
Hey guys I have a problem with this "system", this is the error that gives me solutions?
Quote0602 18:18:30084 ::
networkModule.py(line:200) SetSelectCharacterPhase
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
introSelect.py(line:30) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
interfaceModule.py(line:12) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
uiInventory.py(line:14) <module>
system.py(line:177) __hybrid_import
system.py(line:142) _process_result
uiPickMoney.py(line:6) <module>
uiPickMoney.py(line:70) PickMoneyDialognetworkModule.SetSelectCharacterPhase - <type 'exceptions.NameError'>:name 'app' is not defined
0602 18:18:30084 :: ============================================================================================================
0602 18:18:30084 :: Abort!!!! -
up help me please!
-
-
up, help me please!
-
17 hours ago, blackcatq8 said:
can u check in ur mysql in player table player.keep_alive is there and all columns :
keep_alive.id, player.name as shop_name, keep_alive.shop_sign, keep_alive.x, keep_alive.y, keep_alive.z, keep_alive.map_index, keep_alive.gold, keep_alive.channel, keep_alive.closed FROM keep_alive JOIN player ON player.id = keep_alive.id
is there too if they are in ur sql try to upload again.
bcuz system error there some column not in query SELECT maybe
I reloaded the table but I always have the same erroe, how can I create a new one? Thanks you!
-
Up help me pleasr!
-
Hello forum, I have a precompiled file of 40k with offline system, but I could not import all the db.
He tells me this error: "SYSERR: Dec 18 00:28:18 :: DirectQuery: AsyncSQL::DirectQuery : mysql_query error: Table 'player.keep_alive' doesn't exist
query: SELECT keep_alive.id, player.name as shop_name, keep_alive.shop_sign, keep_alive.x, keep_alive.y, keep_alive.z, keep_alive.map_index, keep_alive.gold, keep_alive.channel, keep_alive.closed FROM keep_alive JOIN player ON player.id = keep_alive.id" could someone of goodwill solve the problem? Thanks you
Help error!
in Community Support - Questions & Answers
Posted · Edited by Metin2 Dev International
Core X - External 2 Internal
Resolve