0 Members and 2 Guests are viewing this topic.
****************************************************MM8BDM WEAPON TEMPLATE v5 - For use with MM8BDM v5d!****************************************************http://zdoom.org/wiki/Main_Page - Code reference---------------Introduction---------------Welcome to the MM8BDM weapon example! First I'd like to apologise for how awkward it is to implement new weapons intoMM8BDM. This is due to many things. The way I've coded things, and the way Skulltag handles certain lumps.This example is designed to briefly explain the DECORATE weapon code, give you an idea of the PK3 structure and(hopefully) make things easier when it comes to making your own weapons for MM8BDM.To test this example, to see that it's working, just open the MM8BDM launcher and hit "add file". Run the gameand use "Give All" to acquire your new toys!When things are getting stressful, just remember that the I had to follow these steps for every weapon in the game...Good luck!--CutmanMike---------------Procedure---------------Here's some steps to follow when starting out with a new weapon. You don't have to follow this order, but it's theway I've been doing it for the past year. (ed - More like 10 years)1. Adding the sprites (sprites folder) and sounds (sounds folder). - For sprites, don't forget those offsets and PNG transparency! - Define the HUD sprites in the TEXTURES.HUDS file. 2. Coding the weapon itself (see actors/newweapon.txt). There are two examples here that may help.3. Including the newly coded weapon in the main DECORATE lump.4. At this point you should be able to at least test the weapon. Test until you're happy with the results. - To run, use the add file button on the launcher under single play. - You may get some console errors. If the game doesn't bomb with an error message, you can test it! Use the Give All cheat.6. Define the weapon's icon in the TEXTURES.ICONS file.7. Define the weapon's energy bar graphics in the TEXTURES.BARS file.8. Adding BOTH vertical and newly coded horizontal bar graphics to SBARINFO (see SBARINFO.H.txt). - This file will need to be updated new weapons are added to MM8BDM! 9. Editing the COLORS.acs lump to add color translations (palette swaps). - Again when MM8BDM gets new weapons this will have to be updated too. - This is the most complicated section. Read the notes thoroughly. - DON'T FORGET TO COMPILE THIS LUMP! In SLADE, right click and hit compile!10. Editing the WEPACS.acs lump to add LMS data and energy item pickups. 11. Edit the weapon definition to add the new color translation you just created in COLORS.acs.12. Final test. Don't forget the following: - Make sure energy items and W tanks work. - Make sure M Tanks work (use "give MTank" to test this). - Make sure your colors are correct (check the mirror in Roll's room or use chasecam). - Make sure the energy bar is displayed for BOTH HUDs (use + and - to toggle the horizontal HUD). - Make sure the weapon's icon is displayed under/next to the energy bar. 13. If you've made it this far, congratulations! Take your new creation online for balance testing and robot blasting!---------------Notes---------------* When MM8BDM is updated, you WILL have to update your weapon pk3 file. If you do not, the new weapons in MM8BDM will fail to work correctly, if the game even starts.* Because of the way SBARINFO works, you CANNOT mix and match weapon pk3 files. Do not attempt to launch the game with more than one pk3 that includes new weapons.* HOWEVER to counter this, you caoveralln merge the pk3's by copying over the code and implementing it into a single pk3 file. Be sure to have the weapon author's permission before you do this if you wish to distribute the file afterwords.* If you're stuck with ANY of the code, the ZDoom wiki is the place to go. The link is at the top of this file!* Still stuck? We don't blame you. Go to the cutstuff.net forums and post in the editing forum!* Made a rad weapon? Sweet! Please help others out if you can! Good luck, and thank you for trying to expand MM8BDM's growing collection of user content!Donate if you love me!~ CutmanMike 2011 - http://cutstuff.netUpdate Notes:Korby updated for v2, but he's mostly just copy and pasting.Lego updated for v3, again he also pasted in stuff.Lego again for v4a, added information of recoloring buster HUDs and also copy pasting stuff.Balrog updated for v5d, updated overall tutorial to be more useful for v5 and the Year of Our Lord Two-thousand and Nineteen.
What's the highest value that the color set variable can have? 'cause you can suggest them to start from the highest value possible (255, 65535, 4294967295 or higher?) to prevent conflicting with MM8BDM's V2
Can't you code the W-tank so that it gives you a few large weapon energies?
Quote from: "DoomThroughDoom"Can't you code the W-tank so that it gives you a few large weapon energies?That would be the obvious choice and I think I did try it and something went wrong... I hope. I actually want to try it now just to make sure....
Quote from: "tsukiyomaru0"What's the highest value that the color set variable can have? 'cause you can suggest them to start from the highest value possible (255, 65535, 4294967295 or higher?) to prevent conflicting with MM8BDM's V2256 I believe. 100 should be enough to not cause conflicts.