Register for your free account! | Forgot your password?

You last visited: Today at 13:04

  • 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 08/28/2010, 16:49   #16
 
elite*gold: 0
Join Date: May 2009
Posts: 118
Received Thanks: 77
Quote:
Originally Posted by EarthCrush View Post
Before extracting create an empty folder named "NpcQuest", then try extracting.
Wow that work! Thanks EarthCrush! Silly me, why did i think of that! hahah Thank you
jamessimpler is offline  
Old 08/30/2010, 15:29   #17
 
ZeroSignal's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 69
Received Thanks: 577
EarthCrush:
Thanks for your solution good to someone reading the source code instead of leeching and just complaining when something is not working with one-click or command.

The source code fix for it is here:

open:
.\src\NpcQuest.py

find line 153:
Code:
def MainQuest(outFmt):
	global work_dir
	work_dir += 'NPCQuest/'
After it add the following two lines:
Code:
	if not os.path.exists(work_dir):
		os.makedirs(work_dir)
so it will be:
Code:
def MainQuest(outFmt):
	global work_dir
	work_dir += 'NPCQuest/'
	[b]if not os.path.exists(work_dir):
		os.makedirs(work_dir)[/b]
		
	# ... rest of function ...
When enough bugs have been found I'll increment and release new version.


shinru2004:
I deliberately did not answer your question as it was structured as a hostile statement and was not researched properly. If you had read the Python installation you would find that on a Windows platform the Python installation instruction say to add the Python executable path to your Windows PATH Environment variable so the executable can be called directly in command prompt.

reference:



Quote:
Originally Posted by ProfNerwosol View Post
ZeroSignal ... please PM me. I am curious as to what kind of problems you are having with ReqStr - Reqluc fields. I might be able to assist.
I dunno if there is an issue or not. When converted to be used in database data the values seem to be ok at least from what we tested. Try it and see if the values are ok or if there is something wrong with them and if so look at the binary data structure part of the source code.
ZeroSignal is offline  
Old 08/30/2010, 20:06   #18
 
shinru2004's Avatar
 
elite*gold: 260
Join Date: Oct 2009
Posts: 258
Received Thanks: 266
lol im not a nub dude i have it added as a sytem variable... and it still didnt work, atleast not on windows XP
shinru2004 is offline  
Old 08/31/2010, 09:22   #19
 
elite*gold: 0
Join Date: Jul 2010
Posts: 7
Received Thanks: 0
I am having a problem with NpcQuest.SData


Errors then doesn't complete the job i have redownloaded the scripts and tried multiple versions of NpcQuest.SData all with the same result



I Have Tried Multiple NpcQuest.SData files on multiple computers same error no matter.
ShaiyaNemesis is offline  
Old 08/31/2010, 16:16   #20
 
nXu's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 208
Received Thanks: 40
Quote:
Originally Posted by shinru2004 View Post
lol im not a nub dude i have it added as a sytem variable... and it still didnt work, atleast not on windows XP
I dont want to flame, beacuse i love your work, but i added python to environment variables... and it works (XP SP3)
nXu is offline  
Old 08/31/2010, 19:05   #21
 
elite*gold: 0
Join Date: May 2009
Posts: 118
Received Thanks: 77
Sorry but what do you mean? Would you elaborate just a little? pretty pls?

Quote:
Originally Posted by huntoxic View Post
I dont want to flame, beacuse i love your work, but i added python to environment variables... and it works (XP SP3)
jamessimpler is offline  
Old 09/01/2010, 07:13   #22
 
ZeroSignal's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 69
Received Thanks: 577
Quote:
Originally Posted by ShaiyaNemesis View Post
I am having a problem with NpcQuest.SData


Errors then doesn't complete the job i have redownloaded the scripts and tried multiple versions of NpcQuest.SData all with the same result



I Have Tried Multiple NpcQuest.SData files on multiple computers same error no matter.
.\src\NpcQuest.py

Function extractQuestChain is incomplete.

Code:
def extractQuestChain(input, fileOut):
	# Open File for output.
	print("Creating " + fileOut)
	try:
		fout = open(fileOut, mode='wb')
	except IOError:
		return False

	fout.write("\n");
	record_total = 0
	while True:
		record_total = struct.unpack('i', input.read(4))[0]
		[b]if (record_total == 1531):
			input.seek(-4, 1)
			break[/b]
		data = struct.unpack(str(record_total) + 'H', input.read(record_total * 2))
		csv_data = ','.join( map( str, data ) )
		if (csv_data == ''):
			csv_data = '0';
		fout.write(csv_data + "\n");
	return
It has an explicit constant as we did not figure out how the quest chain data structure lengths are. When someone works it out let me know or submit the changes for next release.

Quote:
Originally Posted by jamessimpler View Post
Sorry but what do you mean? Would you elaborate just a little? pretty pls?
For more info on Environment Variables please read the following and make sure you read the PATH Environment Variable Reference as that is the one you should modify.

reference:
ZeroSignal is offline  
Thanks
2 Users
Old 09/01/2010, 08:05   #23
 
ZeroSignal's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 69
Received Thanks: 577
Regarding the Quest Chain Error:

Open .\src\NpcQuest.py

Find:
Code:
if (record_total == 1531):
erase the line and put instead:
Code:
if (record_total > 100):
so the code section will be:
Code:
def extractQuestChain(input, fileOut):
	# Open File for output.
	print("Creating " + fileOut)
	try:
		fout = open(fileOut, mode='wb')
	except IOError:
		return False

	fout.write("\n");
	record_total = 0
	while True:
		record_total = struct.unpack('i', input.read(4))[0]
		[b]if (record_total > 100):[/b]
			input.seek(-4, 1)
			break
		data = struct.unpack(str(record_total) + 'H', input.read(record_total * 2))
		csv_data = ','.join( map( str, data ) )
		if (csv_data == ''):
			csv_data = '0';
		fout.write(csv_data + "\n");
	return
It's an extremely dirty fix but it seems to do the job as long as the total amount of quests is greater than 100.
ZeroSignal is offline  
Thanks
5 Users
Old 09/01/2010, 11:40   #24
 
elite*gold: 0
Join Date: May 2009
Posts: 10
Received Thanks: 8
how fix?
Monster.SData - EP 5.2
tnx
Attached Images
File Type: jpg monster.JPG (56.8 KB, 172 views)
U97 is offline  
Old 09/01/2010, 11:53   #25
 
elite*gold: 0
Join Date: May 2009
Posts: 118
Received Thanks: 77
Quote:
Originally Posted by U97 View Post
how fix?
Monster.SData - EP 5.2
tnx
I have the same problem as well
jamessimpler is offline  
Old 09/01/2010, 12:39   #26
 
elite*gold: 0
Join Date: Jul 2010
Posts: 124
Received Thanks: 99
Quote:
Originally Posted by jamessimpler View Post
I have the same problem as well
Decrypt the Monster.Sdata and try again.


Zero:

I need help with svamp files can u explain better?
Thx alot

Best Regards
-UG
ShaiyaUnited is offline  
Old 09/01/2010, 13:31   #27
 
elite*gold: 0
Join Date: May 2009
Posts: 118
Received Thanks: 77
Still doesnt work. The error is the same as above

Quote:
Originally Posted by ShaiyaUnited View Post
Decrypt the Monster.Sdata and try again....
jamessimpler is offline  
Old 09/01/2010, 14:30   #28
 
shinru2004's Avatar
 
elite*gold: 260
Join Date: Oct 2009
Posts: 258
Received Thanks: 266
I know what i idid wrong now lol

C:\python26;C:\python26\DLLs;C:\python26\lib;C:\py thon26\Lib\lib-tk

I added that under python instead of PATH.......
shinru2004 is offline  
Old 09/04/2010, 20:56   #29
 
elite*gold: 0
Join Date: Jul 2010
Posts: 124
Received Thanks: 99
Okay zero its worked fine before now i get erros with Monster.Sdata

''Creating ./Output/SData/Monster.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:\ShaiyaDataEdit\Monster\src\Monster.py", line 52, in MainMonster
return ExtractMonster(outFmt)
File "C:\ShaiyaDataEdit\Monster\src\Monster.py", line 114, in ExtractMonster
for i in range(record_total):
MemoryError
Press any key to continue . . .''
ShaiyaUnited is offline  
Old 09/04/2010, 21:00   #30
 
elite*gold: 0
Join Date: May 2009
Posts: 118
Received Thanks: 77
Quote:
Originally Posted by ShaiyaUnited View Post
Okay zero its worked fine before now i get erros with Monster.Sdata

''Creating ./Output/SData/Monster.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:\ShaiyaDataEdit\Monster\src\Monster.py", line 52, in MainMonster
return ExtractMonster(outFmt)
File "C:\ShaiyaDataEdit\Monster\src\Monster.py", line 114, in ExtractMonster
for i in range(record_total):
MemoryError
Press any key to continue . . .''
I am having the same problem... But still its amazing work by ZeroSignal and friends to be honest.
jamessimpler is offline  
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:04.


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.