Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

SHN Editor

Joined
Jun 5, 2009
Messages
959
Reaction score
236
So I am fixing up the SHN editor and I was wanting to know what bugs there were and what features people wanted.

I've currently done the following:

Update V3.4.14.0604:
- Fixed OTD replace function.
- Added .OTD file type.
- Made main form window resizable.
- Added recount function.
- Added exception handling for copying and pasting.
- Added ability to press enter to search on search screen.
- Removed the need to register the software.
- Improved Data Grid cell click method.
- Added currently selected row.
- Fixed new row index copying.
- Added row recount error handling.
- Cleaned and improved pasting function.
- Item Editor now only opens for ItemInfo.shn.
- Changed default paste value to 0.
- Changed encoding to UTF8 which supports bigger charset.

Download:

Update V3.5.14.0605:
- Changed encoding to ISO-8859-1.
- Fixed row order when copying/pasting.
- Fixed NPCDialogue.shn saving issues.

Download:

Update V3.8.14.0620:
- Made shop creator.
- Added shop creator item list and search feature.
- Added delete strip menu item.
- Added most recently used file.
- Fixed close tab exception when no tabs open.
- Fixed delete tool strip menu exception when no file open.
- Suppressed beep sound when pressing enter on search and NPC list.
- Made ODT editor form resizable.
- Added create row UI, with default value and base row.
- Removed text default paste.
- Added UTF7, UTF8, ISO-8859-1 and ISO-8859-2 encoding options.

Download:

Update V3.9.14.0711:
- Fixed shop creator empty input line.
- Added file association exception handling.
- Added delete row exception handling.
- Fixed create row base row function.
- Added error handling for data grid view.
- Added drag and drop function.
- Made search screen form resizable.
- Reduced minimum size for main form.
- Added GB2312 encoding for Chinese character support.
- Fixed new row index, seemed to have been broken.
- Removed group box text title in ODT editor.
- Added row tally GUI.
- Added ability to press enter for ODT replace function.
- Added confirmation message for ODT replace function.
- Added short cut keys for all functions which may need them.

Download:

Update 4.0.14.0718:
- When pasting you will automatically be taken to the new row.
- Changed "SHN - 1 files open" to "SHN - 1 file(s) open".
- Changed some short cut keys to prevent interference with each other.
- Encoding type is saved in registry and will load on start up.
- Cleaned up new file code, made it more efficient.
- Removed unreferenced and unused code.
- Added column, multiplication, division and bulk edit.
- Added a replace feature.
- Completely removed registration feature.
- Made data grid double buffered at request.
- Removed old file association and created new custom file association class.
- Organised Visual Studio project.
- Made the program run as admin.
- Added confirmation message on column deletion.
- Added updates UI.
- Added go to function for search.
- Added a progress bar for row filter.
- Other minor bug fixes and improvements.

Download:

Update 4.0.14.0801:
- Made Go To function update current row position.
- Column bulk edit, deletion, divide, multiply and rename no longer closes when you click ok.
- SHN files with blank columns are now loaded with a default unknown column name.
- Empty cells are now saved as empty cells, without error.
- The full version number is now shown in the window text.
- Replace function now checks cell value instead of object data.
- Fixed extensive loading time of large shn files, reducing loading times by 88%.

Download:

Update 4.1.14.0814:
- Remade search function.
- Removed column refresher for search form.
- Search form now saves upon exit.
- You can no longer click away from search form window.
- Added search form search parameters: contains, equals, starts with and ends with.
- When you first open the search form the data grid view will be populated.
- If you search with an empty search field, it will reset your search.
- The replace window is no longer be the top most window.
- All buttons (i.e functions) in the replace form now check cell value instead of object data.
- Turned on WS_EX_COMPOSITED for main form and search form, making loading smoother.
- Search form now takes you to the cell you selected on the main form.
- Search parameters are loaded if any were set previously when searching.
- The search form no longer resets your currently selected row when opening/closing.
- Now when dragging in files it will add them to your recent list.

Download:

Update 4.1.14.0815:
- Fixed save function.
- Search form will no longer take you to the row selected in the main form.

Download:

Update 4.1.14.0816
- Turned off WS_EX_COMPOSITED for main form.
- Fixed search function, seemed to have been broken after I added the numbers "00:".

Download:

Update 4.2.14.0817:
- Fixed encoding type registry issues.
- Fixed search form resetting main form datagrid issue.

Download:

Update 4.2.14.1004:
- Fixed search screen horizontal scroll bar not showing.
- Updated NewRowIndex handling for Copy / Paste functions.
- Only one message box is now shown if clip board data is invalid.
- Made some changes to row filter UI.

Download:

Update 4.4.14.1225:
- Added search screen copy function.
- Added search screen find function which takes you to the selected cell/row in main grid.
- Fixed search screen open/close cell and row positioning on main grid.
- Changed copy and paste functions again.
- Added exception handling for go to function.
- Added shortcuts for copy and find options on search screen.
- Files are no longer deleted if there is an error, but rather just not saved.
- Files are now overwritten instead of deleted and re-written.
- Added exclamation sign to the save error message box.

Download:
 
Last edited:
Newbie Spellweaver
Joined
Aug 21, 2013
Messages
53
Reaction score
10
Do not use only UTF-8, Because is the wrong one for special character.
Im working with my own SHN Library and using iso-8859-2 and works fine for me.

Use something like this, its also build in in my libary, on the main screen there is a ComboBox
and in there are lists all Encodings there alivable for the computer.

Code:
foreach (EncodingInfo EncInfo in Encoding.GetEncodings())
{
Console.WriteLine(EncInfo.Name);
}


Encoding.GetEncoding(string name).GetString(byte[] bytes);

I think a really nice function is to save sentences with spacebar, if you copy a long sentence
and paste into a Texteditor there are automatic spaces between the sentences.

PS: Please remove the BinaryReaderEx there is a bug if you save a SHN File (TextData.shn, TextData2.shn, KingdomQuestDesc.shn, QuestDialog.shn, NPCDialogData.shn....) it will save not correctly the Columns are fine but the Rows will not save correctly.


PS²: There is a SHN Editor out there was using SHNColumn.cs, SHNFile.cs, SHNReader.cs, SHNWriter.cs use this instead of BinayReaderEx.cs and the bug is fixed and the code is cleaner.
 
Last edited by a moderator:
Joined
Jun 5, 2009
Messages
959
Reaction score
236
Here's a demo (3.4f):

Check to see if there are bugs, shouldn't be any.

UTF8 also has special characters.

Look at the link I linked:

What do you mean by the space bar thing?
 
Newbie Spellweaver
Joined
Aug 21, 2013
Messages
53
Reaction score
10
Ingame:
Code:
Great! You have chosen to be a Fighter.
{ENTER} (NEWLINE)
Fighters value strength and fame even more than their lives.
{ENTER} (NEWLINE)
Now, please select your character's gender.

Manualy:
Code:
Great! You have chosen to be a Fighter.Fighters value strength and fame even more than their lives.Now, please select your character's gender.

In other word you can not write new lines.

And what ive sayed, you CANT save spezial characters with UTF-8
 
Last edited by a moderator:
Skilled Illusionist
Joined
Nov 22, 2012
Messages
343
Reaction score
58
I think you can Copy-Paste the newline character into the field.
When I tried it copies it in and after the save, when you try to copy it, it results a newline and space combination (0x0A, 0x20). Which is almost what you need.

Also, maybe reprogram the exp editor, as for some it seemed confusing to mess with the Slime exp to determine the current exp rate. Like positive values increase it and negative decrease.
 
Master Summoner
Joined
Nov 11, 2012
Messages
573
Reaction score
137
Maybe fix the encryption type so i can read all types of shn encryption including those from the China files
 
Joined
Jun 5, 2009
Messages
959
Reaction score
236
Ingame:
Code:
Great! You have chosen to be a Fighter.
{ENTER} (NEWLINE)
Fighters value strength and fame even more than their lives.
{ENTER} (NEWLINE)
Now, please select your character's gender.

Manualy:
Code:
Great! You have chosen to be a Fighter.Fighters value strength and fame even more than their lives.Now, please select your character's gender.

In other word you can not write new lines.

And what ive sayed, you CANT save spezial characters with UTF-8

Oh do you mean you can't go onto a new line without having to type the newline command? I will check the UTF-8 thing and possibly add the the ability to choose which encoding type you would like to save in.

What's wrong with the EXP Editor? I've never used that be honest with you, I always used the massive index editor in column tab, but I will have a look at it.

What's exactly wrong with the NPCDialouge.shn does it just not save correctly?

Maybe fix the encryption type so i can read all types of shn encryption including those from the China files

Fix the encryption? The encryption is fine for Gamigo EU and NA and all of the files we use and I think it would be too much effort to find the encryption for the Chinese files and make it also compatible with those.
 
Joined
Jun 5, 2009
Messages
959
Reaction score
236
- Changed encoding to ISO-8859-1.
- Fixed row order when copying/pasting.
- Fixed NPCDialogue.shn saving issues.

SHN Editor v3.5f:

See if the issues persistent and if there is anything else, thanks.
 
Last edited:
Newbie Spellweaver
Joined
Aug 21, 2013
Messages
53
Reaction score
10
I think you can Copy-Paste the newline character into the field.
When I tried it copies it in and after the save, when you try to copy it, it results a newline and space combination (0x0A, 0x20). Which is almost what you need.

Also, maybe reprogram the exp editor, as for some it seemed confusing to mess with the Slime exp to determine the current exp rate. Like positive values increase it and negative decrease.


What exactly do with 0x0A if i copy it directly to my editor (DataGrid) and save it does not convert it's save 1 to 1 (Some text 0x0A newline)
I've also tried to replace it in the code {NEWLINE} -> 0x0A
 
Skilled Illusionist
Joined
Nov 22, 2012
Messages
343
Reaction score
58
That's so obvious that doing like that doesn't work :S

"0x" refers to Hex numbers and 0x0A refers to bytecode which value is 10 which is 1 part of the actual newline.
Why I write them that way is because people won't understand if I just write newlines to the posts.
The windows newline contains 2 symbols 0x0D (13) and 0x0A (10).

You have to use Hex editor to produce the correct symbol.
 
Newbie Spellweaver
Joined
Aug 21, 2013
Messages
53
Reaction score
10
That's so obvious that doing like that doesn't work :S

"0x" refers to Hex numbers and 0x0A refers to bytecode which value is 10 which is 1 part of the actual newline.
Why I write them that way is because people won't understand if I just write newlines to the posts.
The windows newline contains 2 symbols 0x0D (13) and 0x0A (10).

You have to use Hex editor to produce the correct symbol.


Sry for my dump.

Finally: (my own SHNDecryptor(completely rewritten))
fiestanerd69 - SHN Editor - RaGEZONE Forums
 
Last edited by a moderator:
Joined
Jun 5, 2009
Messages
959
Reaction score
236
Update v3.8f:

- Made shop creator.
- Added shop creator item list and search feature.
- Added delete strip menu item.
- Added most recently used file.
- Fixed close tab exception when no tabs open.
- Fixed delete tool strip menu exception when no file open.
- Suppressed beep sound when pressing enter on search and npc list.
- Made ODT editor resizable.
- Added create row ui, with default value and base row.
- Removed text default paste.
- Added UTF7, UTF8, ISO-8859-1 and ISO-8859-2 encoding options.

SHN Editor v3.8f:

Appreciate it if someone could test the encoding options.
 
Newbie Spellweaver
Joined
Apr 30, 2013
Messages
16
Reaction score
0
Very Awesome! I love to see people are still working on those Tools. Thanks for it!
 
Newbie Spellweaver
Joined
May 16, 2012
Messages
51
Reaction score
1
Thanks for working this, nice there are still people doing something for this section.

Could you release the source aswell so everbody could build in custom stuff? Would be very nice! :D
 
Newbie Spellweaver
Joined
May 16, 2012
Messages
51
Reaction score
1
Yes, but I'm asking for the new version of SHN-Editor :)
 
Newbie Spellweaver
Joined
Dec 16, 2013
Messages
98
Reaction score
7
could you let the tool surport Chinese language?thank you very much!
 
Back
Top