Page 1 of 1

[0.18.2] (Minor Bug) Triggeraction:: create-entity + offsets = delayed

Posted: Sat Feb 01, 2020 5:28 pm
by ownlyme
when i create the offsets by using a shift in the sprite, everything is synced.
But when i do it by declaring offsets in the create-entity trigger action, often something will be delayed by 1 tick.
Screenshot_2.png
Screenshot_2.png (1.13 MiB) Viewed 1437 times

Code: Select all

source_effects =
{
	...
	{
		type = "create-entity",
		entity_name = "MCRR-uranium-explosion-LUQ"..size_suffix,
		trigger_created_entity = "true",
		offsets = {{-16*scale, -16*scale}},
		check_buildability = false
	},
	{
		type = "create-entity",
		entity_name = "MCRR-uranium-explosion-RUQ"..size_suffix,
		offsets = {{16*scale, -16*scale}},
		check_buildability = false
	},
	{
		type = "create-entity",
		entity_name = "MCRR-uranium-explosion-LLQ"..size_suffix,
		offsets = {{-16*scale, 16*scale}},
		check_buildability = false
	},
	{
		type = "create-entity",
		entity_name = "MCRR-uranium-explosion-RLQ"..size_suffix,
		offsets = {{16*scale, 16*scale}},
		check_buildability = false
	},
mod is too big to attach

i ended up doing it different since posila (edit: and bilka) explained to me that the rendering distance is affected by collision box, so it's no big deal...

Re: [0.18.2] (Minor Bug) Triggeraction:: create-entity + offsets = delayed

Posted: Sat Feb 01, 2020 5:50 pm
by posila
It's classic case of some entities being created on chunks there were already updated, others on chunks that haven't been updated this tick yet. No plans to fix this, sorry. (btw. Bilka explained the collision box thing)

Re: [0.18.2] (Minor Bug) Triggeraction:: create-entity + offsets = delayed

Posted: Sat Feb 01, 2020 7:28 pm
by ownlyme
sorry i meant bilka.. wasn't very concentrated after splitting 4 spritesheets into 16^^ but i'm still glad i didn't have to use them...

still the solution isn't very elegant to use the collision box for that because now i can't really make my scorchmarks collide with water... w/e doesn't look so much out of place

Re: [0.18.2] (Minor Bug) Triggeraction:: create-entity + offsets = delayed

Posted: Sat Feb 01, 2020 9:53 pm
by ownlyme
wow ... i stripped everything except the animated dummies and when i spam rockets it TANKS the performance... whats going on here??
they are type explosion with huge collision boxes (like 128x128 or so).. i can upload a demo tomorrow... i think you might find this interesting

Re: [0.18.2] (Minor Bug) Triggeraction:: create-entity + offsets = delayed

Posted: Sat Feb 01, 2020 11:11 pm
by posila
Not really. I don't find "oh hey, look, if I ask the game do this thing that's completely outside of limits it was designed for, it's sloooooooow" particularly interesting.