ID:114697
 
BYOND Version:486
Operating System:Windows 7 Home Premium 64-bit
Web Browser:Firefox 4.0.1
Applies to:DM Language
Status: Deferred

This issue may be low priority or very difficult to fix, and has been put on the back burner for the time being.
Descriptive Problem Summary:
When searching for an object by tag, if that tag starts with an object reference returned by \ref, then the referenced object is located, rather than the tagged object.

Numbered Steps to Reproduce Problem:
See the code below.

Code Snippet (if applicable) to Reproduce Problem:
mob
Stat()
statpanel("contents",contents)

New()
var/obj/good_obj = new(src)
good_obj.tag = "good_obj"
good_obj.name = "Good obj"

var/obj/bad_obj = new(src)
bad_obj.tag = "\ref[good_obj] is a good object, unlike me"
bad_obj.name = "bad obj"

//... sometime later ...

var/obj/obj_to_del = locate(bad_obj.tag)
del(obj_to_del)


Expected Results:
Bad_obj is deleted and good_obj is displayed in the player's inventory

Actual Results:
Good_obj is deleted and bad obj remains.

Does the problem occur:
Every time? Or how often?
Every time
In other games?
Not sure how many games use mixed tags and text references, but presumably
In other user accounts?
Not tested
On other computers?
Not tested

When does the problem NOT occur?
When the ref appears in another part of the tag (e.g. "unlike me, \ref[good_obj] is a good object")

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.)
Not tested
Workarounds:
Prefix mixed tags and references with another character.