Doom Marine
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > New switch texture doesn't work...
 
Author
All times are GMT. The time now is 23:35. Post New Thread    Post A Reply
netnomad312
Forum Regular


Posts: 882
Registered: 12-02


I recently figured out how using Wintex's texture editor works. I made a few basic textures, then I tried making a switch. I was surprised to find that by using the prefix "SW1," Wintex automatically saw it as a switch. I put my new switchplate patch on top of the patch WALL78_1, and then I made the other texture. I called SW1ELEV and SW2ELEV (for use in an elevator). It worked perfectly.

Today, though, I wanted to make a switch on a file cabinet. I did the process exactly the same way, and I ended up with SW1FILE and SW2FILE. But when I tried to activate the switch, the picture didn't change! I know the switch worked because the platform it was tagged to did lower.

One thing: for the elevator switch, the patches I used for the switchplate were called SW1ELEV and SW2ELEV, like the textures I ended up with. But with the second one, I didn't make any new switchplates; instead, I made new wall patches (the filing cabinet) and then added WARNA0 and WARNB0 onto them. Could this have anything to do with it? What did I do wrong?

__________________
The Net Nomad
Current Project: "Tower of WAR" - Help beta-test!

My site for Doom wads and other miscellaneous crap:
http://netnomad312.tripod.com/

Old Post 01-13-03 00:12 #
netnomad312 is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kaiser
Doom64 Guru


Posts: 2854
Registered: 08-00


I don't think its possible to create totally new switches in vanilla doom, you can only just replace the existing switches


however, if you are using a port like zdoom, or boom, or jdoom, then its possible to add new switches.

Old Post 01-13-03 20:54 #
Kaiser is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
stphrz
I use a blowtorch to make crme brle


Posts: 997
Registered: 05-00


You can sorta make new switches in vanilla Doom. Suppose you have a 64x128 switch texture (let's say SW1GARG), you can edit the texture to be 128x128, place a 64x128 patch beside the existing patch and then use and +64 X offset to display the new switch graphic. Edit the SW2GARG texture in the same way with a new patch corresponding to the one you used with SW1GARG and wala.

Old Post 01-13-03 21:13 #
stphrz is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00



netnomad312 said:
I called SW1ELEV and SW2ELEV (for use in an elevator). It worked perfectly.


OK, this is a wild guess, and it could easily be wrong, but I think BOOM, or maybe one of it's derivatives had a switch called SW*ELEV defined in its switches lump by default. If you are using that port (whichever it may be) then it was just happy coincidence that you gave your switch the same name as one that is supported.

By now, Im sure you have worked out that adding a switch is not as simple as having a texture with SW1 at the start and a corresponding SW2 texture. The game engine needs to have the textures concerned defined as a switch. (See stphrz's description of how to get round this in vanilla doom.)

Of course, if you are using a boom compatible port, then you can use the SWANTBLS.EXE utility to define as many additional switches as you want. If you are using Zdoom, you can use the ANIMDEFS lump to define your additional switches and also do other fancy things like allocate different sounds to different switches and even have an off sound and a different on sound. Or maybe you might want to make the switch use more than just an on and off picture, but cycle through a short animation every time it is used instead (to make levers and dials seem more convincing for example).

__________________
Meek

Old Post 01-13-03 22:49 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Kid Airbag
Not really a kid. Not really an airbag. WHAT THE HELL IS IT?!? Who's asking? Are you French? An airbag is a safety device in a car that inflates during a collision and blocks you from smashing your head into the dashboard or steering wheel!


Posts: 6359
Registered: 12-00


I think Doom2.exe has several unused switches built in, maybe the ones from Doom 1 that weren't used in Doom2. I can't remember what their names are, though.

__________________
Hey Jude

Old Post 01-13-03 23:13 #
Kid Airbag is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
netnomad312
Forum Regular


Posts: 882
Registered: 12-02


I'm not using any source ports at all.

I noticed today that the elevator switch no longer works. It used to, but it doesn't now. All I know is that in the editor, SW1ELEV and SW1FILE had the description tag "Switch OFF," and that SW2ELEV and SW2FILE had the tag "Switch ON." Also, the elevator switch used to work.

__________________
The Net Nomad
Current Project: "Tower of WAR" - Help beta-test!

My site for Doom wads and other miscellaneous crap:
http://netnomad312.tripod.com/

Old Post 01-13-03 23:59 #
netnomad312 is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
Enjay
ASK ME ABOUT FOOTBALL / STEAM / DEAD CELEBRITIES / THE BLAIR WITCH PROJECT


Posts: 6381
Registered: 12-00



Archvile46 said:
I think Doom2.exe has several unused switches built in, maybe the ones from Doom 1 that weren't used in Doom2. I can't remember what their names are, though.



I don't *think* there are any unused switches. There certainly are a few switches in Doom2 that do not look like they did in doom1, but look like SW*BRCOM instead though.

__________________
Meek

Old Post 01-14-03 19:16 #
Enjay is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 23:35. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > New switch texture doesn't work...

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.