Game and Unit development: Difference between revisions

From Spring
Jump to navigationJump to search
Smoth (talk | contribs)
Smoth (talk | contribs)
Line 27: Line 27:
**[[Unit_Categories]] - define which weapon type aim at which targets
**[[Unit_Categories]] - define which weapon type aim at which targets
**[[Unit_collision_volumes | Unit Collision Volumes]] - collision detection
**[[Unit_collision_volumes | Unit Collision Volumes]] - collision detection
*WeaponDefs (.tdf, .lua)*
*WeaponDefs (.tdf, .lua)
**[[Weapon Variables]] : This is the most up to date
**[[Weapon Variables]] : This is the most up to date
**[[Units:WeaponMainDir]]
**[[Units:WeaponMainDir]]
Line 35: Line 35:
*FeatureDefs (objects on the map, wrecks of destroyed units)
*FeatureDefs (objects on the map, wrecks of destroyed units)
**[[Units-FeatureDefs]]
**[[Units-FeatureDefs]]
*Global game variables (modrules.lua)*
*Global game variables (modrules.lua)
**[[Modrules.lua]]
**[[Modrules.lua]]
*[[CEG]] Explosions (.tdf, .lua)*
*[[CEG]] Explosions (.tdf, .lua)*
Line 44: Line 44:
**[[CEG-Miscellaneous]]  
**[[CEG-Miscellaneous]]  
**[[CEG-OldInfo]]
**[[CEG-OldInfo]]
*Misc*
*Misc
**[[VirtualFileSystem]]
**[[VirtualFileSystem]]
**[[MouseCursors]]
**[[MouseCursors]]

Revision as of 05:49, 12 February 2012

Development < Game and Unit development

Game development

This information is meant to help newcomers learn how to develop their own games for the Spring Engine.


General

Resources

Reference

Unit Scripting/Animations (.cob, .bos, .lua)

Lua Animations

To edit .lua files you need a text editor.

COB Animations

The binary '.cob' file format is obsolete and some '.cob' files might be copyrighed by cavedog. A '.cob' file can be decompiled to see what it is doing or if you have the source, that is a '.bos' file, you can compile it into a '.cob' file.

To edit .bos files you need a program/compiler. The most famous one is Scriptor

Modeling

Spring supports different 3d representations: '.s3o' and '.3do'. The biggest difference between both formats is the workflow to create a new unit. There are exporter plugins for 'blender' and '3ds-max' so that texturing and modeling can be done using these. In contrast: when you model an '.3do' you have to use upspring currently.

The animation with can either be done using 'lua' or 'COB/BOS' is does not depend on either, see rigging/animation. For new units use 'lua' scripting.

Engine Related

  • Download_Testing - Test the compatibility of your game on upcoming versions of the Spring engine.

Tutorials

Game Development Tutorials

Modeling Tutorials

Texture Tutorials