MegaGlest Forum

MegaGlest => Feature requests => Topic started by: MuwuM on 7 October 2013, 21:55:52

Title: [done] Accept randomPositionEnabled as parameter for tileset objects
Post by: MuwuM on 7 October 2013, 21:55:52
I added an optional parameter to the tileset object to enable/disable randomized positions.

Usage/defaults
Code: [Select]
<object walkable="false">
        <model path="models/wood_tree_2.g3d" anim-speed="-1" smoothTwoFrameAnim="false" rotationAllowed="true" randomPositionEnabled="true"/>
</object>

Every property of the "model" besides the "path"-property is optional.

Code: [Select]
[img]http://img28.imageshack.us/img28/3789/kc8x.jpg[/img]
Download link for the game patch (http://muwum.org/glest/randomPositionEnabled.patch)

Documentation Patch for the wiki


(click to show/hide)

Edit by Omega: Code blocks inside spoiler tags need a new line before opening code tag or you'll get code blocks with a height of less than one line.
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: Ishmaru on 8 October 2013, 01:34:27
Wonderful hope this gets included in megaglest releases!
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: MightyMic on 8 October 2013, 03:54:03
This would be great for my lego mod! ...  if I ever finish it :'(
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: softcoder on 8 October 2013, 14:36:28
This patch was applied to svn.
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: MuwuM on 8 October 2013, 14:41:03
Thanks softcoder.  :thumbup:

Should I apply the changes to the wiki?
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: Omega on 8 October 2013, 14:50:31
Should I apply the changes to the wiki?
Go ahead.
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: MuwuM on 8 October 2013, 15:15:50
Done.

could someone please check whether it's ok https://docs.megaglest.org/XML/Tileset (https://docs.megaglest.org/XML/Tileset)
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: tomreyn on 8 October 2013, 18:10:26
"svn head" is a moving target, it always points to the latest revision, so this is not a useful statement to determine whether or not a certain build will support it. Instead, I suggest you use of of the following notations (the actual values given are examples):
I very much favor the first notation, since it is precise, and easily interpreted by many.

Nice feature by the way. :)
Title: Re: Accept randomPositionEnabled as parameter for tileset objects
Post by: MuwuM on 8 October 2013, 18:55:56
Now using: [ MegaGlest >= 3.8.0-beta1 (+r4514) ] and [ MegaGlest >=3.8.0-dev+r4598 ]

Just noticed,: Would it make sence to have a additional Forum/wiki page, where deprecated and new XML elements are described?