MCS' Coding Tips
                 "Success!"



  
Adding new images to the engine

   Written by MCS
   Not tested yet


   
Main Page

News

Wolfenstein 3D
Texture Library


MCS' Coding
Tips - "Success"!


Utilities

Spear
Resurrection


Wolfendoom

Wolf
Collection


Original Wolf 3D

Doom/Duke
maps


Other Stuff

Links

Questions?
Email us!
I've learned that lots of ppl are actually having trouble when trying to add new images to the engine.
Here's how I do it. I don't know if it's the best method, but it used to work fine for me under all circumstances so far.

First of all, fire up FloEdit, connect to your Wolf data directory, select Graphics, then Images, and hit the "Add new object" button.
A new image will be added. Hit "Import from BMP" and select the bmp-file you want to use in your project.

Now open the file
GFXV_WL6.H and locate this line:

 
GETPSYCHEDPIC,                       // 134

Below this line, add a new one for your new image:

 
NEWPIC,                              // 135

Now in order to make things work properly, you'll have to increase all of the following values by one:




















For each additional image, you should just repeat this process.

Success!
MCS.
ORDERSCREEN=136,  
                                  
#define LATCHPICS_LUMP_END 134
                                  
#define NUMCHUNKS  149
                                  
#define NUMPICS   132
                                  
#define STARTPICM  135
#define STARTSPRITES  135
#define STARTTILE8  135
#define STARTTILE8M  136
#define STARTTILE16  136
#define STARTTILE16M  136
#define STARTTILE32  136
#define STARTTILE32M  136
#define STARTEXTERNS  136
should read
          
should read
          
should read
          
should read
          
should read
should read
should read
should read
should read
should read
should read
should read
should read
ORDERSCREEN=137,              
                              
#define LATCHPICS_LUMP_END 135
                              
#define NUMCHUNKS  150
                              
#define NUMPICS  133
                              
#define STARTPICM  136
#define STARTSPRITES 136
#define STARTTILE8  136
#define STARTTILE8M 137
#define STARTTILE16  137
#define STARTTILE16M 137
#define STARTTILE32  137
#define STARTTILE32M 137
#define STARTEXTERNS 137