Sorry for necroposting but either i missunderstand something or the answer is wrong. simple example:
10 / 9 with round up would be 2, because 10/9 = 1.111...... with rounding up it gives 2. putting this in an arithmetic still outputs 1 because is rounds down after calculation
Search found 6 matches
- Tue Jun 13, 2023 5:22 am
- Forum: Gameplay Help
- Topic: [Circuits] Round up when dividing?
- Replies: 3
- Views: 2805
- Tue Sep 13, 2022 1:13 pm
- Forum: Modding help
- Topic: Can't find vanilla red-wire / green-wire entity definitions
- Replies: 4
- Views: 1003
Re: Can't find vanilla red-wire / green-wire entity definitions
Maybe? We can't see your code. -- prototypes/item/bundled-wire.lua data:extend( { { type = "item", name = "tn-white-bundled-wire", icon = "__base__/graphics/icons/green-wire.png", icon_size = 32, flags = { "goes-to-quickbar" }, subgroup = "circuit-networ...
- Tue Sep 13, 2022 12:02 pm
- Forum: Modding help
- Topic: Can't find vanilla red-wire / green-wire entity definitions
- Replies: 4
- Views: 1003
Re: Can't find vanilla red-wire / green-wire entity definitions
Thanks for the response, that machinery need connection points makes sense and i stumbled across this on belts and chests but couldn't wrap my head around it for now. But then still my main question stays left open: Why am i not able to connect the wires to the vanilla electric pole and inserters fo...
- Tue Sep 13, 2022 11:11 am
- Forum: Modding help
- Topic: Can't find vanilla red-wire / green-wire entity definitions
- Replies: 4
- Views: 1003
Can't find vanilla red-wire / green-wire entity definitions
Hi, i'm currently working on a mod for more flexibility with circuit networks, namely more cables, other cables, machines to work with those cables etc. So far so good. I created the the prototypes files / declarations / definitions (however you would like to call them, my java brain loves definitio...
- Mon Jan 21, 2019 2:52 pm
- Forum: Modding help
- Topic: CRASH value must be dictionary in property tree at root
- Replies: 25
- Views: 9036
Re: CRASH value must be dictionary in property tree at root
So it could be a hickup by factorio? If you say you can't encounter any issues in my code, i presume my code is correct and fine? Edit: I copied the cargo-wagon entity and just replaced the name of it. the error still persists. so either its a fail by factorio, or somewhere else in my code. but how ...
- Sat Jan 19, 2019 11:48 am
- Forum: Modding help
- Topic: CRASH value must be dictionary in property tree at root
- Replies: 25
- Views: 9036
Re: CRASH value must be dictionary in property tree at root
@bob: What's wrong with github & you? :D (Link to answer is fine :P) It's just... I'd rate it's user friendliness about a 1 out of 10. The one useful thing it has going for it is that you can look at the code online... and that's about as useful as just opening a specific file and reading throu...