News for hackers. Stuff that matters.

iam4722202468

Re:Model Renderer for Minecraft. No Client Mods Needed! on Thursday May 19, 2022 @04:10PM (#31439551)
I would like to present everyone with a project I've been developping for a while and have finally open sourced - WorldSeed Entity Engine.

The goal of this library is to provide an easy to use and efficient API for rendering Blockbench Bedrock models in Minecraft, without the need for client mods.

A full explanation of how this project works can be found on the Wiki https://github.com/WorldSeedMMO/WorldSeedEntityEngine/wiki/H...

Some fairly complex math is used to calculate the position and rotation of each model segment, then each segment is assigned to an entity and that entity is moved around. All of this results in a model being seamlessly displayed in the Minecraft world.

This project was written from scratch with the aim of being a lightweight alternative to ModelEngine, for use with Minestom servers. The library includes tools for resource pack generation, rendering and animating multipart entities. Everything is well documented, and a full demo server is included with the source code inside of the test folder.

Anyone interested can simply clone the repository, open the project in Intellij and run main.java inside of the test folder.

Re:Dungeon Map Generation with Locks and Keys on Friday May 28, 2021 @08:23PM (#27322040)
Glad you enjoyed! Investigating how tunable parameters impact the generation is an interesting idea, I'll definitely investigate it for my own application.
Re:Open Source Thinkpad T420 Battery Design on Sunday August 30, 2020 @12:59PM (#24324093)
I got a few displays from aliexpress, all of them were good quality. If the seller has a good rating, they'll most likely send legitimate displays. You'll also need a FHD adaptor. Together the adaptor and the screen will easily be under $150.
Re:Open Source Thinkpad T420 Battery Design on Sunday August 30, 2020 @12:24PM (#24323839)
I was looking at the T14 AMD laptop a few days ago, if it had a 4k or 1440p display option I'd considering getting it.
Re:Open Source Thinkpad T420 Battery Design on Sunday August 30, 2020 @02:54AM (#24321838)
Pretty easy, but a bit expensive considering the laptop itself only costs around $150. A 1080p display + adaptor board for it costs about $100 and the 1440p display + adaptor is around $150. If you look up "T420 ips mod" you'll find lots of pictures and tutorials.
Re:Open Source Thinkpad T420 Battery Design on Sunday August 30, 2020 @02:38AM (#24321791)
That would probably work. That's how I was originally planning on doing it, but I got annoyed with the voltage logging not working properly when I set it up so I gave up and just went with the linear voltage -> capacity reading. A potential problem with this is that every battery pack would be different, and people who make this project on their own would need to generate a table for their pack.
Re:Open Source Thinkpad T420 Battery Design on Sunday August 30, 2020 @02:29AM (#24321771)
Hmm, it seems like all the fuel gauges I can find are designed to be incorporated in to a bms, instead of being added to the input/output of an already existing bms. Do you know if there's a fuel gauge that can work with 12v so I can just add it to the circuit I'm using?
Re:Open Source Thinkpad T420 Battery Design on Sunday August 30, 2020 @01:31AM (#24321578)
One of the mods that can be done is adding 1440p 14" ips display, like the LP140QH1-SPB1 from the carbon x1 gen 2. It's not as good as a new macbook pro display, but it's very nice to use.
Re:Open Source Thinkpad T420 Battery Design on Saturday August 29, 2020 @11:19PM (#24321109)
Yep definitely, I had this exact thought last night and found an example kernel module to spoof a battery, and one to read i2c messages. There's probably all kinds of cool things you can do with a kernel module to communicate between the laptop's i2c port and a microcontroller. The docking connector conveniently has an i2c port on it, maybe I'll look in to this in the future
Re:Open Source Thinkpad T420 Battery Design on Saturday August 29, 2020 @11:02PM (#24321032)
I've read a few things about using charging circuits and battery fuel gauges but it's a bit beyond what I know how to do right now. I might look in to it more in the future, or maybe someone else who knows more than me can add a fuel gauge to the schematic :)
Re:Open Source Thinkpad T420 Battery Design on Saturday August 29, 2020 @10:58PM (#24321011)
Yeah, this is still needed even with coreboot. The attiny isn't doing anything too complicated, it's just there to tell the laptop the status of the battery. In the testing I did, if you supply 12v without any of the SMBus stuff the laptop will shut off after a few minutes of use.

I'm actually looking in to making a slice battery, it should be possible but sourcing the docking connector seems to be much harder than getting the battery connector.

Re:Open Source Thinkpad T420 Battery Design on Saturday August 29, 2020 @10:53PM (#24320994)
Yeah it should, but the laptop's firmware would need to be modified to not check for an authentic battery
Here's another powder simulation, https://powdertoy.co.uk/. This one still has an active community and development team, and people have built all kinds of cool things with it like actual computers that can be programmed with assembly.
Re:Open Source Thinkpad T420 Battery Design on Saturday August 29, 2020 @07:20PM (#24320111)
The T420 is old, but still has some advantages over laptops currently on the market. Up until 2018 many laptops still had dual core cpus like the i7-7500u which are worse than the i7-3840qm that can be put in a T420, and the few currently available laptops that have 1440p displays and quad core cpus are still pretty expensive. Some other reasons people still use the laptop are being able to use coreboot with it and the upgradability of it. It's really cheap to upgrade the laptop to work with bluetooth 5 and wifi 6 and multiple ssd's can be added using the two 2.5" slots and the one msata slot. Using this, someone could make a large 150wh or even 200wh battery that would let this laptop last longer than most new laptops.