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

Widescreen weapon graphics for JFDuke3D? #19

Open
vanfanel opened this issue Feb 6, 2024 · 7 comments
Open

Widescreen weapon graphics for JFDuke3D? #19

vanfanel opened this issue Feb 6, 2024 · 7 comments

Comments

@vanfanel
Copy link

vanfanel commented Feb 6, 2024

Hi there @jonof

Do you happen to know what widescreen graphics pack is compatible with JFduke3D?

I tried loading this one:
https://github.com/NightFright2k19/duke3d_widefix

with this command that usually works for loading music packs in .zip format:

duke3d -gduke3d_widefix.zip

...but it doesn't seem to work with JFDuke3D. Any ideas?

@jonof
Copy link
Owner

jonof commented Feb 6, 2024

It's very likely that modern packs lack native support for JFDuke since Eduke32 has moved on some way from where I left things. It may be possible to adapt packs by editing the .def files to remove things incompatible with JFDuke.

If the widescreen fixes work like I think they do, it'll have no effect with JFDuke because there's no support for defining tiles loaded from individual files, which Eduke32 supports.

@vanfanel
Copy link
Author

vanfanel commented Feb 6, 2024

@jonof So a new pack specifically tailored for JFDuke3D is needed, right?

@jonof
Copy link
Owner

jonof commented Feb 7, 2024

A version at least that would patch the TILESxxx.ART files with the updated artwork.

@vanfanel
Copy link
Author

vanfanel commented Feb 9, 2024

My guess then is that https://github.com/NightFright2k19/duke3d_widefix should work (unless I am missing some details).

As you can see on it's repository, it includes tiles097.art, tiles098.art and tiles099.art.

Also, duke3d.def (is that expected to be the name of the main .def file?) simply does:

include duke3d_widefix.def

and in turn, duke3d_widefix.def does:

globalgameflags 1

include scripts/widescreen.def

..where finally scripts/widescreen.def does things like this:


tilefromtexture 2325 { file "tiles/widescreen/2325.png" xoff 24 ifcrc 0xC28B6D5C }
tilefromtexture 2326 { file "tiles/widescreen/2326.png" xoff 16 ifcrc 0xABA45CC7 }

Then, some questions: does jfduke3d support tilefromtexture? Does it support .png textures being loaded like that?

@jonof
Copy link
Owner

jonof commented Feb 10, 2024

does jfduke3d support tilefromtexture? Does it support .png textures being loaded like that?

It doesn't.

@jonof
Copy link
Owner

jonof commented Feb 10, 2024

To illustrate, it is possible to patch in the art updates for weapons using my arttool program included in JFBuild's repository, but it's a terrific nuisance. First the PNG file from NightFright2k19's repo needs to have the Duke palette correctly set and be saved as PCX format. Then the new tile must be inserted to the appropriate tilesxxx.art file with the correct tile origin, e.g. arttool addtile -x 141 -y 189 2544 2544.pcx
After all that, you will have widescreen-adjusted weapons as expected:
duke0002
Question is, how worth it is it?

@jonof
Copy link
Owner

jonof commented Feb 11, 2024

(Apparently worth it enough to learn that I've got faults in the tile replacement function of arttool 🤦‍♂️)

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