Skip to content

Removed Updater methods - #750

Open
Miha22 wants to merge 15 commits into
uEssentials:masterfrom
Miha22:master
Open

Removed Updater methods#750
Miha22 wants to merge 15 commits into
uEssentials:masterfrom
Miha22:master

Conversation

@Miha22

@Miha22 Miha22 commented Jun 10, 2019

Copy link
Copy Markdown
  1. Rebuilt Rocket Mod 4.9.3.0 with UnityEngine.CoreModule.

Take in mind:

  • Due to Unturned update, UnityEngine namespace is now a part of UnityEngine.CoreModule
  • Rocket Mod version 4.9.3.0 is referencing UnityEngine(before update).

Explanation:
When updating plugin, we reference new libraries, so did I.
I referenced uEssentials to new library (UnityEngine.CoreModule), but appeared an error "need a reference to UnityEngine", but I have referenced UnityEngine.CoreModule, which contained UnityEngine. and I was just wtf wtf wtf..
but then I realized that Rocket is not referencing UnityEngine.CoreModule, so I rebuilt rocket especailly for uEssentials.

  1. Methods updating: /repair
  • updated /repair command and added 2 child commands /reapair all /repair
  • added support for console, so now you can execute the command from console, of course I added understandable exception handling as well (Rocket Logging).
  1. Methods updating: /killanimals
  • Dont remember what was wrong here, maybe it jsut needed an UnityEngine.
  1. FrozenPlayer.cs fix.
  • replaced method with new one.

Miha22 added 5 commits June 10, 2019 14:12
1. Rebuilt Rocket Mod 4.9.3.0 with UnityEngine.CoreModule.

Take in mind:
- Due to Unturned update, UnityEngine namespace is now a part of UnityEngine.CoreModule
- Rocket Mod version 4.9.3.0 is referencing UnityEngine(before update).

Explanation:
When updating plugin, we reference new libraries, so did I.
I referenced uEssentials to new library (UnityEngine.CoreModule), but appeared an error "need a reference to UnityEngine", but I have referenced UnityEngine.CoreModule, which contained UnityEngine. and I was just wtf wtf wtf..
but then I realized that Rocket is not referencing UnityEngine.CoreModule, so I rebuilt rocket especailly for uEssentials.

2. Methods updating: /repair
- updated /repair command and added 2 child commands /reapair all  /repair <player name>
- added support for console, so now you can execute the command from console, of course I added understandable exception handling as well (Rocket Logging).

2. Methods updating: /killanimals
- Dont remember what was wrong here, maybe it jsut needed an UnityEngine.

3. FrozenPlayer.cs fix.
- replaced method with new one.
- removed useless method.
To comply with the harbor rules, Updater was disabled.
@Miha22 Miha22 changed the title Update Removed Updater methods Jun 11, 2019
@Miha22

Miha22 commented Jun 11, 2019

Copy link
Copy Markdown
Author

Removed Updater methods

Miha22 added 10 commits June 12, 2019 18:31
- changed project target .NET to 4 from 4.6.1
- removed useless logging of unvehicled player
I have no idea why in event of 1 vehicle in VehicleManager.vehicles List.RemoveAt(0) throws IndexOutOfRangeException. Literally a bug that cannot be solved from plugin. Thats why to execute this command without any errors, an executor sometimes should use /clear ev 2-3 times.
- removed: Console.Title("Unturned Server") which hid server name on console
{
case (0):
if (caller is ConsolePlayer)
Rocket.Core.Logging.Logger.LogException(new System.InvalidOperationException($"Console does not have an iventory to repair! You must be a player to execute /repair or /fix"));

@zientix zientix Jul 22, 2020

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you typed iventory instead of inventory ofc

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

damn I thought you found something essential.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants