Tracemap and Screenshot Tool


(Schaffer) #1

Hi Guys,

Here is a mod I’ve created which you may find useful (maybe not). Before you start shouting “Hey WTF are you doing posting a mod in the Level Design forum”, you should now that this is to assist in the creation of tracemaps at different resolutions as well as to create clean screenshots with ease.

When running a map with this mod, the map will be run in dev mode and you will be presented with two additional “in-game” menus, one for handling the different tracemap sizes and the other for toggling on screen display and for taking screenshots.

Download here

To run this:

  1. Download and extract to you Wolfenstein - Enemy Territory Directory.
  2. Then create a new short cut to ET with +set fs_game schaffermod appended to the end

"C:\Program Files\Wolfenstein - Enemy Territory\ET.exe" +set fs_game schaffermod

I would appreciate hearing any feedback about how good or bad this is.

I am thinking of doing some additional changes such as modifying the tracemap generation so that it includes the tracemap size in the output file (eg maps/v2_factory_a2_tracemap_1024.tga)

Trying to think about other things that might be useful to add. This has been a bit of an excuse to brush off the old C coding skills I thought I had


(Ifurita) #2

sounds good. You know what would be really nice is a mod that can sample FPS rates from various places and draw you an FPS map. Not sure if that is really possible to do though.


(Schaffer) #3

I’ll put that in the To Hard Basket :slight_smile:


(duke'ku) #4

I see you’ve done what I was too lazy to do, looks nice :clap:


(Schaffer) #5

It was all “hack” work duke’ku. Thanks for the original idea. You get credit in the read me so I hope your not pissed at me stealing your thunder.

Infurita, I was thinking while I was sleeping for the last three to four hours about the FPS map. Nor really sure how to do it but an idea came to me to modify the demo recording code so that if the FPS rate is below a particular threshold (which the user could set) then it recods and when below an alert value (again user sets) then a message is included since this is pretty piss poor performance. I thought that maybe the settings could be something like 35 for record and 20 for alert. The real issue here is that doing this would probably artifically reduce the FPS rate anyway altough it might be fairly insignificant.
Another idea would be to log the position, direction and head angle (elevation) as well as the FPS every so many seconds but then an analyser component would need to exist and that would probably be too mkuch of a head case for me to build into ET.
Have a think about EXACTLY what you think it should be like (eg one of my suggestions above or something completetly different) and let me know. I might be able to “hack” something else :slight_smile:


(duke'ku) #6

Hah! I didn’t even think of this as stealing any thunder at all - I’m quite glad someone actually did this, I wish I could have done this myself but I really don’t know how to code at all :cool:

(on a side note, I’m going to try to pick up some books so I can at least get some very basic C down :x)


(Schaffer) #7

As I said it was a hack work. If you want I’ll send my hacked code over to you for a squizz


(RR2DO2) #8

Just a quick tip, Fluffy_gIMp used 1024x1024 tracemaps as a base for painting our commandmaps.


(Schaffer) #9

Yeah, Already new that one. He passed me a lot of info about developing the command maps. Since I can’t use GTK I decided that I would try to help the Et community be doing command maps. I have quizzed him a few times on things altough I havn’t heard back from him in the last two to three weeks on one thing. Anyway, this mod was really something for me to use but I thought I’d put it out in case anyone else cared to use it. Maybe even get some comments back on how to improve/expand this


(Ifurita) #10

when I use the menu to make a tracemap in 1024, my game locks up. Any words of wisdom? I extracted the mod to /etmain and see all the menus etc, but just can’t make a tracemap. Maybe my game has to be in 1024 first :stuck_out_tongue:


(nUllSkillZ) #11

Mod’s have to be in their own directory beneath the directory in which the ET.exe is located.
On same height as “\etmain”.
So the mod has to be in the directory:
“x:\path to ET.exe\schaffermod”
(because the game is called “schaffermod”)


(Schaffer) #12

In the read me it mentions about setting up this as a mod with all the details including the +set fs_game schaffermod after the quotes in the short cut. When you do get it going, just be warned that generating a 1024 tracemap may take some time. For me it is around sixish minutes.


(Ifurita) #13

That might be it. Everything else seems to work. When I make a regular screenshot, I see the processing data, but didn’t see that in your mod. I guess that’s why I thought it locked up. It’s still your fault though :wink:


(duke'ku) #14

For me it’s around 35 seconds :frowning:

I wouldn’t want to imagine how long a 2048x2048 tracemap or even a 4096x4096 tracemap would take.


(Schaffer) #15

Ifurita,

When you mentioned about seeing the processing data, did you mean you see the in-game menu on the screenshots. When I first did the menu it was working fine, then I tried to change something and obvoisly didn’t test it enough. I added some waits into the script before the screenshots are now taken and it works fine. I am putting up the corrected version as well as a patched pk3 file now.

If you download the full mod then it also outputs the tracemaps with the tracemap size in the file name so that you can generate a standard 256 as well as a 1024 for creating a command map from

Downloads:
Full Mod (as is)
Corrected UI

Ok, I must take fault here since the install instructions missed are a little incorrect:

  1. Create a new directory in the Wolfenstein - Enemy Territory directory and call this schaffermod
  2. Now extract the contents of the zip file to this new directory or copy the pk3 to this directory if you are just replacing the fixed UI
  3. Then create a new short cut to ET with +set fs_game schaffermod appended to the end

"C:\Program Files\Wolfenstein - Enemy Territory\ET.exe" +set fs_game schaffermod