-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mirror center #19
Comments
Interesting. gynt, I need a bit of expertise here. The actual center of the map is in the middle of the mentioned four tiles, right? |
It's a problem with the grid basically here is how the grid is aligned on the map https://i.imgur.com/tiEIYS5.png you can see how it is not centered correctly essentially it would have to get moved enough to the double centerline would be in the middle of the resource building which would be roughly 3 tiles up/down and left/right however since I assume changing the grid is impossible at this point its best to simply add a function specifically for this purpose where the center isn't perfectly in the middle of the map but slightly offset to address the resource issue as otherwise you have to work with mirror off to place down these resources if you are working with precise measurements which are sorta required with those two resources if you want them to be used a specific way by the player and the ai. btw if you look precisely you can see how the map is kinda weirdly proportioned with 2 corners being 2 tiles wide and the other two 1 tile (you can verify this ingame too, i tested it on a 400x400 map) ... not sure what's up there but you know lots of odd stuff happening with maps generally speaking |
Ok, I created a pull request, even though it may not be precisely the solution you asked for, I added the ability to set the center point for the mirroring functions. Using a x.5 value like 199.5 for example for both x and y coordinates will move the center onto a tile. I think this might produce the results you want. Did you use anything past version 1.1 of the editor tools? If not, using the newer stuff might be a bit of an adjustment. 🙃 However, does the whole resource raster stuff mean that even a perfect visual mirror would not be an perfect mirror for the AI? |
@TheRedDaemon whats the command to set this up then? xP i was struggleing with the current setup already btw xP i only know the new version aslo basically just started using it like 5 days ago |
I try to give a quick summary: Version 1.1 had only two variables, However, The values for setting the mirroring center are
I hope that helps a bit. And of course, the x and y coord values currently only exist if the version of my branch is used. |
If you use If not, you need the |
mhm i had to manually change the content of the .lua but it works now ^^ and looks like it works perfectly!! thx |
You are welcome. 👍 However, small question: What do you mean with
? Did you change a particular part of the code, or did you copy over the whole content of another version of the file? |
i mean i copy pasted the content from the downloaded file to the already existing one... as it didnt want to work when just replacing the files for some reason ^^ thats all btw how can i set the default value to be 199.5 for x and y coords by defuault? like which line of code do i define it in? |
Alright 👍 And as long as the bigger brushes are symmetrical, everything else should also be up to date. (Since gynt fixed the odd, missing upper left edge of the brush, making them proper mirror-able.)
In short, it should be on line 1821 ( |
ooh he fixed the big brushes! amazing love it sweet its still simple enough if you have the right software that shows the lines so dw =) |
Nice fix @TheRedDaemon @Monsterfisch I just want to correct one misconception. The grid is symmetrical. You can explore a map file here by loading your favorite map and pressing |
mhm interesting and yeah on some sides based on rotation of the map one line of tiles is completely cutoff i could only really build there with the terrain raised too but at least it is possible xP damn you FF :D |
when creating maps for ai one has to align iron and swamp resources according to a 5x5 grid sadly when using the mirror tool that grid is not accurately mirrored to both sides of the map aka there is a 1 tile offset at the center of the map
my suggestion would be to make the mirror tool have an even and uneven setting where it would change from a 2x2 square in the center of the map to a 1 tile in the center
right side is how it currently mirrors (if all sides are mirrored) and left is how i suggest it work if set to uneven
that way the 5x5 grid will be mirrored correctly and make placeing down iron and pitch alot less of a headache
The text was updated successfully, but these errors were encountered: