Recently while working on a project, I noticed that there was a small delay before a battle started. Both random and set battles do this. The engine determines there is a battle, then a 10 second wait, and finally the battle starts. I was wondering if anyone else has had this issue, and if they would know how to fix it. Its only happened so far in two project (my main ones). Any new projects I start have no issues with battles. I thought it was script related, but after removing the scripts individually and testing, I get the same result.
Small Battle Issue
RGSSx Script SupportI've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.
If it's happening to both random and set encounters, then it MUST be a script issue.
Are you certain you disabled ALL the scripts? Check that you have none above the Materials section, and that none of the unnamed slots actually have a script in them. Use TDS' Script Disabler to make it easier to disable and enable scripts again. You need to disable ALL the scripts, and then re-enable them individually, not just disable them individually.
If it's happening to both random and set encounters, then it MUST be a script issue.
Are you certain you disabled ALL the scripts? Check that you have none above the Materials section, and that none of the unnamed slots actually have a script in them. Use TDS' Script Disabler to make it easier to disable and enable scripts again. You need to disable ALL the scripts, and then re-enable them individually, not just disable them individually.
Thanks, and sorry for the improper post. I don't post very often and wasn't sure where to place the thread. I will definitely give it a shot
No worries - we just move them where they need to be 🙂
Let us know how you get on with the next lot of tests. Hopefully it'll help you identify which script is the culprit.
I should have asked ...
- does this happen on every map, or just some?
- does it happen with every battle/troop, or just some?
- do you have any common events or map events that are set to parallel process?
- do you have any troop events for those troops that are set to run right at the start of battle?
- when the problem happens, does the delay occur when you're still on the map, when you're transitioning to a battle, or after the battle screen actually loads? What do you actually see on the screen during that 10-second or so wait?
Let us know how you get on with the next lot of tests. Hopefully it'll help you identify which script is the culprit.
I should have asked ...
- does this happen on every map, or just some?
- does it happen with every battle/troop, or just some?
- do you have any common events or map events that are set to parallel process?
- do you have any troop events for those troops that are set to run right at the start of battle?
- when the problem happens, does the delay occur when you're still on the map, when you're transitioning to a battle, or after the battle screen actually loads? What do you actually see on the screen during that 10-second or so wait?
It does happen on every map, with every battle/troop. The first fight has a sound effect before the fight begins, but all others are just random encounters. Also the delay occurs while still on the map. No parallel processes either.
I have tried disabling all scripts at one time, to no avail.
I have tried disabling all scripts at one time, to no avail.
If you want to put your starting point just prior to one of the battles (or create a saved game) so I can play and head into a battle almost straight away, you can load it up somewhere and I'll take a look at it for you. Just don't load it somewhere that I'll need to log in or register in order to download - I hate those places.
I will PM you a dropbox link. Just click the link and download.
I played, fought the boss. There was no delay.
You have errors in your other two events though. You don't need to add an Exit Event Processing at the bottom of the event. That does nothing. And if you just use Erase Event, next time you come back into this room, the events will be back again. Get rid of the Erase Event and Exit Event Processing commands on both of them, and instead, add a Control Self Switches A = ON at the end of each. Then add a new event page to each event, and in the conditions on the left, choose Self Switch A is ON.
Is what you sent me EXACTLY what you are playing? Or have you given me a modified or watered down version? If you fight the same boss in the same room (Starting Dungeon), does the delay happen to you?
Are you playing in full screen or a window?
You have errors in your other two events though. You don't need to add an Exit Event Processing at the bottom of the event. That does nothing. And if you just use Erase Event, next time you come back into this room, the events will be back again. Get rid of the Erase Event and Exit Event Processing commands on both of them, and instead, add a Control Self Switches A = ON at the end of each. Then add a new event page to each event, and in the conditions on the left, choose Self Switch A is ON.
Is what you sent me EXACTLY what you are playing? Or have you given me a modified or watered down version? If you fight the same boss in the same room (Starting Dungeon), does the delay happen to you?
Are you playing in full screen or a window?
I sent you exactly what I've been testing. I left it uncompressed, but it is everything I've done for the game so far. I have tried in full screen and windowed, and I have a delay with both. The delay happens with the boss, and all random battles in that dungeon (seeing as its the only place I've added battles so far).
If you want, Ill post a video on youtube, and post the link here so you can see what is happening on my end.
Here's the link: http://youtu.be/QVz9yRm-0e8
It's approx. a 4 sec delay.
If you want, Ill post a video on youtube, and post the link here so you can see what is happening on my end.
Here's the link: http://youtu.be/QVz9yRm-0e8
It's approx. a 4 sec delay.
You could try making a video, but they (and posting to youtube) generally adjust the timing a bit, so the problem may not be as apparent.
Oh - you need to do the same thing with the erase event / exit event processing / self switch and new page on the boss event too.
I can't get past the battles - I'm doing NO damage to enemies at all - even when I give myself a starting level of 99. I suspect your stats are messed up a bit.
Even if I move the starting location to another room, there is still no delay. Battle processing happens immediately.
Is your game generally laggy? Do you have other programs running as well? Specifically, what kind of scanners do you have running constantly on your system?
Oh - you need to do the same thing with the erase event / exit event processing / self switch and new page on the boss event too.
I can't get past the battles - I'm doing NO damage to enemies at all - even when I give myself a starting level of 99. I suspect your stats are messed up a bit.
Even if I move the starting location to another room, there is still no delay. Battle processing happens immediately.
Is your game generally laggy? Do you have other programs running as well? Specifically, what kind of scanners do you have running constantly on your system?
You cant do damage, because he has no stats, lol. There is a charactor generator at the start of the game where you choose your class, which determines starting stats.
The game never lags other than battles, and usually to only other thing running is google chrome (steam in the background of course). It's only happening on this game and one other side project. And I don't know what you mean by scanners.
Also, thanks for the help with the events 🙂 . I have fixed the events in the starting room, and will have to go through and get the rest.
The game never lags other than battles, and usually to only other thing running is google chrome (steam in the background of course). It's only happening on this game and one other side project. And I don't know what you mean by scanners.
Also, thanks for the help with the events 🙂 . I have fixed the events in the starting room, and will have to go through and get the rest.
okay, then - maybe a video. Because I'm just not seeing ANY lag here at all.
When you play and test, do you test from the starting point you gave me, or do you go through the character setup stuff at the beginning? If the latter, can you play to the point just before the first battle (with the character stats all set up correctly), then save your game and send me the save file? Maybe I'm not seeing lag because I'm not going through all the steps for starting a new game ...
Edit: never mind. I went through the whole process, and I'm still not getting any delay.
So let's go with the video.
When you play and test, do you test from the starting point you gave me, or do you go through the character setup stuff at the beginning? If the latter, can you play to the point just before the first battle (with the character stats all set up correctly), then save your game and send me the save file? Maybe I'm not seeing lag because I'm not going through all the steps for starting a new game ...
Edit: never mind. I went through the whole process, and I'm still not getting any delay.
So let's go with the video.
The link is a few posts up if you didn't catch it. In the video it's about 4 seconds. In actuality its between 4-6 seconds.
Okay, when I play, it's NOTHING like that. I touch the monster, and it immediately transitions to battle.
What happens if you remove the battle BGM and change it to None? I notice it's an mp3 and not an ogg, so maybe that could have something to do with it? mp3 files aren't good for any kind of BGM, as they don't loop very well.
What happens if you remove the battle BGM and change it to None? I notice it's an mp3 and not an ogg, so maybe that could have something to do with it? mp3 files aren't good for any kind of BGM, as they don't loop very well.
I'll give it a shot and let you know.
edit: That did it! Thank you so much 🙂 . i just need to find a program that converts now so i can keep that BGM, lol
edit: That did it! Thank you so much 🙂 . i just need to find a program that converts now so i can keep that BGM, lol
Audacity
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
Original thread: https://forums.rpgmakerweb.com/threads/small-battle-issue.19651/