Author Topic: Could someone teach me...  (Read 949 times)

Offline Stagfish

  • Ultra Heavyweight
  • Posts: 2963
  • Rep: 0
    • View Profile
    • Awards
Could someone teach me...
« on: January 06, 2011, 10:41:46 AM »
How to make the cannon ball from the stock cannon into an egg shape via GMF editing?

Offline Sage

  • *
  • Posts: 6182
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Re: Could someone teach me...
« Reply #1 on: January 06, 2011, 04:18:16 PM »
It would be so much easier just to make an egg in 3DSmax or whatever and copy the GMF data into the cannon GMF. editing the vertices and such to change the shape of a sphere is a lot of work (at least from what I know.)
You got my vote for RA2 Wizard. Always and forever.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Could someone teach me...
« Reply #2 on: January 06, 2011, 05:55:52 PM »
That actually wouldn't be too difficult without 3DS Max...

1. Open up the decompiled GMF.
2. Find the object entitled "ball" and select the vertexes (lines 637 to 662 (inclusive)).
3. Copy and paste the data into excel.
4. At this point, the data should be separated by the tabs of the original code. Therefore, add a multiplier for one of the X, Y, or Z columns (that will make a nice even egg shape of the spherical cannonball).
5. Then just copy and paste that new data back into the GMF. You may need to code the excel so that everything is next to each other.

I have an excel file that does this for me but its not at my fingertips at the moment (if I remember, I'll add it to this post later...)

Edit: Here's what I use...

Offline Clickbeetle

  • *
  • Posts: 3375
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Re: Could someone teach me...
« Reply #3 on: January 06, 2011, 11:09:24 PM »
^That


Also, the grape crate cannon in FB's component pack already shoots egg-shaped projectiles (well... grapes... but they're pretty much egg-shaped), so you could just nab one of those.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline JoeBlo

Re: Could someone teach me...
« Reply #4 on: January 06, 2011, 11:35:12 PM »
^ was exactly what I was going to suggest ^