Comments (6)
Could prop be null in ZoneBlockDetour at Line 754?
foreach (var prop in buildingInfo.m_props)
It's the only thing I can see that would throw a NullReferenceException in SimulationStep.
from buildingthemes.
Yes, maybe m_props is null in some cases.
from buildingthemes.
What I had in mind is that if prop is null then it would throw an exception when you try to access m_position on the next line :
biggestPropPosZ = Mathf.Max(biggestPropPosZ, buildingInfo.m_expandFrontYard ? prop.m_position.z : -prop.m_position.z);
so maybe you should add a test, it wouldn't hurt.
if (prop != null) biggestPropPosZ = Mathf.Max(biggestPropPosZ, buildingInfo.m_expandFrontYard ? prop.m_position.z : -prop.m_position.z);
EDIT: But I guess if m_prop is null it would also throw a NullReferenceException
from buildingthemes.
I pushed a fix to master. Do you know how to enable line numbers in exceptions? That would be so helpful.
from buildingthemes.
The game isn't compiled in debug mode so no line numbers unfortunately. Maybe with a hacked mono VM or something.
from buildingthemes.
Nailed it down. This is the issue:
from buildingthemes.
Related Issues (20)
- option to disable the "footprint shrinking"
- Bug: Random Texture appears in preview box HOT 2
- Building Themes Feature included in after dark patch - What will we do now? HOT 16
- Clone feature: More color variations of vanilla and euro growables HOT 2
- filter the list of themes that is displayed in the themes tab
- Update style CRP when user modifies associated theme
- Add icons to themes in policies panel
- Fix asset preview area light
- Detect asset by package id if the asset can't be found by name
- Results of the Building Themes Polls
- NullReferenceException during themes tab initialization HOT 1
- Add option for district that will allow to auto bulldoze buildings not belonging to district's theme
- Zone blocks should get lowest available info for the building in a plot. HOT 1
- Don't allow themed buildings from imported themes grow in non-themed districts by default HOT 1
- Hide after dark buildings for players who do not own the DLC HOT 4
- NullReferenceException at PoliciesPanel.SetParentButton HOT 1
- Allow subscribing to workshop items in themes from menu
- Error in BuildingVariationManager
- Error m_class = null
- Patch 1.1.1 extra buildings aren't included in default European theme
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from buildingthemes.