Lihinel

Veteran
Veteran
Joined
Nov 9, 2013
Messages
271
Reaction score
339
First Language
German
Primarily Uses
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?
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,548
Reaction score
3,305
First Language
Binary
Primarily Uses
RMMZ
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. :)
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,764
Reaction score
2,112
First Language
EN
Primarily Uses
RMMZ
! 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
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,548
Reaction score
3,305
First Language
Binary
Primarily Uses
RMMZ
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.
 

caethyril

^_^
Global Mod
Joined
Feb 21, 2018
Messages
2,764
Reaction score
2,112
First Language
EN
Primarily Uses
RMMZ
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:
 

??????

Diabolical Codemaster
Veteran
Joined
May 11, 2012
Messages
6,548
Reaction score
3,305
First Language
Binary
Primarily Uses
RMMZ
great info ~ mucho thankios :*
 

Lihinel

Veteran
Veteran
Joined
Nov 9, 2013
Messages
271
Reaction score
339
First Language
German
Primarily Uses
Yeah, quite informative, thanks a lot.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
33,713
Reaction score
8,497
First Language
German
Primarily Uses
RMMV
@Lihinel @??????
(e.g. spaces), at least on Windows.
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.
 

Latest Threads

Latest Posts

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,662
Members
149,917
Latest member
statdev
Top