Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: Makasu on April 22, 2009, 11:12:21 am

Title: [BEING INVESTIGATED] TONS OF ADDONS 6.86b small help please?
Post by: Makasu on April 22, 2009, 11:12:21 am
PROGRAM: RPG MAKER XP

Issue(s) with: Tons of Addons Different Difficulties issue

PROBLEM: I have another mode set up to be played after the game is completed, It unlocks the mode. The mode is then selected from the title screen We'll call it battle mode. I'm not having an immediate problem setting up getting to the mode or the seperate set of maps. Its just that when an enemy goes to attack I get this error:

image: ShowHide
(http://www.fileden.com/files/2006/6/6/52931/error2.jpg)


which then takes me to this line of coding in TOA pt 2

Line 3475:  self.damage = self.damage * $game_system.enemy_rate / 100


WHAT I AM ASKING: Is there a way around this problem or would it require more scripting knowledge than I'm aware of? I think it might be because it doesn't know which difficulty to turn to or use in this case and if I cut off different difficulties then it works just fine. But then that makes it so that it can't be used in the main portion of my game. And I need that for the actual main part of my game.

So to make it short I'm not sure if there is a way around this or not. I have very very little scripting knowledge and I don't want to hack up TOA without knowing what I'm doing exactly. :P because then that'd just be a disaster in itself. I was hoping that maybe one of you talented scripters on here would be able to assist me in said issue. Or help me to counter it or something?

Spoiler: ShowHide

My Scripts:
-Character Select
-New Game Plus
-UMS
-Scene Credits
-Scene Savefile
-Hear Steps
-Item Limitations
-Sanity Meter
-Sound Emissions
-Scroll Delay
-ToA 1
-ToA 2
-ToA 3
-Stormtronic
-BABS pt 1
-BABS pt 2
-BABS pt 3
-Autofire
-Quick Equip
-Screencolor
-CustomStatGrowing
-CriticalSound
-New Debugger
-MAIN


Many many many thanks in advance for any assitance. :)
~Makasu
Title: Re: TONS OF ADDONS 6.58b small help please?
Post by: Blizzard on April 22, 2009, 11:16:07 am
Update to v6.86b first. :P
Title: Re: TONS OF ADDONS 6.58b small help please?
Post by: Makasu on April 22, 2009, 11:19:58 am
Lol typo I'm using 6.85b!

And still its the same problem. Only the line switched because I'm guessing the code got short. Now its

Line 3544:         self.damage = self.damage * $game_system.enemy_rate / 100
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: tSwitch on April 22, 2009, 11:32:54 am
scroll delay?
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Makasu on April 22, 2009, 11:46:01 am
It delays the scroll of the map by like a little bit. So its smoother? I think thats the word.

Maybe its called smooth scrolling but I have it labeled as Scroll delay.
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Blizzard on April 22, 2009, 02:59:11 pm
Alright... Either you have used it with an old savegame or you haven't configured a difficulty properly (meaning that you haven't defined the EXP_RATE value for that difficulty).
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Makasu on April 22, 2009, 03:18:58 pm
No it still occurs even when I've used a new save still and the defined stats are still at the default of what they were when I installed the latest version of ToA. The only part thats been changed are the names. Everything else is as is.
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Blizzard on April 22, 2009, 03:34:05 pm
Post your configuration. It really seems to me that the value for ENEMY_RATE is missing.
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Makasu on April 22, 2009, 03:45:57 pm
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# START Congfiguration
#
# Use the following template to create difficulties in your game
# ['NAME', EXP_RATE, GOLD_RATE, ACTOR_DAMAGE_RATE, ENEMY_DAMAGE_RATE]
# Note that all the "rates" are in %. Values over 100 will increase, values
# under 100 will decrease the given attribute. Of course you can add/remove
# any difficulties you want, be sure to separate them with commas.
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

DIFFICULTIES = [['Easy Mode', 150, 150, 150, 75],
                ['Normal Mode', 100, 100, 100, 100],
                ['Hard Mode', 75, 75, 75, 150],
                ['Survivor Mode', 50, 50, 50, 200]]

#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
# END Congfiguration
#::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



I hope this is what you meant. Lol

Do you think it might have to do with the fact that the difficulty screen isn't called?
I mean because its a new option thats added once the game is completed like I said. Almost like a new game plus. Only yeah it goes to a character select screen then it goes to the place. You're able to walk around with no problems. But once an enemy tries to attack I get the error. :p
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Blizzard on April 22, 2009, 03:50:08 pm
Yes, it is. But it seems fine to me. :/ I just uploaded v6.88b. I don't think it will fix your problem and in case I am right, a demo would probably be a good idea.
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Makasu on April 22, 2009, 03:52:18 pm
Alrighty! I'll try it with 6.88b then upload a demo if I get nothing. I'll cut all the stuff out so you don't have to wade through a 20+ mb download. :p

DEMO! (http://www.fileden.com/files/2006/6/6/52931/DEMO%20TEST.rar)

NOTES: I think I've included a save file. You're free to delete it if you want and it'll disable the modes. If you choose to delete the files you just need to talk to the dragon in new game under any difficulty and he'll allow you to access the new modes once returned to the title screen.

Once you click on the new modes and select a character or are transported you'll see what error I'm talking about.

I've included a readme file in case  you get a little lost. :D
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Blizzard on April 22, 2009, 05:45:17 pm
Alright. I'll take a look as soon as I can. The next two days will be insane for me so don't get your hopes up until saturday. I'll get back to you as soon as I find the problem.
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Makasu on April 22, 2009, 05:54:23 pm
:D alrighty no big rush. I mean I still have a whole project to work on. Hahaha should I mark this as resolved or just leave it???

Also thank you in advance! Sorry for the inconvienece. ;p
Title: Re: TONS OF ADDONS 6.86b small help please?
Post by: Blizzard on April 22, 2009, 05:54:49 pm
Sure, if you want.

EDIT:

Ok, I've looked into it and the problem is simple. Your New Game Plus script is messing it up. Different Difficulties initializes something in Game_System which the other game modes don't since they don't call the command for a new game in the title screen but a custom command. In each of those commands you need to add this line:

$game_system.init_difficulty(INDEX)


INDEX is the index of the difficulty. As I see your normal game mode is at index 1.

$game_system.init_difficulty(1)


The methods where you need to add those commands are located in your edited version of Scene_Title.

command_horde
command_btlmde