game.setactivecombatarea

Started by Raze · 15 posts · 2,486 views

  1. #1
    This is new to me, so I'll try to explain what I did to set the combat area to cause a larger ingamemap.

    Needed:
    Battlecraft
    winrfa
    Photoshop or equivalent editor with DDS filters

    Warning: Before proceeding, back up your map.

    1. Generate ingamemap.
    2. Extract the ingamemap from your map's textures folder.
    3. Open the ingamemap.dds file in photoshop and increase the size to 1024x1024 if a small map.
    Mine looked like:


    4. Now flip the image vertically because 0 starts from the bottom. I flipped the image vertically so the coordinates 0,0 is at the top left.
    Mine looked like:


    5. Now select an area on the map that will be the top left. Make sure this point is at least 512 pixels from the edge. Mine was 501(x), 255(z). Write these numbers down. Now select the area from that point down 512 px and right 512px and copy the selected part of the image.

    6. Paste the image into a new canvas and flip it back upright. Make any edits you want. Save it as ingamemap.dds and replace the one in your map with the new one.
    Mine looks like:


    7. In your map's root init.con there should be a setting for game.setactivecombatarea 0 0 1024 1024. Change that to your 2 coordinates you wrote down and 512 512 the area selected. Mine looked like

    game.setactivecombatarea 501 255 512 512


    8. Open your map and see if things fall into the right place. I had to tweak a little on the first 2 numbers only. The last 2 numbers must be the same because all maps are square. If you have to tweak. I suggest adding or subtracting by 5's or 10's. This will keep you from screwing everything up.
    Mine looked like:


    I know these instructions are not that great since this is the first time I have tried this. But it did work for me.
  2. #2
    Wow Raze. I cant believe I didnt see this post before. I will definately be trying this once I get PS-7 back and installed.

    Your minimap looks sweet.
  3. #3
    Ive been trying this and I just cant seem to get it.

    I followed the instructions and my flags were off by alot. It was like they had scrolled around to where the flag that should be on the right was on the left.

    And on my last test, It turned everything white. thumbnail, loadscreen, textures, minimap everything white then it crashed to my desktop.

    help?? :?
  4. #4
    Did you set the size too small Lou? Or do the demarcations in the wrong direction maybe?
  5. #5
    What is the size of map your desire to make?

    game.setactivecombatarea referencepoint(x) referencepoint(z) mapsize(x) mapsize(y)

    I had the problem you described, may times until I kind of narrowed it down. You may try lowing the axis that is left and right (i forget if that was Z or X) to bring the left flag back to the right. Don't feel bad it took me about 15 tries to get it figured out.

    I'd be happy to take a look at the map to help out.
  6. #6
    Im going for a 512 size for the Final. And Assault Island, the island itself, would be a lil under 512 after having the original minimap expanded to 1024. Thats all i want the map to show is just the Island.

    I uploaded the original mini map in the Gamers FTP.
  7. #7
    I'm lookin but I haven't found yet?
  8. #8
    Its in the main folder. ingamemap.bmp
  9. #9
    Is the map out there too or can I grab it from your site? That way I can help with the reference point compaired to your image.
  10. #10
    Yeah u can use the one off my website. The flag positions should be the same.

    ThanX :twisted:
  11. #11
    I am downloading both as I type, being dialup may take a while. I see the map is a very reasonable size so it shouldn't be too bad. I'll get back with you soon...
  12. #12
    ThanX Raze. I reeely appreciate the help. I still have Alot of stuff to finish on the map, so you dont have to rush. thanx again.
  13. #13
    No problemo.... Happy to help. 😀
  14. #14
    LOL... is it just me or does my map used for the instructions look like a scorpion?
  15. #15
    Just a though about the everyting white and crashing, did you save the dds with MIP mapping? I've started on this and will let you know. :-)