Chaos Project

RPG Maker => RPG Maker Scripts => Script Troubleshooting => Topic started by: theneonheart on January 25, 2012, 04:31:38 am

Title: [RMXP]Zer0's Hunger/Thirst script error - don't know what's causing it
Post by: theneonheart on January 25, 2012, 04:31:38 am
Hi,
I'm using http://forum.chaos-project.com/index.php/topic,6363.0.html (http://forum.chaos-project.com/index.php/topic,6363.0.html)this script in my game, and when I configured it, I got this error:

Script 'Game_Battler 2' line 41: TypeError occurred.
Cannot convert String into Integer

It wasn't until I think it was trying to alert me to the status of my character, because it ran the game and everything and I walked around for a while, so it must have been when the state changed.

Don't know much about scripting but guess I should let you know I changed the named of hunger/thirst by find:replace to need_caffeine and nicotine_craving (I was actually planning on posting a script request for a caffeine/nicotine script once I figured out how to get this running cause I'm not a scripter, but at least wanted to get this working but that's another post)... but I don't think that was it because I just went back and used the original and configured it and got the same error.

I'm running like four/five addons:
Ryex's_Collapsing_CMS
Blizz-abs
CCOA's UMS
foreverZer0's Diary Scene script
and toying with a video player

Title: Re: [RMXP]Zer0's Hunger/Thirst script error - don't know what's causing it
Post by: Holyrapid on January 25, 2012, 04:36:34 am
Have you tried changing the order of the scripts? Are they in that order that you posted, or in different order?
Title: Re: [RMXP]Zer0's Hunger/Thirst script error - don't know what's causing it
Post by: theneonheart on February 27, 2012, 11:42:05 pm
I had removed the script because it wasn't working. I just tried it in all combinations above and below the scripts I'm using which are in the following order (and still got the error message)...

CCOA UMS
ForeverZer0 Diary
Ryex Collapsing Custom Menu Script
Blizz Abs

I'm thinking it might have something to do with how I have blizz-abs currently configured, because I don't really have any of the items/weapons/whatever set up for blizz abs but I did put in some settings, and they might be set up weird, but I'm just guessing.
Title: Re: [RMXP]Zer0's Hunger/Thirst script error - don't know what's causing it
Post by: stripe103 on February 28, 2012, 01:27:43 am
I think that something went wrong when replacing or you made other changes as well because the error means that its trying to convert text into a number. Did you try the script in it's original state?