Search found 5 matches

by DunRaider
Thu Oct 08, 2020 6:46 am
Forum: Modding help
Topic: [1.0.0] Different interaction distance with buildings depending on step execution
Replies: 2
Views: 1070

Re: [1.0.0] Different interaction distance with buildings depending on step execution

So it has something to do with the lua script, which will not reproduce the same results even though the commands are the same.

Thanks for your help. :)
by DunRaider
Wed Oct 07, 2020 1:51 pm
Forum: Modding help
Topic: [1.0.0] Different interaction distance with buildings depending on step execution
Replies: 2
Views: 1070

[1.0.0] Different interaction distance with buildings depending on step execution

What I try to do:
Make a function which will find the furthest distance the character can be when placing a building, interacting with a building or mining a resource.

My problem:
The rule for when the character is 10 or 2.7 units away from something seems to be irregular, which is pretty ...
by DunRaider
Wed Oct 07, 2020 10:54 am
Forum: Resolved Problems and Bugs
Topic: [Twinsen][1.0.0] can_place_entity distance calculation seems to be wrong [Updated with more info]
Replies: 4
Views: 4433

Re: [1.0.0] can_place_entity distance calculation seems to be wrong

I have tried the fix in a more realistic scenario and unfortunately the fix won't help.

I have altered the sample to place two steam engines:
1. at location 4.5, 11.5
2. at location 4.5, 8.5

This results in the first being placed and the next being blocked by can_place_entity, given that it ...
by DunRaider
Wed Oct 07, 2020 10:24 am
Forum: Resolved Problems and Bugs
Topic: [Twinsen][1.0.0] can_place_entity distance calculation seems to be wrong [Updated with more info]
Replies: 4
Views: 4433

Re: [1.0.0] can_place_entity distance calculation seems to be wrong

Hi Bilka,

Thanks for the fast reply. That seems to solve it.. strange.

Is this due to the fact, that I actually shouldn't be able to place it with east or west as the direction if the max distance of 10 rule was applied when placing buildings, which are not square? When I place the steam engine ...
by DunRaider
Wed Oct 07, 2020 9:13 am
Forum: Resolved Problems and Bugs
Topic: [Twinsen][1.0.0] can_place_entity distance calculation seems to be wrong [Updated with more info]
Replies: 4
Views: 4433

[Twinsen][1.0.0] can_place_entity distance calculation seems to be wrong [Updated with more info]

Hi - thanks for a great game. :)

What I try to do:
I am developing a tool which (hopefully) will make it a lot easier for players to get into tool assisted speed runs. I therefore need to be able to place buildings as far away as the default game will allow me.

My problem
In connection with ...

Go to advanced search