-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HRP in Sfall #43
Comments
На сегодня 200 функций приобрели имена в дизассемблированном коде HRP, осталось разобрать 800. Все же наверное это будет новый проект объеденный одном решении с sfall. |
It will be like recreate a new HRP from the disassembled code, except the new one depends on sfall instead of working standalone? |
Not from disassembled code, I just study what is done and how to repeat it. |
Don't know if useful, but just in case - noticed some offsets in mapper's HRP: res_m2.ini.txt |
На данный момент осталось реализовать опции
|
Currently the main menu button text seems misaligned with the background. |
show an example. |
Here's the comparison. I use graphics mode 5 and 1280x720 for |
Ah, I got it. In f2_res.ini HRP enables its EDIT: Oh, |
Show the settings |
Well, it's due to I enabled [MAINMENU]
MAIN_MENU_SIZE=1
USE_HIRES_IMAGES=1
; With default 0 it's OK, enabling both USE_HIRES_IMAGES and this will cause the shift
SCALE_BUTTONS_AND_TEXT_MENU=1
MENU_BG_OFFSET_X=-14
MENU_BG_OFFSET_Y=-4 |
the last time I rewrote the main menu code, this option worked correctly. apparently something broke. |
I think it's time to merge the HRP integration branch with the main one. Only I forgot how to do it correctly :) |
Does the current DD7 mode still run slower than Mash's implementation? I didn't notice much difference on my Win7, but Lexx said the game run slow in DD7 with built-in HRP. |
On my W7 system, the built-in works faster in DX7/9 than mash modes since there is no some strange extra code/shit from mash. |
Let him show screenshots of fps hrp and sfall from the dev version. |
Isn't the FPS counter only available for DX9 mode? |
Oh, yeah. The implementation of DX7 in the built-in sfall and mash is almost the same. except 8-bit mode. |
Lexx said the "slower" isn't about the game itself (fps) but the speed of how fast interface opens and fades, etc. For example, opening the inventory takes like a second with DD7 mode on his Win10 system. |
Using both changes seems improving DD7 performance, at least the game only stutters on the first open for any game interfaces (inventory, pipboy, etc.) now. |
Just a thought. Maybe we could implement BARTER_PC_INV_DROP_FIX as a default UI fix in sfall, like other tweaks/fixes in |
MAIN_MENU_SIZE - fixed. |
BARTER_PC_INV_DROP_FIX |
anyone tested this on wine yet? |
Нет. |
ok, let me know when there's a build available for testing |
There are already auto builds in Git Actions. Check the artifacts in them. |
dev branch https://github.com/phobos2077/sfall ? |
Yes, both master and develop have auto builds. |
Should I delete all HRP data for this? |
No, by default sfall will offer to disable Mash's HRP in game exe for you. And the built-in HRP still requires f2_res.ini/dat files. |
OK, I disabled per suggestion:
|
Проверяй на моей отладочной версии с PDB файлом. |
Does the crash still happen if you set HiResMode=0 in [Main]? Just want to make sure it's related to built-in HRP. |
It doesn't.
|
Что? На русском пиши. |
У вас там в wine похоже отсутствует компилятор шейдеров, типа вот это: https://docs.microsoft.com/ru-ru/windows/win32/direct3dtools/fxc |
А он там должен быть? Старый hrp и sfall вроде же работали на вайне без бубна |
В sfall dx9 ничего не менялось, я уже слышал где-то что lunix не имеет компилятора для HLSL шейдеров. (вроде какую-то фигную надо ставить). |
I tested the build in my Ubuntu 18.04 VM, and both DD7 and DX9 modes work normally.
It's the same for Windows. If for some reason d3dcompiler_43.dll (HLSL compilation functions) is missing, the game will crash/hang at start. |
Before today's commit, the game would just crash/hang at start if you're using sfall DX9 but don't have d3dcompiler_xx.dll installed. I've already updated the DLL requirement in the readme of 4.3.2, as the result from my earlier post in issue 411. As for the warning message, it's expected for the current build. I'll include pre-compiled HLSL headers later so one shouldn't need d3dcompiler_xx.dll anymore (at least it works on Windows). |
Да вроде не появляются. Какое имя должно быть у файла? |
а не попутал, в HRP тоже такое окошко с сообщением выскакивает. |
I've already added the precompiled HLSL shader files to phobos build as well, now the new binary should work without d3dcompiler_xx.dll. |
Weird, the colors are fine on my Ubuntu. I tried sfall DX9 mode 4-6 and DD7 fullscreen/windowed. |
I tried again on the latest develop, colors seem to be normal now. |
Нужно ли внутриигровое меню для настройки HRP? |
Personally I don't think it's necessary. In the past it was a source of minor issues because some mods/repacks set sfall DX9 as the default, and people asked why they cannot change the graphics mode in the in-game menu (HRP disables it due to sfall DX9). |
Fuck the ingame menu. It's too stiff and tedious to edit in case there ever will be some new features. In worst case I'd be fine with a config.exe outside of the game, but generally I really don't mind just editing an .ini file .. |
Предлагаю вообще вырезать все настройки из игры или оставить там только ванильные. Предлагаю избавиться от cfg файла и вынести все основные настройки в ddraw.ini, а все настройки влияющие на механику игры в sfall.ini. еще предлагаю добавить префиксы из Венгерской нотации к "ключам" в ini файлах |
@egornovivan |
В связи с недоступностью исходных кодов HRP, и его частичного устаревания, необходимо полностью перенести функционал HRP (или его наиболее важные компоненты) в отдельный модуль в sfall, чтобы весь контроль над движком осуществлялся из одного контролируемого проекта.
При этом основная библиотека HRP может использоваться как доступ к некоторым особо большим функциям (как к экспортируемым).
The text was updated successfully, but these errors were encountered: