Loobinex / keeperfx-unofficial

KeeperFX - Unofficial release
60 stars 7 forks source link

instaling FX via lutris #215

Closed C3x64 closed 3 years ago

C3x64 commented 3 years ago

Hai, I'm not tech savy and i can't find tutorial anywhere or any hint.

when i click "KeeperFX Unofficial 0.4.7 version last published 7 months, 4 weeks ago , last edit made 2 months ago" on lutris page, and try to install second patch, installation asks me about choosing gog installer? But I don't have any gog installer, I have no idea what it means by that, I searched whole system for file named gog installer and I am clueless what to do. I clicked every file in dungeon keeper gold folder but installation says it failed, and I don't use gog cause I log in via lutris?

I've been trying to do this since 4 days now and I think I might be too dumb to understand what's going on, sorry to bother.

Loobinex commented 3 years ago

No problem. First of all, we're no longer unofficial, and we continued on the official project, an 0.4.8 is released already. https://keeperklan.com/downloads.php?do=file&id=142 https://lubiki.keeperklan.com/html/dk_keeperfx_dwnld.php

There are full installation instructions here: https://github.com/dkfans/keeperfx/wiki

Simply put, to play KeeperFX, you need to own a version of Dungeon Keeper. When you extract the KeeperFX archive and run the launcher, you press Install and have to point to either the Keeper folder of your Dungeon Keeper CD, the location where you installed your GOG version of Dungeon Keeper, or the data folder where you installed your EA Origin version of Dungeon Keeper.

If you need more help, feel free to ask on the Keeperklan forums, or on the Keeperklan discord: https://keeperklan.com/forums/52-KeeperFX https://discord.gg/zKTjfDh

C3x64 commented 3 years ago

oh, but it doesn't let me point to original folder with my game, it asks me to point to gog installer, process is automatic so idk what it does in background, but it downloads, unpacks and do all sorts of things, but it asks me for gog installer, and I have no idea what this is.

Screenshot from 2020-12-20 23-41-33

C3x64 commented 3 years ago

Oh i forgot to mention I am using linux mint 19.3 cinnamon , and I run my gog games through api layer of compatibility lutris that's based on wine. I downloaded game installer from gog but it gives error " I can't move /home/eve/.cache/lutris/installer/dungeon-keeper/DATA, it does not exist" when i point installation file of a game.

Loobinex commented 3 years ago

I checked the lutris script, and submitted a change there to update it. This particular package is just that, it installs for you both the GOG version of Dungeon Keeper, AND KeeperFX on top. This is gog: https://www.gog.com/

If you don't own dungeon keeper there, you're out of luck. Or you can buy it. Through their website you can log in and download the Dungeon Keeper gold package. That's what this lutris script is looking for.

EDIT: Through actually reading what you road, I've gleaned that you do in fact own the GOG copy of Dungeon Keeper. You already have it installed, but this script presumes you don't and wants to install it for you.

C3x64 commented 3 years ago

Can I fix it? or am I way over my head here

Loobinex commented 3 years ago

I don't have linux. But I think the easiest thing to do is to simply download the installer again from the gog website. Then you've got something to point to.

C3x64 commented 3 years ago

Okay so you helped, I deleted whole file folder with legit dungeon copy, and got myself some cracked version of dungeon keeper , and pointed installation to that installer, and it worked , but, it damaged my original installation so i couldn't launch it and needed to delete ~/.local/share/lutris/pga.db file and reinstall game again.

problem is with this pach game, my system breaks when i tab out of game(mouse clicking doesn't work and i need to navigate using keyboard), and it's very annoying, original one with out fx files can be tab out with out problems, Not sure where i can report this.

But I installed it :D

Loobinex commented 3 years ago

I don't run linux myself, but I do know there are people that get it to work without issues on wine. Above I posted a discord link where there's lots of people active, some of which do use wine and might give you some better pointers.

C3x64 commented 3 years ago

Oh it does work with out issues, just I can't tab out of game while I am playing it.

I think it's this one? It have big white letters [Unofficial] slaped on front loading screen. It works, just can't tab out with out causing hawock.

Loobinex commented 3 years ago

yes, this version is a bit older, but still works fine. You could try with the -altinput command line option, perhaps that fixes it. Otherwise, you could just save and exit instead of tabbing out, which is annoying for sure. Or install windows, that's pretty good for gaming.

C3x64 commented 3 years ago

Oh, game didn't worked on windows i originally wanted to run dungeon keeper on my win7 laptop, and it crashed, moment i opened game, and it was from gog galaxy launcher. I tried to solve it but failed, and one update latter bricked my system xD maybe I am very bad at computers but windows doesn't like me, I know enough to be dangerous to windows but not enough to fix it after, with linux fixing is way easier that's why i sicked to it.

Loobinex commented 3 years ago

KeeperFX runs natively on windows. Would have been the easiest route, but when you have something working now, feel free to stick with it.

C3x64 commented 3 years ago

But I couldn't even install fx when my main game refused to run :( cause dungeon keeper isn't native to windows, it's dos game, either that or i did something wrong , could be, but anyhow i wouldn't call that previous installation easier route oof.

hym but maybe you're right , maybe I should install fx packages like you do on windows, instead of relay on automated installations. I will try it latter with that newest thing you sent and see how it works.

Loobinex commented 3 years ago

The main game does not need to run for KeeperFX. KeeperFX just takes some files from it as proof of ownership.

C3x64 commented 3 years ago

Oh i didn't knew it wasn't dos.

I tried installing new version but it does not work, unofficial* version does, and old one(first one) does.(on linux, on windows only first fx works, no idea why)

When I click start game nothing happens with new version, I also tried launching it on win7 machine, it promptly opens cmd then closes and crashes. launcher itself says everything is fine so I am clueless, there's way to get crash output?

I through maybe it's win7 outdated libraries causing it so I tried downloading win10 iso so i can maybe use vm but my internet is too weak for microsoft download link, it takes 5 days to download and link expires after 24h , making it impossible to download for me.

maybe i need some liblaries I don't have on both machines? In order for game to run, in case of dos release i needed liopus0.1file something, and system downloaded it automatically.

Currently most stable version is dos version through lutris, rest is wacky but are way easier on eyes tho. I also forgot to thank you for your time and bothering to respond to n00b like me xd

Loobinex commented 3 years ago

Weird, because it's all the same there. It runs out of the box on both windows 7 and windows 10. On windows 7 try running keeperfx.exe directly, not the launcher, and see what happens.

I think beyond directx it does not need anything.

C3x64 commented 3 years ago

I clicked keeperfx.exe on linux and it kinda did nothing, there was indication something is happening but nothing came out of it, and win7 machine is out of order for now, it's installing updates 1 of 3 for over 12h now, i am not sure if i accidentally bricked it... would be second time i bricked windows machine.

But today i tried launching launcher and on linux it kinda started resizing my display resolution on and off, then it attempted to launch game, however it was black screen and haven't progress beyond that, and at very ending it gave me "Setting up game failed, This error in 'lbBullfrogMain" makes the program unable to continue, see keeperfx.log for details" howevere there's no keeperfx log? At least I can't find it.

And i found out possible problem with alt tabing on linux, apparently there are priorities that can be set manualy by user, to keep window always on top, or passive, or always under, somehow wine compatibility programs are launched always with "stay on top always" kinda thing, and that's why alt tabing it's hell, lutris and steam disables that and that's why i can alt tab from games that run via lutris, or steam, even if they are windows games, I haven't figured how to disable this "freature" on wine tho xd

C3x64 commented 3 years ago

I feel bad i can't get this nice mod to run on linux, since i noticed every windows game runs way better and smoother on linux via compatibility layers, (once you get it to run sometimes xD) I am not sure maybe it's hardware problem ? My laptop with win7 is like, 13yers old, maybe it's outdated? I have some virtualbox program installed and it needs iso file only so i can try using maybe win7 in there as test? Instead of that old laptop. will it even work for game testing like that?

Loobinex commented 3 years ago

The 'unable to set up game' can be several things when it sets up the game, a log message would really help there, because it gives the specific reason why it failed in the log. If you start the game, it will always write a keeperfx.log in the game folder, but if you have rights set up in a freaky way (like perhaps on linux?) it might try to write it to local storage instead. It would be best if the game simply has access rights to the game folder. On windows this is by default, but on linux you might need to set this up.

When the launcher works, directly running keeperfx.exe should always work as well.

Like I said, the issue could be anything, but if I had to guess you have the screen solutions configured wrong.

As for win7, the game should run with it no problem, on any version of it. Running it in a virtual machine would probably work too.

C3x64 commented 3 years ago

That's soo weird, It I'm pretty sure it does have access to folder, as it isn't even on root directory. Same error was in windows i was using through, so maybe, It's something i did and i am doing wrong? Either that or i am very lucky, where log file should be?

C3x64 commented 3 years ago

My aunt is visiting me today, she have win10 laptop, I will see if game works on her laptop by simply copy pasting files on it.

C3x64 commented 3 years ago

Wow okay, so it did launched this time, but it was soooo scuffed, my display got resized, on and off, display input was switched on and off, and it only showed loading screen with horned reaper on it and didn't progress any further, I think graphical driver used might be problem here, if it's direct play, I will try runing it maybe through steam and see if it works any better.

Also i found Log file yey, it was't showing as text form that's why i had problem finding it at first, i'm dumbdumb It's bit long but I will try copy pasting it in new message.

C3x64 commented 3 years ago
Dungeon Keeper FX ver 0.4.5.1213 (heavylog release)
LOG CREATED  @ 12:05:40  03-01-2021

Sync: LbMouseChangeMoveRatio: New ratio 256x256
Sync: CPU AuthenticAMD type 0 family 15 model 8 stepping 1 features 178bfbff
Sync: PhysicalMemory 32
Sync: Memory-demanding features enabled.
Sync: load_configuration: Starting
Sync: load_configuration: Processing Config file, 897 bytes
Sync: load_configuration: Config loaded
Sync: setup_screen_mode_zero: Setting up mode 28
Sync: LbScreenSetup: Mode 640x480x32 setup succeeded
Sync: LbScreenSetup: Done filling display properties struct
Sync: LbScreenSetup: Finished
Sync: Moon phase 0.2386
Sync: init_sound: Starting
Sync: LbScreenSetup: Mode 640x480x32 setup succeeded
Sync: LbScreenSetup: Done filling display properties struct
Sync: LbScreenSetup: Finished
Sync: play_smk_via_buffer: Starting
LbDataFree: freeing "*PALETTE"...done
LbDataFree: freeing "*SCRATCH"...done
Sync: initial_setup: Starting
Sync: LbMouseChangeMoveRatio: New ratio 128x128
Sync: clear_game: Starting
Sync: clear_game_for_summary: Starting
[...]
Sync: process_3d_sounds: Starting
Sync: process_sound_heap: Starting
Sync: frontend_input: Starting
Sync: get_gui_inputs: Starting
C3x64 commented 3 years ago

Screenshot from 2021-01-03 12-17-17 it just continues forever like that, file takes 671,5Kb of space, at end i forced it to quit cause pc was unusable at this point, caught in loop forever.

Loobinex commented 3 years ago

Yes, and I see you used a really old version (0.4.5) and launched the heavylog variant to boot. (which is really hard on pc and writes a large log).

Get 0.4.8: https://lubiki.keeperklan.com/html/dk_keeperfx_dwnld.php And follow these short instructions and you should be good: https://github.com/dkfans/keeperfx/wiki#installation-of-keeperfx

C3x64 commented 3 years ago

Oh.. I'm sorry , and thank you for link I will test this one now.

C3x64 commented 3 years ago

fx that refused to launch on win7 and linux did work on win10 but i needed to install direct play first and then game ran, except it was in very small resolution and was very glitchy, and kinda tear, making it unplayable, but i think this may be cause laptop is also pretty weak. I wonder if i find direct play equal on linux i might be able to play this fine. my win7 laptop is still updating, is it normal to update over 24h?

Loobinex commented 3 years ago

You can change the resolution with the launcher, and then press alt+R in game to switch between configured resolutions.

C3x64 commented 3 years ago

I did and then game crashed, and i couldn't launch it anymore.

Loobinex commented 3 years ago

so you configured it wrong. To something unsupported. What's your native resolution, and just zip your keeperfx.cfg and post it here, I'll configure it properly.

C3x64 commented 3 years ago

That is possible xD I need to find out what is supported, and why there are unsupported options available to begin with, so n00bs like me can broke stuff haha

rename 0 Older version does run tho, just music doesn't work , and it still has pretty low res, I will try mingling with that newest one but it's still downloading it, I will leave pc over night maybe it will finish by morning.

Loobinex commented 3 years ago

And when you say music does not work, did you follow the instructions on how to get the music? https://keeperklan.com/downloads.php?do=file&id=112

C3x64 commented 3 years ago

Oh... yeah i haven't read that properly, I have problem with interpreting written text, makes stuff hard on me, I think I know why I have many problems with fx mod, it uses direX thing? like not open gl or vulcan, this causes problems, and apparently I'm not the first one who have problems with mods direct play dependent on linux, so glad to know I am not that dumb after all, it's just harder to get it to work in general, while contained games runing through proton or lutris will transcript it automatically, i need to do it manually with any mods developed strictly for windows direx ><" at least that's what i've been told. And that new direct play thing also causes mod to not work on older windows copies like win7, i need to apparently install it manually there.

C3x64 commented 3 years ago

I installed game exactly as it was in instruction(newest version) and it does run fine actually, with 2 problems, I can't alt tab with out scuffing whole game up, and there's no sound, no music, no sounds, silence, so yey xD but It runs fine now besides that. I will try using it through steam maybe. tho it runs fine only through launcher, fxkeeper causes screen to glitch and game doesn't run through that, or maybe through lutris, i'm not sure what file from game to use as executable for those layers of compatibility.

C3x64 commented 3 years ago

OMG i'm so dumb.... sound was there just game was using my usb headphones instead as priority, everything works i'm so sorry xD game runs very smoothly and there isn't any issues with it, i am bit afraid of touching settings in launcher through, cause i have hand to scuff things up. Thank you for providing help, as you see i am pretty bad at this, it's weird i got it to run at all. my win7 laptop finally stoped updating, and i tried to launch fx installation there, and it didn't work, idk why, but, it works on my main pc and that's enough : )

Update: I can alt tab now, but resolution while doing so is , very small, but it get's restored quickly after leaving game. I added game to be run via lutris, that's why I can alt tab now with out problems.

C3x64 commented 3 years ago

Screenshot from 2021-01-04 12-58-09 Screenshot from 2021-01-04 12-57-24 I added that -nocd as instructed , and now music works as well, I'm just squeamish to mengle around with resolution.

Loobinex commented 3 years ago

The launcher changes your keeperfx.cfg. If you're scared, make a backup of that first, and if you mess up, restore the backup.

C3x64 commented 3 years ago

Oh thanks! I will do that.

C3x64 commented 3 years ago

is there way to edit options of resolution with out need of launcher?

Loobinex commented 3 years ago

you could edit the keeperfx.cfg with notepad or another text editor. The file is commented to explain how to do it, just be sure to read properly.

C3x64 commented 3 years ago

; Three frontend resolutions: failsafe, movies and menu resolution. ; Original DK resolutions were FRONTEND_RES=320x200x8 320x200x8 640x480x8 FRONTEND_RES=640x480x32 640x480x32 640x480x32

; List of in-game resolutions. ALT+R will switch between them. ; Original DK resolutions were INGAME_RES=320x200x8 640x400x8 INGAME_RES=640x480x32 1366x768x32 1920x1080x32

well i am stuck with this* cause seems like game is unstable on any other resolution, I have no idea what resolution i am rn, but alt + r doesn't do anything so far, still game looks infinetly better than dos one , i will try playing a bit and see how it performs on more heavier maps.

Loobinex commented 3 years ago

If you are in the menu, alt+r won't work. It works when actually in game, on a level.

If you don't know your resolution, either find out, or don't mess with the resolutions there in the file. The FRONTEND_RES needs to have exactly 3 resolutions specified. The first one is what it does if your INGAME_RES fails, the second is the one for the movies, and the third one is for the menu. My suggestion is to leave the first one as is (unless you have a really expensive 4k monitor that can't handle old stuff). The second and third ones can be changed into your native resolution.

For INGAME_RES, you can have between 1 and 5 resolutions defined there and the game will switch between them on ALT+R. If you switch to one your pc can't handle, it will display the failsafe resolution instead. I would put your native resolution here too. And if you like, you could add a windowed mode one, for example 1024x768w32 (notice the w for windowed). You can remove the ones that your pc can't support.

C3x64 commented 3 years ago

oh I see, thank you, I tried switching resolution in game but it didn't do anything, game just blinked for moment ,besides that nothing happens, so maybe it's cause converting from bigger resolution isn't enabled, idk I would need to ask somebody who knows a lot about how lutris work, but I am still very happy i manage to not screw up system and actually install my first mod ever manually :D

C3x64 commented 3 years ago

I did do off* moment tho, I ran that loging game info exe file instead of normal, and my disk started runing out of space , and at some point it throwed me out of game and there was big error that my disk space takes swap memory away or something, took me while to figure out what happen.

I should have sent this earlier but this is my neofetch, i hope this thread will be helpful to other people who also do linux gaming thini, game runs great , a lot better than dos one. no crashes or problems so far. Screenshot from 2020-12-13 22-31-38