-
Notifications
You must be signed in to change notification settings - Fork 4
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
base: master
Are you sure you want to change the base?
Conversation
Tamago4a
commented
Dec 11, 2024
- 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.
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.
There was a problem hiding this 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
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) |
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
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. |
…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.
I finally tested it and the console window closes instantly. Nothing happens. |
|
||
public override bool Available() | ||
{ | ||
throw new System.NotImplementedException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
huh??
There was a problem hiding this comment.
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> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use env variables
There was a problem hiding this comment.
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"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
??????
There was a problem hiding this comment.
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.