SHN Editor

Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    SHN Editor

    Yo,

    I'm in a great mood today thanks to a certain somebody who helped me fix a minor problem that I got greatly annoyed of, fixing it tho took its time. Anyway.

    So I'd like to know, what Encoding does the SHN Editor v3d use to Read and Save/Write the .shn files? Does it change depending on the SHN file it reads, like for instance TextData.shn?

    I'm writing my own version in c# and I'd like to know any detail you guys can give me. Of course I didn't start from scratch, I found an old released source of an SHN Editor (not the ones we use today) so I'm adding a few tools I find useful. But the most important part of an SHN tool is obviously Reading and Writing the SHN Files. So, thanks in advance. Have a good day!

    Regards,
    Alex


  2. #2
    Valued Member Riko is offline
    MemberRank
    Sep 2009 Join Date
    105Posts

    Re: SHN Editor

    You can use whatever text encoding you like I think ^^;
    The game just cant display all. I would use ISO-8859-1

    ISO/IEC 8859-1

    Edit: Oh, i think i misread the post...well maybe still useful~
    Last edited by Riko; 23-05-13 at 12:15 PM. Reason: Retarded

  3. #3
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: SHN Editor

    @Riko I'm sorry if I wasn't clear.. xd My options are limited, I believe. My options as far as I know (I'll see If I can use any other Encoding's as well) are ASCII | BigEndianUnicode | Unicode | UTF32 | UTF7 | UTF8.

    Does this help or make sense to you?

  4. #4
    Valued Member Riko is offline
    MemberRank
    Sep 2009 Join Date
    105Posts

    Re: SHN Editor

    Oh If you really mean the text encoding I do recommend ISO-8895-1.

  5. #5
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: SHN Editor

    I'll see what happens If i use that. When I try to save TextData.shn with my tool, UTF7 will not save it. It gives me an error saying "Padded string is too long". Probably because the bits of some string in this file is larger that 7 bits or something..

  6. #6
    ExtrinsicStudio™ Myth is offline
    MemberRank
    Jan 2012 Join Date
    367Posts

    Re: SHN Editor

    UTF7/UTF8 will be suffice for anything you're wanting to do; you wont want to use anything other unless you're trying to read bytes from other languages (such as a JP client or CN client), in which case you'll want to find the appropriate encoding used.

    No clue why you're having an issue with it; most likely you're not storing the bytes properly and/or some other miss-coding issue.

    I personally use UTF7 purely because it doesn't remove the odd character I want to use (such as a + sign or others).

  7. #7
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: SHN Editor

    @Myth Well, I just tried re-saving the file as is. I didn't change anything to it, really. I wonder why the error as well.. But ISO seems to be working quite good actually plus it's Greek and I might wanna use Greek chars on something.. Never know..

  8. #8
    -.- NextIdea is offline
    MemberRank
    Nov 2012 Join Date
    343Posts

    Re: SHN Editor

    I'll give you good advice.
    Don't bother with encodings, handle everything as byte array and you don't need to worry bytes getting broken by encoding differences.
    I must say using string is much easier but then you must be aware of the encoding.

  9. #9
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: SHN Editor

    Thank you for the good piece of advice, I'll keep that in mind. I don't want to go into such big process just yet as I'll have to re-write Csharp's SHN Save/Write code and once I start, I feel like "Challenge Accepted!". I can't do much now as I'm ready to move to Sweden and... you get me. Another problem I have is that it won't save the .shn unless I "Run as administrator", but when I "Run as administrator" I can't drag and drop the files into the SHN Editor because lower-privileged processes can't drag and drop to higher-privileged ones on Win Vista and later. Any clue how that was pulled out on the public SHN Editors?

  10. #10
    -.- NextIdea is offline
    MemberRank
    Nov 2012 Join Date
    343Posts

    Re: SHN Editor

    You want to drag&drop from one editor to other?
    Is this really necessary?

  11. #11
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: SHN Editor

    No, I mean drag and drop the file from Windows Explorer to my SHN Tool. And yes I got really used to it and it's quite the useful feature.

    PS: Drag and drop the file into the Form is what doesn't work as administrator, drag and drop to the SHN_Tool.exe works fine.

  12. #12
    -.- NextIdea is offline
    MemberRank
    Nov 2012 Join Date
    343Posts

    Re: SHN Editor

    As I'm not Vista/Win7 user can't help with such problems.
    I can only suggest to use Google and try different solutions.

  13. #13
    Mr. Kenshin Alsm97 is offline
    MemberRank
    Oct 2010 Join Date
    SwedenLocation
    202Posts

    Re: SHN Editor

    I see. Thank you for showing some interest into this! I'm pretty sure i'll end up finding some workaround in the end.
    Have a good day.

    -Close thread please.

  14. #14
    Apprentice Kanaye is offline
    MemberRank
    Nov 2012 Join Date
    GermanyLocation
    6Posts

    note Re: SHN Editor

    I Search a SHN Editor q_q with iso because ö ä ü ^^" can who help me pls
    Skype: kanaye-gaming
    Can you already tell I can not write scripts or programs.
    I would be very pleased if you could help me :)

  15. #15
    Alpha Member Cyndaquil is offline
    MemberRank
    Mar 2012 Join Date
    EnglandLocation
    2,137Posts

    Re: SHN Editor

    Quote Originally Posted by Kanaye View Post
    I Search a SHN Editor q_q with iso because ö ä ü ^^" can who help me pls
    Skype: kanaye-gaming
    Nice necro (Y)



Page 1 of 2 12 LastLast

Advertisement