RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[SOLVED (more like given up)][VX] Battle Engine Melody Part IV Error

0 Members and 1 Guest are viewing this topic.

**
Rep:
Level 56
RMRK Junior
Every time I go into a battle, I immediately get this error:


"Script YEM Battle Engine Melody IV 5926: Type Error Occurred

no implicit conversion from nil to integer"

This is the offending line:

skill = $data_skills[@skills[obj]]

I've attached the whole Script.

I'm using most of Yanfly Engine Melody Currently. Before that, I had most of Yanfly Engine 6 mixed in there, and removed them because of the error. That error did not stop, of course, when I removed it. There were other errors, but I can't seem to recreate them, but they had something to do with calculating hit and evade rate or something, and I assumed YE6 Custom Stats was the culprit, but, even with the less-exciting YEM stats, the error persisted. I'm not sure what I did to get that error to stop and this one to start, as it seemed to change to a new error before I started stirpping the other scripts.

I was also using various KGC and Shanghai scripts, and some others, but I've removed everything but YEM and yet I cannot get the damn thing to work.

I even added a bunch of things (like YEM Skill Overhaul) that I don't even want, just in case it somehow required that I use it. Still, not change in the error.

So, my question is: What's going on and how do I fix it?
« Last Edit: May 02, 2012, 11:05:58 PM by dudeguy119 »

I support:



*
*crack*
Rep:
Level 64
2012 Best Newbie2012 Most Unsung MemberFor frequently finding and reporting spam and spam bots
"no implicit conversion from nil to integer"
The error is that you're basically telling the compiler to turn nothing into a number.
nil = nothing
integer = number

I'm not familiar with yanfly's scripts, but whatever script you removed to create this error, you should probably put back in (that's if this was actually working beforehand).
And if you still get an error for that script as well, it should at least be easier to pinpoint.

I could be wrong though, I'm not much of a scripter. ;8
All of my scripts are totally free to use for commercial use. You don't need to ask me for permission. I'm too lazy to update every single script post I ever made with this addendum. So ignore whatever "rule" I posted there. :)

All scripts can be found at: https://pastebin.com/u/diamondandplatinum3

**
Rep:
Level 56
RMRK Junior
Thank you for replying!

I added EVERYTHING back in. Mostly everything works (even things I had removed because they simply didn't work o.O). There are few things not working here and there, but one issue at a time.

Now with all that in, when I go into battle, I get this error:

Script 'YEM Battle Engine V' line 3974 NoMethodError
occurred.
undefined method '[]' for nil class.

I also get this error when I go into the skills menu (but when I go into KGC Skill CP).

Here's the whole method containing that line

[spoilers]
Code: [Select]
#--------------------------------------------------------------------------
  # new method: apply_skill_cost_changes
  #--------------------------------------------------------------------------
  def apply_skill_cost_changes(skill, cost, type = "MP")
    clear_battle_cache if @cache_skill_costs == nil
    return @cache_skill_costs[skill.id] if @cache_skill_costs[skill.id] != nil
    cost = apply_skill_cost_state_per(skill, cost, type)
    cost = apply_skill_cost_state_set(skill, cost, type)
    @cache_skill_costs[skill.id] = [Integer(cost), 0].max
    return @cache_skill_costs[skill.id]
  end
[/spoilers]

I'm going ahead and posting a link to a copy of my project that has all the scripts I am using. I apologize for the nonsensical state of anything you see in there. I'm in the process of getting the groundwork laid so I can add my custom art.

Please, if someone would be so kind as to take a look at it?

http://www.mediafire.com/?g3kcajfs0qnrp1z

I support:



***
Rep:
Level 65
Working on Monster Leader
Contestant - GIAW 9
The problem starts in line 1278 of YE6 Custom Stats (I think):
Code: [Select]
def clear_battle_cache; @cache_params = {}; end
It's the same method name thats responsable for making @cache_skill_costs a hash did you stick to the specified order?
another problem may be, that it's now "supported" / maintenaced by Yami, maybe try asking or looking here.
« Last Edit: April 30, 2012, 07:29:43 AM by mobychan »




**
Rep:
Level 56
RMRK Junior
Thank you for taking a look for me.

I didn't even know anyone was supporting YEM. I looked around his site. It appears as though he's also ended support for YEM now that he and Yanfly are working on Ace.

Anyway, I have my doubts, but I'll contact him tomorrow to ask him. If not him, then maybe someone here could still have a solution.

My other option would be to find a custom stats script that works without clashing. I'm pretty sure that's a tall order, though. From what I understand, YEM isn't the most compatible system.

EDIT: Okay, so I found Yami's updates to YEM, and I've managed to make some Zealous scripts work with the Melody ones. I've got a number of new ideas about how to make these combined systems my own, and they've so far worked to this point. So, not really solved, but, I've found my alternatives. I'm also hoping to use KGC's break stats limit script. I haven't attempted to use it just yet, but I've had mostly success in using KGC scripts with Yanfly's so far.

I'm marking this one as "SOLVED".
« Last Edit: May 02, 2012, 11:05:11 PM by dudeguy119 »

I support: