Valid Symbols for (non Windows) deployment

Lihinel

Veteran
Veteran
Joined
Nov 9, 2013
Messages
261
Reaction score
321
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,517
Reaction score
3,221
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

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,115
Reaction score
1,525
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,517
Reaction score
3,221
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

^_^
Veteran
Joined
Feb 21, 2018
Messages
2,115
Reaction score
1,525
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,517
Reaction score
3,221
First Language
Binary
Primarily Uses
RMMZ
great info ~ mucho thankios :*
 

Lihinel

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

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,430
Reaction score
7,711
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.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 2)

Latest Threads

Latest Profile Posts

Our latest feature is an interview with... me?!

People4_2 (Capelet off and on) added!

Just beat the last of us 2 last night and starting jedi: fallen order right now, both use unreal engine & when I say i knew 80% of jedi's buttons right away because they were the same buttons as TLOU2 its ridiculous, even the same narrow hallway crawl and barely-made-it jump they do. Unreal Engine is just big budget RPG Maker the way they make games nearly identical at its core lol.
Can someone recommend some fun story-heavy RPGs to me? Coming up with good gameplay is a nightmare! I was thinking of making some gameplay platforming-based, but that doesn't work well in RPG form*. I also was thinking of removing battles, but that would be too much like OneShot. I don't even know how to make good puzzles!
one bad plugin combo later and one of my followers is moonwalking off the screen on his own... I didn't even more yet on the new map lol.

Forum statistics

Threads
106,034
Messages
1,018,446
Members
137,820
Latest member
georg09byron
Top