Hay leute wie kan ich ein reich im client blockeiren das man nicht mehr rauf kan?
►1.0: Entpackt die root.eix/epk
►2.0: öffnet die "introempire.py"
►3.0 (Rotes Reich entfernen):
►Sucht nach
PHP-Code:
net.EMPIRE_A : uiScriptLocale.EMPIREDESC_A,
und entfernt diese Zeile.
►Sucht nach
PHP-Code:
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 }
und ändert es um zu:
PHP-Code:
self.empireAreaCurAlpha = { net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireAreaDestAlpha = {, net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireAreaFlagCurAlpha = { net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireAreaFlagDestAlpha = { net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireFlagCurAlpha = { net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
self.empireFlagDestAlpha = { net.EMPIRE_B:0.0, net.EMPIRE_C:0.0 }
►Sucht nach
PHP-Code:
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")
und ändert es um zu:
PHP-Code:
self.empireArea[net.EMPIRE_B] = GetObject("EmpireArea_B")
self.empireArea[net.EMPIRE_C] = GetObject("EmpireArea_C")
self.empireAreaFlag[net.EMPIRE_B] = GetObject("EmpireAreaFlag_B")
self.empireAreaFlag[net.EMPIRE_C] = GetObject("EmpireAreaFlag_C")
self.empireFlag[net.EMPIRE_B] = GetObject("EmpireFlag_B")
self.empireFlag[net.EMPIRE_C] = GetObject("EmpireFlag_C")
►Sucht nach
PHP-Code:
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
und ändert es um zu:
PHP-Code:
def ClickLeftButton(self):
self.empireID-=1
if self.empireID<2:
self.empireID=3
self.OnSelectEmpire(self.empireID)
def ClickRightButton(self):
self.empireID+=1
if self.empireID>3:
self.empireID=2
►Sucht nach
PHP-Code:
self.empireID=app.GetRandom(1, 3)
und ändert es um zu:
PHP-Code:
self.empireID=app.GetRandom(2, 3)
►4.0: Entpackt die Locale_de
►4.1:Öffnet die selectempirewindow.py
> und ersetzt den inhalt hier mit
import uiScriptLocale
ROOT_PATH = "d:/ymir work/ui/public/"
LOCALE_PATH = uiScriptLocale.EMPIRE_PATH
ATALS_X = SCREEN_WIDTH * (282) / 800
ATALS_Y = SCREEN_HEIGHT * (170) / 600
window = {
"name" : "SelectCharacterWindow",
"x" : 0,
"y" : 0,
"width" : SCREEN_WIDTH,
"height" : SCREEN_HEIGHT,
"children" :
(
## Board
{
"name" : "BackGround",
"type" : "expanded_image",
"x" : 0,
"y" : 42,
"image" : "d:/ymir work/ui/intro/pattern/background_pattern.tga",
"rect" : (0.0, 0.0, float(SCREEN_WIDTH - 128) / 128.0, float(SCREEN_HEIGHT - 128 - 42*2) / 128.0),
},
## Alpha
{
"name" : "Alpha",
"type" : "expanded_image",
"x" : 0,
"y" : 0,
"image" : "d:/ymir work/ui/intro/select/background_alpha.sub",
"x_scale" : float(SCREEN_WIDTH) / 100.0,
"y_scale" : float(SCREEN_HEIGHT) / 69.0,
},
## Top & Bottom Line
{
"name" : "Top_Line",
"type" : "expanded_image",
"x" : 0,
"y" : 0,
"image" : "d:/ymir work/ui/intro/pattern/line_pattern.tga",
"rect" : (0.0, 0.0, float(SCREEN_WIDTH - 50) / 50.0, 0.0),
},
{
"name" : "Bottom_Line",
"type" : "expanded_image",
"x" : 0,
"y" : SCREEN_HEIGHT - 42,
"image" : "d:/ymir work/ui/intro/pattern/line_pattern.tga",
"rect" : (0.0, 0.0, float(SCREEN_WIDTH - 50) / 50.0, 0.0),
},
## Title
{
"name" : "Title",
"type" : "expanded_image",
"x" : SCREEN_WIDTH * (410 - 346/2) / 800,
"y" : SCREEN_HEIGHT * (114 - 136/2) / 600,
"x_scale" : float(SCREEN_WIDTH) / 800.0,
"y_scale" : float(SCREEN_HEIGHT) / 600.0,
"image" : LOCALE_PATH+"title.sub"
},
## Atlas
{
"name" : "Atlas",
"type" : "image",
"x" : ATALS_X,
"y" : ATALS_Y,
"image" : "d:/ymir work/ui/intro/empire/atlas.sub",
"children" :
(
## Empire Image
{
"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_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"
},
),
},
## Buttons
{
"name" : "left_button",
"type" : "button",
"x" : ATALS_X + 160,
"y" : ATALS_Y + 340,
"default_image" : "d:/ymir work/ui/intro/select/left_button_01.sub",
"over_image" : "d:/ymir work/ui/intro/select/left_button_02.sub",
"down_image" : "d:/ymir work/ui/intro/select/left_button_03.sub",
},
{
"name" : "right_button",
"type" : "button",
"x" : ATALS_X + 160 + 130,
"y" : ATALS_Y + 340,
"default_image" : "d:/ymir work/ui/intro/select/right_button_01.sub",
"over_image" : "d:/ymir work/ui/intro/select/right_button_02.sub",
"down_image" : "d:/ymir work/ui/intro/select/right_button_03.sub",
},
## Character Board
{
"name" : "empire_board",
"type" : "thinboard",
"x" : SCREEN_WIDTH * (40) / 800,
"y" : SCREEN_HEIGHT * (211) / 600,
"width" : 208,
"height" : 314,
"children" :
(
## Bar
{
"name" : "flag_board",
"type" : "bar",
"x" : 24,
"y" : 17,
"width" : 159,
"height" : 119,
"children" :
(
## Empire Flag
{
"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"
},
),
},
{
"name" : "text_board",
"type" : "bar",
"x" : 10,
"y" : 146,
"width" : 189,
"height" : 122,
"children" :
(
{
"name" : "prev_text_button",
"type" : "button",
"x" : 95,
"y" : 95,
"text" : uiScriptLocale.EMPIRE_PREV,
"default_image" : ROOT_PATH + "Small_Button_01.sub",
"over_image" : ROOT_PATH + "Small_Button_02.sub",
"down_image" : ROOT_PATH + "Small_Button_03.sub",
},
{
"name" : "next_text_button",
"type" : "button",
"x" : 140,
"y" : 95,
"text" : uiScriptLocale.EMPIRE_NEXT,
"default_image" : ROOT_PATH + "Small_Button_01.sub",
"over_image" : ROOT_PATH + "Small_Button_02.sub",
"down_image" : ROOT_PATH + "Small_Button_03.sub",
},
{
"name" : "right_line",
"type" : "line",
"x" : 189-1,
"y" : -1,
"width" : 0,
"height" : 122,
"color" : 0xffAAA6A1,
},
{
"name" : "bottom_line",
"type" : "line",
"x" : 0,
"y" : 122-1,
"width" : 189,
"height" : 0,
"color" : 0xffAAA6A1,
},
{
"name" : "left_line",
"type" : "line",
"x" : 0,
"y" : 0,
"width" : 0,
"height" : 122-1,
"color" : 0xff2A2521,
},
{
"name" : "top_line",
"type" : "line",
"x" : 0,
"y" : 0,
"width" : 189,
"height" : 0,
"color" : 0xff2A2521,
},
),
},
## Buttons
{
"name" : "select_button",
"type" : "button",
"x" : 14,
"y" : 277,
"text" : uiScriptLocale.EMPIRE_SELECT,
"default_image" : ROOT_PATH + "Large_Button_01.sub",
"over_image" : ROOT_PATH + "Large_Button_02.sub",
"down_image" : ROOT_PATH + "Large_Button_03.sub",
},
{
"name" : "exit_button",
"type" : "button",
"x" : 105,
"y" : 277,
"text" : uiScriptLocale.EMPIRE_EXIT,
"default_image" : ROOT_PATH + "Large_Button_01.sub",
"over_image" : ROOT_PATH + "Large_Button_02.sub",
"down_image" : ROOT_PATH + "Large_Button_03.sub",
},
),
},
),
}