Darknetto
-
Posts
80 -
Joined
-
Last visited
-
Days Won
1 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Posts posted by Darknetto
-
-
hi huys !
ive this problem with my shop offline...when i do warp and ive the inputpriceDialog opened ..later the warp it is still open and give me this error..thank you advance
sorry im a newby in python
1228 13:25:18923 :: File "uiOfflineShop.py", line 252, in CancelInputPrice
1228 13:25:18924 :: ReferenceError
1228 13:25:18924 :: :
1228 13:25:18924 :: weakly-referenced object no longer exists
1228 13:25:18924 :: #########################solveddef CancelInputPrice(self):
###############PREVENT BUG INPUT DIALOG PRICE#################
self.priceInputBoard.Close()
self.Close()#
self.priceInputBoard = Nonejust comment uicommon.py
in class MoneyInputDialog2
#def __del__(self):
# ui.ScriptWindow.__del__(self) -
On 10/25/2018 at 10:12 PM, xP3NG3Rx said:
Hi ppl.
Today is an another day, another reversed small stuff from the official game.
1.0.) Open the Client\EterLib\GrpFontTexture.h file and define a new variable into the CGraphicFontTexture class as protected: (below of the italic variable hah so difficult)
bool m_bBold;
1.1.) Still in this file extend the arguments of the Create function in the same class, just like this:
bool Create(const char* c_szFontName, int fontSize, bool bItalic, bool bBold);
2.0.) Close it save it, then open the source file, GrpFontTexture.cpp and initialize the new variable in the CGraphicFontTexture::Initialize function:
m_bBold = false;
2.1.) Replace the beginning of the CGraphicFontTexture::Create function as you can see here(new argument and setting the new value into the new variable):
bool CGraphicFontTexture::Create(const char* c_szFontName, int fontSize, bool bItalic, bool bBold) { Destroy(); strncpy_s(m_fontName, c_szFontName, sizeof(m_fontName)-1); m_fontSize = fontSize; m_bItalic = bItalic; m_bBold = bBold;
3.) In the CGraphicFontTexture::GetFont function replace the following line:
logFont.lfWeight = FW_NORMAL;
with this:
logFont.lfWeight = (m_bBold) ? FW_BOLD : FW_NORMAL;
4.) Open the GrpText.cpp file and jump into the CGraphicText::OnLoad function, then define a new local variable below of the italic variable:
bool bBold = false;
4.1.) After that you have to add the following if-statement below of the italic if-statement:
if(*p == 'b') bBold = true;
4.2.) Then extend the argument list of the call of the Create function like this:
if (!m_fontTexture.Create(strName, size, bItalic, bBold))
5. Done, build and enjoy.
Usage: If you did not see in the video, it depends on the name of the fonts what you would like to set to the TextLines with python:
TextLine = ui.TextLine() TextLine.SetDefaultFontName() # Default, you don't need to use this btw TextLine.SetFontName(localeInfo.UI_BOLD_FONT) # Default bolded style TextLine.SetFontName(localeInfo.UI_ITALIC_FONT)# Default italic style
locale_game.txt resources:
UI_BOLD_FONT Tahoma:12b UI_BOLD_FONT_LARGE Tahoma:14b UI_BOLD_FONT_SMALL Tahoma:9b UI_DEF_FONT Tahoma:12 UI_DEF_FONT_LARGE Tahoma:14 UI_DEF_FONT_SMALL Tahoma:9 UI_ITALIC_FONT Tahoma:12i UI_ITALIC_FONT_LARGE Tahoma:14i UI_ITALIC_FONT_SMALL Tahoma:9i
As you can see, at the end of the name of the fonts there is a letter i or b or nothing, I guess it's clear why.
Any problem? Feedback?
Just write a comment below.U are the best !
-
21 minutes ago, MshL said:
Even if I set the ID manualy to int 42, the effect is showing but stil isin't returning true... ;/
send a pm with your skype i think you are a little bit confuse ...dont work like you do
-
7 hours ago, MshL said:
Hello, I am making new particle effect displayed for specific flag in database, it looks like this :
if(GetGMLevel() == GM_HEAD) m_afAffectFlag.Set(AFF_HEADMASTER);
Also added new Effect to my client in root
chrmgr.RegisterEffect(chrmgr.EFFECT_AFFECT+41, "Bip01", "effect/hm.mse")
and it works perfectly fine, BUT...
when i want to add additional script for this flag like this(in client source ) :
if (m_kAffectFlagContainer.IsSet(AFFECT_HEADMASTER)) return true;
it doesn't return true!!
AFF_HEADMASTER and AFFECT_HEADMASTER are both set to 42,
what more I have to do to make it work??
check in the enum from client if the id is same fom server
-
-
On 12/14/2018 at 5:39 PM, Mr.Metin2 said:
Hi
I have a problem in the Gaya system, please help is necessarysend me skype i pm man … i help u
-
5 hours ago, blackcatq8 said:
when i try to Create shop i get it error
1216 06:09:28712 :: Traceback (most recent call last): 1216 06:09:28712 :: File "ui.py", line 1026, in CallEvent 1216 06:09:28712 :: File "ui.py", line 88, in __call__ 1216 06:09:28712 :: File "ui.py", line 70, in __call__ 1216 06:09:28712 :: File "uiNewShop.py", line 131, in CreateShop 1216 06:09:28712 :: TypeError 1216 06:09:28712 :: : 1216 06:09:28712 :: Open() takes exactly 2 arguments (3 given) 1216 06:09:28712 ::
uinewshop.py line 131:
self.privateShopBuilder.Open(self.UI["nameEdit"].GetText(),int(item["id"])) self.Close()
uipy - line 70
def __call__(self, *arg): return self.func(self.obj)
uipy.py - 88
return self.call(*arg)
ui.py - line 1026
apply(self.eventFunc, self.eventArgs)
give me skype in pm man i help you
-
i've write u 1 month ago ..check skype
-
-
Man , playersettingmodule is the way and from game start effect in client only add pythonmodule part and add effect in enum... later u can spawon the effect
- 1
-
Hi guy ive a little problem with client multi language ... if i choose a different language and in the locale path locale_interface.txt the client Miss a definition it crash... how Can do if it dont find the definition it read from my locale_game and interface defaul??
Please help me ... thank you so much in advance
and sorry for my english
-
hi guys.. i've this problem with objects Flags in guild lands some one can explain
how work and if is possible fix it? i pay if need...thank you so much ...
screenshot:
-
Hi guy some one Can explain how Can i block poison pct for each duel? Because if i do a duel i can poison every and is not good
thank you advance ! Sorry for my english
-
Hi guys ive a problem with shotdown command in my server ...
When i do command | shutdown it work but later dont do shutdown
But i cant login in game from client
and the game core dont die with command #killall game from shell
it die only if i do killall -9 game auth db vrunner... Can u help me?
And yes i know killall -9 db game auto is not safe but i dont know other way at moment
Sorry for my english
Compiler gcc49 std++11
Version source : dev_cython
client 28k
==========================
solved:
just changed name of cores game like
game1_ch1 etc etc... if the names is same it dont shutdown from
sh scripts
sorry i forgot this...
we cant kill vrunner from db script.sh ive tryed ...but ive lost time...
in the Main script for shutdown.sh
ive added killall vrunner
and now work perfectly!
I start and shutdown without problem with vrunner daemon env
but is safe use the command
killall ?
-
Hi guys
some one Can explain how to add the other Pages for private shop like official server?? Please
thank you so much
-
Hi guys!
Some one have the true sequence of new enum apply_ in metinclient actual?
.... unuseless write un this forum ... never respond
-
hi npc's names are load from locale /game ever not with change ….mob's names are loaded from client mob proto
-
Hi to all guys !
I have this big problem with the npc for refine ore
ive 5 inventory and system split inventory there the screenshot ...
dont the cube dont load my stone for refine the ore in inventory
some one know how to fix? Thank you in andvance
i think the problem is in function item_select()
----update iv'e fixed….. the problem is if the fuction item_select() use .cell >= 255
now work
-
redone styles etc. etc.
- 1
-
Hi man ive this problem ... it dont do the count of quest in category ..but the category work and dont give me error ... some one can help me Please ?
edit:
sorry fixed error in ui.py
wrong tab
-
Thank you so much man!
Solved
-
-
49 minutes ago, Raylee said:
Thank you for the update!
Can it be that something is missing on the tutorial?
My Client close after login and my syserr is empty..
Im sure the problem is in py files ... check here
-
7 hours ago, Mali61 said:
Check the last update, CPU overload fixed.
There is still bug for swap item system ...
Ship Defense - New Instance
in Showcase
Posted
easy... read the code un src ... just move 3 condictions and add 3 Bools