Jump to content
Forgot your email address? ×
×
×
  • Create New...
  • 0

How to make 4 kingdoms / 1 kingdoms


Askgard

Question

16 answers to this question

Recommended Posts

  • 0

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!

  • Love 6
Link to comment
  • 0

In 

Uiscript pack

selectempirewindow.py

 you have the lines and the possition of the buttons and images and their addres so if you wish to change those use a bit your imagination and modify them or use photoshop to build another interface and modify your selectempirewindow.py with that just need a bit of imagination and some basic phyton skills oh and dont quit at first error xD

  • Love 1
Link to comment
  • 0
16 minutes ago, inamata001 said:

i have only 1 kingdom, how can i make 2? i add the line what is need in files from up answer, and when i press click on create caracter, my game self-exit

Tell me you're joking.

 

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!

 

Link to comment
  • 0
32 minutes ago, 127.0.0.1 said:

Tell me you're joking.

 

 

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

Link to comment
  • 0
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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Announcements

  • -15% Discount in Metin2 Dev Store (01/10/2021 => 31/12/2021) => Code => 15_PCT_OCT_TO_DEC_2021


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.