OpenClonk Bugtracker - OpenClonk
View Issue Details
0001163OpenClonkEngine - C4Scriptpublic2014-10-18 10:542017-12-26 13:37
ReporterMaikel 
Assigned To 
PriorityhighSeveritymajorReproducibilityN/A
StatusfeedbackResolutionopen 
PlatformOSOS Version
Product Version 
Target Versiongit masterFixed in Version 
Summary0001163: GetMaterialVal should return nil (not zero or empty string) if entry is not specified in Material.ocm
DescriptionSee the title, this is needed for example in the cloud script to convert materials according to temperature and to not mess up if this values are not given.

Make sure to check if this does not break anything.

Can also be done for other Get*Val functions I guess.
TagsNo tags attached.
Attached Files

Notes
(0003893)
Clonkonaut   
2015-10-12 15:47   
This would affect all other Get*Val functions as they all use C4ValueCompiler.

Skimming through the scripts, there are quite a lot that depend on this behaviour. Cannot the cloud check if BelowTempConvertTo is != 0?
(0004164)
Clonkonaut   
2015-11-29 23:12   
Changed Target Version to 8.0

The question remains if this is absolutely necessary.
(0005968)
Luchs   
2017-12-26 13:37   
Not going to do risky changes like this shortly before release...

Issue History
2014-10-18 10:54MaikelNew Issue
2014-10-18 10:55MaikelSummaryGetMaterialVal should return 0 if entry is not specified in Material.ocm => GetMaterialVal should return nil (not zero or empty string) if entry is not specified in Material.ocm
2015-10-12 15:47ClonkonautNote Added: 0003893
2015-10-12 15:47ClonkonautAssigned To => Clonkonaut
2015-10-12 15:47ClonkonautStatusnew => feedback
2015-11-29 23:11ClonkonautTarget Version6.1 => 8.0
2015-11-29 23:11ClonkonautAssigned ToClonkonaut =>
2015-11-29 23:12ClonkonautNote Added: 0004164
2017-12-26 13:37LuchsTarget Version8.0 => git master
2017-12-26 13:37LuchsNote Added: 0005968