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

[Feature] Port ifmatch subtoken for tilefromtexture and voxel tokens from EDuke32 #1097

Open
fgsfds opened this issue Jun 5, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@fgsfds
Copy link

fgsfds commented Jun 5, 2024

Raze version

No response

Which game are you running with Raze?

Duke Nukem 3D

What Operating System are you using?

Windows 11

If Other OS, please describe

No response

Is your feature request related to a problem? Please describe.


Describe the solution you'd like

Implement ifmatch subtoken for tilefromtexture and voxel tokens.

https://voidpoint.io/terminx/eduke32/-/commit/30deaa5201b023838a950abbeddc3e0a2833b581

Describe alternatives you've considered

No response

Add any other context or screenshots about the feature request here.

No response

@fgsfds fgsfds added the enhancement New feature or request label Jun 5, 2024
@sinisterseed sinisterseed changed the title [Feature] Port ifmatch subtoken for voxel token from EDuke32 [Feature] Port ifmatch subtoken for voxel token from EDuke32 Aug 9, 2024
@coelckers
Copy link
Member

What does this do? Is there any documentation about this feature?

@fgsfds fgsfds changed the title [Feature] Port ifmatch subtoken for voxel token from EDuke32 [Feature] Port ifmatch subtoken for tilefromtexture and voxel tokens from EDuke32 Oct 10, 2024
@fgsfds
Copy link
Author

fgsfds commented Oct 10, 2024

What does this do? Is there any documentation about this feature?
I don't think so. It's similar to tilefromtexture's ifcrc token, but also includes tile's dimensions and works with voxels.

Examples:
voxel "1975.kvx" { ifmatch { size 226 136 crc32 0x6F84404B } tile0 1975 tile1 1979 scale .94 }
tilefromtexture 1975 { file "4090.png" xoffset 30 yoffset 107 ifmatch { size 226 136 crc32 0x6F84404B } }

These entries will only work if the tile 1975 matches 226x136 dimensions and have crc = 0x6F84404B.

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

No branches or pull requests

2 participants