Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 10:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Frage]Characterselect wechselnde Backgrounds

Discussion on [Frage]Characterselect wechselnde Backgrounds within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
Lightbulb [Frage]Characterselect wechselnde Backgrounds

Hallo,

ist es möglich den Background des Charselect so zu ändern das für jedes Reich ein anderer Background genutzt wird wenn ja wie muss der Code dafür aussehen?
lfcmaus is offline  
Old 07/11/2015, 20:55   #2
 
Zaturix's Avatar
 
elite*gold: 0
Join Date: Oct 2014
Posts: 408
Received Thanks: 208
Jetzt hoffen wir das Poccix sich meldet.
Zaturix is offline  
Old 07/12/2015, 05:09   #3
 
OoKaMi_'s Avatar
 
elite*gold: 0
Join Date: Jun 2014
Posts: 269
Received Thanks: 96
An sich ist es möglich, sowas ist auch schon Pub in ein anderen Forum.
OoKaMi_ is offline  
Old 07/12/2015, 11:18   #4
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
aha und wo zb link per pn wäre nett
lfcmaus is offline  
Old 07/12/2015, 12:54   #5
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Das ganze ist untested!

In der introselect.py in def __LoadBoardDialog(self, fileName): unter
Code:
GetObject=self.dlgBoard.GetChild
folgendes hinzufügen:
Code:
self.BackGroundPattern = GetObject("BackGround")
self.backgroundDict = {
	net.EMPIRE_A : "path/to/empire/a/background.tga",
	net.EMPIRE_B : "path/to/empire/b/background.tga",
	net.EMPIRE_C : "path/to/empire/c/background.tga"
}

In def Close(self): unter
Code:
self.flagDict = {}
folgendes hinzufügen:
Code:
self.backgroundDict = {}
self.BackGroundPattern = None

In def SetEmpire(self, id): unter
Code:
if self.flagDict.has_key(id):
	self.flagDict[id].Show()
folgendes hinzufügen
Code:
if self.backgroundDict.has_key(id):
	self.BackGroundPattern.LoadImage(self.backgroundDict[id])
MfG
Yiv is offline  
Thanks
3 Users
Old 07/12/2015, 13:37   #6
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
Ich kann dir nicht genau sagen an was es liegt
Quote:

0712 13:42:34550 ::
introSelect.py(line:279) __LoadBoardDialog
ui.py(line:2630) GetChild

SelectCharacterWindow.LoadBoardDialog.BindObject - exceptions.KeyError:BackGroundPattern

0712 13:42:34550 :: ================================================== ================================================== ========
0712 13:42:34550 :: Abort!!!!
lfcmaus is offline  
Old 07/12/2015, 13:39   #7
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Quote:
Originally Posted by lfcmaus View Post
Funktioniert leider nicht
Was funktioniert denn nicht?

MfG
Yiv is offline  
Old 07/12/2015, 13:45   #8
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
Nach dem Einloggen schließt der Client und schmeißt das hier aus

Quote:

0712 13:42:34550 ::
introSelect.py(line:279) __LoadBoardDialog
ui.py(line:2630) GetChild

SelectCharacterWindow.LoadBoardDialog.BindObject - exceptions.KeyError:BackGroundPattern

0712 13:42:34550 :: ================================================== ================================================== ========
0712 13:42:34550 :: Abort!!!!
vllt falsch eingerückt irgendwo?
lfcmaus is offline  
Old 07/12/2015, 13:49   #9
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Mhm, poste doch mal bitte deine UIScript-Datei die zu eurem Charakter-Select gehört.

Versuch mal statt GetObject("BackGroundPattern") mit GetObject("BackGround").

MfG
Yiv is offline  
Old 07/12/2015, 13:52   #10
 
Poccix's Avatar
 
elite*gold: 44
Join Date: Dec 2009
Posts: 1,696
Received Thanks: 3,835
Nimm BackGround statt BackGroundPattern
Poccix is offline  
Thanks
1 User
Old 07/12/2015, 13:55   #11
 
Yiv's Avatar
 
elite*gold: 47
Join Date: Feb 2012
Posts: 2,282
Received Thanks: 2,579
Quote:
Originally Posted by Poccix View Post
Nimm BackGround statt BackGroundPattern
Fgt, hast ja Recht xD
Yiv is offline  
Thanks
1 User
Old 07/12/2015, 13:57   #12
 
lfcmaus's Avatar
 
elite*gold: 205
Join Date: Jun 2010
Posts: 5,334
Received Thanks: 2,510
So hab sie angehangen
Attached Files
File Type: txt selectcharacterwindow.txt (10.1 KB, 6 views)
File Type: txt introselect.txt (21.2 KB, 7 views)
lfcmaus is offline  
Reply


Similar Threads Similar Threads
[Suche] 3D-Artist (JumpNRun-Backgrounds, 1080p, 7 Backgrounds) als Zusatzhilfe
09/02/2013 - Artist Trading - 0 Replies
Guten Tag, da unser aktueller Artist unseres Projektes ziemlich viel zu tun hat, habe ich mich dafür entschieden, einen zweiten Artist für die Hintergründe (es sind wie in Topic bereits erwähnt 7 Stück) zu suchen. Es handelt sich hierbei um ein Java-JumpNRun-Projekt. Da ich am iPhone Online bin, kann ich hier
Aion-Characterselect
10/18/2012 - Metin2 Private Server - 1 Replies
Please help me with aion-charselect... i see in an another topic ... i mult replace /de/ with /it/ or... anything i have in locale (locale/xx) but client close when i press enter after i type my id and pw.... syser 0701 15:55:04291 :: CItemManager::LoadItemList(locale/de/item_list.txt ) - StrangeLine in 4743 0701 15:55:04291 :: CItemManager::LoadItemList(locale/de/item_list.txt ) - StrangeLine in 4744 0701 15:55:04291 :: CItemManager::LoadItemList(locale/de/item_list.txt ) -...
[Frage]Wie Findet ihr Meine Login backgrounds?
09/29/2012 - Metin2 Private Server - 4 Replies
Hier mal mit Titel: http://i.epvpimg.com/VLDng.jpg Hier ohne: http://i.epvpimg.com/j4xSe.jpg Hier am Client start: http://i.epvpimg.com/rbXve.jpg (ich fange neu an mir einen client zu machen !)
Change Characterselect background
04/16/2012 - SRO Private Server - 0 Replies
Hello guys, i want to know where or how i can change the background at character select. I just want a new background. And ye sure in the Media.pk2, but i cant find where exactly. Isnt in the script section.. ! Thank you :) *push*



All times are GMT +1. The time now is 10:31.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.