Script Erroring

Calwa

Villager
Member
Joined
Mar 12, 2016
Messages
24
Reaction score
1
First Language
English
Primarily Uses
So I have the script Hover Alerts by modern algebra, and I am getting an error after the item pickup alert has come up, as shown:





I managed to stop it from erroring by changing like 265 from:


@hover_alert = @hover_alert_queue.empty? ? nil : @hover_alert_queue.shift


to


@hover_alert = (@hover_alert_queue.nil? || @hover_alert_queue.empty?) ? nil : @hover_alert_queue.shift


but this removes the alert, and I would like the alert to show.


The code I have is from the demo he provided, in which it worked, and everything else it is intended to do works.


Here's the full code:


http://pastebin.com/9H11VMs0
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Did you start a new game after adding the script, or did you resume a game you'd previously saved?  If the latter, start a new game and see if the issue continues.
 

Calwa

Villager
Member
Joined
Mar 12, 2016
Messages
24
Reaction score
1
First Language
English
Primarily Uses
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Did you start a new game after adding the script, or did you resume a game you'd previously saved?  If the latter, start a new game and see if the issue continues.





 

Sorry!


Yeah, when I start a new game I don't get the error but the pop-up doesn't show either.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
remove your modification and set the script back to the way it was.  Then start a new game and see if it works.


Please provide a link to the original script so we can see the author's comments about it and any questions other people may have had.
 

Calwa

Villager
Member
Joined
Mar 12, 2016
Messages
24
Reaction score
1
First Language
English
Primarily Uses
remove your modification and set the script back to the way it was.  Then start a new game and see if it works.


Please provide a link to the original script so we can see the author's comments about it and any questions other people may have had.





 


I did, the original script is here: http://rmrk.net/index.php?topic=46911.0
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,111
Reaction score
13,715
First Language
English
Primarily Uses
RMMV
Looking at the code, I can't believe you started a new game after adding the script.  When you start a new game, that variable is created.  The only way the variable would not be there is if you had loaded a game that was initially started prior to adding the script.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,051
Messages
1,018,549
Members
137,837
Latest member
Dabi
Top