Page 1 of 1

Plowed Filed Graphics

Posted: Wed Apr 30, 2008 8:50 pm
by RocketMan
I want to add a grid to the plowed fields, but I have searched for the files the game uses to draw them on top of the base terrain and have not been able to determine what files the game engine uses.

Does anybody know which files are used to draw the plowed fields?

RE: Plowed Filed Graphics

Posted: Wed Apr 30, 2008 9:27 pm
by z1812
Hi RocketMan,

I don't see anything for plowed fields either but there is dirt and mud.

Regards John

RE: Plowed Filed Graphics

Posted: Wed Apr 30, 2008 10:20 pm
by RocketMan
Thanks for the response z1812.

I added a grid to all the terrain files I could find (mud, rock, dirt and forest), however none of them did anything for the plowed field.

In fact the only one that did anything (at least on the maps I have checked, which is not all of them) was the forest grid, and it does not line up with the grass grid at all, as can be seen in the screenshot below.

Image

RE: Plowed Filed Graphics

Posted: Wed Apr 30, 2008 10:20 pm
by Mraah
RocketMan,

Yeah, no specific terrain file, they use the snow or tiled grass with another image mask on top.

As an example, for my level 8 spring map, I'm using tiled_grass02 under the L8_terrainField PNG mask with tiled_mud01. See screen shot, and XML reference.

If you want a more plowed look, you need to erase "lines" into the L8_terrainField png. This will expose the grass in lines and alternate the grass/mud.

You could make a plowed field image too and just make full squares to display the whole image too.

Hope this helps,

Rob

Image

RE: Plowed Filed Graphics

Posted: Wed Apr 30, 2008 10:54 pm
by Mraah
Also, there are 3 "fields" images in the Level 2 map ... plain,rough,and plowed snow. The "norm" image on the far right is taken from the plowed DDS. If any fields exist in the map you'd have to find the image it points too in the XML. You'll need to convert the snow fields to a more summer look too.




Image

RE: Plowed Filed Graphics

Posted: Thu May 01, 2008 12:40 am
by RocketMan
Thanks for the info Mraah.

I think you are saying that the plowed filed image files are specific to the map. Is this correct?

RE: Plowed Filed Graphics

Posted: Thu May 01, 2008 4:26 am
by Mraah
ORIGINAL: RocketMan

Thanks for the info Mraah.

I think you are saying that the plowed filed image files are specific to the map. Is this correct?

I can be specific, as in my example. Seems most of Kharkov is grass and mud.

Which map are you trying to edit where the fields wouldn't have a grid on them? (post #3)



RE: Plowed Filed Graphics

Posted: Thu May 01, 2008 10:47 pm
by RocketMan
ORIGINAL: Mraah

ORIGINAL: RocketMan

Thanks for the info Mraah.

I think you are saying that the plowed filed image files are specific to the map. Is this correct?

I can be specific, as in my example. Seems most of Kharkov is grass and mud.

Which map are you trying to edit where the fields wouldn't have a grid on them? (post #3)



I am not working on any specific map. What I have been trying to do is find a single file I can modify that will grid the plowed fields on all the maps, like the tiled_grass files do for all the maps with grass.

RE: Plowed Filed Graphics

Posted: Thu May 01, 2008 11:26 pm
by rickier65
ORIGINAL: RocketMan

Thanks for the info Mraah.

I think you are saying that the plowed filed image files are specific to the map. Is this correct?

I think that's true - I couldnt find any others. One was made for plowed snow field, but I sus[ect it's not used much in Kharkov. The Plowed Snowfield could could be modded to plowed dirt field. But then it would still only apply to maps that were modded to use it.

Stridor might have more info on this -

Rick

RE: Plowed Filed Graphics

Posted: Fri May 02, 2008 12:45 pm
by Erik Rutins
RocketMan,

In some cases, the textures are spread out between the Level folders. We should reorganize things in the future, but for now I think your best bet in cases like this is to adjust multiple textures and just use JSGME to put them in the right folders.

Regards,

- Erik

RE: Plowed Filed Graphics

Posted: Fri May 02, 2008 10:07 pm
by RocketMan
ORIGINAL: Erik Rutins

RocketMan,

In some cases, the textures are spread out between the Level folders. We should reorganize things in the future, but for now I think your best bet in cases like this is to adjust multiple textures and just use JSGME to put them in the right folders.

Regards,

- Erik

That would be a good suggestion if I could figure out what files are being used to draw the plowed fields. Hence my original question.

RE: Plowed Filed Graphics

Posted: Thu May 08, 2008 1:04 pm
by Mraah
ORIGINAL: RocketMan
I added a grid to all the terrain files I could find (mud, rock, dirt and forest), however none of them did anything for the plowed field.

In fact the only one that did anything (at least on the maps I have checked, which is not all of them) was the forest grid, and it does not line up with the grass grid at all, as can be seen in the screenshot below.

RM,

In my Grid overlay mod, I just made two new entries in the XML to get a mask of a grid across the entire map.

In your problem, where the forest grid does not line up right, you may need to change the Rotation value for the forest grid in the SceneXML so it lines up and perhaps the X and Y values. Anywhere in the XML where it loads a specific DDS it would need adjusting, if it doesn't look right. This is my best guess because I haven't tried it yet.

In your screenshot, you may not need to apply the grid to the forest because it already has the grass grid. You'd have to look at the maps and find places where the grid isn't displayed, ie you mentioned field's etc. These would be the places where it would have to be tweaked.

In the case of the winter maps, level 1-10 ... that has several meshes with each one defining a DDS and masks. These are more complicated and instead of making a grid for a specific texture DDS and tweak it for every layer, I just slpapped a basic grid on top of it all. It doesn't look as pretty though.

Rob

RE: Plowed Filed Graphics

Posted: Thu May 08, 2008 1:33 pm
by RocketMan
Thanks for the info Mraah. I haven't played around with scenario editing at all, all my modding experience is adding geometric shapes to picture files. I will have to get into the editor and figure it out one day.