Skip to content
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

highlighting items problem #59

Closed
nsklaus opened this issue Jul 19, 2020 · 26 comments
Closed

highlighting items problem #59

nsklaus opened this issue Jul 19, 2020 · 26 comments
Assignees

Comments

@nsklaus
Copy link

nsklaus commented Jul 19, 2020

Describe the bug
highlighting items doesn't work for me.
i tried to modify ddraw.ini to change ToggleItemHighlightsKey=42 (left shift) to 54 (right shift)
but they did not work. neither 42 nor 54

To Reproduce
press shift key: nothing happens

Expected behavior
pressing shift key should highlight items

Actual behavior
no highlight

Savegame
rats cave in klamath
SLOT04.zip

Screenshots
no highlight, so nothing to show

Environment

  • RPU version: rpu_16
  • other mods are installed : unofficialFO2patch.exe from killap's site (i do not know if this was needed or not)
    running with wine 5.12, on arch based linux.

everything else seems to work, including high resolutions but i cannot figure how to have item highlight working.

@burner1024
Copy link
Member

burner1024 commented Jul 19, 2020

unofficialFO2patch.exe from killap's site (i do not know if this was needed or not)

It's not.

Put this into data/scripts. And this into main dir.

burner1024 added a commit that referenced this issue Jul 19, 2020
@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

@burner1024
thanks for the quick reply. unfortunately it did not work.
i can confirm both files you linked were missing from my installation, i added them where you told me.
i can confirm shift key works for running. i also see sfall option screen for selecting resolution.
as a quick test i dropped a pair of boots i had in my inventory, in front of me and i pressed shift, still no highlight.
maybe something else is still missing ?

my install went like this:
install fallout
install unofficialFO2patch.exe (i know now it wasn't necessary. tested game started fine)
install original killap restoration patch (game failled to run, complaining about wmareainit or something)
re-installed unofficialFO2patch (game could be started again)
installed RP_V16 (game started correctly this time with your restoration project instead of killap's)

Screenshot_2020-07-19_15-02-50
Screenshot_2020-07-19_15-04-29

@burner1024
Copy link
Member

how do you run F2? full cmd.

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

from fallout2 directory, just with: "wine ./fallout2HR.exe", like this:

kmbp: Fallout 2
$ wine ./fallout2HR.exe 
002c:fixme:winediag:__wine_start_process Wine Staging 5.12 is a testing version containing experimental patches.
002c:fixme:winediag:__wine_start_process Please mention your exact version when filing bug reports on winehq.org.
0024:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION
0024:err:vulkan:wine_vk_init Failed to load vulkan library
00b4:fixme:d3d:state_linepattern_w Setting line patterns is not supported in OpenGL core contexts.
kmbp: Fallout 2
$ 

this snippet was full run: start game, load save, test shift (for highlight, which did not work), and then quit game.

@burner1024
Copy link
Member

you need to pass dll overrides: WINEDLLOVERRIDES='ddraw.dll=n,b'

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

when i do that, there is some things happening:
i see sfall being mentionned on fallout2 title screen, bottom right corner, whereas before it wasn't.
but then the game has become unbearingly slow, just moving the pointer is a struggle.
for testing purposes when i finally reach load game screen, the game crash upon entering the world.
i attach error output, and screenshot of fallout title screen.
if you think i should delete my wine prefix and test a clean install with just fallout2 and rp_v16, or try with another wine version, just tell me.

sfall being mentionned
sfall

error upon entering world
error

full error output:
error.txt

@burner1024
Copy link
Member

Current sfall is 4.2.x, 3.3 is what RP 2.3.3 used. Yes, you better start anew.

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

while waiting for your reply i went ahead and deleted my wine prefix (rm -fr .wine/)
and installed fallout2 and rp_v16 only.
when this was finished i copied over the files you linked earlier:
sfall-mods.ini in fallout2 root directory
gl-highlighting.int in data/Scripts (i had to create the Scripts directory it didn't exists)
finally i copied my saves over, and started fallout2. game started fine, but i still don't have highlight upon pressing shift.
and there is no mention of sfall on fallout title screen. that is, unless i pass dll override ddraw.dll=n,b. but if i do game is slowing to a crawl. and yes only then sfall gets mentioned, but it still say version 3.2
(please note i did not try to install sfall myself, what is there comes only from rp_v16)

here is full log (both install of fallout2 and rp_v16 and running/quiting the game, with and without the dll override)
wine-fallout2.txt

@burner1024
Copy link
Member

  1. You always need dll override. It's a prerequisite for running RPU.
  2. Slowing down is another issue, let's not clutter. One issue per problem. However, I think you can try disabling CSMT: winetricks csmt=off.
  3. Please attach your ddraw.dll and ddraw.ini. And show full listing of F2 dir. (just ls).

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

doing winetricks csmt=off made the game to start normaly (no more speed issue, pointer moving normally again and all).
i made the dll override as you said it was necessary, and i could see mention of sfall 3.2 in bottom corner.
when i loaded the game from my save, it did not crash immediately, but the screen stayed black. all i could see was the hud area on bottom of screen. then i pressed some key and it crashed.
i tried to create a new game, it worked until i was in front of the temple, and when i pressed a key it crashed too.

i include log, dir listing and dll as per requested. i also join some system info, just in case it can be relevant.

ddraw.zip
wine-fallout2-1.txt
system.txt

@burner1024
Copy link
Member

Apparently you still have old sfall (which is what causing the crash now). Not sure why that happens.
I would try using a 32 bit wine prefix. (to create, WINEARCH=win32 wineboot, then proceed with installation normally).

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

for sfall, all i can say is that i only installed fallout2 from gog and rp_v16.
i'm trying to create the 32bit wine prefix now. thanks for the directions. full log is coming in a few minutes.
there it is, all default install, i just click next, next, finish ...etc.. default character, new game. i see mentionned sfall 3.2 on title screen, and game start fine, and crash when i press any key as earlier.
wine-fallout2-2.txt
i also did a full system update, that replaced wine 5.12 with wine 5.13. i also tried to run wine with emulated desktop at 800x600.
but the results are the same:
wine-fallout2-3.txt

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

ok, i went ahead and downloaded sfall 4.6.2 from https://sourceforge.net/projects/sfall/files/sfall/sfall_4.2.6.7z/download
i extracted it, and copied all its content into my fallout2 root directory (overwriting previous files).
and now on title screen is say: sfall 4.6.2.
game starts fine, saves load fine, and i have items highlighting working.
no speed problem, everything seems fine, i go play a few minutes more to see how it behave.
is it possible files in rp_v16 contains outdated version of sfall ?
i noticed when overwriting previous files that there was sizes differences.

@burner1024
Copy link
Member

It doesn't. You can extract it yourself to verify.

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

maybe i don't have the correct version of rp_v16 ?
mine is like this:

$ ls -al  ~/Downloads/game_tempo/fallout/rpu_v16.exe 
-rw-r--r-- 1 klaus klaus 711034938 14 juil. 16:59 /home/klaus/Downloads/game_tempo/fallout/rpu_v16.exe

as you saw through the logs, i only installed fallout2 itself and rp_v16. (i even made new wine prefix)
so i can't see where else it could have come from?
maybe the exe version and zip version don't have the same content ?
i'm always open to the idea i might have done something wrong myself, i mean i think it's healthy to leave that possibility opened.
but there, with only two exe files install, it's difficult to find where else that sfall 3.2 files could have come from.
maybe i got a previous RP exe and mistakenly named it v16 ? considering the file's date i think this is not the case but,
maybe it would be interesting to have RP tell its version in the logs ?

i only see:
00bc:fixme:graphics:ShutdownBlockReasonCreate (0x1008c, L"Installing Fallout 2 Restoration Project."): stub
if it could tell version we'd know for sure this version is correct. either in the logs, or in the files it installed, somewhere is there a version number to be seen ?

@burner1024
Copy link
Member

3.2 comes with GoG installer. But for some reason, on your machine, RPU installer doesn't overwrite it with newer version like it should (and like it does on mine). I thought it might've to do with x32/x64 thing, but now I tried a 64 bit prefix, and it still does overwrite the dll correctly.

There's only one v16. Like I said, you can unpack it yourself with, say, innounp and check the files inside.

What you can try (probably in a separate wine prefix, to avoid touching your game which is now working fine) is to set up everything anew, but with logging enabled. Maybe that'll shed some light.

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

ah that explains it.. at least partialy. those sfall 3.2 couldn't have come from nowhere. now i know it comes from gog package..ok.

well, my distro is a bit exotic, it's a non-systemd flavor of arch linux. maybe there's bits of wine left relying on some systemd process and since it's not there at all, that part gets dropped ? i have no idea, just blind guessing here.
in any cases, many thanks for the explanations and the help getting fallout2 to behave on my system!

if you want to test things more, to find out root cause of this, and you think i might be of some use, please let me know.
meanwhile i have a radioactive wasteland to .. clean and pacify :)

@burner1024
Copy link
Member

maybe there's bits of wine left relying on some systemd process and since it's not there at all, that part gets dropped

I don't know. The next step would be to provide innosetup log. How to get it, I outlined in the previous message.

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

first i need to install innosetup-6.0.5.exe and then run:

wine gog-fallout2-setup.exe /log="bleh1.txt"
wine rp_v16.exe /log="bleh2.txt" 

in a new wine prefix,
is that what you're saying ? the syntax i put above looks alright ?

@burner1024
Copy link
Member

burner1024 commented Jul 19, 2020

You don't need to install innosetup.
Just rpu log is enough (make sure to provide the prefix)

WINEPREFIX=/home/user/.winetest wine gog-fallout2-setup.exe
WINEPREFIX=/home/user/.winetest wine rp_v16.exe /log="bleh2.txt" 

burner1024 added a commit to BGforgeNet/Fallout2_Unofficial_Patch that referenced this issue Jul 19, 2020
@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

alright, i've created a new wine prefix with WINEARCH=win32 wineboot
i installed gog-fallout2, and then wine rp_v16.exe /log="bleh2.txt"
i didn't try to run it, because we did that a lot earlier i thought it wasn't necessary.
i didn't copy over the files the sfall-mods.ini and the gl-highlighting.int either.
please let me now if you need thoses steps too.

here is full log:
wine-fallout2-4.txt

and here's rp_v16 log:
bleh2.txt

@burner1024
Copy link
Member

Hmm, it says

2020-07-19 21:40:37.468   -- File entry --
2020-07-19 21:40:37.470   Dest filename: C:\Games\Fallout2\ddraw.dll
2020-07-19 21:40:37.470   Time stamp of our file: 2020-05-20 23:06:36.000
2020-07-19 21:40:37.470   Installing the file.
2020-07-19 21:40:37.593   Successfully installed the file.
2020-07-19 21:40:37.593   -- File entry --
2020-07-19 21:40:37.595   Dest filename: C:\Games\Fallout2\ddraw.ini
2020-07-19 21:40:37.595   Time stamp of our file: 2020-07-02 17:11:22.000
2020-07-19 21:40:37.595   Installing the file.
2020-07-19 21:40:37.603   Successfully installed the file.

Can you verify whether they are old or new versions?

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

the ones i get after plain install of both gog-fallout2 and rpu_v16.exe:

$ ll ddraw.dll ddraw.ini 
-rwxrwxrwx 1 klaus klaus 384K 25 août   2015 ddraw.dll
-rwxrwxrwx 1 klaus klaus  16K 25 août   2015 ddraw.ini

the ones i get after manually install sfall 4.6.2 on top of gog-fallout2 + rpu_v16.exe:

$ ll ddraw.dll ddraw.ini 
-rw-r--r-- 1 klaus klaus 668K  3 juil. 15:38 ddraw.dll
-rw-r--r-- 1 klaus klaus  38K 19 juil. 19:00 ddraw.ini

@burner1024
Copy link
Member

Well, I'm at a loss. The log reports installing them correctly. Inno even has ignoreversion and overwritereadonly flags set, which enables it to always overwrite the files. If you get any new idea or info, feel free to comment and I'll reopen. But for now, I don't know what else can be done or checked.

@nsklaus
Copy link
Author

nsklaus commented Jul 19, 2020

i can make a video of the whole install if you need.

@burner1024
Copy link
Member

Unfortunately, that won't help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants