Jump to content

[bug] dropweb triggering region not matching its shape


flameleo11
  • Can't Reproduce

________________________

--- bug desc

________________________

dropweb triggering region not matching its shape

________________________

--- bug test detail &  Screenshot

________________________

 

a dropperweb like this cross form : 

image.png.0c19920770a08506be69c4c2fec80d81.png

image.png.f18303363e4343765057cc04c3caca97.png

with grid

image.png.3f06cc3635ffb5e48822fb7d07015ab2.png

 

    local ox, oy = 436, -252
    for i = 0, 20 do
      for j = 0, 20 do
        local x, y = ox+i, oy+j
        local z = y
        local b= TheWorld.GroundCreep:OnCreep(x, 0, z)
        if (b) then
          local inst = SpawnAt('rocks', Vector3(x, 0, z)) 
          inst.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
        end
      end
    end

 

using this code marked all the trigger locations

of this dropweb with rocks 

image.png.0268213c203709b7aea71d358f7423f1.png

 

this make player totally confusing, when you enter the area without web, you also trigger CreepSpawner

image.png.93668bc6f56bd61a34ee80ca28b15bb4.png

 

you can also see this classic bug, sideway to cross Labyrinth without trigger any drop spider

image.png.a9913b6da1f09b361b547a778e0b72bb.png

 

 

 

---------------------------------------------------------------------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------------------------------------------------------------------

but this bug not happed in forest web

image.png.837170b6b08ea2eec40975d79c336c9a.png

 

marked matching web shape perfect

image.png.d740fa25253c8cc5e96c0a9ea39fb0ce.png

 

consider this test case: The triggering area not matching the shape

 

________________________

--- shortcut

________________________

[1] using crossform region to math cross shape dropweb

or [2] do not make cross form dropweb , always show a rectangle dropweb to matching this result

 

________________________

--- fix expect

________________________

 

[1] base to fix 4 error corner

[2] better to fix sidewalk not testing

image.png

image.png

image.png


Steps to Reproduce

close to the dropweb but not triggering

set role facing 0

stand the rightbottom of dropweb

run this code to test and marked trigger region

    local p = UserToPlayer(userid)
    if not (p) then
      return 
    end
    local x, _, z = p.Transform:GetWorldPosition()
    local ox, oy = x, z
    for i = 0, 20 do
      for j = 0, 20 do
        local x, y = ox+i, oy+j
        local z = y
        local b= TheWorld.GroundCreep:OnCreep(x, 0, z)
        if (b) then
          local inst = SpawnAt('rocks', Vector3(x, 0, z)) 
          inst.AnimState:SetBloomEffectHandle("shaders/anim.ksh")
        end
      end
    end

 




User Feedback


11 hours ago, zarklord_klei said:

Changed Status to Can't Reproduce

Are you seriously

this happens in standard version everytimes

why cant see that?

Share this comment


Link to comment
Share on other sites

image.png.df1a9a175c92aa79fa1b952cf8c09f7f.png
i've never had spiders triggered outside of red cross, too. Are you playing Don't Starve or Don't Starve Together?

Share this comment


Link to comment
Share on other sites

8 hours ago, flameleo11 said:

Are you seriously

this happens in standard version everytimes

why cant see that?

The only way I explain how this occurs, is that you made a change to the base game scripts, because I tested this with all spider creep in and out of caves.

  • Thanks 1

Share this comment


Link to comment
Share on other sites

35 minutes ago, zarklord_klei said:

The only way I explain how this occurs, is that you made a change to the base game scripts, because I tested this with all spider creep in and out of caves.

Yes, you're right.

affter excluded many changes , finally find a line that causing this :

-- origin
inst.GroundCreepEntity:SetRadius(5)
-- changed
inst.GroundCreepEntity:SetRadius(7)

Its my fault that not turn off a mod

I'm sorry for this problem

1 hour ago, Duck986 said:

image.png.df1a9a175c92aa79fa1b952cf8c09f7f.png
i've never had spiders triggered outside of red cross, too. Are you playing Don't Starve or Don't Starve Together?

sorry its a big mistake

causing code is 

dropperweb prefabpostinit been adjective a change like this: 

-- origin
inst.GroundCreepEntity:SetRadius(5)
-- changed
inst.GroundCreepEntity:SetRadius(7)

this problem makes me confusing many time

Very thanks for you guys helping 

Share this comment


Link to comment
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...