Author Topic: How do you create buildings?  (Read 3920 times)

Mangudai

  • Guest
How do you create buildings?
« on: 9 March 2006, 19:25:59 »
I tried something new last night and didn't succeed.

My goal is to create two defense towers for the tech faction.  For now I'll use the same graphics and animations for both.  I want one weaker tower with 2000HP, 100 gold 100 wood cost, I also reduced the armor and attack slightly, and the weak tower doesn't require advanced architecture. I also want a stronger tower with 5000 HP, stone armor, 250 gold 250 stone.  I copied the defense_tower folder and named in defense_tower2.

I figured out how to mod the basic defense_tower and make it work.  But, the game always failed to play with defense_tower2.  Part of the problem was in worker.xml.  I added a few lines wherever there was a mention of defense_tower, I added a line for defense_tower2.  I suspect the problem may be that I need to add a command button for this new building.
 

It seems that adding any building will require modification of several files.  Could someone please explain what modifications are necessary?
« Last Edit: 1 January 1970, 00:00:00 by Mangudai »

fireborn

  • Guest
(No subject)
« Reply #1 on: 9 March 2006, 22:02:14 »
if you want to use same graphics for the new building, you just need to edit the XMLs, if you want to use the same shape but change the graphics, you'll need to edit XML and TGA files, if you want to use a different shape, then you'll need to edit the models.
« Last Edit: 1 January 1970, 00:00:00 by fireborn »

Mangudai

  • Guest
(No subject)
« Reply #2 on: 10 March 2006, 03:51:35 »
Thanks fireborn.

I'm starting to get the hang of it.  I added attacks to several buildings.  The .xml coding is not to bad.  I still can't do graphics though.

I tried downloading glest_tools_1.4.zip, but my copy of winzip said it was not a valid archive.
« Last Edit: 1 January 1970, 00:00:00 by Mangudai »

fireborn

  • Guest
(No subject)
« Reply #3 on: 11 March 2006, 20:29:47 »
graphics are divided in two files, the shape is defined by the model, the texture is defined by .TGA files, wich can be edited by any image editor such as photoshop, gimp, 20/20s.

models can be made or edited with 3d modelers, programs such as blender, wings3d, milkshape, 3dsmax...

so a unit is basically made of .g3d files(shape and animation), .tga files(texture) and .xml files(the code), you just need to edit one type of file depending of the modification you want to make, or everything for total modification.
« Last Edit: 1 January 1970, 00:00:00 by fireborn »

Mangudai

  • Guest
(No subject)
« Reply #4 on: 12 March 2006, 17:27:39 »
It seems that if you want to add a new building you have to make changes in worker.xml or initiate.xml.  You also need a folder with all the images, models, etc for the new building.

I tried adding a second tower using all the same images, but it didn't work.  I wonder what I've overlooked?
« Last Edit: 1 January 1970, 00:00:00 by Mangudai »

emscape

  • Guest
Re: How do you create buildings?
« Reply #5 on: 21 December 2009, 17:46:45 »
i have one question which parameter makes a building a building?

-Archmage-

  • Moderator
  • Dragon
  • ********
  • Posts: 5,887
  • Make it so.
    • View Profile
    • My Website
Re: How do you create buildings?
« Reply #6 on: 21 December 2009, 17:53:14 »
1- Multi-select is false
2- No move skill or command
Egypt Remastered!

Proof: Owner of glest@mail.com

Loronal

  • Guest
Re: How do you create buildings?
« Reply #7 on: 22 December 2009, 14:37:56 »
Not always I use gae to implement wall and there I prefer multi select