ID:2893241
 
Resolved
Procs defined under world didn't operate correctly due to a broken lookup.
BYOND Version:515.1617
Operating System:Windows 11 Home
Web Browser:Chrome 117.0.0.0
Applies to:Dream Daemon
Status: Resolved (515.1618)

This issue has been resolved.
Descriptive Problem Summary:
Defined world procs are overwritten if you define a new world proc. Does not appear to affect inbuilt procs, just new defined ones
Numbered Steps to Reproduce Problem:
Use the code snippet below/Define a world proc then define a new proc on world and see the previous proc get overwritten

Code Snippet (if applicable) to Reproduce Problem:
world
view = 5
proc
workgud()
CRASH("A")


world/New()
work_bad()
workgud()

world
proc
work_bad()
CRASH("B")


Expected Results:
Error "A" and Error "B" are thrown

Actual Results:
Error "B" is thrown, workgud is not recognized as a world proc; runtime error: undefined proc or verb /workgud().


Does the problem occur: yes
Every time? Or how often? yes
In other games? yes
In other user accounts? yes
On other computers? yes

When does the problem NOT occur?
Any time on byond version 515.1616 or lower

Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Any time on byond version 515.1616 or lower


Workarounds: None
Lummox JR resolved issue with message:
Procs defined under world didn't operate correctly due to a broken lookup.