Anonymous Login
2021-09-29 02:46 UTC

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001950OpenClonkEngine - C4Scriptpublic2017-11-11 08:18
Assigned ToMaikel 
PlatformPCOSWindowsOS Version10
Product Version 
Target Version8.0Fixed in Versiongit master 
Summary0001950: RemoveObject(true) in Container, no Collection callback
DescriptionWhen RemoveObject(true); is called in an contained object, the contents will be exited into the container. The container, however, does not receive any Collection/Collection2 callbacks.

This is especially bad as it breaks the inventory display for the clonk.
Steps To ReproduceCreate a crate, fill it with stuff, pick up with a clonk.

Call Contents()->RemoveObject(true) on the clonk.

You won't see the contents of the crate in the inventory bar.
TagsNo tags attached.
Attached Files

related to 0001041resolvedClonkonaut Wood and burned wood get stacked together 



Clonkonaut (developer)

Ah and of course no RejectCollect callback. With this, you can overfill containers/clonks.


Maikel (developer)

Last edited: 2017-11-10 09:45

View 2 revisions

Is there any reason these calls could lead to problems elsewhere? We can easily enable them by updating the Enter function in here:

I would do that if no body objects or finds a reason not to do that.


Clonkonaut (developer)

Off the top of my head I can't think of a reason why this leads to problems. I'd rather say it's the expected behaviour.


occ (reporter)

Hi! There's been a check-in that references this bug. For more information you can visit the repository browser at this address:

Changeset a9675ea by Maikel de Vries <>
perform callbacks when moving contents when container is removed (0001950)


Maikel (developer)

Fixed this, checked that crate works now. Let's keep an eye open for unexpected behavior.

-Issue History
Date Modified Username Field Change
2017-10-27 13:45 Clonkonaut New Issue
2017-10-27 13:53 Clonkonaut Note Added: 0005873
2017-10-27 13:58 Clonkonaut Target Version => 8.0
2017-10-27 13:58 Clonkonaut Relationship added related to 0001041
2017-11-10 09:25 Maikel Note Added: 0005892
2017-11-10 09:45 Maikel Note Edited: 0005892 View Revisions
2017-11-10 18:24 Clonkonaut Note Added: 0005898
2017-11-11 08:14 occ Note Added: 0005899
2017-11-11 08:18 Maikel Assigned To => Maikel
2017-11-11 08:18 Maikel Status new => resolved
2017-11-11 08:18 Maikel Resolution open => fixed
2017-11-11 08:18 Maikel Fixed in Version => git master
2017-11-11 08:18 Maikel Note Added: 0005900
+Issue History