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
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49230
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

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

Post by Graf Zahl »

Gez wrote:It's not finding the strings in the LANGUAGE lump; so it's probably in there that the problem is.

It can be something as dumb as a missing quote mark on a previous line...

It's something as dumb as missing a semicolon at the end of each line. The parser will treat that as concatenation between the two lines so most of the strings will never be defined.
_mental_
 
 
Posts: 3820
Joined: Sun Aug 07, 2011 4:32 am

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

Post by _mental_ »

TheBadHustlex wrote:What does the error "Could not malloc [number] bytes" mean...? The game crashes and gets it on a death-state of one of my monsters.
This must be reported to Bugs subforum with a sample .wad/.pk3 to reproduce the crash.
Gez
 
 
Posts: 17945
Joined: Fri Jul 06, 2007 3:22 pm

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

Post by Gez »

You're running out of memory. Post your code, you must have a runaway loop in it or something like that.
User avatar
TheBadHustlex
Posts: 1914
Joined: Thu Oct 03, 2013 12:50 am
Location: 'stria

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

Post by TheBadHustlex »

I found out that it wasn't actually the death-state, but an actor that gets spawned during the death of a monster.
Here it is.
Spoiler:
User avatar
comet1337
Posts: 876
Joined: Fri Sep 25, 2015 3:48 am
Location: elsewhere

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

Post by comet1337 »

try changing the spawn state to

Code: Select all

spawn:
    dshq c -1 bright
    wait
User avatar
TheBadHustlex
Posts: 1914
Joined: Thu Oct 03, 2013 12:50 am
Location: 'stria

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

Post by TheBadHustlex »

Nope. Still crashes.
Strangely, it works when you don't name it "Diamondshard". I called it "Diamondshard1" now, and it perfectly works. I have no clue what this is. Maybe there is a malfunctioning actor quirking around in the game's files also called "Diamondshard".

Anyway, thanks for your help.
User avatar
comet1337
Posts: 876
Joined: Fri Sep 25, 2015 3:48 am
Location: elsewhere

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

Post by comet1337 »

on an unrelated note: is there a way to change an actor's flags with ACS directly?
or do i have to do the workaround of giving items that change the flags
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 »

Not at all sure if it's possible... or necessary, for that matter...

Maybe you could provide an example of why this would be necessary, instead of using DECORATE?
User avatar
comet1337
Posts: 876
Joined: Fri Sep 25, 2015 3:48 am
Location: elsewhere

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

Post by comet1337 »

my armor pickups absorb 100% of taken damage, so you wouldn't take a scratch from chaingunners, but the walls behind you would be painted red
so i'd use an ACS script to check when the player has armor and give them the NOBLOOD flag, when they don't, remove the flag
atleast i couldn't find anything in the wiki

well, time for hackety hack hacks
i mean, it would make sense to have an ACS function to change flags, since decorate has one
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 »

I would think it'd be easier to use a simple [wiki]A_JumpIfArmorType[/wiki] function to do this. Put it under the pain state, have it jump to a state where the player spurts no blood from pain (I think)...
User avatar
Rowsol
Posts: 998
Joined: Wed Mar 06, 2013 5:31 am
Contact:

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

Post by Rowsol »

What would I rename a music file to overwrite the main menu music in doom 2?

Ok, I guess I got lucky. I kept renaming it until D_DM2TTL worked. 3rd time's a charm they say.

Well, nevermind. It works, but when I load NOVA 2 after it, NOVA doesn't overwrite it. I basically want the custom music to be overwritten by a wad that has it's own.

Is mp3 preferred to ogg or something. Same file names in each wad but the mp3 is always played regardless of load order.
Last edited by Rowsol on Sat Dec 05, 2015 5:49 pm, edited 3 times in total.
User avatar
Rowsol
Posts: 998
Joined: Wed Mar 06, 2013 5:31 am
Contact:

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

Post by Rowsol »

I did look on the wiki. I look on it every day. Don't be an ass.
User avatar
Zanieon
Posts: 2059
Joined: Tue Jan 13, 2009 4:13 pm
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: Somewhere in the future
Contact:

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

Post by Zanieon »

Looks like you forgot to check here then, see titlemusic.
Gez
 
 
Posts: 17945
Joined: Fri Jul 06, 2007 3:22 pm

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

Post by Gez »

TheBadHustlex wrote:I found out that it wasn't actually the death-state, but an actor that gets spawned during the death of a monster.
That's what I expected; but the cause of the crash isn't in this spawned actor's coding; it's in the spawner actor's coding. My hypothesis is that you have an infinite loop going on during which this actor is spawned, so ZDoom starts spawning an infinite amount of diamondshards, and since your RAM isn't infinite eventually you run out of memory to allocate for one more.

Post your code.
User avatar
edward850
Posts: 5889
Joined: Tue Jul 19, 2005 9:06 pm
Location: New Zealand
Contact:

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

Post by edward850 »

Rowsol wrote:What would I rename a music file to overwrite the main menu music in doom 2?

Ok, I guess I got lucky. I kept renaming it until D_DM2TTL worked. 3rd time's a charm they say.
Rowsol wrote:I did look on the wiki. I look on it every day. Don't be an ass.
Maybe not the right wiki.
Rowsol wrote:Well, nevermind. It works, but when I load NOVA 2 after it, NOVA doesn't overwrite it. I basically want the custom music to be overwritten by a wad that has it's own.

Is mp3 preferred to ogg or something. Same file names in each wad but the mp3 is always played regardless of load order.
OGG is preferred, and licensed music certainly isn't (you need to actually have permission for the music you use). Furthermore, your theory about the load order is nonsense. The last lump defined is the first one found, and thus the one used. The only reason why your MP3s are being found is because they exist later. This is likely the problem you're having with NOVAII, also.
Locked

Return to “Editing (Archive)”