Post by someusername6 on Jan 21, 2017 19:48:47 GMT
I was attempting to mod in a Uranium Quad-1% alloy for use in nuclear weapons, to see if the minor gain in yield strength would provide any benefits on nuclear weapon design. All of the elements seem to be fully defined in game, except that Titanium is missing neutron capture information, so I found some of it and copied the rest for Manganese for the time being.
Side note: is it necessary? It seemed to crash when using the core game titanium, but it also crashes this way, so...
Mod code:
This produces a crash as soon as I try to select one of the new materials for building a nuke:
Side note: is it necessary? It seemed to crash when using the core game titanium, but it also crashes this way, so...
Mod code:
Element Titanium-48
Symbol Ti-48
AtomicMass 48
AtomicNumber 22
MolarMass_g__mol 47.867
FirstIonizationEnergy_kJ__mol 658.8
MicroscopicThermalNeutronCaptureCrossSection_b 6.09
MicroscopicThermalNeutronScatteringCrossSection_b 1.767
MicroscopicFastNeutronCaptureCrossSection_b .0047
MicroscopicFastNeutronScatteringCrossSection_b 2.722
MicroscopicResonanceIntegralCaptureCrossSection_b 3.1
MicroscopicResonanceIntegralScatteringCrossSection_b 601.69
SolarAbundance 2.4e3
Emission Titanium
Material Depleted Uranium Quad Alloy
Elements U-238 Mo Zr Nb Ti-48
ElementCount .9049 .0223 .0245 .0024 .00233
Density_kg__m3 17850
YieldStrength_MPa 1165.2
UltimateTensileStrength_MPa 1654.7
YoungsModulus_GPa 166.1
ShearModulus_GPa 66.5
SpecificHeat_J__kg_K 135.4
MeltingPoint_K 1438
BoilingPoint_K 4111
ThermalConductivity_W__m_K 19.3
ThermalExpansion__K 13.9e-6
Resistivity_Ohm_m 4.8e-7
RefractiveIndex Uranium Oxide
RoughnessCoefficient .3
Material U-235 Quad Alloy
Elements U-235 Mo Zr Nb Ti-48
ElementCount .9049 .0223 .0245 .0024 .00233
Density_kg__m3 17850
YieldStrength_MPa 1165.2
UltimateTensileStrength_MPa 1654.7
YoungsModulus_GPa 166.1
ShearModulus_GPa 66.5
SpecificHeat_J__kg_K 135.4
MeltingPoint_K 1438
BoilingPoint_K 4111
ThermalConductivity_W__m_K 19.3
ThermalExpansion__K 13.9e-6
Resistivity_Ohm_m 4.8e-7
RefractiveIndex Uranium Oxide
RoughnessCoefficient .6
Material U-233 Quad Alloy
Elements U-233 Mo Zr Nb Ti-48
ElementCount .9049 .0223 .0245 .0024 .00233
Density_kg__m3 17850
YieldStrength_MPa 1165.2
UltimateTensileStrength_MPa 1654.7
YoungsModulus_GPa 166.1
ShearModulus_GPa 66.5
SpecificHeat_J__kg_K 135.4
MeltingPoint_K 1438
BoilingPoint_K 4111
ThermalConductivity_W__m_K 19.3
ThermalExpansion__K 13.9e-6
Resistivity_Ohm_m 4.8e-7
RefractiveIndex Uranium Oxide
RoughnessCoefficient .6
This produces a crash as soon as I try to select one of the new materials for building a nuke:
Version: CDE 1.0.8 Windows
Loading Themes...Done in 10ms
4.4.0 - Build 20.19.15.4364
Max Texture Image Units: 32
Max Combined Texture Image Units: 192
Max Vertex Texture Image Units: 32
Max Draw Buffers: 8
Loading Shaders...Done in 825ms
Loading Craft Models...Done in 0ms
Loading Pre-generated City Light Textures...Done in 138ms
Loading Pre-generated Particle Textures...Done in 0ms
Loading Pre-generated Damage Scar Textures...Done in 1ms
Loading Game
...Loading Tooltips...Done in 3ms
Loading Star Chart...Done in 91ms
Loading Refractive Index Spectra...Done in 174ms
Loading Emission Spectra...Done in 171ms
Loading Elements...Done in 13ms
Loading Metals...Done in 4ms
Loading Nonmetals...Done in 1ms
Loading Compounds...Done in 0ms
Loading Alloys...Done in 3ms
Loading Ceramics...Done in 3ms
Loading Fibers...Done in 1ms
Loading Crystals...Done in 4ms
Loading Radionuclides...Done in 0ms
Loading Ions...Done in 0ms
Loading Fissiles...Done in 2ms
Loading Fusiles...Done in 0ms
Loading Fluids...Done in 3ms
Loading Minerals...Done in 2ms
Loading Organic Compounds...Done in 2ms
Loading Noble Gases...Done in 1ms
Loading Coolants...Done in 0ms
Loading Combustables...Done in 1ms
Loading Paints...Done in 0ms
Loading Chemical Reactions...Done in 1ms
Loading Fusion Reactions...Done in 0ms
Loading Asteroid Spectral Types...Done in 0ms
Loading Celestial Bodies...Done in 16ms
Loading Factions...Done in 3ms
Loading AI...Done in 1ms
Loading Concepts...Done in 26ms
Loading Design Messages...Done in 4ms
Loading Sound Effects...Done in 1ms
Loading Misc...Done in 0ms
Loading Designs...Done in 32ms
Loading User Designs...Done in 65ms
Loading Data Caches...Done in 957ms
Loading Craft Data Finalization...Done in 271ms
Loading Levels...Done in 24ms
Loading Dev Records...Done in 1ms
Loading User Records...Done in 1ms
Loading Mods...Ensure at Reflection\SimpleSerializationManager.cpp(79): Replaced Datum "Boron Trifluoride" of Material. 0
Done in 12ms
Loading SoundFiles...
Done in 2882ms
Loading Craft Models...Done in 1007ms
Loading Pre-generated City Light Textures...Done in 0ms
Loading Pre-generated Particle Textures...Done in 0ms
Loading Pre-generated Damage Scar Textures...Done in 0ms
Loading Solar Echoes...Done in 6849ms
Done in 13680ms
Steam Stats Received
Assertion at \mac\home\documents\code\cde\utilities\core\Function.inl(48): FilteredArray.Num() <= 1
Error: EXCEPTION_BREAKPOINT
0 0x75c24882 DebugBreak Line Info Error 487
1 0x0056c385 Material::GetUnenrichedMaterial_MemoizedFunction \\mac\home\documents\code\cde\cde\logistic\physics\materials.cpp(1204)
2 0x0056c1ef Material::GetUnenrichedMaterial_Memoize \\mac\home\documents\code\cde\cde\logistic\physics\materials.cpp(1171)
3 0x00507522 NuclearPayloadModule::GetInitialEnrichedFuelMass_kg \\mac\home\documents\code\cde\cde\logistic\modules\payloadmodules\nuclearweaponmodules.cpp(172)
4 0x005085b2 NuclearPayloadModule::GetFusionBoostedNeutronAdditionPerParticle \\mac\home\documents\code\cde\cde\logistic\modules\payloadmodules\nuclearweaponmodules.cpp(351)
5 0x005078b2 NuclearPayloadModule::GetMultiplicationRate__s \\mac\home\documents\code\cde\cde\logistic\modules\payloadmodules\nuclearweaponmodules.cpp(236)
6 0x00507b13 NuclearPayloadModule::GetNuclearEfficiency \\mac\home\documents\code\cde\cde\logistic\modules\payloadmodules\nuclearweaponmodules.cpp(267)
7 0x00508bb4 NuclearPayloadModule::GetOverallEnergyEmitted_J_Memoize \\mac\home\documents\code\cde\cde\logistic\modules\payloadmodules\nuclearweaponmodules.cpp(382)
8 0x00506a51 NuclearPayloadModule::GetGeneratedName \\mac\home\documents\code\cde\cde\logistic\modules\payloadmodules\nuclearweaponmodules.cpp(16)
9 0x004dd8a2 Module::UpdateName \\mac\home\documents\code\cde\cde\logistic\modules\modules.cpp(418)
10 0x004a39b2 ModuleDesignManager::RefreshCurrentModule \\mac\home\documents\code\cde\cde\logistic\moduledesign\moduledesign.cpp(616)
11 0x00412714 UIDropdown<int>::OnSelect \\mac\home\documents\code\cde\cde\common\uiframework\editui.h(223)
12 0x00414dce util::Delegate<void,util::Reflectable *>::MethodCaller<UIDropdown<util::Reflectable *>,&UIDropdown<util::Reflectable *>::OnSelect> \\mac\home\documents\code\cde\utilities\core\delegates.h(66)
13 0x0035ff5a UIListBox<int>::TriggerOnSelect \\mac\home\documents\code\cde\cde\common\uiframework\listbox.inl(163)
14 0x0035ff87 util::Delegate<void>::MethodCaller<UIListBox<util::Reflectable *>::ListButton,&UIListBox<util::Reflectable *>::ListButton::OnClick> \\mac\home\documents\code\cde\utilities\core\delegates.h(66)
15 0x003e8c90 UISimpleButton::OnAction \\mac\home\documents\code\cde\cde\common\uiframework\buttonui.cpp(156)
16 0x003e89f8 UISimpleButton::MouseUp \\mac\home\documents\code\cde\cde\common\uiframework\buttonui.cpp(128)
17 0x00402b8e Interface::TriggerMouseUp \\mac\home\documents\code\cde\cde\common\uiframework\interface.cpp(407)
18 0x0040209c Interface::HandleMouseInput \\mac\home\documents\code\cde\cde\common\uiframework\interface.cpp(226)
19 0x00370642 GameManager::HandleMouseInput \\mac\home\documents\code\cde\cde\common\gameplay.cpp(356)
20 0x003b7417 MouseCallback \\mac\home\documents\code\cde\cde\common\main.cpp(184)
21 0x006f40ba __glfwInputMouseClick Line Info Error 487
22 0x006f7b1e __glfwUnregisterWindowClassWin32 Line Info Error 487
23 0x775fd2b3 SetManipulationInputTarget Line Info Error 487
24 0x775de88a DispatchMessageW Line Info Error 487
25 0x775ddf17 CallWindowProcW Line Info Error 487
26 0x6fdbce43 glDebugEntry Line Info Error 487
27 0x775fd2b3 SetManipulationInputTarget Line Info Error 487
28 0x775de88a DispatchMessageW Line Info Error 487
29 0x775de1e4 DispatchMessageW Line Info Error 487
30 0x775ddfa0 DispatchMessageW Line Info Error 487
31 0x587e2660 OverlayHookD3D3 Line Info Error 487
32 0x006f6297 __glfwPlatformPollEvents Line Info Error 487
33 0x75c962c4 BaseThreadInitThunk Line Info Error 487