Main » Blogs » @steam_raccoon » YunYun desktop companion development [EN/RU]
avatarsteam_raccoon 🐱5 @steam_raccoon ・ (edited)

YunYun desktop companion development [EN/RU]

Greetings, little fans of weird music. Today, I would like to write a bit about how the companion app, which can still be downloaded on GitHub, came to be. A little magic under the hood is always interesting.
I think many who played Yunyun Syndrome (and if you haven't played it yet, urgently play it) entertained themselves by dragging one of the main heroines around the main screen, which simultaneously serves as Q's computer desktop. Since all animations in the game can simply be downloaded for non-commercial use, it seemed that happiness was near — using Qt, such screen widgets are made literally with the library's built-in functionality... But it turned out that happiness was actually far away, because the animation of the arms and legs moving while being dragged around the screen is a ragdoll, the code for which is, accordingly, unavailable. And when the code is unavailable, it needs to be reverse-engineered. That is, you have to write code that does the exact same thing.
Cutting the game model into its components is not a problem. Setting up the joints and bones is not a problem either. The problem is replicating the movements. Here, I had to call upon the help of an AI assistant (a "digital blockhead") via Claude, which very well and quickly managed to calculate all the necessary coefficients. Of course, it could be done manually, and the result would be the same, but it would take a couple of days instead of an hour.
After that, it's simple: Qt, a click event, and a settings window. The port to C# was also handled by the AI assistant, since I don't know C#, and in Python you have to drag along too much junk, bloating the file from 4 MB to 100+ MB. The Python version didn't go to waste either — an excellent version for Linux was built from it, and it can be built for Mac as well.
Overall, that's about it. It's just a little fun project for our own community, without any grand plans.

----------------------------------------------------------------------------------------------------------------------

Приветствую маленьких любителей странной музыки. Сегодня я хотел бы немного написать о том, как получился компаньон, которого все еще можно скачать наГитхабе. Немного магии из-под капота всегда интересно

Думаю, многие, кто играл в ЮнЮн Синдром (а если еще не играли - срочно играйте) развлекал себя перетаскиванием одной из главной героинь по главному экрану, который, одновременно, и экран компьютера Кью. Поскольку все анимации в игре можно просто скачать для некоммерческого использования, то казалось что счастье близко - через кьюты такие виджеты для экрана делаются буквально через встроенный функционал в библиотеку... Но оказалось, что на самом деле оно далеко, ведь анимация движения рук и ног во время таскания по экрану - рэгдолл (то есть палки на шарнирах, которые подчиняются физике, а не заранее подготовленной анимации. Нарезанный персонаж просто надевается на эти палки - все что движется - отдельная текстурка), код которого, соответственно, недоступен. А когда код недоступен - его надо среверсинженерить. То бишь, написать код, который делает тоже самое.
Разрезать модельку из игры на составляющие не проблема. И шарниры с костями раскидать не проблема. Проблема - повторить движения. Тут пришлось призвать на помощь электронного болвана на Клоде, который очень хорошо и быстро смог вычислить все нужные коэффициенты. Конечно, можно и руками, получилось бы тоже самое, но не за час ,а за пару дней. Дальше все просто - кьюты, событие по клику, окно настроек. Переносом на C# занимался тоже электронный болван, поскольку шарпы я не знаю, а на Питоне приходится таскать с собой слишком много мусора, раздувая файл с 4 мб до 100+ мб. Питон версия тоже в мусор не пошла - из нее собралась отличная версия для Линукса, и можно собрать под Мак.
В целом вот и все. Это просто небольшая приколюха для своих, без больших планов



Post score 0
Rating +1 (1 for, 0 against)
« All posts of steam_raccoon
◆ COMMENTS

No comments yet.

To comment: log in or sign up.