Register for your free account! | Forgot your password?

You last visited: Today at 13:45

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

Advertisement



shay data edit (0-1b)

Discussion on shay data edit (0-1b) within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old 07/16/2011, 23:03   #136
 
TacticalNukez's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 69
Received Thanks: 4
Quote:
Originally Posted by [ADM]Wind View Post
Is this a 0(zero)?If it is change it to o (the letter o).
changed to an O still a syntax error it says
File "scr\SData.py", line 60
syntax error invalid syntax
TacticalNukez is offline  
Old 07/23/2011, 21:51   #137
 
Da Boss's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 202
Received Thanks: 66
Hi, this guide is extremely useful, but I keep getting this error when I open NPCQuest.csv, I have the decrypted NpcQuest.SData file in the input folder, but I've tried different things and I do not know how to fix/ solve, can someone help me? tnx :P
Attached Images
File Type: jpg Untitled.jpg (11.8 KB, 142 views)
Da Boss is offline  
Old 07/24/2011, 10:57   #138
 
Da Boss's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 202
Received Thanks: 66
Quote:
Originally Posted by TacticalNukez View Post
changed to an O still a syntax error it says
File "scr\SData.py", line 60
syntax error invalid syntax
I also get this same error now, can anyone help ?
Da Boss is offline  
Old 07/30/2011, 11:50   #139
 
elite*gold: 0
Join Date: Mar 2010
Posts: 14
Received Thanks: 0
HELP
i Have a error in Monster.bat
Attached Images
File Type: jpg 01.JPG (46.0 KB, 123 views)
Hammond2000 is offline  
Old 08/04/2011, 13:35   #140
 
elite*gold: 0
Join Date: Oct 2005
Posts: 184
Received Thanks: 85
I keep getting an error

"This operation expects a parameter to complete"

when I am trying to run the map extractor file
Psycnosis is offline  
Old 08/16/2011, 18:02   #141
 
[Dev]RiseAgainst's Avatar
 
elite*gold: 0
Join Date: Jun 2011
Posts: 54
Received Thanks: 13
Extracts SData Files into various output formats.

SData input [-o[:]outformat]

input The name of the SData file. It must be within the same folder.

-o The output format of the file.
outformat csv_import (def) Creates CSV File suitable for DB Importing.
csv_complete Creates complete CSV File for Editing.
export_complete Creates SData File suitable for Recombining.


EXAMPLES:
>SData Item -o csv_complete
>SData Skill -o export_complete

Press any key to continue . . .

When i check output folder nothing is there. Any help?
[Dev]RiseAgainst is offline  
Old 09/29/2011, 09:28   #142
 
elite*gold: 0
Join Date: Sep 2011
Posts: 1
Received Thanks: 0
not working in wicked shaiya
jryanp is offline  
Old 11/08/2011, 19:59   #143
 
elite*gold: 0
Join Date: Apr 2010
Posts: 10
Received Thanks: 2
Help Please

Code:
  File "src\SData.py", line 60
    """
      ^
SyntaxError: invalid syntax
Press any key to continue . . .
This is the error i am getting when im trying to do the item.SData
Khaosrogue is offline  
Old 11/08/2011, 20:54   #144
 
elite*gold: 0
Join Date: Feb 2011
Posts: 214
Received Thanks: 205
Quote:
Originally Posted by Da Boss View Post
I also get this same error now, can anyone help ?
That mean you didnt restarted your computer after installed MSSQL. Try to restart your Computer and it will work fine.

Other problems: I wont answer you guys becouse those questions are already has been answered by developers... try to search -.-
Xx.LaMin.xX is offline  
Old 11/10/2011, 13:35   #145
 
Da Boss's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 202
Received Thanks: 66
Quote:
Originally Posted by Xx.LaMin.xX View Post
That mean you didnt restarted your computer after installed MSSQL. Try to restart your Computer and it will work fine.

Other problems: I wont answer you guys becouse those questions are already has been answered by developers... try to search -.-
Ohh lol, I got this to work a while ago, problem was when I used Python32- it didnt like it and when I used Python27, it worked like a star. But tnx for the reply
Da Boss is offline  
Old 11/11/2011, 17:08   #146
 
elite*gold: 0
Join Date: Aug 2010
Posts: 59
Received Thanks: 14
hello i have problem converting an sdata into a .csv file is decrypted no firewall issues anyone have any ideas?
Code:
Creating ./Output/SData/Skill.complete.csv
Traceback (most recent call last):
  File "src\SData.py", line 113, in <module>
    main(sys.argv[1:])
  File "src\SData.py", line 102, in main
    result = SDataItems[SDataName](outFmt)
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Skill.py",
line 123, in MainSkill
    return ExtractSkill("Skill", outFmt)
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Skill.py",
line 193, in ExtractSkill
    rec = unpack_fields(input, skill_types, {})
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Utils.py",
line 97, in unpack_fields
    rec[ field[0]] = unpack_field(input, type)
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Utils.py",
line 85, in unpack_field
    len = struct.unpack('=I', input.read(4))[0]
struct.error: unpack requires a string argument of length 4
Press any key to continue . . .
fixed... changed (j=9 back to j=3)
flared ego is offline  
Old 08/21/2012, 06:59   #147
 
[Admin]Snuggle's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 942
Received Thanks: 1,066
Bump.
More people are asking me about this so figured I'd bump it o.o
Great tool and only mistakes come from user side not tool side.
[Admin]Snuggle is offline  
Thanks
1 User
Old 08/21/2012, 08:31   #148
 
elite*gold: 0
Join Date: Jun 2011
Posts: 345
Received Thanks: 241
This is my fav tool ever right here! wished it was updated a little but O well still my fav
hootzoo is offline  
Old 08/25/2015, 18:35   #149
 
Apero's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 156
Received Thanks: 42
Quote:
Originally Posted by flared ego View Post
hello i have problem converting an sdata into a .csv file is decrypted no firewall issues anyone have any ideas?
Code:
Creating ./Output/SData/Skill.complete.csv
Traceback (most recent call last):
  File "src\SData.py", line 113, in <module>
    main(sys.argv[1:])
  File "src\SData.py", line 102, in main
    result = SDataItems[SDataName](outFmt)
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Skill.py",
line 123, in MainSkill
    return ExtractSkill("Skill", outFmt)
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Skill.py",
line 193, in ExtractSkill
    rec = unpack_fields(input, skill_types, {})
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Utils.py",
line 97, in unpack_fields
    rec[ field[0]] = unpack_field(input, type)
  File "C:\Users\JARED\Desktop\New SH studio\shay_data_edit_0-1c\src\Utils.py",
line 85, in unpack_field
    len = struct.unpack('=I', input.read(4))[0]
struct.error: unpack requires a string argument of length 4
Press any key to continue . . .
fixed... changed (j=9 back to j=3)




Hello I have the same error I see you managed to fix it could tell us how you thank you
Apero is offline  
Old 08/26/2015, 08:10   #150
 
elite*gold: 0
Join Date: Jun 2015
Posts: 81
Received Thanks: 147
Fixing the skill.py file to work with 9 skill levels

if your only using ep4.5 you want to leave the 3s to 3s if ep5 change the 3s listed below to 9s

first you need to open the skills.py file what is in your python27 folder and then src folder open this file with notepad or notepad++ and it will look something like this

now what you need to do to fix it you will need to change 2 numbers in this file from 3 to 9

first edit
Code:
        # Write Total.
	record_total = struct.pack('I', (len(recs) / 3))
	fout.write(record_total)
second edit
Code:
                cs_rec = copyKeys(rec, header)
		fout_csv.writerow(cs_rec)
		if (i == record_total and j == 3):
			break
	return True
when done correctly it will look like this
Code:
'''
    This file is part of Shay_data_edit.

    Shay_data_edit is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Shay_data_edit is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with Shay_data_edit.  If not, see <http://www.gnu.org/licenses/>.

    Copyright ZeroSignal 2009, 2010 
'''

from Utils import *

skill_types = [
	['SkillName', 'string'],
	['SkillDesc', 'string'],
	['SkillLevel', 'tinyint'],
	['SkillID', 'short'],
	['SkillAnim', 'tinyint'],
	['SkillIcon', 'int'],
	['ReqLevel', 'short'],
	['Country', 'tinyint'],
	
	['AttackFighter', 'tinyint'],
	['DefenseFighter', 'tinyint'],
	['Patrolrogue', 'tinyint'],
	['Shootrogue', 'tinyint'],
	['AttackMage', 'tinyint'],
	['DefenseMage', 'tinyint'],
	
	['Grow', 'tinyint'],
	['SkillPoint', 'tinyint'],
	['TypeShow', 'tinyint'],
	['TypeAttack', 'tinyint'],
	['TypeEffect', 'tinyint'],
	['TypeDetail', 'short'],
	
	['NeedWeapon1', 'tinyint'],
	['NeedWeapon2', 'tinyint'],
	['NeedWeapon3', 'tinyint'],
	['NeedWeapon4', 'tinyint'],
	['NeedWeapon5', 'tinyint'],
	['NeedWeapon6', 'tinyint'],
	['NeedWeapon7', 'tinyint'],
	['NeedWeapon8', 'tinyint'],
	['NeedWeapon9', 'tinyint'],
	['NeedWeapon10', 'tinyint'],
	['NeedWeapon11', 'tinyint'],
	['NeedWeapon12', 'tinyint'],
	['NeedWeapon13', 'tinyint'],
	['NeedWeapon14', 'tinyint'],
	['NeedWeapon15', 'tinyint'],
	
	['Shield', 'tinyint'],
	['SP', 'short'],
	['MP', 'short'],
	['ReadyTime', 'tinyint'],
	['ResetTime', 'short'],
	['AttackRange', 'tinyint'],
	['StateType', 'tinyint'],
	['AttrType', 'tinyint'],
	['Disable', 'short'],
	['PrevSkillID', 'short'],
	['SuccessType', 'tinyint'],
	['SuccessValue', 'tinyint'],
	['TargetType', 'tinyint'],
	['ApplyRange', 'tinyint'],
	['MultiAttack', 'tinyint'],
	['KeepTime', 'short'],
	['Weapon1', 'tinyint'],
	['Weapon2', 'tinyint'],
	['Weaponvalue', 'tinyint'],
	['Bag', 'tinyint'],
	['Arrow', 'short'],
	
	['DamageType', 'tinyint'],
	['DamageHP', 'short'],
	['DamageSP', 'short'],
	['DamageMP', 'short'],
	['TimeDamageType', 'tinyint'],
	['TimeDamageHP', 'short'],
	['TimeDamageSP', 'short'],
	['TimeDamageMP', 'short'],
	['AddDamageHP', 'short'],
	['AddDamageSP', 'short'],
	['AddDamageMP', 'short'],
	
	['AbilityType1', 'tinyint'],
	['AbilityValue1', 'short'],
	['AbilityType2', 'tinyint'],
	['AbilityValue2', 'short'],
	['AbilityType3', 'tinyint'],
	['AbilityValue3', 'short'],
	
	['HealHP', 'short'],
	['HealSP', 'short'],
	['HealMP', 'short'],
	['TimeHealHP', 'short'],
	['TimeHealSP', 'short'],
	['TimeHealMP', 'short'],
	
	['DefenseType', 'tinyint'],
	['DefenseValue', 'tinyint'],
	['LimitHP', 'tinyint'],
	['FixRange', 'tinyint'],
	['ChangeType', 'short'],
	['ChangeLevel', 'short'],
]


def MainSkill(outFmt):
    if (outFmt.export_complete):
        return CombineSkill("Skill")
    if (outFmt.csv_import or outFmt.csv_complete):
        return ExtractSkill("Skill", outFmt)

def MainNPCSkill(outFmt):
    if (outFmt.export_complete):
        return CombineSkill("NpcSkill")
    if (outFmt.csv_import or outFmt.csv_complete):
        return ExtractSkill("NpcSkill", outFmt)

def CombineSkill(type):
	csvIn = work_dir + type + ".complete.csv"
	try:
		csvf = csv.DictReader(open(csvIn))
	except IOError:
		sys.exit(MsgFileReadError % csvIn)
	
	foutName = work_dir + type + ".SData"
	try:
		fout = open(foutName, mode='wb')
	except IOError:
		sys.exit(MsgFileWriteError % foutName)

	recs = []
	for row in csvf:
		recs.append(row)
	print "skill_rows: " + str(len(recs))

	# Write Total.
	record_total = struct.pack('I', (len(recs) / 9))
	fout.write(record_total)

	for i in recs:
		pack_fields(fout, skill_types, i)
	return True


def ExtractSkill(type, outFmt):
	# Open SData File.
	skillSData = feed_dir + type + ".SData"
	try:
		input = open(skillSData, mode='rb')
	except IOError:
		sys.exit(MsgFileReadError % skillSData)
	
	header = get_data_headers(skill_types)
	
	if (outFmt.csv_import):
		filename = work_dir + type + ".import.csv"
		header.pop(1) # Remove SkillDesc
		header.pop(3) # Remove SkillAnim
		header.pop(3) # Remove SkillIcon
	
	if (outFmt.csv_complete):
		filename = work_dir + type + ".complete.csv"
	
	print("Creating " + filename)    
	# Open File for output.
	try:
		fout = open(filename, mode='wb')
	except IOError:
		sys.exit(MsgFileWriteError % filename)
	
	fout_csv = csv.writer(fout)
	fout_csv.writerow(header)
	fout_csv = csv.DictWriter(fout, header)

	record_total = unpack_field(input, 'int')

	i = 0
	j = 0
	while True:
		rec = unpack_fields(input, skill_types, {})
		
		if (rec["SkillLevel"] == 1):
			i += 1
			j = 0
		j += 1
		
		if (outFmt.csv_import):
			rec["SkillID"] = i
		
		cs_rec = copyKeys(rec, header)
		fout_csv.writerow(cs_rec)
		if (i == record_total and j == 9):
			break
	return True
once completed save your changes and do your skills to cvs process and your done.

note: this will not work for ep6 with 15 skill levels im not very good with python but my best guess as to why is the file is formatted differently or the coding of the file isn't the same as ep5 or lower
[Alcatraz] is offline  
Thanks
4 Users
Reply

Tags
data edit, mlt, sdata, shaiya, svmap


Similar Threads Similar Threads
[PK2] Skill edit data.pk2
11/15/2012 - Silkroad Online - 2 Replies
looking for a professional who knows how to edit/add skills in the data.pk2 (.ban files) if you can help me please write here or pm me. thanks!!
how do i edit data.pk2 skills
02/08/2010 - Silkroad Online - 1 Replies
Hey guys im wondering how i pk2 edit my skills in silkroad. i have the pk2 codes but i dont get how to change it.. it always says string not found. can anyone help me plz?
[PK]All Servers+Data.pk2 Edit.
11/17/2009 - SRO PServer Guides & Releases - 12 Replies
This is my new edit :)Thx for all will using player Log-in screen Edit 140lw Skill Edit 140lw Skill İcon Edit 9D items changed to 10D items 85Lw Weapons changed SUN. Loading Screen Edit Launcher Edit Horse edit
How to edit Data.pk2?
04/06/2009 - Silkroad Online - 14 Replies
Could anyone tell whats the best program to do it? I want to edit Data.pk2, not Media.pk2 Thnx :)
Is it possible to edit data for Dekaron ?
01/28/2008 - Dekaron - 0 Replies
I've tried editing with winhex, but not working. = ( Any idea anyone ?



All times are GMT +2. The time now is 13:45.


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.