The backgrounds are supposed to preload, but...

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
So, I'm passing a background image name as parameter for a common event in order to use it from there. I have made use of the "commenting" trick to make it preload anyway, but it still doesn't work, so I suspect there's something wrong with the command interpreter script (like, some "stringValueOf()" missing or something). Is that the case?

Also, if someone could post the bg version of that sperimental workaround to preload pictures on the go I'd be so grateful. I mean, I'm not really sure trying to figure it out by myself would be a good idea:kaoswt:
 

Kentou

Admin
Admin
Joined
Jan 20, 2014
Messages
202
Reaction score
48
......so I suspect there's something wrong with the command interpreter script (like, some "stringValueOf()" missing or something). Is that the case?
Yes, that is exactly the case. I will try to fix that with an update. If you need a workaround for that, just open the Component_CommandInterpreter script and go to the commandChangeBackground method. If you take a look there, you will find this line:

Code:
scene.behavior.changeBackground(@params.graphic, no, animation, easing, duration, 0, 0, layer, loopH, loopV)
Change it to this:

Code:
scene.behavior.changeBackground({ name: @interpreter.stringValueOf(@params.graphic?.name) }, no, animation, easing, duration, 0, 0, layer, loopH, loopV)
Then try again. Let me know if that helps you out.
 

FoxySeta

Cleric, script kiddie and fudanshi
Veteran
Joined
May 6, 2017
Messages
270
Reaction score
110
First Language
Italian
Primarily Uses
RMMV
TY I'll check it out asap. Also, you suggested editing the original script since the update this is going to be fixed in will be the next beta patch, right (just making sure so it doesn't get overwritten)?

Also, if someone could post the bg version of that sperimental workaround to preload pictures on the go I'd be so grateful. I mean, I'm not really sure trying to figure it out by myself would be a good idea:kaoswt:
 

Kentou

Admin
Admin
Joined
Jan 20, 2014
Messages
202
Reaction score
48
Also, you suggested editing the original script since the update this is going to be fixed in will be the next beta patch, right (just making sure so it doesn't get overwritten)?
Yeah, if that solution is working fine I will add it to the next update I think :D
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Just finished planning out the skeleton of the main quest line of my new game. I'm so excited for it!
Integrating Jason Perry's japan tile set while listening to Murray Atkinson's Heaven and Earth background music.
I forgot I had an account on rpgmakercentral lol
"What do you think the best place to visit on this cold days?" "Hell..."
Been so busy lately that I wonder if I should slowly start preparing the advent calendar resources so I have enough in december.

Forum statistics

Threads
94,538
Messages
921,732
Members
124,403
Latest member
yeriano
Top