Forged Alliance Forever Forged Alliance Forever Forums 2018-02-03T02:55:16+02:00 /feed.php?f=41&t=6365 2018-02-03T02:55:16+02:00 2018-02-03T02:55:16+02:00 /viewtopic.php?t=6365&p=160325#p160325 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
Footprint = {
SizeX = 1,
SizeZ = 1,
},

But then units walk throw that wall as if its a power gen?

I would just love a simple solution to a wall problem with the wall the foundation size of a T1 Power Gen and without units walking throw it please.

Statistics: Posted by REPELLERCOM — 03 Feb 2018, 02:55


]]>
2014-04-10T18:34:53+02:00 2014-04-10T18:34:53+02:00 /viewtopic.php?t=6365&p=70959#p70959 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
Domino wrote:
there is a blueprint editor in game i think its shift f6 or something with /debug enabled command line switch and cheats enabled in game.
theres no way to bebug such an error, in time you wont make those errors, but its best in the beginning at learning to save and restart regular,
this way you can easly track what you changed your self.

its a process we all learn :)


If you run the game with /showlog and /debug, you'll get a window for the log and a window for the lua debugger.

How you get breakpoints and other good stuff working I havent tested yet.

Other than that, using just the log, one can do poor mans debugging using the LOG() function( neat with the window showing), and repr() is your friend.

Statistics: Posted by Sheeo — 10 Apr 2014, 18:34


]]>
2014-02-18T05:24:30+02:00 2014-02-18T05:24:30+02:00 /viewtopic.php?t=6365&p=65773#p65773 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]> a) Naval buildings even though big are still aligned to the wall-type grid.
b) Some mods have big land structures that are aligned to wall-type grid.
So it's doable.

I suggest looking into Total Mayhem or BlackOps. One of experimental turrets there are gigantic yet aligned with walls not with structures. Just need to copy the solution from there and apply it to all the wall-aligned units in game and send it with next FAT patch. BOOOM, done!

Statistics: Posted by necxelos — 18 Feb 2014, 05:24


]]>
2014-02-17T05:55:28+02:00 2014-02-17T05:55:28+02:00 /viewtopic.php?t=6365&p=65605#p65605 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
The template should then be able to lock the wall sections and size 1 structures to their fractional positions, in a live game, with no need for a mod. ;)

Statistics: Posted by Hawkei — 17 Feb 2014, 05:55


]]>
2014-02-17T05:26:24+02:00 2014-02-17T05:26:24+02:00 /viewtopic.php?t=6365&p=65599#p65599 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
Hawkei wrote:
Sulo,

I note with your diagram that the SMD is a size 3 structure. Which has been offset to allow adjacency with 2, 4, 6, 8 and 10 sizes. Wouldn't it be possible to do this with size one structures? Such as PD, AA and wall sections?



That was my point, however I have no idea how to do this as I've never modded SupCom or even looked at how the structures are saved.

But the basic principle is somewhere in those files so if someone that knows where they are and how they work look into this we just might get size 1 buildings lined up :)

Statistics: Posted by Sulo — 17 Feb 2014, 05:26


]]>
2014-02-17T04:15:36+02:00 2014-02-17T04:15:36+02:00 /viewtopic.php?t=6365&p=65592#p65592 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
I note with your diagram that the SMD is a size 3 structure. Which has been offset to allow adjacency with 2, 4, 6, 8 and 10 sizes. Wouldn't it be possible to do this with size one structures? Such as PD, AA and wall sections?

Statistics: Posted by Hawkei — 17 Feb 2014, 04:15


]]>
2014-02-16T20:07:07+02:00 2014-02-16T20:07:07+02:00 /viewtopic.php?t=6365&p=65538#p65538 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
errorblankfield wrote:
Can we just align them in the normal game?

It drives my OCD crazy. O_O


+1 for that

Either align size-1 thingy's to half a grid or enlarge them to be size-2 objects.

Statistics: Posted by necxelos — 16 Feb 2014, 20:07


]]>
2014-02-07T19:39:00+02:00 2014-02-07T19:39:00+02:00 /viewtopic.php?t=6365&p=64478#p64478 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
Hawkei wrote:
Well it does makes sense. Only the building centroid is aligned with the grid. Meaning that direct adjacency with odd or even sized structures is not possible. Say for instance you had a Size 3 structure (of which there are none in the game) it would be incapable of adjacency with any economic structures.

Size 1 = PD, AA, wall
Size 2 = T2 Defences, T1 Pgen, T2 Mex, Fab, Radar, etc.
Size 4 = SMD
Size 6 = Hydro, T2 Pgen, Shields, T3 Fab, Nuke
Size 8 = LFac, AFac, T3 Pgen, T3 Arty

The only way to make a Size 1 and Size 2 adjacent would be to modify the Size 1 BP to somehow lock to half grid point locations.


SMD is 3x3 not 4x4 that is why it leaves that ugly L-shaped hole in your grid.


vxu wrote:
ah, that makes sense now. so the origin 0,0,0 is always in the middle of a 1x1 field, right?

well, with the skirt offset i can move the skirt, but i dont know of any way to also move the building...



Well, like I said before it depends on structure size, see this:

Image

Black lines are coordinates with .0 (so 1, 2, 3, 4 etc), blue boxes show 1x1, 2x2, 3x3 and 4x4 structures and blue dots show where are they centered.

But still, I think only structure with odd numbered size is SMD with its 3x3 so your statement is almost 100% true :)


Long story short - you want to change 1x1 buildings to work the same way as 3x3 work, only smaller, so look into SMD model or blueprint (not a modder :D) and see how it works.

Statistics: Posted by Sulo — 07 Feb 2014, 19:39


]]>
2014-02-07T13:57:57+02:00 2014-02-07T13:57:57+02:00 /viewtopic.php?t=6365&p=64429#p64429 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
well, with the skirt offset i can move the skirt, but i dont know of any way to also move the building...

Statistics: Posted by vxu — 07 Feb 2014, 13:57


]]>
2014-02-07T06:04:38+02:00 2014-02-07T06:04:38+02:00 /viewtopic.php?t=6365&p=64390#p64390 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
Size 1 = PD, AA, wall
Size 2 = T2 Defences, T1 Pgen, T2 Mex, Fab, Radar, etc.
Size 4 = SMD
Size 6 = Hydro, T2 Pgen, Shields, T3 Fab, Nuke
Size 8 = LFac, AFac, T3 Pgen, T3 Arty

The only way to make a Size 1 and Size 2 adjacent would be to modify the Size 1 BP to somehow lock to half grid point locations.

Statistics: Posted by Hawkei — 07 Feb 2014, 06:04


]]>
2014-01-20T20:34:44+02:00 2014-01-20T20:34:44+02:00 /viewtopic.php?t=6365&p=62802#p62802 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
That would mean that 2x2, 4x4, 6x6 and so on buildings are centered to .5 coord and 3x3, 5x5... to .0

Howewer the 1x1 buildings are exception, they are odd numbers but are centered to .5 and thus creating the gap.

Or using another point of view - 1x1 buildings have their top left corner at .0 and larger buildings have it at .5
A bit easier huh.

Statistics: Posted by Sulo — 20 Jan 2014, 20:34


]]>
2014-01-20T20:20:44+02:00 2014-01-20T20:20:44+02:00 /viewtopic.php?t=6365&p=62797#p62797 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]> theres no way to bebug such an error, in time you wont make those errors, but its best in the beginning at learning to save and restart regular,
this way you can easly track what you changed your self.

its a process we all learn :)

Statistics: Posted by Domino — 20 Jan 2014, 20:20


]]>
2014-01-20T20:17:54+02:00 2014-01-20T20:17:54+02:00 /viewtopic.php?t=6365&p=62794#p62794 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]> Statistics: Posted by Domino — 20 Jan 2014, 20:17


]]>
2014-01-20T04:36:41+02:00 2014-01-20T04:36:41+02:00 /viewtopic.php?t=6365&p=62714#p62714 <![CDATA[Re: Aligning size-1 buildings with "default" size-2 grid?]]>
It drives my OCD crazy. O_O

Statistics: Posted by errorblankfield — 20 Jan 2014, 04:36


]]>
2014-01-19T05:10:22+02:00 2014-01-19T05:10:22+02:00 /viewtopic.php?t=6365&p=62605#p62605 <![CDATA[Aligning size-1 buildings with "default" size-2 grid?]]>
I have started looking into modding a bit and I am stuck with the following problem: I want to change blueprints such that the skirt of size-1 buildings like a wall or tech1-pointDefense are aligned with the "default" grid of size-2 buildings. E.g. a wall cannot be placed directly adjacent next to a MEX or a tech2-PD, it is always .5 off. I would like to be able to place 2 size-1 buildings touching the side of a size-2 building, e.g. 2 mini-mass-storages on one side of a MEX.

I tried changing SkirtSize, SkirtOffset and Footprint.Size but to no success.

When I aligned the skirt correctly (e.g. skirt =1, offset=-.5) the building itself was not centered in the skirt anymore.

Any ideas? What am I missing? Thanks!

Image

And some nooby dev questions:
Can i also changed blueprints live in game using the console? How?
Is there a way to "debug" LUA scripts? E.g. when i have an error in my mod script (e.g. nil reference, ...) the game just crashes, but i dont get told the line number or even the file (myfile) that caused the problem...

Statistics: Posted by vxu — 19 Jan 2014, 05:10


]]>