MZ RPG Maker MV Tools Database Converter: Cannot read property 'split' of undefined

I've been working on my Actor information in Google Sheets, and have been looking for a way to import that data into RPG Maker MZ. I came across the RPG Maker MV Tools - Database ConVerter MV on Steam and after reading the comments, found that it might be compatible with MZ as well.

I was able to export the data out of RPG Maker MZ using the tool, uploaded it to Google Sheets, then imported it back in. The Database values change in the editor, but when I go to play the game after making the changes, I receive the console error "Cannot read property 'split' of undefined".

I'm wondering if this has to do with it not actually being compatible with MZ. Though I did try this on an MV project and got a different error as well. Otherwise, it's possible I'm missing a step.

Here are the steps I've done, for reference:
  1. Set the Project Folder, Export Folder, and Backup Folder specifically, then check Actors for the Database and set Export File Format to xlsx.
    index.php
  2. On the Convert tab, click Export.
  3. Upload the Database.xlsx to Google Drive.
  4. Make a change (such as a character's name in the Name column).
  5. Save the file as a .xlsx to the "Export Folder" location, in place of the Database.xlsx file (File > Download > Microsoft Excel).
  6. In the RPG Maker MV Tools - Database ConVerter MV software, on the Convert tab, click Import.
  7. Open the MZ project and check the Database (to view the change has been made successfully).
  8. Click play and view the above error.
And then here are my files:
Can someone point me in the right direction on what I might be doing incorrectly?
The key to that error is "of undefined", which means the engine was given a reference to an object that does not exist.

My first guess is that the conversion between excel and google added new data objects from empty lines that caused that reference, because as far as I know the program is fully compatible as it only converts the json files to xlsx files.
Which means you can't directly use it to convert MV to MZ or back (because there are differences in the databases between MV andf MZ), but staying within either should not cause problems.
When asking about errors in the game, press F8 and go to the Console tab. Post a screenshot of the full error trace so we can see what actual code is throwing the error.

I'm not super familiar with it, but it's possible that @Andar is onto something with Google Sheets treating the Excel format differently than actual Excel does.

Make a new project. Use the tool to export the Actors database, don't touch or open it in anything, then import it back in. Does the project run without an error?

If yes, then it could be a file format problem from using Google Sheets.

You can also check in the Actors tab of your database what the maximum number of entries is vs. how many are filled out.
Thank you both for the suggestions!

Here's the full screenshot of the console error:

DevToolsError.png


When I tried a fresh project and importing it in, I did still have the error as well. And then when I tried to make a very minor change (i.e. just the character's name), it had the issue so unfortunately the number of Actors also doesn't seem to be causing the issue.

I poked around a bit more and discovered that if I run the converter on one project ( A ), it imports the data into the Actors Database, but throws that error. But then if I open another project ( B ), I can manually Ctrl+C the Actors from project A and Ctrl+V the Actors into project B and it works just fine. So I think what you both mentioned about it being some weird formatting that Google Sheets is doing might be correct.

It's a little more time consuming to manually copy everything over between projects, but it does at least work as a temporary solution for now if it ends up being just an issue with Google Sheets.
I poked around a bit more and discovered that if I run the converter on one project ( A ), it imports the data into the Actors Database, but throws that error.
That...doesn't sound like it has anything to do with Google Sheets.

If what you're saying here is what I described in my previous post, then the file was never opened by Google Sheets, so how could that software have anything to do with it?
That...doesn't sound like it has anything to do with Google Sheets.

If what you're saying here is what I described in my previous post, then the file was never opened by Google Sheets, so how could that software have anything to do with it?

Sorry I might've misunderstood. When I mentioned I tried a fresh project, I meant a new RPG Maker project and used the converter to export/import the data after it was changed in Google Sheets. And that still had the issue (when I just changed 1 value like the name).

When I export/import the spreadsheet without making any changes in Google Sheets (i.e. from one project to another), then it works/doesn't have that issue at all and imports as intended.
When I export/import the spreadsheet without making any changes in Google Sheets (i.e. from one project to another), then it works/doesn't have that issue at all and imports as intended.
Ah, perfect.

Have you tried a different Excel alternative, then? Isn't OpenOffice still around?
Have you tried a different Excel alternative, then? Isn't OpenOffice still around?

When I export the database as a .ods and then open it and import it into another project, that seems to work, but whenever I make a small change in the .ods (i.e. a character's name) in OpenOffice, it has the same error.

I also tried using my data from my existing Google Sheets in OpenOffice but unfortunately keep running into the same issue. I tried to copy data from the Google Sheet (whether that's Ctrl+Shift+V to remove formatting, exporting a .ods from Google Sheets, etc.) for this.

So it seems like any software (maybe outside of Excel since I don't have that unfortunately) causes this to happen if it's modified at all.

I don't know if a certain file type might be better, but I've tried xlsx for Google Sheets (as OpenOffice can't convert to that), csv for both, and ods for both.

I also realized it might be worth noting that when I import the modified data (with the split error), my player start position on my map disappears. When I try to add a new one, it's grayed out and won't allow me to add a new one (even though it's set in the System 1 tab of the Database).
PlayerStartNotAvailable.png
Huh, I've no clue. Is there any developer info that came with the software you can try to contact?
Yeah, it's very weird and I'm not really sure why it's happening. I appreciate your help with trying to figure it out though!

It's on Steam published officially by Gotcha Gotcha Games/Kadokawa so I don't know how likely it'll be that they're able to help out with it directly, but might be worth a try at least.
you should test going through csv files - those don't have the overhead of excel files, and should be able to import everywhere and export the same way - without hidden microsoft features.
disadvantage of that way is that you'll have to be a bit more careful on which settings to use for csv files, and no automatic naming of columns etc.
you should test going through csv files - those don't have the overhead of excel files, and should be able to import everywhere and export the same way - without hidden microsoft features.
I tested this and unfortunately run into the same error (when importing the CSV to Google Drive and downloading it back as a CSV). And then when I tried opening the CSV in OpenOffice, making an edit, and importing back in, it erased the entire Actor Database but didn't remove my player start/have the split error.

So both unfortunately still not working in their own ways. Thanks for the suggestion though!

Original thread: https://forums.rpgmakerweb.com/threads/rpg-maker-mv-tools-database-converter-cannot-read-property-split-of-undefined.164249/