[XP]Error with Tons of Add-Ons Script

Started by Kahinuva, December 28, 2011, 01:41:21 pm

Previous topic - Next topic

Kahinuva

I'm getting an error whenever I run my game in RMXP recently. I have not enabled anything in the scripts yet, and while I do have other scripts, the game worked perfectly fine for a while. Then I had to take a break from the game for school, and when I returned, every time I tried to use a save file or start a new game, this error came up:

QuoteScript 'Tons of Add-Ons Part 2' line 3175: NoMethodError occured.

undefined method '> ' for nil:NilClass


Because of this, the game is rendered unplayable. If someone could give me a fix, that would be great.

My current list of scripts are:

*Advanced Message Script
*Tons of Add-Ons Part 1
*Tons of Add-Ons Part 2
*Tons of Add-Ons Part 3
* (*)Bestiary
* (*)Scene_PartySwitcher

Again, it would be great if someone could give me a fix to this so I could continue working on my current project. Thanks!

Blizzard

Line 3175 is this one in the original script:

class Scene_Map


Double-check your scripts, because the error you are getting doesn't make any sense.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.

Kahinuva

December 28, 2011, 02:49:12 pm #2 Last Edit: December 28, 2011, 02:56:38 pm by Kahinuva
In the version I have, line 3175 is:

Quote@minimap = Minimap.new if $game_system.minimap_mode > 0


The version I'm using is 7.41b. I'll check if there's an updated version available, but it still puzzles as to why it would work for a while, and then suddenly not work for no apparent reason.

EDIT: Updated to the new version, 7.50b. I guess it has been a while since I updated, I should have checked more often. However, it now gives me a new error when I just click the "Playtest" button:

QuoteScript 'Tons of Add-Ons Part 1' line 2917: SyntaxError occurred


Line 2917 is listed below:

Quotepassable?(@x, @y, 4) && passable?(@x - 1, @y


Is there a fix to this?

Blizzard

I don't think you copied everything right. That line is missing a ")" at the end. Maybe you copied the script before your browser loaded the whole file. Try right-clicking on the download link and select "Save target as" instead of opening it in the browser.

Also, the previous error was caused by old save games.
Check out Daygames and our games:

King of Booze 2      King of Booze: Never Ever
Drinking Game for Android      Never have I ever for Android
Drinking Game for iOS      Never have I ever for iOS


Quote from: winkioI do not speak to bricks, either as individuals or in wall form.

Quote from: Barney StinsonWhen I get sad, I stop being sad and be awesome instead. True story.