Anonymous Login
2018-12-13 03:47 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001163OpenClonkEngine - C4Scriptpublic2017-12-26 13:37
ReporterMaikel 
Assigned To 
PriorityhighSeveritymajorReproducibilityN/A
StatusfeedbackResolutionopen 
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

-Relationships
+Relationships

-Notes

~0003893

Clonkonaut (developer)

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 (developer)

Changed Target Version to 8.0

The question remains if this is absolutely necessary.

~0005968

Luchs (administrator)

Not going to do risky changes like this shortly before release...
+Notes

-Issue History
Date Modified Username Field Change
2014-10-18 10:54 Maikel New Issue
2014-10-18 10:55 Maikel Summary GetMaterialVal 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:47 Clonkonaut Note Added: 0003893
2015-10-12 15:47 Clonkonaut Assigned To => Clonkonaut
2015-10-12 15:47 Clonkonaut Status new => feedback
2015-11-29 23:11 Clonkonaut Target Version 6.1 => 8.0
2015-11-29 23:11 Clonkonaut Assigned To Clonkonaut =>
2015-11-29 23:12 Clonkonaut Note Added: 0004164
2017-12-26 13:37 Luchs Target Version 8.0 => git master
2017-12-26 13:37 Luchs Note Added: 0005968
+Issue History