Comments (4)
01:10.209 [WARN ] MechEngineer error processing hardpoint data for chassisdef_battlemaster_BLR-1GB at LeftArm: index=0 weapons=[chrPrfWeap_battlemaster_leftarm_ac20_bh1, chrPrfWeap_battlemaster_leftarm_ac5_bh1, chrPrfWeap_battlemaster_leftarm_flamer_eh1, chrPrfWeap_battlemaster_leftarm_gauss_bh1, chrPrfWeap_battlemaster_leftarm_laser_eh1, chrPrfWeap_battlemaster_leftarm_lbx_bh1, chrPrfWeap_battlemaster_leftarm_lrm15_mh1, chrPrfWeap_battlemaster_leftarm_mg_ah1, chrPrfWeap_battlemaster_leftarm_mg_bh1, chrPrfWeap_battlemaster_leftarm_narc_mh1, chrPrfWeap_battlemaster_leftarm_ppc_eh1, chrPrfWeap_battlemaster_leftarm_srm2_mh1, chrPrfWeap_battlemaster_leftarm_srm4_mh1, chrPrfWeap_battlemaster_leftarm_srm6_mh1, chrPrfWeap_battlemaster_leftarm_uac5_bh1] Exception: System.ArgumentException: An item with the same key has already been added. Key: mg
at System.Collections.Generic.Dictionary2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000c1] in <d7ac571ca2d04b2f981d0d886fa067cf>:0 at System.Collections.Generic.Dictionary
2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in :0
at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable1[T] source, System.Func
2[T,TResult] keySelector, System.Collections.Generic.IEqualityComparer1[T] comparer) [0x00085] in <1b13ba6391c74847bbc3eddc86df7eee>:0 at System.Linq.Enumerable.ToDictionary[TSource,TKey] (System.Collections.Generic.IEnumerable
1[T] source, System.Func2[T,TResult] keySelector) [0x00000] in <1b13ba6391c74847bbc3eddc86df7eee>:0 at MechEngineer.Features.HardpointFix.prefab.PrefabSet..ctor (System.Int32 index, System.Collections.Generic.IEnumerable
1[T] prefabs) [0x0002b] in :0
at MechEngineer.Features.HardpointFix.utils.WeaponComponentPrefabCalculator.GetAvailablePrefabSetsForLocation (BattleTech.ChassisLocations location) [0x0007a] in :0
from mechengineer.
"chrPrfWeap_battlemaster_leftarm_mg_ah1",
"chrPrfWeap_battlemaster_leftarm_mg_bh1",
both in same group, I'll just make an advanced json merge patch that revmoes the bh as the ah variants are used more often on the battlemaster. (only the highlander also has one ah variant, no other mech uses the mg ah variant).
from mechengineer.
So wait, what was even the issue? I'm not at all familiar with how the game calls weapon models.
from mechengineer.
I have an (implicit) check in place in case model hardpoint mapping on a mech is not unique (like there are 2 different prefabs/models that could be added to a mech in case you mount an mg). I then skip the location that is faulty in the mech and print out the error that happens with the unique check.
My fix is to just modify the config to only contain one entry instead of two. While I could automate the process in code, it does help with fixing bad hardpoint definitions (also for RT etc.).
from mechengineer.
Related Issues (20)
- infinite loading with customised base game mechs HOT 10
- SLDF mechs not being migrated to ME modules correctly HOT 6
- Gauss Rifle++ misses out on critical slot adjustment HOT 1
- Better MechLab Vehicle support HOT 2
- Weapon Damage Immunity HOT 3
- Introduce Expanded Critical Damage HOT 1
- CASE not working if CustomUnits loads first HOT 1
- AttackSequence might be null and throwing exceptions
- Ammo Explosions in Head exceptions
- Omni Hardpoint as own icon HOT 1
- Allow per-mech override of prefab mapping HOT 2
- DynamicSlots Moveable slots has no UIName HOT 2
- Engine heatsinks not counting towards heatsink capacity during tutorial HOT 8
- CB/CAC compatibilty issues
- Head destruction -> Cockpit destruction
- Mechengineer creates 2 duplicates of the AC10 HOT 1
- Idea: ComponentExplosion for Armor/External Damage
- Multiply engine weight factors HOT 6
- Disable crit split for mech/chassis
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 mechengineer.