jfduke3d icon indicating copy to clipboard operation
jfduke3d copied to clipboard

Widescreen weapon graphics for JFDuke3D?

Open vanfanel opened this issue 1 year ago • 8 comments

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?

vanfanel avatar Feb 06 '24 01:02 vanfanel

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.

jonof avatar Feb 06 '24 03:02 jonof

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

vanfanel avatar Feb 06 '24 13:02 vanfanel

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

jonof avatar Feb 07 '24 00:02 jonof

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?

vanfanel avatar Feb 09 '24 13:02 vanfanel

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

It doesn't.

jonof avatar Feb 10 '24 01:02 jonof

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 avatar Feb 10 '24 02:02 jonof

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

jonof avatar Feb 11 '24 06:02 jonof