ID:1595632
 
Not a bug
BYOND Version:506
Operating System:Windows 8 64-bit
Web Browser:Chrome 35.0.1916.114
Applies to:DM Language
Status: Not a bug

This is not a bug. It may be an incorrect use of syntax or a limitation in the software. For further discussion on the matter, please consult the BYOND forums.
Descriptive Problem Summary:
Calling view() also includes atoms in the src/usr.

Numbered Steps to Reproduce Problem:
Add objs to the usr contents and run.
for(var/obj/I in view(1, usr))
world << "[I.loc]"

Code Snippet (if applicable) to Reproduce Problem:
mob/verb
Test()
usr.contents = newlist(/obj,/obj,/obj,/obj)
for(var/obj/I in view(1, usr))
world << "[I.loc]"


Expected Results:
Should not include the atoms in the usr when using view().

Actual Results:
Includes all the atoms in user.

Does the problem occur:
Every time? Or how often?
Every time
In other games?
Not sure.
In other user accounts?
Yes
On other computers?
Not sure.
When does the problem NOT occur?
Roll back byond version
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.)

Workarounds:
Add !(atom in usr) to bypass the check.
range, is also affected by this. BTW i posted this in the wrong section can someone move it to Beta bugs thanks.
A Dist of 0 includes Center, the contents of Center (normally usr.contents), its location (normally the turf a mob is standing on), and any other contents of that location. A value of 1 extends the region to the neighboring squares on the map and so on. Both arguments are optional and may be passed in any order.

What makes you think this is a bug?
view returns the contents of the center, per the rererence.

unless this didn't happen before? The ref makes it sound like it should. Threads on/off, regular build or mfc120/vs2013 build?
Stephen001 resolved issue (Not a bug)
Was using the latest build and it never did that in older versions.
What is threading and when was it introduced? What's its purpose?
threading. threads. multi-threading.
pushes some things out into different...threads.

is good.

no idea what version it was added. search it up on the site.

have you tried to this in older versions? like, what specific build did this start?
Ah ok thanks!

Ive been using 498.1163 for a while now and was the closest version I know thats stable for my game besides the trace ref bugs that crashes my game if I didnt reboot a day or 2 later.
I started using 506.1247 a few days ago and is the best version for my game and have had not one crash since making the switch.
Its a pretty solid build for me atm so I was not sure about the changes made recently.
Its not really an issue since I could always bypass it with a check anyways but was only concerned with loop checks taking more time checking for obj that are not in view when there in my contents.