Jump to content

Photo

Weird Error


  • Please log in to reply
4 replies to this topic

#1 grayswandir

grayswandir

    semi-genius

  • Members

Posted 08 June 2013 - 10:25 AM

I made an item that grabs an FFC to run a specific script. As far as I can tell, that script seems to dislike being run on FFC #6, and will fail silently. It won't even run the Trace statement that's the first thing in the script. A very similar script runs fine, and changing the script number or name of the ffc script didn't change this behavior.

 

Any idea what could be wrong?



#2 aaa2

aaa2

    Wizard

  • Banned

Posted 08 June 2013 - 10:35 AM

That is very unspecific actually to debug something like this most details of screen setups etc are needed. Also is there any screen carryovers etc etc.



#3 grayswandir

grayswandir

    semi-genius

  • Members

Posted 08 June 2013 - 11:31 AM

Here's a quest that I tried to slim down as much as possible with the error.

 

You can't use the sword on the screen labeled 6.



#4 Saffith

Saffith

    IPv7 user

  • Members

Posted 08 June 2013 - 12:10 PM

Looks like you've found a bug.
An FFC isn't allowed to change its own script, since it would be pretty hard to get that to work correctly. Turns out the check for that doesn't distinguish between FFCs and items. The item number is 5, and the internal FFC number is 5, so it doesn't allow the change.

I think that'll be easy to fix for 2.50.1. For now, you'll have to work around it by using higher-numbered items.



#5 grayswandir

grayswandir

    semi-genius

  • Members

Posted 08 June 2013 - 05:15 PM

I should've known it was because I was trying to use a script with the sword.

 

Thanks for figuring that out. Luckily the work-around is quite easy.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users