Misc.
Line numbers #
Until recently, the line numbers on all of the code snippets started with one, which is annoying if you’re trying to match it up with the linked file in GitLab. So I took a few minutes to fix it in a way that’s retroactive to the beginning of the blog.
When I first started with Octopress it appeared I could do what I wanted with a start
tag, but it doesn’t work and
I guess it’s not going to be fixed. I stopped trying
to use the tag, but luckily the line being referred to is embedded in the URL (for either GitLab or GitHub, and maybe others).
|
|
|
|
|
|
|
|
It’s a little hacky, but it works for me for now.
Recovering from SQL hiccoughs #
Occasionally getting stuff like this in the console logs:
SQL Server does not exist or access denied.
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
at System.Data.SqlClient.SqlConnection.Open () [0x00000] in
:0 at (wrapper remoting-invoke-with-check) System.Data.SqlClient.SqlConnection:Open ()
at DragonsSpine.DAL.DataAccess.GetSQLConnection () [0x00014] in K:\301days\Code\ste-reez-muvi\Assets\DragonsSpine\DAL\DataAccess.cs:29
(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 64)
And, with the way it’s currently written, the system in question (either cells or NPCs) will never update again.
Let’s keep the exceptions from ending the update so messily with a try-catch block:
|
|
|
|
Also a little hacky, but also works for now.
Misc misc #
- Made the changed cell effect a little more subtle (0.9 scale returning to 1.0 over the course of a second).
- Added materials for various burnt tree display strings (after experimenting with spawning fire breathing critters on the surface).
- Removed counting of open doors.
- NPCs recover from being presumed dead temporarily.