Closed deniseAngilica closed 1 year ago
@Farfi55 if i got it right, the problem here is that when the property becomes null, input continues to have previous value, am I right?
Yes, that's what seems to be happening
@IlDirettore95 what does it happen when a property is null? If I'm right the null value is added to the values list, right?
No. Here is an example of a string property from an Example class
well, I think that adding the null value will resolve the problem: in the current version, if the operationResult is null Map() returns an empty string; being the last value of "values" null, operationResult will be null and everything will work fine. Can I assign this issue to you too @IlDirettore95 ?
No problem, i got this! So there's no problem if operationResult is null? As far as I know Map() method will throw an error.
Yes, I added a fix few minutes ago, if operationeResult is null, Map() will return an empty string. Let us know when you're done, thanks!
Solved by removing streams of null properties and no more existing collection elements.
and inside a script
all the properties inside
KitchenObject
are meant for ASP encoding, on game start theFirstKitchenObject
is null and will be like that until the player picks up something. At that point, the values will be updated and reflected in the input files in this way:Game start:
Few frames after Game start:
FirstKitchenObject assigned:
FirstKitchenObject unassigned:
as you can see after being assigned and unassigned, in the input files, the Name is still assigned the previous value
Originally posted by @Farfi55 in https://github.com/DeMaCS-UNICAL/ThinkEngine/issues/22#issuecomment-1657996063