Valid Symbols for (non Windows) deployment

Discussion in 'Learning Javascript' started by Lihinel, May 31, 2019.

  1. Lihinel

    Lihinel Veteran Veteran

    Messages:
    196
    Likes Received:
    239
    First Language:
    German
    There was a discussion on a german site about errors caused by file names including special symbols such as # and how it can lead to problems when deploying a game on a non windows system. (Apparently spaces in names will cause problems, but I can't just use html standards, since those would also disallow ! and $ which are used for Charcter Sprites.)

    So if anyone could provide information or maybe a link, I'd like to know:
    Which symbols are valid for files for rpg maker MV?
     
    #1
  2. ??????

    ?????? Diabolical Codemaster Veteran

    Messages:
    6,264
    Likes Received:
    2,310
    Location:
    Your OS
    First Language:
    Binary
    Primarily Uses:
    RMMV
    as far as I know, the only thing that matters is CaSe SenSiTIVity!! I have rpg maker games running on android and linux that use special characters and have never had an issue. :)
    upload_2019-5-30_20-5-29.png

    So yea, the only real thing to worry about, is case sensitivity. Windows doesnt care about case, and will find filenames that linux and android may cry about.

    Ie, you have Filename.png you reference it as filename.png in your plugin, windows doesnt care and will find the file. linux will care and will cry till you fix it.

    edit: i could be wrong and there might be some characters you cant use, idk. personally ive never seen an issue. :)
     
    #2
  3. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,051
    Likes Received:
    657
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    ! and $ are URI delimiters, i.e. characters designed for special use. Their interpretation depends on the application handling the URI: the game, in this case. (Not sure how an unexpected # delimiter would be interpreted.)

    RMMV games use XMLHttpRequest for reading data from files, but I think they cope OK with percent-encoding for non-standard characters (e.g. spaces), at least on Windows. Personally, I'd recommend sticking to alphanumeric + hyphens where possible. :)

    Technical reference: https://tools.ietf.org/html/rfc3986#section-2.2
     
    #3
    Lihinel likes this.
  4. ??????

    ?????? Diabolical Codemaster Veteran

    Messages:
    6,264
    Likes Received:
    2,310
    Location:
    Your OS
    First Language:
    Binary
    Primarily Uses:
    RMMV
    interesting. I use files in my current project prefixed with the $ character and havent had any issues so far. Granted, it hasnt been put to my website yet, but ive tested locally in firefox and on android and everything works as expected.
     
    #4
  5. caethyril

    caethyril ^_^ Veteran

    Messages:
    1,051
    Likes Received:
    657
    Location:
    UK
    First Language:
    English
    Primarily Uses:
    RMMV
    Yep, as far as I can tell the characters marked "sub-delims" should be fine for use (no default special interpretations):
    Code:
    ! $ & ' ( ) * + , ; =
    The "gen-delims" are for more standardised URI components (protocol, directory, etc) and should not be used out of place:
    Code:
    : / ? # [ ] @
    Typically # marks a bookmark/fragment. I just tested and it does seem to break file access if you put a # anywhere in the project folder name or full path (project shows white screen and does not load). I also tried renaming one of the default battle sprite sheets to #Actor1_1.png and Actor1_1#.png, which both resulted in it loading as usual, so I guess resource URIs get %-coded or something. :kaoswt2:
     
    #5
    Lihinel and ?????? like this.
  6. ??????

    ?????? Diabolical Codemaster Veteran

    Messages:
    6,264
    Likes Received:
    2,310
    Location:
    Your OS
    First Language:
    Binary
    Primarily Uses:
    RMMV
    great info ~ mucho thankios :*
     
    #6
  7. Lihinel

    Lihinel Veteran Veteran

    Messages:
    196
    Likes Received:
    239
    First Language:
    German
    Yeah, quite informative, thanks a lot.
     
    #7
  8. Andar

    Andar Veteran Veteran

    Messages:
    28,153
    Likes Received:
    6,375
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    @Lihinel @??????
    That is exactly the problem - they work on windows, but break as soon as you deploy anywhere else.

    And do you really want to rename hundreds of files with spaces in them, and then change all references to them throughout the entire project, as soon as you deploy somewhere else than windows?

    It's the mixup that can cause problems - which is also the reason why a ? or * should NOT be used in filenames. Those were part of the search parameters ( ? meant any single letter, * meant any number of letters) for searches on filenames in a lot of operating systems, and that also gets you problems on several other deployments.
     
    #8
    caethyril, Lihinel and ?????? like this.

Share This Page