KB CRAZY CHANNEL 121 Posted December 16, 2016 Boas! Eu queria deixar apenas 1 reino no cliente! Alguém sabe qual é o ficheiro e as linhas de código que tenho de apagar? Share this post Link to post Share on other sites
1 Tyler Durden 556 Posted December 19, 2016 Assumindo que não uses source e apenas queres manter o reino azul - se não for o caso é só mudares as letras. A - reino vermelho B - reino amarelo C - reino azul root/introempire.py procuras por EMPIRE_DESCRIPTION_TEXT_FILE_NAME = { net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A, net.EMPIRE_B : uiScriptLocale.EMPIREDESC_B, net.EMPIRE_C : uiScriptLocale.EMPIREDESC_C, } substituis por EMPIRE_DESCRIPTION_TEXT_FILE_NAME = { # net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A, # net.EMPIRE_B : uiScriptLocale.EMPIREDESC_B, net.EMPIRE_C : uiScriptLocale.EMPIREDESC_C, } a seguir procuras por self.empireID=app.GetRandom(1, 3) substituis por self.empireID=app.GetRandom(1, 1) a seguir procuras por 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 } substituis por self.empireAreaCurAlpha = { net.EMPIRE_C:0.0 } self.empireAreaDestAlpha = { net.EMPIRE_C:0.0 } self.empireAreaFlagCurAlpha = { net.EMPIRE_C:0.0 } self.empireAreaFlagDestAlpha = { net.EMPIRE_C:0.0 } self.empireFlagCurAlpha = { net.EMPIRE_C:0.0 } self.empireFlagDestAlpha = { net.EMPIRE_C:0.0 } a seguir procuras por 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") substituis por # 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") a seguir procuras por 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 substituis por 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 ____________________________________________________________________ root/introselect.py procuras por EMPIRE_NAME = { net.EMPIRE_A : localeInfo.EMPIRE_A, net.EMPIRE_B : localeInfo.EMPIRE_B, net.EMPIRE_C : localeInfo.EMPIRE_C } substituis por EMPIRE_NAME = { # net.EMPIRE_A : localeInfo.EMPIRE_A, # net.EMPIRE_B : localeInfo.EMPIRE_B, net.EMPIRE_C : localeInfo.EMPIRE_C } a seguir procuras por self.flagDict[net.EMPIRE_A] = GetObject("EmpireFlag_A") self.flagDict[net.EMPIRE_B] = GetObject("EmpireFlag_B") self.flagDict[net.EMPIRE_C] = GetObject("EmpireFlag_C") substituis por # self.flagDict[net.EMPIRE_A] = GetObject("EmpireFlag_A") # self.flagDict[net.EMPIRE_B] = GetObject("EmpireFlag_B") self.flagDict[net.EMPIRE_C] = GetObject("EmpireFlag_C") ____________________________________________________________________ uiscript/selectempirewindow.py procuras por ## Empire Image { "name" : "EmpireArea_A", "type" : "expanded_image", "x" : 43, "y" : 201, "image" : "d:/ymir work/ui/intro/empire/empirearea_a.sub" }, { "name" : "EmpireArea_B", "type" : "expanded_image", "x" : 17, "y" : 16, "image" : "d:/ymir work/ui/intro/empire/empirearea_b.sub" }, { "name" : "EmpireArea_C", "type" : "expanded_image", "x" : 314, "y" : 33, "image" : "d:/ymir work/ui/intro/empire/empirearea_c.sub" }, ## Empire Flag { "name" : "EmpireAreaFlag_A", "type" : "expanded_image", "x" : 167, "y" : 235, "image" : "d:/ymir work/ui/intro/empire/empireareaflag_a.sub" }, { "name" : "EmpireAreaFlag_B", "type" : "expanded_image", "x" : 70, "y" : 42, "image" : "d:/ymir work/ui/intro/empire/empireareaflag_b.sub" }, { "name" : "EmpireAreaFlag_C", "type" : "expanded_image", "x" : 357, "y" : 78, "image" : "d:/ymir work/ui/intro/empire/empireareaflag_c.sub" }, ), substituis por ## Empire Image """{ "name" : "EmpireArea_A", "type" : "expanded_image", "x" : 43, "y" : 201, "image" : "d:/ymir work/ui/intro/empire/empirearea_a.sub" }, { "name" : "EmpireArea_B", "type" : "expanded_image", "x" : 17, "y" : 16, "image" : "d:/ymir work/ui/intro/empire/empirearea_b.sub" },""" { "name" : "EmpireArea_C", "type" : "expanded_image", "x" : 314, "y" : 33, "image" : "d:/ymir work/ui/intro/empire/empirearea_c.sub" }, ## Empire Flag """{ "name" : "EmpireAreaFlag_A", "type" : "expanded_image", "x" : 167, "y" : 235, "image" : "d:/ymir work/ui/intro/empire/empireareaflag_a.sub" }, { "name" : "EmpireAreaFlag_B", "type" : "expanded_image", "x" : 70, "y" : 42, "image" : "d:/ymir work/ui/intro/empire/empireareaflag_b.sub" },""" { "name" : "EmpireAreaFlag_C", "type" : "expanded_image", "x" : 357, "y" : 78, "image" : "d:/ymir work/ui/intro/empire/empireareaflag_c.sub" }, ), a seguir procuras por ## 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" }, ), substituis por ## 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" }, ), ____________________________________________________________________ uiscript/selectcharacterwindow.py procuras por ## Empire Flag { "name" : "EmpireFlag_A", "type" : "expanded_image", "x" : 21, "y" : 12, "x_scale" : 0.5, "y_scale" : 0.5, "image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub" }, { "name" : "EmpireFlag_B", "type" : "expanded_image", "x" : 21, "y" : 12, "x_scale" : 0.5, "y_scale" : 0.5, "image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub" }, { "name" : "EmpireFlag_C", "type" : "expanded_image", "x" : 21, "y" : 12, "x_scale" : 0.5, "y_scale" : 0.5, "image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub" }, substituis por ## Empire Flag """{ "name" : "EmpireFlag_A", "type" : "expanded_image", "x" : 21, "y" : 12, "x_scale" : 0.5, "y_scale" : 0.5, "image" : "d:/ymir work/ui/intro/empire/empireflag_a.sub" }, { "name" : "EmpireFlag_B", "type" : "expanded_image", "x" : 21, "y" : 12, "x_scale" : 0.5, "y_scale" : 0.5, "image" : "d:/ymir work/ui/intro/empire/empireflag_b.sub" },""" { "name" : "EmpireFlag_C", "type" : "expanded_image", "x" : 21, "y" : 12, "x_scale" : 0.5, "y_scale" : 0.5, "image" : "d:/ymir work/ui/intro/empire/empireflag_c.sub" }, ____________________________________________________________________ (opcional) ETC/ymir work/ui/intro/empire abres esses 6 ficheiros com notepad++ empirearea_a.sub empireareaflag_a.sub empireflag_a.sub empirearea_b.sub empireareaflag_b.sub empireflag_b.sub onde diz title subImage version 1.0 image "IntroEmpire.dds" left xy top xy right xy bottom xy metes assim para todos v title subImage version 1.0 image "IntroEmpire.dds" left 0 top 0 right 0 bottom 0 Há-de ser suficiente para o que pretendes, só tens de desactivar os portais 2 nagatto and KB CRAZY CHANNEL reacted to this Share this post Link to post Share on other sites
0 KB CRAZY CHANNEL 121 Posted December 19, 2016 Tyler Durden muito obrigado! Share this post Link to post Share on other sites
0 NewWars 875 Posted December 19, 2016 Não esquecer a parte de servidor, se não usares source tens que bloquear via quest de alguma maneira, uma opção é detectares a entrada em um desses mapas e criares uma função para apagar a personagem e obrigar a criar no reino certo(o que seria necessário source logo não faz muito sentido e seria muito imprático) ou removes a criação da personagens nesses reinos. Mesmo desactivado graficamente, basta enviar um packet e facilmente se cria uma personagem noutro reino, ou até mesmo com um python loader, usando as mesmas funções para criar a personagem normalmente. Para desactivares a criação nesses reinos, basta procurares pelo packet header relacionado com a criação e facilmente nota-se como desactivar. Não tenho aqui informação mais exata à mão, mas uma rápida procura pelo nome do packet no binário creio ser suficiente para encontrares: Cumprimentos. Share this post Link to post Share on other sites
0 BloodyBill 0 Posted December 19, 2016 (edited) Modificar o packet no cliente não fará absolutamente nada. Pegas noutro cliente e feito. Modifica a source do servidor. Caso não utilizes source nem te dês ao trabalho, tempo perdido. Se não usas source, provavelmente usarás um game 2089m, o que será bastante divertido de desligar o servidor. Caso seja 34/40k é igualmente ridículo não usares a source. Edited December 19, 2016 by BloodyBill (see edit history) Share this post Link to post Share on other sites
0 Tyler Durden 556 Posted December 19, 2016 Eu baseei-me nisto, se for apenas para amigos não vale a pena fazer modificações no source. Se quiseres uma coisa a sério isto não te vai servir de muito a não ser que uses protecções até ao tutano. Share this post Link to post Share on other sites
Boas!
Eu queria deixar apenas 1 reino no cliente!
Alguém sabe qual é o ficheiro e as linhas de código que tenho de apagar?
Share this post
Link to post
Share on other sites