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

Share this post


Link to post

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!

Share this post


Link to post

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.

Share this post


Link to post

Lol, now it looks like this:



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?

Share this post


Link to post

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?

Share this post


Link to post

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

Share this post


Link to post

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... :/

Share this post


Link to post

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 :





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

http://zdoom.org/wiki/Default_status_bars

Share this post


Link to post

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...

Share this post


Link to post

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..

Share this post


Link to post

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

Share this post


Link to post

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:

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:
    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/

Share this post


Link to post

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

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now