Posts: 26
Threads: 2
Joined: Apr 2015
06-21-2022, 03:50 PM
(This post was last modified: 06-21-2022, 03:55 PM by kingray100.)
I already mentioned the scripts I'm using initially. It's pretty bare bones.
I'm just using the Battle Report Script, and the Advanced Shop Script. That's all.
EDIT: Also found out that the crash isn't exclusive to the enemy. It seems to happen towards the end of a round of attacking. Not sure if that helps.
Posts: 11,235
Threads: 650
Joined: May 2009
No it doesn't. Again, your config shown below sets absolutely no chance of any attack.
(06-21-2022, 02:11 AM)DerVVulfman Wrote: # Actor Counters
# ==============
# Define the actors perfoming counter attacks: the chance of a counter,
# the skill ID used (or 0 for melee), and optionally the SP cost.
#
# Chance Skill SPCost
#========== ====== ====== ======
ACTOR[2] = [ 0, 0] # Basil delivers melee 0%
# Enemy Counters
# ==============
# Define the enemies perfoming counter attacks: the chance of a counter,
# the skill ID used (or 0 for melee), and optionally the SP cost.
#
# Chance Skill SPCost
#========== ====== ====== ======
ENEMY[1] = [ 0, 7, true] # Ghosts use Fire 0% (never)
and
(06-21-2022, 02:11 AM)DerVVulfman Wrote: # Skip if there is no chance of counter
next if chance == 0
# Skip if counterattack failed
next if chance < rand(100)
# Push active battler into array
target.countertargets.push(@active_battler)
#
end
#
end
Again, the system will not push any attack into your victim battler if you have no chance set.
Chance of a counter attack defaults at 0
If a battler (actor or enemy) is not listed, the chance is set to 0
And in your configuration, all your defined battlers have '0' chance of a counter... so still 0
And if 0 chance of attack... no enemy targets will ever be selected for a counter.
Battle Report scripts only affects the "Phase 5" or -end-of-battle phase of a battle system.
And Shop Scripts, including Phylomortis's classic Advanced Shop Script, has nothing to do with battle systems.
So your error message is not possible unless you have something else or had rewritten the basic engine in some way.
Again.... Create a 'new' project. Nothing in it... Fresh. Then PASTE a copy of this script in place as you would any. And make a simple battle event to fight two ghosts. Use MY config as yours is borked, not allowing any counters to occur.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 26
Threads: 2
Joined: Apr 2015
06-22-2022, 06:57 AM
(This post was last modified: 06-22-2022, 07:31 PM by kingray100.)
I haven't altered the game beyond that...
And I made a new project and added the script. For whatever reason, even if i put the counter at 100%, nothing happens at all.
Edit: So I tried something different. I ran my project once, got the line 216 error. I then deleted the script. I had no problems. I then reapplied the script with it's default settings(without changing the actors or chances of things happening), and now it's a line 195 error. So does this help narrow things down?
Posts: 11,235
Threads: 650
Joined: May 2009
06-22-2022, 07:33 PM
(This post was last modified: 06-22-2022, 07:34 PM by DerVVulfman.)
Okay, you need a demo? You have one. I just updated the main page with an attached demo.
Within, the only script added to a base project is the script just as it is in the spoiler, complete with the default settings of a 100% counter-attack chance by ghosts and 50% counter by Basil. Basil is the ONLY one in the hero's party that will perform a counter-attack, and it is only a 50/50 chance per hit that he decides.
This is the demo, this is the script, and this demo will show that there are counter attacks that will trigger and that the system works.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 26
Threads: 2
Joined: Apr 2015
I know I'm an idiot and everything, but I think the script is self-explanatory. I get all the percentages and stuff. It's just that it's not working for my project for whatever reason. The error changed from 216 to 195. I don't know if that gives any hints as to what the problem might be.
So just to logic things out.
- The script itself seems to be fine, allegedly.
- The add ons I am currently using don't affect anything.
- My project works fine without the script, but crashes with the script during battle.
- Whether the default percentages are used or if I modify them, the game still crashes.
- The script in above Main, but below the other 2 small add on scripts.
What can I do at this point? Is it hopeless?
Posts: 4,607
Threads: 543
Joined: Dec 2009
06-23-2022, 10:04 AM
(This post was last modified: 06-23-2022, 10:07 AM by kyonides.)
Have you ever tried to replace the 4 Scene_Battle scripts that are included among the default scripts with the same scripts that Wulfo included in his demo?
OR try copying the Scripts.rxdata file found in Wulfo's demo and paste it in your project's Data directory.
Make sure you have copies of your addon scripts saved on text files before doing this!
Just in case, and even if it sounds totally illogical and useless, you could place KK above the 2 addons you've included in your game project.
"For God has not destined us for wrath, but for obtaining salvation through our Lord Jesus Christ," 1 Thessalonians 5:9
Maranatha!
The Internet might be either your friend or enemy. It just depends on whether or not she has a bad hair day.
My Original Stories (available in English and Spanish)
List of Compiled Binary Executables I have published...
HiddenChest & Roole
Give me a free copy of your completed game if you include at least 3 of my scripts!
Just some scripts I've already published on the board...
KyoGemBoost XP VX & ACE, RandomEnkounters XP, KSkillShop XP, Kolloseum States XP, KEvents XP, KScenario XP & Gosu, KyoPrizeShop XP Mangostan, Kuests XP, KyoDiscounts XP VX, ACE & MV, KChest XP VX & ACE 2016, KTelePort XP, KSkillMax XP & VX & ACE, Gem Roulette XP VX & VX Ace, KRespawnPoint XP, VX & VX Ace, GiveAway XP VX & ACE, Klearance XP VX & ACE, KUnits XP VX, ACE & Gosu 2017, KLevel XP, KRumors XP & ACE, KMonsterPals XP VX & ACE, KStatsRefill XP VX & ACE, KLotto XP VX & ACE, KItemDesc XP & VX, KPocket XP & VX, OpenChest XP VX & ACE
Posts: 11,235
Threads: 650
Joined: May 2009
Consider this....
The demo which i uploaded and attached... does it work as described? If so...
You have TWO other scripts, no more and no less. Copy the battle report script over to the demo which I uploaded. If it works fine still, then install the Advanced Shop Script into the demo as well and see if that too works fine.
Now... if BOTH scripts do work fine in the demo as defined, then there are no conflicts with the scripts... again as defined. And if these are indeed the only scripts in your package, then the following should be no problem.
Within the demo, there is a file called scripts.rxdata. This can be found within the demo's Data folder. This is the file holding the scripts database.
Copy it and paste it into your own demo's Data folder, essentially replacing the Scripts Database from your own project.
Unless there is something unknown or missing, or something we are not being told, this would solve your issues. We can only go by what we are being told and base it upon legal ownership of a legitimate version of RPGMaker XP.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 26
Threads: 2
Joined: Apr 2015
I can't open the demo. Says failed to load actor data.
Posts: 11,235
Threads: 650
Joined: May 2009
Then you have an extremely difficult problem. The actor.rxdata file within the project is the default and untouched actor.rxdata file from RPGMaker XP's package.
No modifications were ever made to it at all, and the only things touched within the project are the inclusion of the singular script within the Scripts Database and the creation of a battle event on the first map.
For you to not be able to open this give me serious questions about your system.
Up is down, left is right and sideways is straight ahead. - Cord "Circle of Iron", 1978 (written by Bruce Lee and James Coburn... really...)
Above are clickable links
Posts: 26
Threads: 2
Joined: Apr 2015
Lol well I don't know what it would mean. I've had it for a VERY long time. So I guess I'm just screwed then. It's the story of my life lol. Guess I will just have to make do with the little I have.
|