|
You last visited: Today at 16:28
Advertisement
Data tool crash on specific offsets.
Discussion on Data tool crash on specific offsets. within the Shaiya PServer Development forum part of the Shaiya Private Server category.
10/02/2014, 09:47
|
#1
|
elite*gold: 0
Join Date: Nov 2009
Posts: 79
Received Thanks: 72
|
Data tool crash on specific offsets.
Greetings.
I was experimenting with bone structures, 3do files, offsets, and came across a strange (consistant) bug in LPH's data tool or maybe my hands are just curved... Either way, here is the issue. A non-shaiya 3do file, trying to bind it into hand properly, so it is not floating around requires offset editing, after several attempts, noticed that whenever i try to enter exact coordinates according to bone structure, data file tool comes up with the same error, and so far the only way of "fixing" it, is to change the offset by 0.001 in either direction, which is not really noticable, yet annoying at times. In some cases this appears on rotations and scalings as well, which can be very frustrating. Haven't tried compiling a client with said files, only importing so far. Did a search, but nothing really came up. Any ideas?
Error log
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.ArgumentException: The output char buffer is too small to contain the decoded characters, encoding 'Unicode (UTF-8)' fallback 'System.Text.DecoderReplacementFallback'.
Parameter name: chars
at System.Text.Encoding.ThrowCharsOverflow()
at System.Text.Encoding.ThrowCharsOverflow(DecoderNLS decoder, Boolean nothingDecoded)
at System.Text.UTF8Encoding.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, DecoderNLS baseDecoder)
at System.Text.DecoderNLS.GetChars(Byte* bytes, Int32 byteCount, Char* chars, Int32 charCount, Boolean flush)
at System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex, Boolean flush)
at System.Text.DecoderNLS.GetChars(Byte[] bytes, Int32 byteIndex, Int32 byteCount, Char[] chars, Int32 charIndex)
at System.IO.BinaryReader.InternalReadChars(Char[] buffer, Int32 index, Int32 count)
at System.IO.BinaryReader.ReadChars(Int32 count)
at Shaiya_Data_file_Tool.Form1.import(SAHfile iSah, String fPath)
at Shaiya_Data_file_Tool.Form1.ImportToolStripMenuIte m_Click(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Obje ct key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(Eve ntArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(M ouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventIntera ctive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(Event Args e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEven tArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(M ouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Mes sage& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
|
|
|
10/02/2014, 17:19
|
#2
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
|
This error is not caused by the Data File Tool. It's caused with converting offsets from foreign files using tools such as the 3DoC tool we have access to. It's due to the build in limitations on scale/rotation of certain items (weapons in your case)
These are the problems you get when taking a game's file and trying to force it into another game.
|
|
|
10/02/2014, 20:00
|
#3
|
elite*gold: 0
Join Date: Nov 2009
Posts: 79
Received Thanks: 72
|
Quote:
Originally Posted by Truth1010
These are the problems you get when taking a game's file and trying to force it into another game.
|
That's obvious and expected, i was just wondering why those exact points, because i can move/scale/rotate pretty much unlimited in every other direction.
|
|
|
10/02/2014, 20:26
|
#4
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
|
Seems to be no set 'rule' as to why. Sometimes it's the offset being out by 0.001, other times it's the rotation being out by a small amount.
I would assume that each "type" of weapon has set limits that it must be placed into for it to work. But where to see those limits, or how to test what they are, seems out of my knowledge.
I too noticed the same error through DataFileTool with scaling/rotating/moving the designs.
|
|
|
10/02/2014, 22:21
|
#5
|
elite*gold: 10
Join Date: Jan 2012
Posts: 1,698
Received Thanks: 5,450
|
The data file tool doesn't care if the file you're importing is a Shaiya model, a picture of Hitler or a **** video. There's probably a bug in the application, it happens.
Suggestions: - Remake your client and try to import again. If that fails:
- Download (which is known to have some bugs as well) and try it out, it may be able to do it.
|
|
|
10/02/2014, 23:23
|
#6
|
elite*gold: 0
Join Date: Nov 2009
Posts: 79
Received Thanks: 72
|
Trying to import directly gives this error.
Compiling a new client with files goes fine, but crashes the sgraphic as soon as character screen starts loading in.
|
|
|
10/02/2014, 23:42
|
#7
|
elite*gold: 0
Join Date: May 2012
Posts: 394
Received Thanks: 391
|
I'm just going to assume you are using the 3DoC tool to 'convert' the files into a useable format.. what i found with that is, if you move the 'camera' view of the item in that tool, before or after you set offsets etc. then you'll get the error, regardless of the points you use. Again, it must be a limit to the individual file, but where/why is unknown.
|
|
|
10/03/2014, 00:01
|
#8
|
elite*gold: 0
Join Date: Nov 2009
Posts: 79
Received Thanks: 72
|
Quote:
Originally Posted by Truth1010
what i found with that is, if you move the 'camera' view of the item in that tool, before or after you set offsets etc. then you'll get the error, regardless of the points you use.
|
Yes, at first i had same suspicion, but even not touching the camera at all gives the same results. Only reason i can figure out so far is that you are not allowed to move offsets past inner bone structure points, otherwise it interferes with animation files. Noticed this with claws explicitly, and it's impossible to move them closer to body, as by default they are bound closer to upper side of palm than fist.
It seems as the claw bindpoint is not exactly in middle of fist, but rather off, just the graphics of handle are adjusted to fit it.
|
|
|
10/03/2014, 01:11
|
#9
|
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,357
|
Thank nubness, I failed to understand what could be the issue with "LPH's data tool" when it comes with "bone structures, 3do files, offsets".
indeed, LPH data tool didn't transform garbage into meaningful data when you pack (*NOT* compile) some,
and indeed, a .3DO do *NOT* contain any bone, and a position is NOT an offset.
that said, the client never crashes because of a shift of 0.001 of one point, OOH, it always crashes if the .3DO stream is invalid.
can you open the .3DO your shStudio ? it will be succesfully opened by shaiya client *even* if your sword is 352 meters long and located at 147 meters of the toon that handles it.
can not open with shStudio ? you probably forgot to set the right type when you save it.
|
|
|
10/03/2014, 01:36
|
#10
|
elite*gold: 0
Join Date: Nov 2009
Posts: 79
Received Thanks: 72
|
Quote:
Originally Posted by castor4878
can you open the .3DO your shStudio ? it will be succesfully opened by shaiya client *even* if your sword is 352 meters long and located at 147 meters of the toon that handles it.
|
That's the thing, making a sword half across the map and flying is absolutely no issue. Done it, had lols, moved on. My theory was that it might be because file is placed over some of these points in hands, but more educated conclusions are welcome.
You say offset is not a position, sorry i just adopted the term used in converter, since it's what it does.
|
|
|
10/03/2014, 01:59
|
#11
|
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,357
|
an "offset" is (usually) used the define the distance between a specific location (very usally in a 1D sequence) and a fixed origin (such as the begining of a file).
dealing with 3D geometry, we prefer position or location or coordinates.
but my point was to explain why I didn't understand the 1st post, and especially not to teach a vocabulary lesson.
your pict displays the bones of the .3DC files (all .3DC contains the all the bones of the full skeleton); a .3DO file doesn't contain bone, all its vertices (3D points) are relative to "one" point of the hand (for weapons), there is no evidence that this point is one of the bone of the hand or a (kind of) barycenter of the vertices defining the hand.
|
|
|
|
Similar Threads
|
[HELP] Data File Tool
07/03/2014 - Shaiya PServer Development - 0 Replies
Hi, question about Data File tool, I modified a Character data, but now, I don't remember what I have modified, so I don't want to right click > Import etc, do you know other way to do ? Like just delete the Character data and put the new one ?
Please, need answer fast...
|
[BIg-HELP!] Crash Data/monster
12/17/2013 - Metin2 Private Server - 0 Replies
Hi,
I have a very big problem. (problem with data/monster)
My problem is :
Example my pet:
http://i.imgur.com/mHPBTBi.png
The folder is : redthief2_officer_young1
|
Data Tool
12/07/2013 - Shaiya Private Server - 5 Replies
hi,
i have a question, have anyone a sh studio version for opening the item sdata and Monster sdata from US or DE Shaiya?
|
Data Tool
12/16/2011 - Shaiya Private Server - 1 Replies
hello guys does anybody know how to make a folder in data tool in the folder dungeon in world?
when i do the _ like say i wanted to put dungeon_1 it would put dungeon1 like does anybody know how? thank you. :)
|
All times are GMT +1. The time now is 16:28.
|
|