MZ Going to core script 1.10 from earlier version is messing up troop placements

Hey there,

I have two projects on the go, one on 1.8 and one on 1.9.

I didn't know updating core script was a thing until I saw the note for this recent update.

The thing is when I update to 1.10, all my troop placements are getting really messed up. The 1.8 build game is almost done so I am not sure I want to go to 1.10 and figure out how to redo all the troop placements all over again... unless there is a quick fix to make it use the old setting... the 1.9 is very early, only a few troops, so easier to fix once it's figured out "how to".

As an example, my 1.9 corescript game, the enemies are centered and on the left side. When I update to 1.10, in the database battle event, the placement window shows enemies in the same places as before, but when I do the battle in gameplay, they will be moved way down, behind the status window UI. I basically have to drag enemies way to the top of the window in the database to have them be centered in gameplay.

Is there a workaround, to just have it do the enemy placement as it was pre-1.10 while getting the other 1.10 fixes (whatever they are)?
I'm not sure exactly what changed between versions, but it looks like the function that deals with enemy placement is Game_Troop.prototype.setup. Try copying that function from the 1.9 corescript, pasting it into a new file, and loading it as a function at the bottom of your plugin list. If that works, then it's the correct function; however, fixing it that way may break other plugins that also want to override that function, so it's probably not the ideal fix unless you have very few plugins in the first place. (In particular, it's very likely it would conflict with something in VisuStella.)
I use VisuStella, I wonder if it's a bug with how 1.10 interacts with probably Battle Core (which hasn't been updated since 1.10 came out). I'll probably just refrain from updating the 1.9 project too. I was maybe a little misleading. As far as gameplay goes, the 1.9 project has barely anything done, so like 5 minutes of playtime in it right now. As far as features, I've probably spent 50 hours on it, and don't want to have to find out 1.10 broke other stuff down the line.
That's really weird, as there is absolutely nothing changed in the core scripts that relates to troops.

We're actually pretty light on core changes this update:

rmmz_scenes.js - line added to shop scene's createSellWindow function to recreate contents when the window is resized, and in the onCategoryOk function to reset the sell window's top row to 0 when changing categories

rmmz_windows.js - drawIcon now rounds down the X and Y coordinate to avoid trying to draw at a non-integer position
Well I did some testing and when I get VisuStella BattleCore disabled the enemies are placed fine. So it's something about that interaction. It's worth noting it's fine on 1.9, this error only happens after upgrading to 1.10. Lately it has been me having time for creative outlets again (game dev and making music with DAW plugins) and everything I go to do having stuff I have to troubleshoot for. So I'm a little burnt out now.
So what I did, was go into the VisuStella Battle Core settings. There is an option there for Enemy Battler Settings. Then under Visual (first option in this window), I set Offset Y to -250. That seems to have the enemies get placed roughly about where they are in the preview placement window in the database. It was at 0 before. I am also on latest Battle Core, but that's from before 1.10... maybe the next update will fix this. I will try reporting this as a bug to VisuStella too, it's just it's extra time and I've been doing nothing but bug reports for stuff recently :\. But once it's all figured out I will be able to get back to just figuring out creative stuff.

EDIT: Hmm... the bug doesn't happen in a test project... but in the affected project, does once Battle Core is enabled. I will probably just have to live with the workaround.

Original thread: https://forums.rpgmakerweb.com/threads/going-to-core-script-1-10-from-earlier-version-is-messing-up-troop-placements.182373/