Choice Timer Text Bug
There is a bug in the empty project, scene 1080 and 720p where the function for showChoiceTimer was completely obliterated. Go to Component_GameSceneBehavior and make sure your showChoices look like this. If you are worried, you can make a new Live2D Project and copy paste there directly.
I am at version 1.0.1112 or above but still get an error opening scene-based CG Gallery in-game
In that case, you need to put in a special fix by yourself. Please go to Common Events in Database > Beginner's Guide > CG Gallery > Show Gallery Thumb. Look for the [Script] command in there and exchange it's entire content with this script:
Animation doesn't work properly when you have a lot of frames.
When this happens, go to Component_FrameAnimation and look for line 219 and 236:
Replace it with
― The editor has a bug with counting one too many as frames used to start at 0 before and the editor has not been updated. If the Total time/Number of frames = decimal number, it gets buggy. It highly depends on the rounding AND on the number of frames. Try to make your duration at least divisible by 60.
My Text is missing from the Localization Window
Ensure to refresh the text in your localization window. There is a bug however where it doesn't detect text included inside the command of a Common Event.
There is a bug in the empty project, scene 1080 and 720p where the function for showChoiceTimer was completely obliterated. Go to Component_GameSceneBehavior and make sure your showChoices look like this. If you are worried, you can make a new Live2D Project and copy paste there directly.
CoffeeScript:
###*
* Shows choices to let the user pick a choice.
*
* @param {Object[]} choices - An array of choices
* @param {gs.Callback} callback - A callback function called if a choice has been picked by the user.
* @method showChoices
###
showChoices: (callback) ->
useFreeLayout = @object.choices.where((x) -> x.dstRect?).length > 0
@object.choiceWindow?.dispose()
if useFreeLayout
@object.choiceWindow = ui.UiFactory.createControlFromDescriptor(ui.UiFactory.customTypes["ui.FreeChoiceBox"], @object.layout)
else
@object.choiceWindow = ui.UiFactory.createControlFromDescriptor(ui.UiFactory.customTypes["ui.ChoiceBox"], @object.layout)
@object.choiceWindow.events.on("selectionAccept", callback)
@object.choiceWindow.ui.prepare()
showChoiceTimer: (seconds, minutes) ->
@object.choiceTimer.behavior.minutes = minutes
@object.choiceTimer.behavior.seconds = seconds
@object.choiceTimer.events.on "finish", =>
GameManager.tempFields.choiceTimerVisible = false
choice = @object.choices.first((c) -> c.isDefault) || @object.choices[0]
if choice?
@object.choiceWindow.events.emit("selectionAccept", @object.choiceWindow, choice)
@object.choiceTimer.behavior.start()
GameManager.tempFields.choiceTimerVisible = true
I am at version 1.0.1112 or above but still get an error opening scene-based CG Gallery in-game
In that case, you need to put in a special fix by yourself. Please go to Common Events in Database > Beginner's Guide > CG Gallery > Show Gallery Thumb. Look for the [Script] command in there and exchange it's entire content with this script:
JavaScript:
/*
* Here we access tempNumbers which is an array containing all local number variables for this common event.
* So we store the Picture ID and CG image number in two local variables "id" and "cgNumber" to access them later in a shorter way. We also subtract
* 1 from the gallery-slot-number because the internal counting starts at 0 and not at 1.
*/
var id = GameManager.variableStore.tempNumbers[0];
var cgNumber = GameManager.variableStore.tempNumbers[3] - 1;
/*
* Here we use the Picture ID to get the corresponding picture object and store into "picture" variable so we can modify the picture object later. We also
* use the cgNumber to get the corresponding cg-image-object from database which contains more info about the CG image.
*/
SceneManager.scene.behavior.changePictureDomain("com.degica.vnm.default")
var picture = SceneManager.scene.pictures[id];
var cg = RecordManager.cgGallery.first(function(cgItem){ return cgItem.slot-1 == cgNumber; })
/*
* Here we check if the CG image exists and if its unlocked.
*/
if(cg && GameManager.globalData.cgGallery[cg.index].unlocked)
{
GameManager.variableStore.tempStrings[0] = cg.thumb.folderPath + "/" + cg.thumb.name
}
// Otherwise we make the picture invisible
else
{
GameManager.variableStore.tempStrings[0] = " "
}
Animation doesn't work properly when you have a lot of frames.
When this happens, go to Component_FrameAnimation and look for line 219 and 236:
Code:
@frameDuration = Math.round(@duration / @frameCount)
Code:
@frameDuration = Math.ceil(@duration / @frameCount)
Code:
@frameDuration = @duration / @frameCount
Code:
@frameDuration = @duration / @frameCount
My Text is missing from the Localization Window
Ensure to refresh the text in your localization window. There is a bug however where it doesn't detect text included inside the command of a Common Event.