Jump to content

Hesher

Banned
  • Posts

    35
  • Joined

  • Last visited

  • Feedback

    0%

Posts posted by Hesher

  1. 	char chatbuf[CHAT_MAX_LEN + 1];
    #ifdef ENABLE_CHAT_COLOR_SYSTEM
    	// static const char* colorbuf[] = {" |h|r[寔햇?|cFFffa200|h", " |h|r[遁鞍?|cFFff0000|h", " |h|r[讀安?|cFFffc700|h", " |h|r[警仰]|cFF000bff|h"}; // Arab
    	static const char* colorbuf[] = {"|cFFffa200|H|h[STAFF]|h|r", "|cFFff0000|H|h[Rosu]|h|r", "|cFFffc700|H|h[Galben]|h|r", "|cFF000bff|H|h[Albastru]|h|r"};
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    #else
    	int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    #endif

     

  2. Just now, inamata001 said:

    Why i joking? I have serverfile and client with 1 kingdom and i try reversing this process for adding another kingdom. But is something what i don't make good. Maybe other file where i need modify

     

    On 30.10.2014 at 1:24 AM, HellBoy said:

    Well imma do it for you how to make 1 kingdom for this dont need sv side just client since they wont be able to create more:

     

    first in " introempire.py seek for this

    
    	EMPIRE_DESCRIPTION_TEXT_FILE_NAME = {	
    		net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A,
    		net.EMPIRE_B : uiScriptLocale.EMPIREDESC_B,
    		net.EMPIRE_C : uiScriptLocale.EMPIREDESC_C, }

    and remove the lines and keep the kingdom you want i will pick A [ RED ]

    
    	EMPIRE_DESCRIPTION_TEXT_FILE_NAME = {	
    		net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A, }

    then seek for

    
    self.empireAreaCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    self.empireAreaDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    self.empireAreaFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    self.empireAreaFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    self.empireFlagCurAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
    self.empireFlagDestAlpha = { net.EMPIRE_A:0.0, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }

    and replace with this

    
    self.empireAreaCurAlpha = { net.EMPIRE_A:0.0 }
    self.empireAreaDestAlpha = { net.EMPIRE_A:0.0 }
    self.empireAreaFlagCurAlpha = { net.EMPIRE_A:0.0 }
    self.empireAreaFlagDestAlpha = { net.EMPIRE_A:0.0 }
    self.empireFlagCurAlpha = { net.EMPIRE_A:0.0 }
    self.empireFlagDestAlpha = { net.EMPIRE_A:0.0 }

    then seek for this

    
    self.empireArea[net.EMPIRE_A]	= GetObject("EmpireArea_A")
    self.empireArea[net.EMPIRE_B]	= GetObject("EmpireArea_B")
    self.empireArea[net.EMPIRE_C]	= GetObject("EmpireArea_C")
    self.empireAreaFlag[net.EMPIRE_A]	= GetObject("EmpireAreaFlag_A")
    self.empireAreaFlag[net.EMPIRE_B]	= GetObject("EmpireAreaFlag_B")
    self.empireAreaFlag[net.EMPIRE_C]	= GetObject("EmpireAreaFlag_C")
    self.empireFlag[net.EMPIRE_A]	= GetObject("EmpireFlag_A")
    self.empireFlag[net.EMPIRE_B]	= GetObject("EmpireFlag_B")
    self.empireFlag[net.EMPIRE_C]	= GetObject("EmpireFlag_C")

    replace with this

    
    self.empireArea[net.EMPIRE_A]	= GetObject("EmpireArea_A")
    self.empireAreaFlag[net.EMPIRE_A]	= GetObject("EmpireAreaFlag_A")
    self.empireFlag[net.EMPIRE_A]	= GetObject("EmpireFlag_A")

    then seek for this

    
    def ClickLeftButton(self):
    		self.empireID-=1
    		if self.empireID<1:
    			self.empireID=3
    
    		self.OnSelectEmpire(self.empireID)
    
    def ClickRightButton(self):
    		self.empireID+=1
    		if self.empireID>3:
    			self.empireID=1

    replace with this

    
    def ClickLeftButton(self):
    		self.empireID-=1
    		if self.empireID<1:
    			self.empireID=1
    
    		self.OnSelectEmpire(self.empireID)
    
    def ClickRightButton(self):
    		self.empireID+=1
    		if self.empireID>1:
    			self.empireID=1

    then seek for this

    
    self.empireID=app.GetRandom(1, 3)

    and replace with this

    
    self.empireID=app.GetRandom(1, 1)

    that was with root now we goo to uiscript at " selectempirewindow.py "

     

    and we seek for this

    
    						## Empire Flag
    						{
    							"name" : "EmpireFlag_A",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
    						},
    						{
    							"name" : "EmpireFlag_B",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub"
    						},
    						{
    							"name" : "EmpireFlag_C",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub"
    						},

    and we remove last 2 kingdoms should look this 

    
    ## Empire Flag
    						{
    							"name" : "EmpireFlag_A",
    							"type" : "expanded_image",
    
    							"x" : 0,
    							"y" : 0,
    							"horizontal_align" : "center",
    							"vertical_align" : "center",
    
    							"image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub"
    						},

    watch it with the " } " or you will end up f****** it xD

     

    This will alow players to pick one of  the kingdoms the one you want so there is no need of any sv side modifications!

    Hope will work xD  i have 2 Kingdoms and work like a charm!

    Look at this ...you must add not remove.

  3.     char chatbuf[CHAT_MAX_LEN + 1];
    #ifdef ENABLE_CHAT_COLOR_SYSTEM
        // static const char* colorbuf[] = {" |h|r[寔햇?|cFFffa200|h", " |h|r[遁鞍?|cFFff0000|h", " |h|r[讀安?|cFFffc700|h", " |h|r[警仰]|cFF000bff|h"}; // Arab
        static const char* colorbuf[] = {"|cFFffa200|H|h[STAFF]|h|r", "|cFFff0000|H|h[Rosu]|h|r", "|cFFffc700|H|h[Galben]|h|r", "|cFF000bff|H|h[Albastru]|h|r"};
        int len = snprintf(chatbuf, sizeof(chatbuf), "%s %s : %s", (ch->IsGM()?colorbuf[0]:colorbuf[MINMAX(0, ch->GetEmpire(), 3)]), ch->GetName(), buf);
    #else
        int len = snprintf(chatbuf, sizeof(chatbuf), "%s : %s", ch->GetName(), buf);
    #endif
        if (CHAT_TYPE_SHOUT == pinfo->type)
        {
            LogManager::instance().ShoutLog(g_bChannel, ch->GetEmpire(), chatbuf);
        }

  4. Hi dev , i have this problem

     


    1204 22:50:25215 ::   File "networkModule.py", line 247, in SetGamePhase

    1204 22:50:25215 ::   File "game.py", line 114, in __init__

    1204 22:50:25216 ::   File "uiTarget.py", line 97, in __init__

    1204 22:50:25216 ::   File "uiTarget.py", line 699, in __init__

    1204 22:50:25216 :: AttributeError
    1204 22:50:25216 :: :
    1204 22:50:25216 :: 'InfoBoard' object has no attribute 'HideCorners'
    1204 22:50:25216 ::


    can someone help me?

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