Option to make JSON files friendlier for diffing

Would you like this feature?

  • Yes

    Votes: 6 75.0%
  • No

    Votes: 1 12.5%
  • Yes, but not important

    Votes: 1 12.5%

  • Total voters
    8

cyanic

Veteran
Veteran
Joined
Nov 16, 2015
Messages
106
Reaction score
71
Primarily Uses
Description of the Feature:
This option would, instead of writing all the commands in an event to one line, write them out one per line.

Why is this feature good?
I use version control with my projects, and it seems most software is not very good at handling diffing of long lines. In the least, it makes changes very hard to locate. This is important when I'm doing refactoring, because I want to make sure I didn't change something I shouldn't have.

(Currently I have a program to extract and linearize all the commands in my maps, so at least I could diff with those for now, but I really rather be able to see proper diffs on GitLab.)

Possible issues with this feature?
Larger file size, but that could be optimized away when packaging for distribution.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
I'm not sure I can second that. Text editors tend to freeze when you open a file with 30 thousand lines. For some reason I always find it easier to open files when they are on one line than when they are spreaded out. But I agree it would allow for easier editing.
 

cyanic

Veteran
Veteran
Joined
Nov 16, 2015
Messages
106
Reaction score
71
Primarily Uses
I don't really intend on opening the file in a text editor. Mostly I just want to check the changes in a Git interface, which will collapse the file down enough to show just changes. My text editor has troubles with long lines, and if you ask it to diff a long line it also takes forever.

BTW, looking at the linearized file I have, the entire game with 250 maps gets changed into 48k lines. It'll be much more manageable with single map files.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
BTW, looking at the linearized file I have, the entire game with 250 maps gets changed into 48k lines. It'll be much more manageable with single map files.
You're right. In that case I am upvoting it, since this way it will be much easier to edit as well.
 

Nightblade50

Developer of "Delta Origins"
Veteran
Joined
Nov 10, 2016
Messages
2,133
Reaction score
4,253
First Language
English, French
Primarily Uses
RMVXA
I voted Yes, but not important. It sounds like a good idea, but I don't think I would use it myself.
 

ChampX

Veteran
Veteran
Joined
Aug 14, 2016
Messages
204
Reaction score
136
First Language
English
Primarily Uses
Text editors tend to freeze when you open a file with 30 thousand lines.
Notepad++ and other variants should be fine. At one of my previous jobs, we had generated log files with over a million lines that regular Notepad wouldn't open but Notepad++ would open just fine.

I do support multi line json files
 

Nightblade50

Developer of "Delta Origins"
Veteran
Joined
Nov 10, 2016
Messages
2,133
Reaction score
4,253
First Language
English, French
Primarily Uses
RMVXA
Notepad++ and other variants should be fine. At one of my previous jobs, we had generated log files with over a million lines that regular Notepad wouldn't open but Notepad++ would open just fine.

I do support multi line json files
Cool. I didn't know that.
 

Poryg

Dark Lord of the Castle of Javascreeps
Veteran
Joined
Mar 23, 2017
Messages
4,125
Reaction score
10,639
First Language
Czech
Primarily Uses
RMMV
Me neither. I don't like Notepad++ due to issues I've been having with working with it (for example the fact that I can't hold my folders in a "convenient place" to allow easy and quick file open as well as the bright background and text colouring being kind of too hard for me to read), but if notepad++ doesn't get scared of even huge files, then it might be a viable alternative for these huge files :D
I use Sublime 2 that is great, but freezes until it finishes text colouring. I used to use VSCode, but have ceased to use it, because it's just too NGGGGH that I want to scroll only one page down upon clicking on the sidebar, but it scrolls to the place.
But even PSPad, the most lightweight text editor I've ever seen, has problems with huge text files.
 

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

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,584
Latest member
Faustus2501
Top