Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Foundations vs. War Factories
#1
Yay, I did my first research! Sort of. I'm pretty sure our coders may figure out more from this subject, but this is already more then an NB in the manual.

OK, well, when I seen 1508, I thought about it. In theory it should be already possible. We have Ares, we have custom foundations. The doc even tells us which cell is the exit one. Renegade mapped this cell to place with shift-click in the CFGen. We even have ExitCoord. What's missing then?

Somebody to try it out and share the results with the public.

So I went for it. My first try was with I-Man's pre-release Allied War Factory on YRArg. It's just a 4x3 building, positioned in canvas to behave like an 5x3 one. So I grabbed the standard WarF codes, cutted that fifth row out from the canvas, set up a custom foundation and started Ares. Surprise, it worked. The unit jumped a bit, but I could fix it by replacing ExitCoord with the Soviet WF's one.

I stopped. This may be a great possibility to conversion creators. But this isn't enough to say it's working. I have to try other orientations.

I asked Cranium to create me a WF for testing purposes, it became a 5x5 pyramid, with exit coords for all 4 ways. I created 4 different buildings, one with standard orientation however totally custom foundation and three 5x5 foundation where the orientation is set to elsewhere. And another testing phase of mine started.

And this was the point where WW's coding style slipped in. The logic whispers that the unit is spawned in ExitCoord then goes directly to Foundation.Outline10. But it's wrong. The unit is spawned on ExitCoord for a frame, checks if Foundation.Outline10 is free/can be freed, if yes, then the unit respawns 2-3 cells north above Foundation.Outline10 and going there.

To see, play it yourself, I attached all of my experimental codes and images. Note that Cranium's SHP is just a quick sketch, only created for my experimental purposes.

In short, we can use custom foundation WFs until we keep the orientation and play with ExitCoord... thereby 1508 is possible in a way.


Attached Files
.zip   CF WarFs.zip (Size: 183.44 KB / Downloads: 443)
Reply


Messages In This Thread
Custom Foundations vs. War Factories - by Graion Dilach - 03.04.2011, 03:06:09
RE: Custom Foundations vs. War Factories - by Guest - 03.04.2011, 06:50:41



Users browsing this thread: 1 Guest(s)