The wiki creates a partial vacuum. Fix plox?

The wiki creates a partial vacuum. Fix plox?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

The wiki creates a partial vacuum. Fix plox?

Post by Forboding Angel »

And I've already researched it:
http://www.mediawiki.org/wiki/Extension ... rch_Engine


Image

Image

thewikisucks1.jpg
(168.81 KiB) Downloaded 2 times
thewikisucks2.jpg
(256.63 KiB) Downloaded 2 times
Last edited by Forboding Angel on 15 Nov 2010, 03:40, edited 3 times in total.
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

Re: The wiki sucks. Fix plox?

Post by jK »

Change caption please, we are civilized people ...

edit:
thx :mrgreen:
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: The wiki creates a partial vacuum. Fix plox?

Post by Forboding Angel »

:lol: You're welcome :wink:
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: The wiki creates a partial vacuum. Fix plox?

Post by Argh »

I like this idea, but I think that we really need a doc explaining the basic terminology, so that people understand what "weaponDef" means, etc.

AAAAAargh, I hate this keyboard, and my primary isn't USB, or I would just start writing this...
User avatar
Argh
Posts: 10920
Joined: 21 Feb 2005, 03:38

Re: The wiki creates a partial vacuum. Fix plox?

Post by Argh »

Screw it. If somebody has time to clean / edit and stick in Wiki, here we go:

Structure of Spring Game Text Data

Games built for Spring have a number of specific data formats, largely inherited from the TDF/FBI text format, but with considerable changes and improvements to the engine, which has resulted in what we call "tags".

Each "tag" is a specific data type- a string, a floating-point number, an integer, or a true / false statement. Each tag is documented in the "defs", or "definitions"- a guide to the data types and their functions, presented in the current standard format, which is a Lua document essentially providing nothing more than a large table (with sub-tables) and a final declaration of the table entry's name.

Because Spring uses a model of game objects that is geared towards fairly non-generic usage (i.e., the engine is mainly designed for RTS game designs), the "defs" are divided into several very specific categories: unitDefs, weaponDefs, featureDefs and soundDefs, amongst others.

Each "def" should be read as a functional blueprint, describing what the Spring Engine is able to do with the object.

A weaponDef, for example, that has the weaponType tag of "LaserCannon", is restricted to certain types of graphical, physical and other behaviors. While this may strike new game designers as somewhat arbitrary, it's usually possible to work around the limitations of many of the weapons, once you have learned about how to use Lua to augment their behaviors.

Each Def is a special data format. Despite the similarity of names, each one has unique limitations and caveats.




.................................................................................


The more I write this, the more I feel like an apologist for something I think is fundamentally broken. I really haven't thought about this much, because I, like the rest of the non-newbies, have the vast majority of the tags memorized or at least remember what they do.

But the more of this I write, the more I don't want to try to explain to newbies why you can't combine the graphics effect of a LaserCannon with the guidance of a missile, why you can only use certain tags in certain combos w/ canFly, etc...

I'm basically apologizing for the tag forest, which I honestly think we should abolish / streamline / make optional by doing a rewrite in Lua with some new callouts to engine functions nobody wants to write again :P
User avatar
Pxtl
Posts: 6112
Joined: 23 Oct 2004, 01:43

Re: The wiki creates a partial vacuum. Fix plox?

Post by Pxtl »

+1, I've frequently been let down by Wiki's broken search.

Seriously, just link to a Google search with the prefix "site:http://springrts.com/wiki" and it works better. Replace the search box with that.

For example: use the string "site:http://springrts.com/wiki/ lua weapondefs" in google.

http://lmgtfy.com/?q=site:http://spring ... weapondefs
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: The wiki creates a partial vacuum. Fix plox?

Post by abma »

an feature request would be nice, so people who could fix this, read this + they can't forget it.

(please report to: http://springrts.com/mantis/ )
Post Reply

Return to “Engine”