Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The code compiles, but I haven't checked if it causes any errors. #1

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

Tamago4a
Copy link

  • Updated all nugets.
  • Updated all events that have changed during this time.
  • Ran through the code analyzer and fixed all syntax problems.
  • Fixed the problem with incorrect display of the number of players. Now the bot does not take into account NPCs.

Tamago4a and others added 5 commits October 19, 2024 18:01
This reverts commit fb86e3a.
- Updated all nugets.
- Updated all events that have changed during this time.
- Ran through the code analyzer and fixed all syntax problems.
- Fixed the problem with incorrect display of the number of players. Now the bot does not take into account NPCs.
Copy link
Member

@VladTheCow VladTheCow left a comment

Choose a reason for hiding this comment

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

Please do not change the code style, the intend should be equal to 4

@Tamago4a
Copy link
Author

Please do not change the code style, the intend should be equal to 4

The code analyzer found this style incorrect, and I agree with it. What is "intend"?

@VladTheCow
Copy link
Member

Please do not change the code style, the intend should be equal to 4

The code analyzer found this style incorrect, and I agree with it. What is "intend"?

It's how many spaces you have to put before the code after the construction (it was 4, but you changed it to 2, which is bad)

@Tamago4a
Copy link
Author

Tamago4a commented Dec 20, 2024

Please do not change the code style, the intend should be equal to 4

The code analyzer found this style incorrect, and I agree with it. What is "intend"?

It's how many spaces you have to put before the code after the construction (it was 4, but you changed it to 2, which is bad)

I'm afraid you're mistaken. These are not 8 spaces. These are tabs. Try to highlight these "spaces" in your browser and you'll understand. And I repeat, this was done by the code analyzer made by Microsoft developers. I think they are competent enough to know about the correctness of the code style.
image

@BoltonDev
Copy link

The only person who's wrong here is you. Please look at the coding conventions https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions#style-guidelines

- Updated Nuget Discord.Net
@Tamago4a
Copy link
Author

Yes, you were right. I was sure that the default settings in visual studio were correct and did not even think about it. However, it turned out that this needs to be done manually in the settings.
https://stackoverflow.com/questions/14167033/visual-studio-replace-tab-with-4-spaces

PUDGE added 2 commits December 23, 2024 09:43
…ds "Available()" but did not implement them. I also updated the code in the method "OnRespawningTeam(RespawningTeamEventArgs ev)". Now everything compiles, but I'm not sure that it will work as expected. In fact, all my commits were made so that it all compiles and runs.
@Tamago4a
Copy link
Author

I finally tested it and the console window closes instantly. Nothing happens.


public override bool Available()
{
throw new System.NotImplementedException();
Copy link
Member

Choose a reason for hiding this comment

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

huh??

Copy link
Author

Choose a reason for hiding this comment

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

I wrote above that I don’t know how to implement this correctly, since I didn’t create this huge pile of code.

</Reference>
<Reference Include="UnityEngine.PhysicsModule">
<HintPath>..\..\References\UnityEngine.PhysicsModule.dll</HintPath>
Copy link
Member

Choose a reason for hiding this comment

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

use env variables

Copy link
Author

Choose a reason for hiding this comment

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

What are "env variables"?

</Reference>
</ItemGroup>

<ItemGroup>
<Compile Update="Properties\Settings.Designer.cs">
Copy link
Member

Choose a reason for hiding this comment

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

??????

Copy link
Author

Choose a reason for hiding this comment

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

No idea where this came from. But if you delete these lines, the compilation occurs without errors.

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.

4 participants