#No More Dupe (archived. fixed in 14.1.4)

1 messages ยท Page 1 of 1 (latest)

frigid dagger
lethal prism
#

Why not just use a transpiler with a code matcher so you don't break compatibility with other plugins

frigid dagger
wheat ferry
#

Quick question. Why did you make a plugin when you can clearly see a label that's fixed in the next release?

hearty breach
wheat ferry
#

Just for now until the release?

wheat ferry
hearty breach
#

Exactly haha

wheat ferry
hearty breach
#

The next release could be a year from now for all we know

#

If there's a problem like this right now then we need a fix

wheat ferry
#

So it's just for the wait time

frigid dagger
wheat ferry
#

Alright I get it

#

Just curious

hearty breach
#

First, it finds the ResultingPickups field load for the start of the foreach loop
It then marches to the second local store (which in foreach loops will give you the actual element used in the foreach), and stores that index
It then finds the UnityEngine null check in the for loop and uses that to find the branch call that goes to the end of the code in the foreach loop, and stores that index
I then do a similar process with GetSearchCompletor to get and store the index of the end of the code inside of the if(...) when the ... evaluates to true
I then march through the code inside of that same block to find any calls to the end of the loop, and save those indexes to later insert new instructions
The new instructions just load the resultingPickup and call the DestroyPickup which handles it

#

Considering this is only going to be used for this update, I'm pretty sure went a little over-board in how I approached this, but it's good practice for me

#

I tested this code and it appeared to do its intended job

frigid dagger
hearty breach
wicked merlin
hearty breach
frigid dagger
#

1.0.1

โš ๏ธ Fixed game bug with phantom projectiles

Previously (i.e. without this plugin), if you held a grenade in your hand without the pin while SCP-914 was active, a phantom projectile would appear.

https://github.com/CosmosZvezdo4kin/NoMoreDupe/releases/tag/1.0.1

GitHub

Fixed bug with phantom projectiles.
Previously (i.e. without this plugin), if you held a grenade in your hand without the pin while SCP-914 was active, a phantom projectile would appear.

frigid dagger
#

No More Dupe (fixes SCP-914 dupe and phantom projectiles)

stark wharf
frigid dagger
#

If you need it as a separate plugin for Exiled, I can quickly do it myself

#

And if you need to add the code of this plugin to the Exiled code, then I don't mind

hearty breach
frigid dagger
hearty breach
frigid dagger
# hearty breach Fire I can check the original code but if you know off-hand, what's causing the ...

If you call Drop on a grenade with the pin pulled, this bug will occur, so I just added this check at the beginning of the code

https://github.com/CosmosZvezdo4kin/NoMoreDupe/blob/master/Patches/Scp914ItemProcessor.cs#L16

I also added a check here for the presence of a spawned pickup, so as not to send NetworkMessage again.

https://github.com/CosmosZvezdo4kin/NoMoreDupe/blob/master/Patches/Scp914ItemProcessor.cs#L57

GitHub

LabAPI plugin that fixes SCP-914 dupe bug. Contribute to CosmosZvezdo4kin/NoMoreDupe development by creating an account on GitHub.

hearty breach
hearty breach
# frigid dagger yeah

Fire I can do that
It'll be a few days though at a minimum cause I'm still on vacation

frigid dagger
#

๐Ÿ‘

stark wharf
#

i will make it compatible with your fix so nobody will be annoyed

frigid dagger
#

๐Ÿ‘

stark wharf
#

it's better in the compatibility way

frigid dagger
frigid dagger
#

The plugin is now archived

In the new version of the game 14.1.4 these 2 bugs were fixed.