Space Engineers

Space Engineers

ColorPix Pixel Font + Image Converter
15 条留言
🍁BuzzedBear🍁 2020 年 5 月 2 日 上午 9:11 
LOL! No worries Dan. Back in the day I would have grasped it in a nanosecond... (nanoseconds didn't exist back then LOL) but my brain 55 yrs old now and I subject it to a very healthy (unhealthy?) amount of God's Miraculous Green so things move a little slower upstairs!
Daniel Lee Howell  [作者] 2020 年 5 月 2 日 上午 7:39 
@BuzzedBear Anytime!
I apologize for the technicality of the explanation.
🍁BuzzedBear🍁 2020 年 4 月 30 日 下午 5:27 
I'll see if I can wrap my head around the math. Thanks for the xplanation!
Daniel Lee Howell  [作者] 2020 年 4 月 30 日 上午 1:04 
@BuzzedBear here's a more thorough answer, based on some actual in-game testing (yay scientific method). Looks like the exact limit on text length is... you guessed it, 100,000 characters. The tricky part is, each row of pixels in your source image requires an extra newline character to denote the end of that row and start the next. So the maximum size that your image can be pixel wise is (W + 1) * H = 100,000.

The converter was using CRLF line endings (two characters, max image size (W + 2) * H = 100,000), but I tested LF line endings (one character) and they work in game. I modified the converter to use LF line endings, so max size is now (W + 1) * H = 100,000.

Also added a button to the input row that scales the image to the maximum allowed size (maintaining aspect ratio).

Thanks again for the question, that's the first step of the scientific method :)
Daniel Lee Howell  [作者] 2020 年 4 月 29 日 下午 11:36 
@BuzzedBear good question, albeit tricky to answer. Since "images" displayed using pixel fonts are actually text strings, it really depends on the number of characters allowed in the string. Keen has set a hard limit of around 100,000 characters ("pixels"), which means the multiplied dimensions of your image (width times height) cannot exceed that number or the string will be truncated by the game. The converter will display a warning in that case, but will still output the full string in case Keen sees fit to increase this limit in the future.

You don't have to reduce images prior to running them through the converter though - just enter new values in the input width and/or height fields at the top of the converter interface, and the converter will resize the image for you.

Hope this is helpful - thank you for the question!
🍁BuzzedBear🍁 2020 年 4 月 29 日 上午 8:20 
Hey Dan - I am curious because I haven't figured this out completely - What's the maximum size that an image can be pixel-wise? I have some pics that I used with Whips Image converter that I wanted to put with your mod - but I can't seem to use the whole picture any longer. If I knew the max dimensions limit for the Source image I could reduce it to that before running through your Mod. Am I making any sense? It seems at the moment I can only 'crop' any given image.
Daniel Lee Howell  [作者] 2020 年 4 月 29 日 上午 4:34 
Per suggestion from ScippieDippie//, the converter has been updated with a textarea for older browser versions that do not support the clipboard API.

@Morpheus, this may resolve your issue with Firefox, looks like there were some criteria (permissions) required for using the clipboard API in Firefox specifically. When you get a chance, will you try it again and let me know if it works for you now?

Thanks all for your help and suggestions thus far!
Daniel Lee Howell  [作者] 2020 年 4 月 29 日 上午 3:47 
@BuzzedBear glad you are enjoying it - makes the development totally worth it! I feel you on the crap internet connection - I was stuck on dialup until I was in my 20s. If I do make an .exe version, you'll be the first to know!

@ScippieDippie// that's an easy addition, might do that today. Thank you for the recommendation!

@Morpheus I was afraid that might be the case - thank you for the heads up. I don't personally use FF, can you give me any further details on it? Maybe open the devtools and let me know if you're seeing any javascript errors?
Molten Carnage 2020 年 4 月 27 日 上午 12:43 
Doesn't work with Firefox.
Skippie 2020 年 4 月 25 日 下午 12:39 
Why not put a output field in a converter page? It doesn't work for me, because the result is not being loaded in clipboard.
Great mod either way.
🍁BuzzedBear🍁 2020 年 4 月 25 日 上午 7:44 
I have a really crappy internet connection on the best of days - and sometimes none. But I get that making a browser based routine is probably much less involved and complicated that the other. Thanks for the quick reply. I'm a big fan of Whips Image Converter and I am soooo pleased that you took the time to make a more powerful option with higher graphic details! Bravo and thank you man!
Daniel Lee Howell  [作者] 2020 年 4 月 25 日 上午 6:29 
@BuzzedBear I wasn't planning on it, but I may do that at some point. I'd have to sharpen my rusty Visual C# / .NET skills. In the meantime, if you want to use the converter offline you can download the html file by saving it from the browser. It is self-contained, so it will work the same even if you save it to your desktop, for example.

Just out of curiosity, why the interest in an executable version?
🍁BuzzedBear🍁 2020 年 4 月 25 日 上午 4:34 
any chance of making the converter an executable for download? Please?
Daniel Lee Howell  [作者] 2020 年 4 月 21 日 下午 2:05 
@kkuetht did you set the font on the LCD in game to ColorPix? Based on the result you got that sounds like the issue. If that doesn't fix it, you can send me your source image and the steps you're using and I'll see if I can reproduce the issue.
kaouette 2020 年 4 月 21 日 上午 4:36 
hello , that was a good idea but ... it's not working ^^' , I can put my pic in the converter , but impossible to have converted image. (only some caracter and blue line in game) . I tried it on Chrome 80/Edge81 and firefox ... please fix itttttt !!!! :D (sorry for my english)