Mirroring Decals/Props/Units

Interesting mapping tools and mapping help.

Moderator: Morax

Mirroring Decals/Props/Units

Postby Tokyto » 14 Apr 2017, 15:08

Hello fellow mappers.

If you are a mapper you most likely already hit the ''can't mirror across a center line'' limitation. For those who didn't, the official Map Editor doesn't support mirroring decals and props across center-line, it only supports rotating them around map center. this ia HUGE limitation, becouse we can make only maps that are symetric over a diagonal line.

But good news! I figured out a way to do it, but I NEED HELP!

I need someone to write a code that searches for values in a document and replaces them. More info on what values needs to be changes and how are in this document:

https://goo.gl/si1vGJ

For now it would be nice to have a basic script in any language the coder prefers. Later on it would be nice to have an application so users with no coding experience can use this tool as well. I will be more than happy to provide any testing for this!

Thanks for reading and i hope someone will help me in this dire situation ;)

credits: Exotic_Retard for help with mirroring values
User avatar
Tokyto
Evaluator
 
Posts: 540
Joined: 29 May 2013, 16:39
Has liked: 452 times
Been liked: 302 times
FAF User Name: Tokyto_

Re: Mirroring Decals/Props/Units

Postby Paradoxon » 14 Apr 2017, 18:30

Funny that this pops up three days after i start messing around with the .scmap file, trying to mirror props :D
I didn't know you could export them....

So depending on your standards and how fast you want that i could help
Paradoxon
Crusader
 
Posts: 30
Joined: 08 Mar 2017, 18:27
Has liked: 5 times
Been liked: 8 times

Re: Mirroring Decals/Props/Units

Postby b2ag » 14 Apr 2017, 21:20

Yesterday I posted this:
viewtopic.php?f=45&t=14381
b2ag
Crusader
 
Posts: 17
Joined: 02 Apr 2017, 10:58
Has liked: 6 times
Been liked: 9 times
FAF User Name: b2ag

Re: Mirroring Decals/Props/Units

Postby nine2 » 15 Apr 2017, 01:35

I think lionhardt made a script for this, there's a post somewhere
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Mirroring Decals/Props/Units

Postby Paradoxon » 15 Apr 2017, 10:43

Do you mean this one: Object Coordinate Transformation Script

I don't think it is made to mirror objects, but maybe you could use the resize function for that.
Paradoxon
Crusader
 
Posts: 30
Joined: 08 Mar 2017, 18:27
Has liked: 5 times
Been liked: 8 times

Re: Mirroring Decals/Props/Units

Postby b2ag » 15 Apr 2017, 15:19

After some playing around with scmap files I found it impossible to mirror props and decals correctly. Main problem is, that one would have to flip the textures of decals and meshes of props. I couldn't get the SC engine to do that for me :(

One way this still could work is to create flipped versions of every decal outside of SC and maybe don't give to many fs about the props. But new decals would increase map size dramatically.
b2ag
Crusader
 
Posts: 17
Joined: 02 Apr 2017, 10:58
Has liked: 6 times
Been liked: 9 times
FAF User Name: b2ag

Re: Mirroring Decals/Props/Units

Postby nine2 » 15 Apr 2017, 15:57

You can balance a map through rotation, not via mirroring. Because of decals
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Mirroring Decals/Props/Units

Postby Paradoxon » 15 Apr 2017, 19:08

You can balance a map through rotation, not via mirroring. Because of decals

Does it affect balance and gameplay if decals are not perfectly mirrored? If you mirror them it will require a considerable effort to edit or replace them to fit the map, but is there any significant impact?

... and maybe don't give to many fs about the props. ...

I don't know how the reclaim range of props is determined, but i guess as long as you choose somewhat symmetrical ones and their symmetry axis intersects with the location coordinates this too should not be a major problem.
Paradoxon
Crusader
 
Posts: 30
Joined: 08 Mar 2017, 18:27
Has liked: 5 times
Been liked: 8 times

Re: Mirroring Decals/Props/Units

Postby nine2 » 16 Apr 2017, 01:54

Paradoxon wrote:Does it affect balance and gameplay if decals are not perfectly mirrored?


it looks stupid
nine2
Councillor - Promotion
 
Posts: 2416
Joined: 16 Apr 2013, 10:10
Has liked: 285 times
Been liked: 515 times
FAF User Name: Anihilnine

Re: Mirroring Decals/Props/Units

Postby b2ag » 16 Apr 2017, 03:29

Anihilnine wrote:You can balance a map through rotation, not via mirroring. Because of decals

I wrote a script to mirror decal positions, rotations and even the textures (with ImageMagick) just to see it's not possible.
The culprit is that decal textures have a "sun is coming from this direction" information rendered into it. Mirror and I guess even rotate are messing with that.

Sources: https://pastebin.com/TEsrGcJf
b2ag
Crusader
 
Posts: 17
Joined: 02 Apr 2017, 10:58
Has liked: 6 times
Been liked: 9 times
FAF User Name: b2ag

Next

Return to Mapping

Who is online

Users browsing this forum: No registered users and 1 guest