How do i make my own weapons?

Post Reply
gamemakingdude
Posts: 2
Joined: Thu Jan 12, 2012 11:43 pm

How do i make my own weapons?

Post by gamemakingdude » Fri Jan 13, 2012 7:45 pm

Hi, i am trying to find out how do i make my own weapons for Overgrowth.

User avatar
Johannes
Posts: 1374
Joined: Thu Dec 18, 2008 1:26 am
Contact:

Re: How do i make my own weapons?

Post by Johannes » Fri Jan 13, 2012 8:38 pm

gamemakingdude wrote:Hi, i am trying to find out how do i make my own weapons for Overgrowth.
Check in the Game's Data folder, and learn by example.

All objects, including, weapons are defined as xml files.
Specifically weapons will be in Data/Objects/Weapons
Image

Find the xml files of existing weapons, then duplicate them, change them, and experiment.

To load a modified weapon file (or any object xml file for that matter) just click 'Load Item' in the in-game editor, then click the small folder icon:
Image
and navigate to the xml file you want.

If you're confused by which weapon file works, and which don't (not all do) just try loading them manually as described above.

gamemakingdude
Posts: 2
Joined: Thu Jan 12, 2012 11:43 pm

Re: How do i make my own weapons?

Post by gamemakingdude » Fri Jan 13, 2012 10:02 pm

How extactly am i supposed to modify the weapons if theres no scripts?

User avatar
Johannes
Posts: 1374
Joined: Thu Dec 18, 2008 1:26 am
Contact:

Re: How do i make my own weapons?

Post by Johannes » Fri Jan 13, 2012 11:36 pm

gamemakingdude wrote:How extactly am i supposed to modify the weapons if theres no scripts?

Two other locations you'll need to check, depending on what you want to do:

Code: Select all

Data/Attacks
and

Code: Select all

Data/Items/Weapons

User avatar
Endoperez
Posts: 5668
Joined: Sun Jan 11, 2009 7:41 am
Location: cold and dark and lovely Finland

Re: How do i make my own weapons?

Post by Endoperez » Sat Jan 14, 2012 5:33 am

You can model weapons in any 3D software you use. Export them as OBJ and define the 'object' in an XML file. You need to tell it the mesh and textures and shader is uses.

From any 'object', you can make an 'item', which is something that can be carried around and used as a weapon. It consists of editing a different XML where you tell which object to use, how much damage it deals, which animations are used, etc. I don't remember all the stuff there.

The place where the character grabs an item is the origo (0,0,0 in XYZ coordinate system) of the model in the 3D software. If no attack animations and stuff is defined, the weapon is grabbed but not usable as a weapon.

Post Reply