Jump to content

Applies to Virtual Quarries

No Response 1.0.7

Fusion 3.64
Fusion 3.64

Posted

I'm not sure if this is a fix on your end or theirs. Or it's just going to be a thing.
But I figured I would reach out to you first and see if you could block it.

imthenewguy

Posted

On 6/16/2022 at 10:57 PM, thepiercedweirdo said:

I'm not sure if this is a fix on your end or theirs. Or it's just going to be a thing.
But I figured I would reach out to you first and see if you could block it.

I will need a hook from the Virtual Quarries plugin to trigger once the container is opened so I can remove the UI.

An example of this being done with Global Storage is here:

void OnGlobalStorageOpened(BasePlayer player, StorageContainer container)
{
	CuiHelper.DestroyUi(player, "InstancedStoragePanel");
}

 

This is the code from Global storage.

timer.Once(0.1f, () =>
{
	if (storage != null) storage.PlayerOpenLoot(player, "", false);
	Interface.CallHook("OnGlobalStorageOpened", player, storage);
});

 

imthenewguy

Posted

Changed Status from Pending to No Response

Fusion 3.64

Posted

Sorry about that. I was just waiting on the dev to get back/add support. 
If I am understanding things right they said this should work

It is accessible by OnLootEntity hook.
[6:31 PM]
So if you want to work that out it can be made by if (container.transform.position < -400) return;
[6:32 PM]
But i will also add some hooks in next version.

They just released an update an hour ago with API support and the option to change container prefabs in case of plugin conflicts.
So that's probably the easiest option.

imthenewguy

Posted (edited)

1 hour ago, thepiercedweirdo said:

Sorry about that. I was just waiting on the dev to get back/add support. 
If I am understanding things right they said this should work

It is accessible by OnLootEntity hook.
[6:31 PM]
So if you want to work that out it can be made by if (container.transform.position < -400) return;
[6:32 PM]
But i will also add some hooks in next version.

They just released an update an hour ago with API support and the option to change container prefabs in case of plugin conflicts.
So that's probably the easiest option.

container.transform.position < -400

Not sure what that is. Does he mean Vector3.Distance, or the y value is 400 underground?

My containers also spawn under ground as well, but they are at around 800-1000.

The API released today doesn't help.

Edited by imthenewguy
Fusion 3.64

Posted

I honestly have no idea what they meant by that lol.
When it comes to code, my knowledge = null.
I can change the language in a plugin and alter commands. And sometime prefabs without breaking it.
But that's about it.

They did add the ability to change the container prefab. So I can just play with that until I find one that doesn't conflict.

Does your plugin cover the majority of containers or just a select few?

imthenewguy

Posted

5 hours ago, thepiercedweirdo said:

I honestly have no idea what they meant by that lol.
When it comes to code, my knowledge = null.
I can change the language in a plugin and alter commands. And sometime prefabs without breaking it.
But that's about it.

They did add the ability to change the container prefab. So I can just play with that until I find one that doesn't conflict.

Does your plugin cover the majority of containers or just a select few?

You can change the supporter containers in the config from memory. That would be the best way to go.

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

102.1k

Files Sold

Total number of files sold.

2m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.