SmartlyDressedGames / Unturned-3.x-Community

Community portion of the Unturned-3.x repo. If you have access to the source code you can find it here:
https://github.com/SmartlyDressedGames/Unturned-3.x/
84 stars 18 forks source link

Some Questions #4317

Closed Blackwolf0726 closed 5 months ago

Blackwolf0726 commented 5 months ago
  1. When working in Unity, is it possible to only use the Mod Hook that comes standard with Unturned?
  2. The monobehaviour script added by an individual does not work. Can you tell me how to solve this? And I don't know much about this, but the extension in the link below worked in the past, but doesn't seem to work now. https://github.com/olie304/UnturnedScripts
  3. I uploaded a modpack by adding AssetCustomData, and as an experiment, I uploaded another modpack with the same content (with a different workshop ID), and the other modpack worked. (Not unloaded.)
  4. If the master bundle is changed, can the contents be reloaded without restarting the game?
GazziFX commented 5 months ago

Only existed scripts can be loaded, because it can't be bundled into mod

Blackwolf0726 commented 5 months ago

As an answer to question 1, can I understand that only basic Mod Hooks can be used, and monobehaviour scripts cannot be used?

AssetCustomData seems to be a feature provided by default in Unturned, but it does not work properly.

GazziFX commented 5 months ago

Not only ModHooks can be used, but every existing script in the game

DrDallas1 commented 5 months ago

Mono behavior scripts can be used. What script are you trying to use?

MoltonMontro commented 5 months ago

AssetCustomData seems to be a feature provided by default in Unturned, but it does not work properly.

If you're talking about AssetBundleCustomData, this is used to make it more difficult for people to re-upload your mod.

SDGNelson commented 5 months ago

Thanks guys for answering their questions. Re the 4th: pressing the reload all assets key (in controls menu) will reload everything. Unfortunately, there isn't a way to directly replace all of the content with the reloaded master bundle without reloading everything.

Also note: the Issues tracker is intended for problems/bugs in the game. For modding questions the intended place would be discussions, the SDG forum, the official Discord, etc.

Blackwolf0726 commented 5 months ago

Mono behavior scripts can be used. What script are you trying to use?

I wanted to implement a unique item.

Blackwolf0726 commented 5 months ago

Thanks guys for answering their questions. Re the 4th: pressing the reload all assets key (in controls menu) will reload everything. Unfortunately, there isn't a way to directly replace all of the content with the reloaded master bundle without reloading everything.

Also note: the Issues tracker is intended for problems/bugs in the game. For modding questions the intended place would be discussions, the SDG forum, the official Discord, etc.

Okay. I will be careful.