-
Notifications
You must be signed in to change notification settings - Fork 85
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
Docs folder + updated docs #474
Conversation
Updated build, PR instructions, moved those and debugger instructions to new docs folder.
Cleaned up formatting
Documented most of the logging stuff, except how to flick debug switches. Fixes #465
@kvakvs How are debug switches turned on and off? Also, if someone wanted to add a new switch in future, is there anything they need to be aware of? |
|
||
We strongly recommend doing development work on Windows as there's much more tooling available. If you're using a Mac, set up a Boot Camp partition for Windows and use that. If you're using Linux, consult the internets. | ||
|
||
## Install |
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.
Somewhere around this section (actually it is located down at Line 54) you can mention that the solution expects to find TLM/dependencies
directory with the game C# DLLs copied into it, or a link to <Steam>/Cities_Skylines/Cities_Data/Managed
.
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.
The reference path is mentioned but I didn't know about the TLM/depedencies
folder, will add that in.
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.
If you symlink it before trying the first build, it just finds everything and builds and never requires any references manipulation.
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.
@kvakvs I've updated build docs to include note on the TLM\dependencies
folder
@aubergine10 At this moment the only reliable way is to visit affected csproj'ects and add another define to the defines section. Per build configuration. Less global way which only covers 1 file is to add at the top of that file. |
Not sure I understand the comment above. Is that for adding a complete new switch? If I wanted to, for example, enable logging for parking AI, which already exists, how would that be achieved? |
Oh do you mean the debug switches in the XML file? I never done that, and it probably could use some usability improvements. |
You have to add (
<Debug>
<Switches>
<boolean>false</boolean>
...
</Switches>
</Debug> To turn off/on features just change correct value from |
Urg, this is a nasty way to do the debug switch toggles in the xml file: <Debug>
<Switches>
<boolean>false</boolean>
<boolean>false</boolean>
<boolean>false</boolean>
// ...
<boolean>false</boolean>
</Switches>
<ExtVehicleType>None</ExtVehicleType>
<ExtPathMode>None</ExtPathMode>
</Debug> Is there any way we could add some sort of human readable hint to those elements? Even if it was just an incrementing number eg. |
Added section on toggling switches.
This is ready for final review @krzychu124 @kvakvs |
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 don't know, looks fine
We should do something with naming the debug switches in XML, but i haven't used them and they don't create any pain for me, so kind of let it stay until we figure something out.
Yeah, they work reliably as is so I think leave them for now. |
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.
👍
docs
folder in repo rootBUILDING_INSTRUCTIONS.md
- updated contentPR_REVIEW_INSTRUCTIONS.md
- updated contentATTACHING_DEBUGGER.md
- updated contentLOGGING.md
)ATTACHING_DEBUGGER.md
Fixes #466
Fixes #465