professorbeej

Villager
Member
Joined
Feb 27, 2019
Messages
29
Reaction score
10
First Language
English
Primarily Uses
RMMV
Hey, folks. My partner and I are collaborating remotely on our game, and we are using GitHub to do it. It works great for the most part, except when I am trying to merge branches or pull requests.

What happens is that if either of us has edited MapInfos.json or Actors.json or System.json or whatever (which of course we have), git can't parse the conflicts that come up. Even if they are not overlapping.

Because RMMV saves all the files during development as minified JSON, git just sees a single line that has conflicts. What I've been able to do so far is use a JSON beautifier/unminifier (link here in case anyone else needs it) and then manually go through the files in VS Code and decide whether I want to keep the current change or the incoming change.

It's not that bad, but it's a real pain. It would be so much easier if git could parse the actual lines of code like it's designed to do.

So all that to say: has anyone figured out a way to get RMMV to save the data files as unminified JSON by default?
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
you c'ant
use .gitignor on those file.
 

professorbeej

Villager
Member
Joined
Feb 27, 2019
Messages
29
Reaction score
10
First Language
English
Primarily Uses
RMMV
That would basically be .gitignoring everything in the repo except for the image assets, wouldn't it? Then my partner wouldn't be able to get any of the changes I made, and I wouldn't get his, if I understand right, right?
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,634
Reaction score
1,457
First Language
French
Primarily Uses
RMMV
hum ho ok i understand more , forget me , this solution it not for your context !
You can maybe find a wayt to edit git to ignor error , but allow github to update files for your team.
With a .gitignor file , you will not allow to `fech origin` your ignored json files to github.

The only solution i can see, wait if people have more...
Iyt to create a .bat file, and when your ready to share , execute the .bat that will unminified the rmmv json.
You will need study how create a .bat.

Or ask the rmmv team sofware dev to allow this.

And for gitignor , you can tell what folder or file you want ignor.
upload_2019-4-4_16-34-38.png
 

Aloe Guvner

Walrus
Veteran
Joined
Sep 28, 2017
Messages
1,628
Reaction score
1,150
First Language
English
Primarily Uses
RMMV

Latest Threads

Latest Profile Posts

Got a windowskin working nicely to go with Mog's menu plugins.
p8BE5bj.png

tsD4gZS.png

nwpeK84.png
Just getting started on RPG maker and having a blast!
I am once again escalating in the kitchen. I might or might not be 4 types of cookies into baking and not finished...
Today is a great day!
A bust of my character, Lizzabelle, that I put together in GIMP. I combined the RMMZ generated face with my actual illustration of her. This is just me experimenting with busts. I don't really want to use busts in dialogue, but perhaps in the character menu.

2Ixbzbd.png

Forum statistics

Threads
117,037
Messages
1,104,017
Members
152,958
Latest member
Ahbsz
Top