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

Compiling Heretic/Hexen/Strife? #2

Open
kalledausb opened this issue Aug 15, 2021 · 8 comments
Open

Compiling Heretic/Hexen/Strife? #2

kalledausb opened this issue Aug 15, 2021 · 8 comments

Comments

@kalledausb
Copy link

Hello,
I was able to compile crispy-doom with the given instructions, however it would be great being able to compile Heretic etc. as well. I tried with some Makefile changes but not successful (linking problems).

Have You successfully compiled these already? Any hint how to achieve that?

Many thanks for help!

@kalledausb
Copy link
Author

Small update: Got it compiled by adding the "#ifndef WIIU"/#endif // !WIIU in D_Endoom() function of d_main.c as I found the same in Dooms d_main.c
Unfortunately when running it on the Wii U I can only select the wad, then have a black screen.
I assume more stuff specific for the Wii U is needed which was done for the Doom part, right?

@thearst3rd
Copy link
Owner

Apologies I didn't see this until now - apparently I wasn't watching my own repo :)

Glad you were able to get it to compile. Yes, I needed to do more specific stuff to prevent a black screen from showing - particularly I needed to make sure that any autoloading of directories of music packs is disabled. Figuring out why it doesn't work is a TODO, but for now I just ifdef'd it out.

I also had to do a bunch of stuff to get controller inputs to be readable+using the analog values of the analog sticks. I think (?) most of that was in the doom directory, so it will need to be done again for the other games.

Feel free to ask questions, as well as opening a draft PR with your Heretic compilation improvements. I can try to bring over some of the needed code to get the game to boot.

Thanks!

@kalledausb
Copy link
Author

I have Heretic/Hexen/Strife compiling now as a 1st step. What do You think, better to explain how to modify the Makefile or add them as different targets?

@thearst3rd
Copy link
Owner

Feel free to make a pull request. Right now, I was thinking it'd be easiest to make 4 makefiles, one for each game. So, something like Makefile.doom.wiiu, Makefile.heretic.wiiu, etc. But if you can make them all in a single makefile, that would probably be cleaner. Let me know what you already have

@kalledausb
Copy link
Author

Added my PR, it's my 1st ever, apologies for any mistakes :)

I still like the all in one Makefile but I need to spend more time since I am new to editing multi-target Makefiles, so for now it's 4.

Let me know what You think please and what needs to be changed or extended.

@thearst3rd
Copy link
Owner

Copying stuff I mentioned in the last comment of #3:

I've made some progress and actually got Heretic booting! It's got graphical glitches and no controller support (other than the + and - buttons somehow?) but it's a great start, I should be getting it up to shape pretty soon I hope.

@thearst3rd
Copy link
Owner

More progress - Looking at the code, I felt like controller support should have been working, and I realized, it was! But, Chocolate Heretic (and Crispy Heretic by extension) does not support using the joystick in the menu. The code that takes joystick analog stick movement/button presses and converts them into key presses simply isn't there.

So, once I figured that out, I started the process of porting it. Right now, I only have the "up" and "down" analog stick inputs implemented, but those work!! I would have done more, but I should have gone to sleep a few hours ago so I'm going to do that now :)

@thearst3rd
Copy link
Owner

I've implemented just enough menu functionality that you can get in game now! The analog controls aren't supported yet and navigating the menus is super limited and buggy, and the graphical glitches are still there, but you can actually load up the game and play it now!!

With all that said though - I am hesitant to actually go much further with the controls like this. I speculate (I haven't checked yet) that the rest of the games are also not going to have joystick controls implemented in the menu. If that is the case, I think it would be more productive to base this against Chocolate Heretic/Hexen/Strife and add proper joystick support there too. After all, the code I'm writing right now isn't really Wii U specific (some of it isn't at least). If we can get it in Chocolate, then it will be merged into Crispy as well and that will be incorporated into the Wii U port - so we might as well do it there :)

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

Successfully merging a pull request may close this issue.

2 participants