Register for your free account! | Forgot your password?

You last visited: Today at 06:00

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

Advertisement



[R]Mijago Switchbot Modded

Discussion on [R]Mijago Switchbot Modded within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
Noa_'s Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 605
Received Thanks: 580
Lightbulb [R]Mijago Switchbot Modded

Ich Release mal einen Mod zum Switchbot von unseren lieben Mijago.

Es hat mehr Zeit gekostet den Switchbot zu verstehen als der Mod selber

Es speichert und lädt die Vorschläge (individuell).

switchbot_komplett ist für die, die Probleme haben den Switchbot zu Modden

Screenshots:

Gallery 1
Attached Files
File Type: zip NeuesZip.zip (2.4 KB, 739 views)
File Type: zip switchbot_komplett.zip (13.4 KB, 945 views)
Noa_ is offline  
Thanks
12 Users
Old 01/23/2018, 20:22   #2
wild wild son




 
Nick's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5,829
Received Thanks: 3,369

#reopened
Nick is offline  
Old 01/23/2018, 21:21   #3
 
BizepsSupportAccount's Avatar
 
elite*gold: 0
Join Date: Dec 2014
Posts: 1,015
Received Thanks: 498
Gute Arbeit Noa

Danke fürs release.
BizepsSupportAccount is offline  
Old 01/23/2018, 22:12   #4
 
DasSchwarzeT's Avatar
 
elite*gold: 399
Join Date: Sep 2011
Posts: 5,323
Received Thanks: 3,938
Klein aber fein
edit: die idee zumindest, der code ist eher so meh
DasSchwarzeT is offline  
Old 01/24/2018, 15:45   #5
 
VegaS ♆'s Avatar
 
elite*gold: 10
Join Date: Jul 2013
Posts: 93
Received Thanks: 416
Lightbulb

First one, thanks for your contribution.

Quote:
Originally Posted by Noa_ View Post
Quote:
file.write(str(index[0])+","+str(index[1])+";")
The index[0-1] are already string, you don't need to convert it again.
Also the method how you assigned a string is very bad, already exist format like these two options.
Code:
file.write('%s,%s;' % (index[0], index[1]))
file.write('{0},{1};'.format(index[0], index[1]))

Quote:
Originally Posted by Noa_ View Post
Also the style of this code from qoute is very 'bad' for some things, i don't understand what exactly you want to do, but doesn't looks good.
I would like to do some changes like that.

Code:
def replace_method(fileName, dest = ['.txt', '']):
	return fileName.replace(*dest)
	
def split_method(item):
	buffer = item.split(',')
	return [buffer[c].__int__() for c in xrange(len(buffer))]
	
def default_dict_method():
	return {1: dict(), 2: {item: dict() for item in xrange(item.ITEM_TYPE_SPECIAL + 1)}}

pathName = 'switchbot_v/'
proposals = default_dict_method()
itemType = item.GetItemType()
itemSubType = item.GetItemSubType()

if itemType < item.ITEM_TYPE_USE:
	if itemType == item.ITEM_TYPE_WEAPON:
		for fileName in os.listdir('{0}{1}'.format(pathName, itemType)):
			for item in self.__openfile('{0}{1}/{2}'.format(pathName, itemType, fileName)):
				if item:
					if not replace_method(fileName) in proposals[itemType].keys():
						proposals[itemType][replace_method(fileName)] = list()
					proposals[itemType][replace_method(fileName)].append(split_method(item))
	else:
		for fileName in os.listdir('{0}{1}/{2}'.format(pathName, itemType, itemSubType)):
			for item in self.__openfile('{0}{1}/{2}/{3}'.format(pathName, itemType, itemSubType, fileName)):
				if item:
					if not replace_method(fileName) in proposals[itemType][itemSubType].keys():
						proposals[itemType][itemSubType][replace_method(fileName)] = list()
					proposals[itemType][itemSubType][replace_method(fileName)].append(split_method(item))
else:
	print 'Dieses Item kannst du nicht Switchen'
VegaS ♆ is offline  
Thanks
2 Users
Old 02/11/2018, 18:27   #6

 
iFrost.'s Avatar
 
elite*gold: 8
Join Date: Apr 2013
Posts: 498
Received Thanks: 54
Und wie baue ich den Switchbot jetzt ein ?
iFrost. is offline  
Old 03/30/2018, 18:08   #7
 
elite*gold: 0
Join Date: Jul 2015
Posts: 58
Received Thanks: 7
Funktioniert nicht, soweit bei mir. Bekomme immer eine Fehlermeldung im Chat "Um zu Speichern, bitte gib deine werte ein."
judo3456 is offline  
Old 10/13/2019, 01:13   #8
 
elite*gold: 0
Join Date: Apr 2019
Posts: 8
Received Thanks: 0
Funktioniert nicht. der Client Lädt fertig und bleibt mit vollem ladebalken im ladescreen hängen :/
Ramiel7 is offline  
Old 10/13/2019, 19:39   #9
 
elite*gold: 0
Join Date: Oct 2019
Posts: 21
Received Thanks: 5
Funktioniert einwandfrei nachdem man Sachen aber anpassen muss.
.Cheap is offline  
Old 11/13/2022, 14:18   #10
 
elite*gold: 0
Join Date: Jun 2016
Posts: 4
Received Thanks: 1
kann mir wer beim installieren helfen mein dc name ist amorking17#7322

würde notfalls auch ein bissen geld blechen

benutze die Fliege v3
amorking17 is offline  
Old 11/15/2022, 12:57   #11
 
Endless.'s Avatar
 
elite*gold: 0
Join Date: Apr 2010
Posts: 2,037
Received Thanks: 736
Quote:
Originally Posted by amorking17 View Post
kann mir wer beim installieren helfen mein dc name ist amorking17#7322

würde notfalls auch ein bissen geld blechen

benutze die Fliege v3
Wenn ich mich nicht täusche, ist der Switchbot im Client bereits eingebaut. Versuch ihn mal mit den F5-12 Tasten aufzurufen.
Endless. is offline  
Reply


Similar Threads Similar Threads
Switchbot by Mijago
12/24/2014 - Metin2 Private Server - 4 Replies
Hey Leute, ich komme irgendwie nicht mit dem Switchbot von Mijago klar. Kann mir einer es mal machen. Hier meine game.py. Sagt mir bescheid welche switchbot v? (switchbot.py) reinschieben soll :) game.py (Anhang)
[Hilfe]Switchbot by Mijago V2.2 als Button im Inv.
12/24/2014 - Metin2 Private Server - 12 Replies
hallo :D, habe den button im inventar schon eingefügt, wenn ich es benutze kommt das fenster nicht aber mit f6 kommt es :/ was habe ich wohl falsch gemacht??? wo habe ich es eingefügt? Nur in der uiinventory.py self.SwitchButton = self.GetChild2("SwitchButton")
Probleme mit Switchbot by Mijago "Wichtig"
12/09/2014 - Metin2 Private Server - 8 Replies
Guten Tag, ich bitte euch dieses Bild erstmal anzuschauen. http://i.epvpimg.com/72prg.png Unser Problem werdet ihr nun schon erkannt haben. Wir sind nicht die hellsten was das angeht und erhoffen uns deswegen ein bisschen Hilfe von euch. Wäre nett, wenn uns jemand weiterhelfen könnte.



All times are GMT +2. The time now is 06:00.


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.