how to change the light color in items?

Discuss all aspects related to modding Zandronum here.
Post Reply
Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

how to change the light color in items?

#1

Post by Kotometal041 » Sat Aug 10, 2013 3:44 am

Hello, i'm actually modifying some items in a backup wad of Freedoom and the question is basically explained in the title. and it's possible to remove it or add to other items?

Here's an example

Image

the original blue keycard was changed to this silver one and i don't know how to change the light, i've searched everywhere but I could not fix it, please help

User avatar
agaures
Forum Regular
Posts: 591
Joined: Mon Dec 10, 2012 6:34 am
Location: New Zealand

RE: how to change the light color in items?

#2

Post by agaures » Sat Aug 10, 2013 4:15 am

You can change, add or remove it by using GLDEFS.
<agaures> I'm guessing you haven't played many doom mods before huh? :p
<Zuplin> i have played master of puppets zombies doom center and a couple more
<agaures> so not many
<Zuplin> i thought that was everything

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: how to change the light color in items?

#3

Post by Kotometal041 » Sat Aug 10, 2013 8:19 pm

Thanks. I read that to edit these aspects, it should be in the DOOMDEFS lump in zandronum.pk3. but I can't access to these files using Slade 3, SlumpEd and XWE.

The Zandronum version I'm working on is the latest.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: how to change the light color in items?

#4

Post by -Jes- » Sat Aug 10, 2013 8:40 pm

Slade and Slumped should both be able to edit the DOOMDEFS lump as text.

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: how to change the light color in items?

#5

Post by Kotometal041 » Sun Aug 11, 2013 12:22 am

-Jes- wrote: Slade and Slumped should both be able to edit the DOOMDEFS lump as text.
yes, but i can`t open it from these programs.

This is an error from Slade

Image

and in SlumpEd i can, but it appears as unknown

Image

Catastrophe
Retired Staff / Community Team Member
Posts: 2571
Joined: Sat Jun 02, 2012 2:44 am

RE: how to change the light color in items?

#6

Post by Catastrophe » Sun Aug 11, 2013 1:13 am

Doomdefs? Wtf? Use gldefs

User avatar
Ænima
Addicted to Zandronum
Posts: 3582
Joined: Tue Jun 05, 2012 6:12 pm

RE: how to change the light color in items?

#7

Post by Ænima » Sun Aug 11, 2013 1:31 am

zandronum.pk3 is encrypted using 7z LZMA compression. Slade and Slumped can't read these due to the advanced compression.

Rename the .pk3 to a .7z, extract it, and then you can access its contents.
Last edited by Ænima on Sun Aug 11, 2013 1:32 am, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

Kotometal041
 
Posts: 30
Joined: Sat Aug 10, 2013 3:16 am
Location: Chile

RE: [SOLVED] how to change the light color in items?

#8

Post by Kotometal041 » Sun Aug 11, 2013 3:44 am

Catastrophe wrote: Doomdefs? Wtf? Use gldefs
doomdefs is required to use gldefs (when use a wad based on Doom)
Ænima wrote: zandronum.pk3 is encrypted using 7z LZMA compression. Slade and Slumped can't read these due to the advanced compression.

Rename the .pk3 to a .7z, extract it, and then you can access its contents.
It worked! I made some changes as this

Code: Select all

pulselight HEALTHPOTION
{
    color 0.0 0.0 0.6
    size 0 // this parameter was changed and i deleted the secondary size parameter
    interval 2.0
}

object BlueCard
{
    frame BKEY { light HEALTHPOTION }
}

object BlueSkull
{
    frame BSKU { light HEALTHPOTION }
}
and here's the result

ImageImage

thanks for your help, in a few weeks will show some of what I'm doing, all in due time.

User avatar
-Jes-
Frequent Poster Miles card holder
Posts: 975
Joined: Fri Aug 03, 2012 9:55 am
Location: Void Zone

RE: how to change the light color in items?

#9

Post by -Jes- » Sun Aug 11, 2013 9:40 am

Catastrophe wrote: Doomdefs? Wtf? Use gldefs
Doomdefs is the lump used to describe gldefs specific to Doom.

Post Reply