Game always crashes in combat

● ARCHIVED · READ-ONLY
Started by Milennin 20 posts View original ↗
  1. I always get this screen in my game when the enemy attacks, even when having all plugins disabled. Any fix for this?
    Y9176oL.png

    edit: Added F8 console error:

    Code:
    TypeError: Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is non-finite.at TypeError (native)at Bitmap.gradientFillRect (file:///D:/RTP/js/rpg_core.js:781:24)at Window_BattleStatus.Window_Base.drawGauge (file:///D:/RTP/js/rpg_windows.js:469:19)at Window_BattleStatus.Window_Base.drawActorHp (file:///D:/RTP/js/rpg_windows.js:555:10)at Window_BattleStatus.drawGaugeAreaWithoutTp (file:///D:/RTP/js/rpg_windows.js:5524:10)at Window_BattleStatus.drawGaugeArea (file:///D:/RTP/js/rpg_windows.js:5513:14)at Window_BattleStatus.drawItem (file:///D:/RTP/js/rpg_windows.js:5484:10)at Window_BattleStatus.Window_Selectable.drawAllItems (file:///D:/RTP/js/rpg_windows.js:1250:18)at Window_BattleStatus.refresh (file:///D:/RTP/js/rpg_windows.js:5478:10)at Function.BattleManager.refreshStatus (file:///D:/RTP/js/rpg_managers.js:2046:24)
  2. Bump.
  3. Are you using a Plugin that changes something with the Combat system?
    Please make a screenshot of your current plugins.
  4. Like I said, it happens with all plugins disabled.
  5. Oh, sry i overread that part... Hmm... Does this happen in a new project as well?
  6. Nope, I have another project in which it does not happen.
  7. check for common events or any event in the map that are autorun.

    also, when starting the game, press F8 to show the console. get into battle, crash, then check the console for errors and paste the full error (callstack) here.
  8. On a map with no events, other than starting the battle and no events running during battle, still getting the error.

    Is this what I needed to post from the F8 console?

    edit: Added the error message with all plugins disabled.

    Code:
    TypeError: Failed to execute 'createLinearGradient' on 'CanvasRenderingContext2D': float parameter 3 is non-finite.    at TypeError (native)    at Bitmap.gradientFillRect (file:///D:/RTP/js/rpg_core.js:781:24)    at Window_BattleStatus.Window_Base.drawGauge (file:///D:/RTP/js/rpg_windows.js:469:19)    at Window_BattleStatus.Window_Base.drawActorHp (file:///D:/RTP/js/rpg_windows.js:555:10)    at Window_BattleStatus.drawGaugeAreaWithoutTp (file:///D:/RTP/js/rpg_windows.js:5524:10)    at Window_BattleStatus.drawGaugeArea (file:///D:/RTP/js/rpg_windows.js:5513:14)    at Window_BattleStatus.drawItem (file:///D:/RTP/js/rpg_windows.js:5484:10)    at Window_BattleStatus.Window_Selectable.drawAllItems (file:///D:/RTP/js/rpg_windows.js:1250:18)    at Window_BattleStatus.refresh (file:///D:/RTP/js/rpg_windows.js:5478:10)    at Function.BattleManager.refreshStatus (file:///D:/RTP/js/rpg_managers.js:2046:24)
  9. Hmm... Maybe you could try and go into your Projects Folder and backup your "Js" folder. Then go to the folder of a new project

    and copy -> overwrite the ones from your project... At least you could give it a try.
  10. Just tried that, still giving the same error. :(
  11. Now that's strange... I'm running out of ideas. Which Java version do you have? Latest should be

    Version 8 Update 65...Really strange that it works in a fresh project...
  12. Yeah, I have the latest version of Java.

    Not sure if it's possible, but would I be able to transfer my game over to a new project without losing my maps and database?
  13. You could try that. The maps and settings are stored in the "Data" folder.
  14. Hm, that still causes the crash to happen... so I guess it's somewhere in those data files?
  15. I would say so! Okay another try... Try copying all the files except maps from a new project in yours... (backup before you do this, just in case).
  16. Yup, it's not in the maps. Still crashes with everything copied but the maps. Then another project with only the maps transferred, and it doesn't crash. So I suppose I now add data files 1 by 1 until it crashes?
  17. Tedious but i think this is the way to go... Before you do that i only have two more things:
    - Does it crash if you "battletest" in the Database?

    - Try a new map in your current project and just add enemies.
  18. From the error given, I believe the issue is in your damage formula.

    Care to show us how your skill damage Formulas are set up?
  19. Yeah, I just tested it and it's the Skills file that causes the crash to happen.

    This is what I have for Attack, which is causing the crash when the enemy attacks: a.atk*0.5-b.def*0.25; a.removeState(62)

    (removing the last part fixes it - just tried it)
  20. Milennin said:
    Yeah, I just tested it and it's the Skills file that causes the crash to happen.

    This is what I have for Attack, which is causing the crash when the enemy attacks: a.atk*0.5-b.def*0.25; a.removeState(62)

    (removing the last part fixes it - just tried it)
    The last part of your formula should always be the part that results in a number. So you should reverse it, like so:

    a.removeState(62); a.atk*0.5-b.def*0.25This should work.