Recreating Map's Editor Files

Information and tutorials related to modding BF2.
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

Re: [Tutorial]Recreating Map's Editor Files

Post by Spyker2041 »

'[R-DEV wrote:Outlawz7;1388904']In case you're wondering what just happened; what this action did was resave the colormaps to 32-bit A8R8G8B8 format with one mipmap. This is the format that editor can use.
Image
Manually resaved one of the files with settings shown in the above pic but all "squares" still have black lines going through them.
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Tutorial]Recreating Map's Editor Files

Post by Amok@ndy »

did you have a look at all your files ? i guess that a detailtexture or a lowdetail.dds has this black lines in it
Image
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

Re: [Tutorial]Recreating Map's Editor Files

Post by Spyker2041 »

[R-DEV]Amok@ndy wrote:did you have a look at all your files ? i guess that a detailtexture or a lowdetail.dds has this black lines in it
I resaved tx00x00.dds for color, detail and lowdetail but black lines still there. :(
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Tutorial]Recreating Map's Editor Files

Post by Amok@ndy »

so you had a look at all .dds files and made sure that there are no black lines in the texture ?
Image
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

Re: [Tutorial]Recreating Map's Editor Files

Post by Spyker2041 »

[R-DEV]Amok@ndy wrote:so you had a look at all .dds files and made sure that there are no black lines in the texture ?
Correct, none of the colormap textures have black lines
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Tutorial]Recreating Map's Editor Files

Post by Amok@ndy »

detail and lowdetail ? as far as i remember i had this issue with a detail or lowdetail not beeing 512x512 but beeing 1024x1024
Image
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

Re: [Tutorial]Recreating Map's Editor Files

Post by Spyker2041 »

Nope everything is 512x512
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Tutorial]Recreating Map's Editor Files

Post by Amok@ndy »

so you have all your textures in /yourmap/ and in /yourmap/editor/ ?
Image
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

Re: [Tutorial]Recreating Map's Editor Files

Post by Spyker2041 »

Correct.
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Amok@ndy
Retired PR Developer
Posts: 5144
Joined: 2008-11-27 22:13

Re: [Tutorial]Recreating Map's Editor Files

Post by Amok@ndy »

thats really strange, have you tried regenerating lowdetailmaps in the editor ?
Image
Rudd
Retired PR Developer
Posts: 21225
Joined: 2007-08-15 14:32

Re: [Tutorial]Recreating Map's Editor Files

Post by Rudd »

I has an idea...could you rename the original map's folder, and try loading the map again in the editor - perhaps a file is still pointing to the old files (maybe the .mat?) and that is resulting in this strangeness; just a thought.
Image
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [Tutorial]Recreating Map's Editor Files

Post by AFsoccer »

DHope129 wrote:Hi,
I was regenerating kashan for personal use and I got up the the part where you put the detail textures in and i put editor in detail texture mode and got black stripes spanning the map. I'm not entirely sure what im supposed to do in this case. Should i paint these areas, or did i do something wrong? Ill post a screenshot, Thanks.

Image
I just experienced the same problem. So after some investigation it looks like the action script isn't working correctly. When I checked my files they were all saved as DXT5. I started over and tried again to see if it would reproduce the same error and it did. So then I created a new script that saved the files correctly and the map looks correct now (i.e. no black lines).

Btw, I used Photoshop CS5 and Outlawz used CS3 so maybe that caused the issue, or maybe since the first link went down Outlawz uploaded an old/incorrect script the second time. In any case, a new script is needed. I would upload mine but I don't know how to make it save files to the right spot. I had to manually copy mine over after it was done.
HangMan_
Posts: 1753
Joined: 2009-06-07 00:58

Re: [Tutorial]Recreating Map's Editor Files

Post by HangMan_ »

can u upload your updated/new script? Please :)
Image

PR Community Faction Team - "Getting Sh*t Done..."
Clos3r
Posts: 1
Joined: 2012-05-30 16:16

Re: [Tutorial]Recreating Map's Editor Files

Post by Clos3r »

Nice tutorial!
Can you upload to us? :D
Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: [Tutorial]Recreating Map's Editor Files

Post by Outlawz7 »

Redid it, check if it works, file attached.
You do not have the required permissions to view the files attached to this post.
Image
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Re: [Tutorial]Recreating Map's Editor Files

Post by Gracler »

Did the black line issue get resolved? I tryed this "new" action script and Im still having black lines :( how is the manual way again?

edit:
[R-DEV]AFsoccer wrote:I just experienced the same problem. So after some investigation it looks like the action script isn't working correctly. When I checked my files they were all saved as DXT5. I started over and tried again to see if it would reproduce the same error and it did. So then I created a new script that saved the files correctly and the map looks correct now (i.e. no black lines).
Am I right that it should save it as DXT1 -> alpha 1 -> no mips?

Edit2:
using woody's Texture Viewer it tells me that the dds files from "detailmaps" are "format 16bit- R5G6B5 size 256x256 mipmap1/1"

after i run the action script in photoshop (im using CS5) it changes to the same except its now size 256x512 size..... shoudnt it be 512x512 ? Im not sure that the settings in the dds save dialogue is correct, and i wonder what they should be or if somone has a profile I can use that is correct.

Furthermore the action script dosent seem to have any effect on the dds save dialogue so it will save-as with the previous used dds settings, which means i guess i have to set them properly to get this to work.

Problem Solved ! see below
Last edited by Gracler on 2013-01-24 01:34, edited 7 times in total.
AFsoccer
Retired PR Developer
Posts: 4289
Joined: 2007-09-04 07:32

Re: [Tutorial]Recreating Map's Editor Files

Post by AFsoccer »

It's probably best to create your own script. It's fairly easy to do so, and then you can have it save the files in the correct format and in whatever location you prefer. As for format, it should be 32-bit A8R8G8B8 512x512 and 1 mipmap.
Gracler
Posts: 947
Joined: 2009-03-22 05:16

Solved!!

Post by Gracler »

There is apparently nothing wrong with the script what I did to resolve my problem was!
  1. test save a dds to bring up the Nvidia dds format save dialogue. Here I set it to 8.8.8.8 ARGB 32 bpp and under MIP Map Generation i set it to "Generate MIP maps" "1"
  2. Then I ran the script like this guide describes and it worked fine
The main problem was that I had checked "Use Existing MIP maps" which gave me a 256x512 format
Ivancic1941
Posts: 64
Joined: 2014-08-26 09:54

Re: Recreating Map's Editor Files

Post by Ivancic1941 »

Plz
I downloaded salvagecolordetail and I have PS2.So I opened rar file and in it was something that I just extracted(in tut it says install?) to Ps2/Presets/Actions (note I needed to create this actions folder). After I started proces I came to
" and select the SalvageColorDetail action set and under actions" in batch. But there wasnt this to select. I dont know how to activate/install this salvagecolordetail as there is not exe in downloaded
Guedoe
Retired PR Developer
Posts: 222
Joined: 2006-05-21 15:42

Re: Recreating Map's Editor Files

Post by Guedoe »

Any chance of getting the salvagecolordetail.atn updated for ps2019?
Image

RETIRED
Post Reply

Return to “Modding Tutorials”