Weird impy thing
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 > Custom Weapons
 
Author
All times are GMT. The time now is 09:00. Post New Thread    Post A Reply
djvero
Mini-Member


Posts: 65
Registered: 04-10


Here's what I'd like to have in my mod:

I've downloaded a couple of weapons from Realm667 I'd like to use (the BFG10K / Karasawa / Flamethrower). The first one will be on the same weaponslot as the normal BFG, but I want to have the second and third on new weaponslots (8 and 9).

I've configured this in the decorate files and it works, but what I'd like here is to have these listed in the status bar as well (just like with weapons 2 to 7; it gives you an overview what weapons you have in the middle and how much ammo you've got on the right). Is this even possible? And if so, how do I configure this?

Thanks in advance of course!

ps. I use Doombuilder 2 (Zdoom - Doom in Doom format) and Slade 3

Old Post 11-10-12 20:04 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


I think you'd have to do two things:

1) Assign the new weapons at startup (that is, create a MAPINFO lump with a new player class). In this new player class choose whichever weapons the player will have in each slot.

http://zdoom.org/wiki/MAPINFO

2) If you want the new weapon information on the statusbar I think a SBARINFO is the way to go. You would probably have to tweak the original code to match what you're looking for (you know, adding 2 more slots and showing the correct ammo).

http://zdoom.org/wiki/SBARINFO

Hope this helps!

Old Post 11-10-12 23:57 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
djvero
Mini-Member


Posts: 65
Registered: 04-10


No, not really lol. Is there no way to do this in Slade??

Old Post 11-11-12 11:08 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Gez
Why don't I have a custom title by now?!


Posts: 11217
Registered: 07-07


You don't need to define a new player class, since you can instead merely add the new weapon to the existing class. See the weapon slots article; you'll want to use the first method, with Weapon.SlotNumber.

As for doing this in SLADE 3, you do it with the text editor. For example, if you want to create a SBARINFO lump, create a new entry (Archive->New->Entry; or click on the "E" button on the toolbar), name it SBARINFO; and then click on that entry and on the "edit as text" button.

Old Post 11-11-12 11:39 #
Gez is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
djvero
Mini-Member


Posts: 65
Registered: 04-10


Lol, now it looks like this:

http://i49.tinypic.com/2rfy7av.png

Weapon 8 and 9 are in front of the "ARMS" text and on the right it doesn't show the correct information.

Plus when I load it in Zdoom it says it doesn't recognize the ammo type either?

Old Post 11-11-12 14:06 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


Well, the whole info bar is just one picture. I guess you would have to edit it too.
About the ammo, what does the error say?

Old Post 11-11-12 14:19 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


Now that I think about it the Arms section is painted over the big info bar. Just edit the ARMS picture.

Old Post 11-11-12 14:21 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
djvero
Mini-Member


Posts: 65
Registered: 04-10


And how do I do that?

The error says:

Script error, "Test.wad:SBARINFO" line 77: 'KSawCell' is not a type of ammo.
Script error, "Test.wad:SBARINFO" line 84: 'KSawCell' is not a type of ammo.

[edit] Never mind this error, it was a spelling mistake lol... :/

Last edited by djvero on 11-11-12 at 15:00

Old Post 11-11-12 14:26 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
Doggo120
Mini-Member


Posts: 88
Registered: 10-12


Using Slade you could open the Doom II wad and look for the STARMS graphic. Then right clic -> GFX -> Export as PNG. Then you can edit it in any program you like and then add it again in your new wad. To print it just replace the picture in the Sbarinfo. It would look something like this :

http://i49.tinypic.com/2r7m1l2.jpg



(I made this in like 5 seconds, so it's crappy. But you get the point!)

http://zdoom.org/wiki/Default_status_bars

Old Post 11-11-12 15:29 #
Doggo120 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
djvero
Mini-Member


Posts: 65
Registered: 04-10


Got it!

Except that the new weapon ammo information doesn't quite fit on the right side...I've already tried putting the text up higher, but weapon 9 information is half missing. How can I make the text (ammo information) smaller? Now it's listed as "INDEXFONT", I know I should do something with that but I'm not sure what exactly...

Old Post 11-11-12 16:25 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
gruntkiller4000
Warming Up


Posts: 28
Registered: 01-12


All you need to do is:
-decrease the size of the font
-(increase the game's resolution??)
-decrease the spacing of the font
I have about 12 different ammo types squished into the right of the status bar..

Old Post 11-17-12 12:13 #
gruntkiller4000 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
djvero
Mini-Member


Posts: 65
Registered: 04-10


Yeah well, the thing is I don't know how to... Can you show me a picture how it looks in your screens? Would love to see that lol

Old Post 11-21-12 16:24 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
gruntkiller4000
Warming Up


Posts: 28
Registered: 01-12


You'll need a file called "SBARINFO". For the base code look here:
http://zdoom.org/wiki/SBARINFO
http://zdoom.org/wiki/Default_status_bars (For an example status bar)

And after you done that look for this part:

code:
drawnumber 3, INDEXFONT, gold, ammo Clip, 288, 173; drawnumber 3, INDEXFONT, gold, ammo Shell, 288, 179; drawnumber 3, INDEXFONT, gold, ammo RocketAmmo, 288, 185; drawnumber 3, INDEXFONT, gold, ammo Cell, 288, 191; drawnumber 3, INDEXFONT, gold, ammocapacity Clip, 314, 173; drawnumber 3, INDEXFONT, gold, ammocapacity Shell, 314, 179; drawnumber 3, INDEXFONT, gold, ammocapacity RocketAmmo, 314, 185; drawnumber 3, INDEXFONT, gold, ammocapacity Cell, 314, 191;


That's dooms. Mine goes like this:

code:
drawnumber 4, HUDFONT_INDEX, gold, ammo Bullets, 224, 170; drawnumber 4, HUDFONT_INDEX, gold, ammo Shell, 224, 177; drawnumber 4, HUDFONT_INDEX, gold, ammo Grenades, 224, 184; drawnumber 4, HUDFONT_INDEX, gold, ammo RocketAmmo, 224, 191; drawnumber 4, HUDFONT_INDEX, gold, ammo Napalm, 256, 170; drawnumber 4, HUDFONT_INDEX, gold, ammo Cell, 256, 177; drawnumber 4, HUDFONT_INDEX, gold, ammo Core, 256, 184; drawnumber 4, HUDFONT_INDEX, gold, ammo ARCBullets, 256, 191; drawnumber 4, HUDFONT_INDEX, gold, ammo Rounds, 287, 170; drawnumber 4, HUDFONT_INDEX, gold, ammo Slug, 287, 177; drawnumber 4, HUDFONT_INDEX, gold, ammo Slug2, 287, 184; drawnumber 4, HUDFONT_INDEX, gold, ammo LaserCell, 287, 191; drawnumber 4, HUDFONT_INDEX, gold, ammo Ice, 316, 170; drawnumber 4, HUDFONT_INDEX, gold, ammo Cell2, 316, 177;


That's basically what my HUD looks like. Here's the image if you need to know:
http://imageshack.us/photo/my-images/31/13644602.jpg/

Last edited by gruntkiller4000 on 11-27-12 at 04:55

Old Post 11-27-12 04:45 #
gruntkiller4000 is offline Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
djvero
Mini-Member


Posts: 65
Registered: 04-10


Thanks man, I'll have a look into it and let you know if it doesn't work :)

Old Post 11-29-12 11:59 #
djvero is offline Profile || Blog || PM || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 09:00. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > Custom Weapons

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.