In the code below, text2path("/DerivedObject/Use") returns null.
This is a problem for using call()() dynamically.
Furthermore, ispath(/DerivedObject/Use) and ispath(/DerivedObject/proc/Use) don't work either.
Numbered Steps to Reproduce Problem:
1. Derive DerivedObject from BaseObject
2. Make and try to get the path of an overwritten inherited proc using text2path()
Code Snippet (if applicable) to Reproduce Problem:
//Create these.
BaseObject
proc/Use()
world << "Whatever is in here doesn't matter."
DerivedObject
parent_type = /BaseObject
Use()
world << "Whatever is in here doesn't matter either."
//Run this.
world << text2path("/DerivedObject/Use") // Blank/null
world << ispath(/DerivedObject/Use) // 0
world << text2path("/DerivedObject/proc/Use") // Blank/null
world << ispath(/DerivedObject/proc/Use) // Compiler error.
Expected Results:
text2path("/DerivedObject/Use") to work and return the correct path, as it does for text2path("/BaseObject/proc/Use"). Not sure of the behavior of ispath(/DerivedObject/Use).
Actual Results:
We get null and 0 respectively.
The problem occurs:
Every time.
In other games.
In other user accounts.
On other computers.
When does the problem NOT occur?
Never.
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked?
Not tested.
Workarounds:
Don't inherit the proc.