Friday Facts #296 - All kinds of bugs
Re: Friday Facts #296 - All kinds of bugs
Am I the only one who really likes the colored vehicles?
Depending on the tileset I last got out of my tank or car, sometimes it can be easily overlooked when it is that unoccupied grey color. While I’m not sure that Brown would be any harder to overlook when it is parked on dirt, at least the color being saved when its not occupied should help make finding where it was parked that much easier overall.
Depending on the tileset I last got out of my tank or car, sometimes it can be easily overlooked when it is that unoccupied grey color. While I’m not sure that Brown would be any harder to overlook when it is parked on dirt, at least the color being saved when its not occupied should help make finding where it was parked that much easier overall.
- TatsuZZMage
- Inserter
- Posts: 38
- Joined: Thu Dec 29, 2016 1:26 am
- Contact:
Re: Friday Facts #296 - All kinds of bugs
3.5x speed 200x accel raming the train1000+ engines using modded 1tj fuel the size of a into its self on a large loop with a smaller loop using 3 train stops no conditions. having a gomez addams bit of fun. had about 8 crashes to dial the speed down till it didn't crash figured it wasn't worth mentioning. hahaha opps wait no still kills it hahaha.
Re: Friday Facts #296 - All kinds of bugs
NPE = Null Pointer Exception.eradicator wrote: ↑Fri May 24, 2019 11:58 amError: Acronym overflow has occured near "NPE".programaths wrote: ↑Fri May 24, 2019 11:45 am The best thing to do when you encounter the NPE is work out why and if you should or not correct in place.
In Java (and other Java Virtual Machine languages like Groovy, Scala, and Kotlin), there is a NullPointerException that is thrown when the object is null and you are trying to access a value/property or call a function on it. In C# (and other languages that run on the .NET runtime), this is a NullReferenceException. In languages that compile to machine code (like C and C++), this is a segment fault or segfault.
- eradicator
- Smart Inserter
- Posts: 5207
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Friday Facts #296 - All kinds of bugs
Thank you. I was merely saying that recently NPE was mostly used as "New Player Experience" on FFF threads, so my brain-parser threw an error on the first attempt to understand that sentence. Though i seem to have been the only one with that problem ;).msclrhd wrote: ↑Sat May 25, 2019 7:59 amNPE = Null Pointer Exception.eradicator wrote: ↑Fri May 24, 2019 11:58 amError: Acronym overflow has occured near "NPE".programaths wrote: ↑Fri May 24, 2019 11:45 am The best thing to do when you encounter the NPE is work out why and if you should or not correct in place.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Friday Facts #296 - All kinds of bugs
To be pedantic in C and C++ it is undefined behavior, which on something with an decent OS will probably cause an segmentation fault but it is not guaranteed.msclrhd wrote: ↑Sat May 25, 2019 7:59 am NPE = Null Pointer Exception.
In Java (and other Java Virtual Machine languages like Groovy, Scala, and Kotlin), there is a NullPointerException that is thrown when the object is null and you are trying to access a value/property or call a function on it. In C# (and other languages that run on the .NET runtime), this is a NullReferenceException. In languages that compile to machine code (like C and C++), this is a segment fault or segfault.
Re: Friday Facts #296 - All kinds of bugs
Yeah, it's call undefined behavior because if you don't have operating system which would monitor this (for example on microcontroller), the program may start wreaking havoc and doing pretty much random things. (It is really funny unless it happens to you.) In case of Factorio, segmentation fault would be the most accurate term, though.BaggyK wrote: ↑Sat May 25, 2019 9:47 pmTo be pedantic in C and C++ it is undefined behavior, which on something with an decent OS will probably cause an segmentation fault but it is not guaranteed.msclrhd wrote: ↑Sat May 25, 2019 7:59 am NPE = Null Pointer Exception.
In Java (and other Java Virtual Machine languages like Groovy, Scala, and Kotlin), there is a NullPointerException that is thrown when the object is null and you are trying to access a value/property or call a function on it. In C# (and other languages that run on the .NET runtime), this is a NullReferenceException. In languages that compile to machine code (like C and C++), this is a segment fault or segfault.
I am a translator. And what did you do for Factorio?
Check out my mod "Realistic Ores" and my other mods!
Check out my mod "Realistic Ores" and my other mods!
Re: Friday Facts #296 - All kinds of bugs
No, you're not, although I had the opposite problem reading stuff about the new player experience thinking "why are they talking about null pointer exceptions? it can't possibly mean that" but not being able for quite a while to work out what NPE stood for.eradicator wrote: ↑Sat May 25, 2019 9:57 amThank you. I was merely saying that recently NPE was mostly used as "New Player Experience" on FFF threads, so my brain-parser threw an error on the first attempt to understand that sentence. Though i seem to have been the only one with that problem .msclrhd wrote: ↑Sat May 25, 2019 7:59 amNPE = Null Pointer Exception.eradicator wrote: ↑Fri May 24, 2019 11:58 amError: Acronym overflow has occured near "NPE".programaths wrote: ↑Fri May 24, 2019 11:45 am The best thing to do when you encounter the NPE is work out why and if you should or not correct in place.
-
- Manual Inserter
- Posts: 1
- Joined: Mon May 27, 2019 12:50 am
- Contact:
Re: Friday Facts #296 - All kinds of bugs
Shame to see any dev time wasted on stuff mods break (which would be fine after release).
I understand the interest though. The fun of programming is troubleshooting.
I understand the interest though. The fun of programming is troubleshooting.
Re: Friday Facts #296 - All kinds of bugs
Can we have a bugs left count in every FFF until the new version, please?
Also a list of things that need be done after the bugs are thought to be fixed. Like a new trailer with the new HD graphics and new biters and the various colors of chemical plant smoke or something.
Nothing with a date tho, because there is always one more bug/thing, but it's nice to have a list of things left to do!!
Also a list of things that need be done after the bugs are thought to be fixed. Like a new trailer with the new HD graphics and new biters and the various colors of chemical plant smoke or something.
Nothing with a date tho, because there is always one more bug/thing, but it's nice to have a list of things left to do!!
Re: Friday Facts #296 - All kinds of bugs
Have a look at viewtopic.php?f=5&t=61864catma wrote: ↑Mon May 27, 2019 6:44 am Can we have a bugs left count in every FFF until the new version, please?
Also a list of things that need be done after the bugs are thought to be fixed. Like a new trailer with the new HD graphics and new biters and the various colors of chemical plant smoke or something.
Nothing with a date tho, because there is always one more bug/thing, but it's nice to have a list of things left to do!!
I doubt the devs would do this, far better use of their time to fix bugs and move the game closer to release than tell us what's around the corner.
See the daily™ struggles with my Factory! https://www.twitch.tv/repetitivebeats
Re: Friday Facts #296 - All kinds of bugs
Thank you very much for this FFF. I found it really interesting to read about Rseding's experiences in bug fixing.
-
- Long Handed Inserter
- Posts: 94
- Joined: Fri Mar 01, 2019 7:56 am
- Contact:
-
- Burner Inserter
- Posts: 7
- Joined: Thu Apr 13, 2017 7:10 pm
- Contact:
Re: Friday Facts #296 - All kinds of bugs
Where can we hire you? I need more colleagues that work on my mental level. you are clearly in the right mindset.
Re: Friday Facts #296 - All kinds of bugs
You cannot hire them, they hire you! (if you are good)smileynator wrote: ↑Wed May 29, 2019 7:35 am Where can we hire you? I need more colleagues that work on my mental level. you are clearly in the right mindset.
Re: Friday Facts #296 - All kinds of bugs
7 Now it's working. Why the hell is it working?
8 Whatever. Push.
Re: Friday Facts #296 - All kinds of bugs
-
- Filter Inserter
- Posts: 947
- Joined: Wed Nov 25, 2015 11:44 am
- Contact:
Re: Friday Facts #296 - All kinds of bugs
Re: Friday Facts #296 - All kinds of bugs
This is my life.Crashing on dereferencing null? Add a null check
I should let every collegue of mine read this. This is literally what happened to me a few weeks ago except that some other programmer before me didn't have his 'smart part of their brain' light up and simply added a null-check, killing some functionality.
I fixed it properly, now the customer calls me amazing