The "How do I..." Thread

Archive of the old editing forum
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
User avatar
Enjay
 
 
Posts: 27036
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: The "How do I..." Thread

Post by Enjay »

Overacheiver wrote:Is that a bug or am I doing this wrong?
Hard to tell without seeing the full definition of the actor concerned.
Overacheiver
Posts: 12
Joined: Mon Feb 27, 2017 11:56 am

Re: The "How do I..." Thread

Post by Overacheiver »

Something simple like this:
Spoiler:
And changing the channel or sound doesn't have much effect on the problem.

A quick way to test this for me was to fire a pistol in MAP01, go into notarget, and listen to the three zombies in the hallway. One of them is just silent.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: The "How do I..." Thread

Post by Nevander »

Mav3r1ck wrote:
Gez wrote:There's no way of including a sound font in a PK3. You can specify in [wiki=https://zdoom.org/wiki/SNDINFO#mididevice]SNDINFO[/wiki] that the mididevice should be fluidsynth doomsnd.sf2 but that's all.
Hmm, I guess I can't do that then, oh well. Thanks for the info guys.

Another question. Would I be able to convert them to OGG format?
It would still be better (file size wise) to just include the soundfont and fluidsynth DLLs and give instructions (like I did in my own TC) on how to set it up. There's only one thing people have to do and that's add DOOMSND.SF2 to the end of fluid_patchset and they are already done.

If you chose to include OGGs of the music that would be 72 MB extra just for music (more than twice the size of my mod by itself!) versus only about 7 MB for the soundfont and required DLLs (I included both 32 and 64-bit since it will vary who is on what).
User avatar
Mav3r1ck
Posts: 262
Joined: Thu Jul 16, 2015 11:09 pm

Re: The "How do I..." Thread

Post by Mav3r1ck »

Nevander wrote:
Mav3r1ck wrote:
Gez wrote:There's no way of including a sound font in a PK3. You can specify in [wiki=https://zdoom.org/wiki/SNDINFO#mididevice]SNDINFO[/wiki] that the mididevice should be fluidsynth doomsnd.sf2 but that's all.
Hmm, I guess I can't do that then, oh well. Thanks for the info guys.

Another question. Would I be able to convert them to OGG format?
It would still be better (file size wise) to just include the soundfont and fluidsynth DLLs and give instructions (like I did in my own TC) on how to set it up. There's only one thing people have to do and that's add DOOMSND.SF2 to the end of fluid_patchset and they are already done.

If you chose to include OGGs of the music that would be 72 MB extra just for music (more than twice the size of my mod by itself!) versus only about 7 MB for the soundfont and required DLLs (I included both 32 and 64-bit since it will vary who is on what).
So it's either one or the other with the file size difference. Ok, that's fine. I was trying to find a way to get them all running in the PK3 instead of having to include separate wads and what not. :)

On a side note. Why does Doom 64 Ex's music sound so different than the original Doom 64's music? Are they actually remixes or what?
User avatar
wildweasel
Posts: 21706
Joined: Tue Jul 15, 2003 7:33 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): A lot of them
Graphics Processor: Not Listed
Contact:

Re: The "How do I..." Thread

Post by wildweasel »

Mav3r1ck wrote:On a side note. Why does Doom 64 Ex's music sound so different than the original Doom 64's music? Are they actually remixes or what?
It shouldn't be any different; the way it has to play back the music, though, might have some minor differences due to a lack of available source code. If there's an inconsistency, you may want to bring that up with Kaiser so it can be fixed in the actual playback engine.
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: The "How do I..." Thread

Post by Nevander »

How do you project a 3D floor infinitely via line horizon? I have a skybox which has a 3D floor projected inside of it with less opacity so that it's like translucent clouds and I want it to extend into infinity just like the skybox does with line horizon. The 3D floor inside stops at the edges of the actual size of the skybox instead of being projected infinitely like the rest of the skybox.
User avatar
Rachael
Posts: 13944
Joined: Tue Jan 13, 2004 1:31 pm
Preferred Pronouns: She/Her
Contact:

Re: The "How do I..." Thread

Post by Rachael »

Nevander wrote:How do you project a 3D floor infinitely via line horizon? I have a skybox which has a 3D floor projected inside of it with less opacity so that it's like translucent clouds and I want it to extend into infinity just like the skybox does with line horizon. The 3D floor inside stops at the edges of the actual size of the skybox instead of being projected infinitely like the rest of the skybox.
I think you're just going to have to fake it with portals - I don't think there's any option available to extend 3D floors to the horizon like that.
User avatar
isaacpop23
Posts: 143
Joined: Mon Apr 01, 2013 5:26 pm

Re: The "How do I..." Thread

Post by isaacpop23 »

(Really hope this isn't a thing where people quote the wiki after I look there and can't find it)

Two questions:

1) How would you remove a quality from the inherited actor? So if the inherited class has "Player.StartItem "X"" how would you drop that without copying the entire Actor code?

2) When editing existing weapons, how do you make it so when someone uses the "give all" command they don't get the new weapon and the old one? Again, without copying entire codebases just with whatever changes.
User avatar
DoomKrakken
Posts: 3489
Joined: Sun Oct 19, 2014 6:45 pm
Location: Plahnit Urff
Contact:

Re: The "How do I..." Thread

Post by DoomKrakken »

1) When you put a Player.StartItem property into a child actor, it drops ALL of the parent actor's Player.StartItem items. So you will need to copy over whatever items you want the child actor to have, if the child actor has at least one more/less item than the parent actor.

2)

Code: Select all

ACTOR NewActor: OldActor Replaces OldActor
{
...
} 
User avatar
Mav3r1ck
Posts: 262
Joined: Thu Jul 16, 2015 11:09 pm

Re: The "How do I..." Thread

Post by Mav3r1ck »

wildweasel wrote:
Mav3r1ck wrote:On a side note. Why does Doom 64 Ex's music sound so different than the original Doom 64's music? Are they actually remixes or what?
It shouldn't be any different; the way it has to play back the music, though, might have some minor differences due to a lack of available source code. If there's an inconsistency, you may want to bring that up with Kaiser so it can be fixed in the actual playback engine.
Actually, I think the music from the Doom 64 Ex's version sounds a bit more horrific and it goes so well. :)
Rachael wrote:
Nevander wrote:How do you project a 3D floor infinitely via line horizon? I have a skybox which has a 3D floor projected inside of it with less opacity so that it's like translucent clouds and I want it to extend into infinity just like the skybox does with line horizon. The 3D floor inside stops at the edges of the actual size of the skybox instead of being projected infinitely like the rest of the skybox.
I think you're just going to have to fake it with portals - I don't think there's any option available to extend 3D floors to the horizon like that.
I encountered this very problem when I first started out. Though, others probably discovered this long before I ever made my attempt.

Make the skybox like you usually do. With a top layer of clouds and a bottom layer of clouds using a translucent 3D floor, I used a translucency of 72. What I did was I adjusted the skybox room until it was a square around 3200 bits big. This is to make sure that the player or players don't see the edge of the line horizon. And because the bottom layer is translucent, it makes it even more difficult to see. By doing this, you won't be able to see the edge at all unless you use no clip and go to the skybox room. :)
User avatar
Enjay
 
 
Posts: 27036
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: The "How do I..." Thread

Post by Enjay »

Overacheiver wrote:A quick way to test this for me was to fire a pistol in MAP01, go into notarget, and listen to the three zombies in the hallway. One of them is just silent.
Sorry, I didn't see your reply. I've tried your code and the test you suggest and I get the same results (one zombie not making the sounds). I wonder if it might be something to do with $limit in SNDINFO? If that was the case though, I'd have thought that once the other zombies that made the noise were killed (and thereby stopped making their noise) the silent one might start being noisy. That doesn't seem to happen. However, I don't know what is going on "under the hood" as far as the sound code is concerned so that may be expected behaviour.
User avatar
CWolf
Posts: 354
Joined: Mon Oct 07, 2013 9:24 am
Location: Void Eternal

Re: The "How do I..." Thread

Post by CWolf »

Is there any possible way to achieve latest GZDoom graphic features on my old nVidia 7600 GS? I need a bit of brightmaps + glow for my idea how can I turn 'em on?
Overacheiver
Posts: 12
Joined: Mon Feb 27, 2017 11:56 am

Re: The "How do I..." Thread

Post by Overacheiver »

Enjay wrote: I wonder if it might be something to do with $limit in SNDINFO?
Looking through some other mods, changing $limit was how they handled it too. Thanks!
Nevander
Posts: 2254
Joined: Mon Jan 06, 2014 11:32 pm

Re: The "How do I..." Thread

Post by Nevander »

Mav3r1ck wrote:Make the skybox like you usually do. With a top layer of clouds and a bottom layer of clouds using a translucent 3D floor, I used a translucency of 72. What I did was I adjusted the skybox room until it was a square around 3200 bits big. This is to make sure that the player or players don't see the edge of the line horizon. And because the bottom layer is translucent, it makes it even more difficult to see. By doing this, you won't be able to see the edge at all unless you use no clip and go to the skybox room. :)
Actually this is what I did, except my room is 1024x1024 (double the size of my cloud texture). You can still see the edge and it's even more noticeable if I use a different color cloud texture for top or bottom. I guess I'm going to have to modify my map so there isn't an angle where you can see the cutoff.
Jojo_195
Posts: 7
Joined: Sun May 07, 2017 7:34 am

Re: The "How do I..." Thread

Post by Jojo_195 »

How do I make a monster be frightened for a limited time?

A_ChangeFlag("FRIGHTENED", TRUE)
...
A_ChangeFlag("FRIGHTENED", FALSE)

What do I put between these two?
Locked

Return to “Editing (Archive)”