dhewm / dhewm3

dhewm 3 main repository
https://dhewm3.org/
GNU General Public License v3.0
1.81k stars 348 forks source link

Several issues #211

Closed ghost closed 5 years ago

ghost commented 5 years ago

Hi there,

Nice to see a new version of dhewm3 coming up. I'm putting the release candidates through their paces with this mod project I'm working on, which should see a first release soon.

I'm running into what seem to be hardcoded restrictions residing in the engine, though. I'm currently adding weapons from other idTech4 games to my mod, but Doom 3 only allows up to 13 weapons definitions (0-12), since _impulse13 is reserved for reloading.

Is there a way to get past that limit?

revility commented 5 years ago

You could check the denton mod source as I'm sure the restriction was increased in it. I want to say 32? I ended up with 20-23 weapons for Rivensin which used denton mod as a base.

ghost commented 5 years ago

Okay, I'll take a peek.

Does it increase available ammo types as well? There's a hard limit on 16 different types, there - why not have as many as we'd like?

Another legacy issue is the fact that 'shakes' won't work with .ogg files in soundshaders. Shakes use the waveform to create a screen shaking effect, but it will only work with .wav files. Perhaps this was a restriction in the .ogg library all the way back in 2004? Interestingly Quake4 appears to have added a bunch of commands that work in sound shaders, among them one to define shakes manually. So how about lifting that restriction? I hate having to mix .wav and .ogg files together.

Another limit I keep getting frustrated by is the lack of true 16:9 GUI support. I know implementing this will affect in-game things such as the effect you see when hit, but this effect appears to be hardcoded in the gamecode - which should be easy enough to adapt.

Speaking of GUIs, there appear to be a lot of little bugs there as well. It's fairly easy to trigger unpredictable behavior in many ways, and currently I have to code around the issue.

revility commented 5 years ago

I never tinkered with added that many ammo types. Most of the stuff I’ve done uses shared. Maybe it’s a memory thing?

Nor have I ever looked into adding shakes, only removing.
There’s more support for 16:9 guis in the latest dhewm3 rc. Rivensin has multiple ones for different aspect ratios if your looking for an example. It uses 2 kinds for the cursor & hud. Minimum work was needed converting the custom hud gui from 4:3 to 16:9

ghost commented 5 years ago

By the way, this is why I asked the first question > http://idtechforums.fuzzylogicinc.com/index.php?topic=681.0

ghost commented 5 years ago

In regards to the ammo limit, I have no idea. It'd be great if the limit was removed. Even with some weapons sharing ammo (all the shotguns use the same shells, for example), it's still not enough for what I have in mind.

DanielGibson commented 5 years ago

I don't see changing this in the near future (and maybe it's possible via script after all)