|
Post by finlander on Nov 19, 2013 17:36:00 GMT 1
Hi Fellow Blitzers..
Does anyone know how to replace a new image/picture to a campaign screen in the Chapter. There,s usually a map image with crosshair or a picture of some sort.
Thanks in advance..
FIN
|
|
|
Post by Herr Kodax on Nov 19, 2013 18:22:29 GMT 1
Look in the textures.pak, 'Scenarios/Chapters' folder, I think that is what you are looking for.
|
|
|
Post by Major Pain on Nov 19, 2013 18:27:23 GMT 1
The Chapter Image resides in the Data/Scenarios/Chapters/ [ Chapter Name] folder. The image is named map_h.dds. You can replace this image with anything you wish. The image's canvas is 512 x 512 pixels, but the image usually has feathered edges and resides in a smaller size within that canvas. i suggest you open one in GIMP or PSP to see how it appears. In the same folder is a file named 1.xml. This is the Chapter file that tells the Game Engine which image to use, and what maps are included in the Chapter. The crosshair is a static sprite which is added by the Chapter 1.xml and not part of the image itself.To move the crosshair, you must calculate the position of the crosshair at the (zero,zero) x,y coordinates (upper left corner). For an example, I'll use Patton's Husky Chapter. Open the Chapter map_h.dds in GIMP. Open the 1.xml We need to first locate the Position on the map. Here is the script: Note the first Map is Gela.We can see: <PosOnMap x="229" y="283"/>
Go to the Image file in GIMP, and move your mouse to find x = 229 y = 283. You'll see that is about where Gela resides on the Map. To create a new map, you first need a new Chapter Folder, and new Map_h.dds Then you create the new 1.xml for the Chapter file. Just take care to name everything properly and you should be alright. I hope this is clear and helps.
|
|
|
Post by finlander on Nov 19, 2013 18:52:46 GMT 1
Thanks Major..will give it a go..
|
|
|
Post by finlander on Nov 19, 2013 19:18:13 GMT 1
Hmm..how exactly do i open this map_h.dds file with GIMP..I have file on my desktop but when GIMP is opened it wont show the file so that i could open and view it..? Also trie with Picasa 3 but no go with that also..
So when the new image is replaced, the name has to be ghanged too in the 1xml file ,right? Under "map image"..?
|
|
|
Post by Major Pain on Nov 19, 2013 19:23:05 GMT 1
Which version of GIMP do you have?
Also, you must have the Gimp .dds Plug-in.
|
|
|
Post by finlander on Nov 19, 2013 19:24:33 GMT 1
I have the GIMP 2.8.8
|
|
|
Post by finlander on Nov 19, 2013 19:28:24 GMT 1
Which version of GIMP do you have? Also, you must have the Gimp .dds Plug-in. hmmh.."Also, you must have the Gimp .dds Plug-in." can you help me with a link to the right download please..!?
|
|
|
Post by Major Pain on Nov 19, 2013 19:35:29 GMT 1
|
|
|
Post by finlander on Nov 20, 2013 17:48:13 GMT 1
..and as allways.. Dougster to the rescue..Thanks man, i got it! If i only would have asked this earlier..
|
|
|
Post by Major Pain on Nov 20, 2013 21:59:18 GMT 1
|
|
|
Post by finlander on Nov 21, 2013 7:30:22 GMT 1
Just one more.. Theres a Map_c.dds file and map_I.dds files also included with the Map_h.dds file. Can you tell me what are these for..as they seem to be the same image..
2.Can i just change normal jpg image by changing the image to map_h.dds form..?
Fin
|
|
|
Post by Major Pain on Nov 21, 2013 8:34:33 GMT 1
THe three Map Images are: map_h.dds = High Resolution map_l.dds = Low Resolution map_c.dds = Composite Resolution Since virtually every player uses Hi Res..., I would not worry about anything but the map_h.dds. If someone needs one later, you can supply it with a copy and rename. You can use a .jpg image and convert it to .dds. You must do this in GIMP. Simply changing the .jpg to .dds will not work. You might need to resize the image or work on the edges, but everything can be done in GIMP. If you need help, just let me know. I hope this answers your questions. And by the way... I am glad to see you using their talents.
|
|
|
Post by finlander on Nov 21, 2013 10:20:50 GMT 1
Thanks Doug!
I will try it right now..Thanks!!
|
|
|
Post by finlander on Nov 21, 2013 10:50:50 GMT 1
Ok tried it and opened the jpg image in the gimp.then saved as dds. But when the new map_h.dds file is in the "scenarios/campaings/german file it says: memory error-memory cant be read. So i,m doing something wrong..
ok, so the "cordinates" of the original image was x:400 and y:400 and size 512x512 in the xml file, so how will i resize the new image(larger) to those match those figures..
FIN
|
|