Jump to content

Darknetto

Banned
  • Posts

    80
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    0%

Posts posted by Darknetto

  1. 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 :: #########################solved

        def CancelInputPrice(self):
    ###############PREVENT BUG INPUT DIALOG PRICE#################
            self.priceInputBoard.Close()
            self.Close()#
            self.priceInputBoard = None

    just comment uicommon.py

    in class MoneyInputDialog2

        #def __del__(self):
        #    ui.ScriptWindow.__del__(self)

  2. 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.

     

      Hide contents

    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. :D

     

    Any problem? Feedback?
    Just write a comment below.

    U are the best !

  3. 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

  4. 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 :: 

    error.png

     

    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

  5. 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 ?

  6. 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

    qrgis9.jpg

     

     

    now work

     

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