Jump to content

When pasting templates, it causes wrong pickable items to be removed


while
  • Branch: Live Branch Version: Windows Pending

When I making my mod ,I found the bug:

1336893281_QQ20230518122934-original-original.thumb.gif.08a325347c28560027c494566d2470c1.gif

As shown above,when pasting a template,some pickable items outside the selected cell will be destroyed


Steps to Reproduce

1.create some pickable items as shown by sandbox

2.make a template that have a same shape as shown

3.paste the template and you will see some  pickable items will be removed incorrectly




User Feedback


I found how to fix it in source code.It may help developers:

Change TemplateLoader.cs method BuildPhase1 from

image.thumb.png.35e03a27ce9de0a6c9d86d06e578eeae.png

(source code from decompiler) 

to:

image.thumb.png.4715ebc25fa14c4085aeeb383b82bd4c.png

I add two minus signs at line 82.

I used dnspy to make sure this change can fix the bug.

In fact this bug is hard to find.It will turn the cells of removing pickups upside down and side to side.Most of the time players don't notice that.But when I was making my mod and use this function , I found the bug.

I am a Chinese and may have some mistakes in English. Please forgive me.

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