My script was meant for default battle system. I don't know if it would help for other systems.
I am using Tsukihime's Battle Sprites Auto-Position script with Yami's Battle Symphony Engine and it works fine.
Could there be some other script causing a conflict?
I'm not sure what script it is...but I setup my enemies using a notetag that goes "<battler set: index, index number>". So one of mine is, "<battler set: Monster1, 2>
Once I took that away, I could see the enemy, but it was the regular default graphic, not a sideview of the character graphic.
EDIT: So I put Yami's Charset, Battle Symphony, and the Auto Position script in a new project, and it works almost perfectly. The enemies are a bit off, but it's a start. Not sure what could be causing it in my project.
EDIT: I think I figured it out. In my fresh project, along with the aforementioned scripts, I put Yanfly's Core Engine script in and I could no longer see my enemies. So, if anybody can tell me what the problem is, I would greatly appreciate it!
Try placing Yanfly's Core Engine script after Yami's Battle Symphony, Yami's Holder's Add-on scripts, and Tsukihime's Battle Sprite Auto Position scripts.
If you are still having any battler display problems, try placing Yanfly's Core Engine script at the very end of all your custom scripts, just above Main. Be sure to edit the width and height size in Yanfly's Core Engine.
Hope this helps. ^^
There has been something bugging me regarding your image files.
Are you saying that the the holder's sprite is appearing in that exact position in battle, when you place the battler in that exact spot in the troop editor?
If so, I will need to check the script again and see what is going on, as this script really works for me.
Yanfly's core are mostly bugfixes, but there is one part in that script that might interfere - the core resizes the screen even in a default, and that would be a problem if you're using another script to resize your game as well.
I suggest removing that part of yanfly's core if you're using a Fullscreen script, and placing the core without that resize at the top of your custom scripts.
There's a bug in my calculations.
This was what I was doing originally:
adjust_x = Graphics.width - 544) / 2adjust_y = Graphics.height - [email hidden] do |enemy|enemy.screen_x += adjust_xenemy.screen_y += adjust_yendBut this means that if your actual width is say 1024x416, then the x adjust would be equal to 240, and therefore a sprite positioned at (0, 0) would effectively be bumped over to (240, 0), which isn't right.I'm not sure if this contributes to the issue.
I've updated the script to use ratio multipliers, so now if we have a 1024x416 screen, the x adjust would simply be
1024 / 544which gives a ratio of ~1.88And that's used to calculate your actual position using the formula
new_x = adjust_x * old_xeg: x = 0, then new x is 0if x = 272 (middle of screen for 544 width), then new x is 512, which is the middle of the screen for 1024 width.
Wow, you guys are awesome! Everything works like it should! Also, thanks for the explanations and extra script details. Helps me understand what exactly is happening inside the scripts.
This thread may be closed now 😀
Thanks again everybody!