Author Topic: uneven building placement and grid placement helper  (Read 936 times)

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
uneven building placement and grid placement helper
« on: 7 April 2012, 19:33:25 »
Id like a option to enable a grid helper like this
http://www.mediafire.com/i/?2zrmnoqa9ri4ws9

Also it would be nice if we could have uneven building footprints. So that we could have other building shapes than just squares.
WiP Game developer.
I do danish translations.
"i break stuff"

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: uneven building placement and grid placement helper
« Reply #1 on: 7 April 2012, 20:15:43 »
Also it would be nice if we could have uneven building footprints. So that we could have other building shapes than just squares.
Dunno what you mean by this. Care to elaborate, please?
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: uneven building placement and grid placement helper
« Reply #2 on: 7 April 2012, 20:25:03 »
The current system only allows a equal size of widht and lengt of a building

say i want a building that looks like this.

aa
aa
aaaaaa
aaaaaa

i cant do that.
WiP Game developer.
I do danish translations.
"i break stuff"

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: uneven building placement and grid placement helper
« Reply #3 on: 7 April 2012, 20:46:19 »
yes you can using cell maps:

Code: [Select]
<cellmap value="true">
<row value="1111"/>
<row value="1111"/>
<row value="0011"/>
<row value="0011"/>
</cellmap>

0= empty space
1= building

From the Glest wiki:
Quote
Cellmaps are generally used only for buildings to define what parts are walkable and what parts are not. If the building takes up the entire square that is defined by its size, then the cellmap should not be used (the value should be false the tag should be immediately closed, such as <cellmap value="false" />). Otherwise, if using the cellmap, there must be as many row elements as the size, and each of these row's must have a value containing as many characters as the unit's size. So if the unit is size 2, there should be two row tags each with 2 characters. These characters are 1's (cannot be walked on) and 0's (can be walked on). Cellmaps are rotated with the unit.

This have been done since vanilla Glest.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: uneven building placement and grid placement helper
« Reply #4 on: 7 April 2012, 20:49:38 »
Im not really sure if this is what i want, im going to check it out.
WiP Game developer.
I do danish translations.
"i break stuff"

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: uneven building placement and grid placement helper
« Reply #5 on: 7 April 2012, 21:18:52 »
aa
aa
aaaaaa
aaaaaa

You could do this:

Code: [Select]
<size value="7" />
....
<cellmap value="true">
0000000
1100000
1100000
1111111
1111111
0000000
0000000
</cellmap>

the cell map must have an overall square shape yes, but "0" spaces do not obstruct the building of other structures.
When building a structure a ghost g3d is seen to aid in the placement of the structure in Megaglest.
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

Coldfusionstorm

  • Golem
  • ******
  • Posts: 868
    • View Profile
Re: uneven building placement and grid placement helper
« Reply #6 on: 7 April 2012, 21:30:24 »
But this would generate a overly large circle too.  not to mention it does get fairly complicated being sure your model is in the correct spot when exported. And i also mentioned the placement helper.
"The grid"

anyhow im going to check it out. Even then the feature i miss most is the grid placement helper in addtion to the ghost g3d
WiP Game developer.
I do danish translations.
"i break stuff"