ID:2951427
 
Resolved
Objects with render_source were drawn incorrectly when the render source overflowed its bounds to the left or top.
BYOND Version:515
Operating System:Windows 10 Home
Web Browser:Firefox 132.0
Applies to:Dream Seeker
Status: Resolved (515.1647)

This issue has been resolved.
Descriptive Problem Summary:

Applying a filter to a render_source object that has a render_target with multiple turfs in its vis_contents causes the turfs to no longer appear.

Numbered Steps to Reproduce Problem:
https://drive.google.com/file/d/ 1vvo0m7CN9g9UCHZkRw-SRyNgOcdGJJWZ/view?usp=sharing
1. Click bugged() verb.

Code Snippet (if applicable) to Reproduce Problem:
mob/verb/bugged()
var/obj/relay = new(null)
relay.render_target = "*test"
relay.appearance_flags = KEEP_TOGETHER
relay.screen_loc = "1,1"
relay.vis_contents += block(locate(1,1,2), locate(1,2,2))
usr.client.screen += relay

var/obj/slate = new(usr.loc)
slate.render_source = "*test"
slate.filters += filter(type="blur", size = 4)

mob/verb/notbugged()
var/obj/relay = new(null)
relay.render_target = "*test2"
relay.appearance_flags = KEEP_TOGETHER
relay.screen_loc = "1,1"
relay.vis_contents += block(locate(1,1,2), locate(1,1,2))
usr.client.screen += relay

var/obj/slate = new(usr.loc)
slate.render_source = "*test2"
slate.filters += filter(type="blur", size = 4)

mob/verb/notbugged2()
var/obj/relay = new(usr.loc)
relay.vis_contents += block(locate(1,1,2), locate(1,2,2))
relay.appearance_flags = KEEP_TOGETHER
relay.filters += filter(type="blur", size = 4)

mob/verb/notbugged3()
var/obj/relay = new(null)
relay.render_target = "*test"
relay.appearance_flags = KEEP_TOGETHER
relay.screen_loc = "1,1"
relay.vis_contents += block(locate(1,1,2), locate(1,2,2))
usr.client.screen += relay
relay.filters += filter(type="blur", size = 4)

var/obj/slate = new(usr.loc)
slate.render_source = "*test"


Expected Results:
A 1x2 of red, blurred turfs appears atop of you when using bugged() verb.

Actual Results:
No turfs appear at all.

Does the problem occur:
Every time? Or how often? Only when multiple turfs are in vis_contents. And when you apply the filter to the render_source directly.
In other games? n/a
In other user accounts? yes
On other computers? yes

When does the problem NOT occur?
If you only have one turf in the render_target (notbugged verb)
If you put the render_target's obj on the map instead (notbugged2 verb)
If you directly apply the filter to the render_target.(notbugged3 verb)

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.) no

Workarounds:
see: when does the problem not occur section
Is this new in 515.1646 or was it already appearing in 1645?
Already appearing in 1645, still present in 1646.
Lummox JR resolved issue with message:
Objects with render_source were drawn incorrectly when the render source overflowed its bounds to the left or top.