public

Rpg Maker Developers Group

Simple enough for a child, powerful enough for a developer

2 Followers

Need help with arrays in this firebase plugin

BMM Archive · July 15, 2026

Preserved forum archive. This topic stores the original first post and locally mirrored RPG Maker Web attachments when available. It is posted by the BMMPlay archive account, not by the original creator.

Original Source

  • Original title: Need help with arrays in this firebase plugin
  • Original author: Sodium89
  • Original date: June 17, 2020
  • Source thread: https://forums.rpgmakerweb.com/threads/need-help-with-arrays-in-this-firebase-plugin.122978/
  • Source forum path: Game Development Engines > RPG Maker Javascript Plugins > Javascript/Plugin Support

Summary

Hello! I've been using this firebase-oriented plugin but I notice it can't handle strings in arrays. This is something I really need. The database can store strings in arrays so I assume it's an issue with the plugin If I do something like this:

Archived First Post

Hello!
I've been using this firebase-oriented plugin but I notice it can't handle strings in arrays. This is something I really need.

The database can store strings in arrays so I assume it's an issue with the plugin

If I do something like this:
◆Script:$gameVariables.setValue($gameVariables.value(2), [0, $gameVariables.value(1), 0, 0, 0, 0]);
:Script:var fs = require('fs');
:Script:$gameVariables.value($gameVariables.value(2))[0]=fs.readFileSync('file1.txt','utf8');

But in the database it's like this:
View attachment 147957

Plugin:

EDIT: ^^; I made an error with the script call. I was complicating things by setting the value and then updating it. This time I set the value all together. While my initial script call worked in-game, it never really got updated in the database for some reason.
This is a better way:
◆Script:fetch(`file.txt`)
:Script: .then(response =>
:Script: response.text().then(text => {
:Script: $gameVariables.setValue(1, text)
:Script: })
:Script: )
:Script:$gameVariables.setValue($gameVariables.value(2), [$gameVariables.value(1), 4, 0, 0, 0, 0]);

Downloads / Referenced Files

Log in to download

Log in, then follow the RPG Maker Developers Group to see these download links.

Log in to download
Creator Claims / Removal

If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.

#039#rpg-maker-archive#js-support

Replies (0)

No replies yet.

0 replies 1 view

Log in to reply.

User Avatar