Author Topic: [done] Accept randomPositionEnabled as parameter for tileset objects  (Read 1105 times)

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
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

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.
« Last Edit: 7 October 2016, 21:16:10 by filux »

Ishmaru

  • Behemoth
  • *******
  • Posts: 1,071
  • um wat??
    • View Profile
    • DelphaDesign
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #1 on: 8 October 2013, 01:34:27 »
Wonderful hope this gets included in megaglest releases!
Annex: Conquer the World Release 4 For Pc Mac + Linux
https://forum.megaglest.org/index.php?topic=9570.0
Annex is now on Facebook!
https://www.facebook.com/AnnexConquer

MightyMic

  • Technician
  • ****
  • Posts: 150
  • To mod, or not to mod...
    • View Profile
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #2 on: 8 October 2013, 03:54:03 »
This would be great for my lego mod! ...  if I ever finish it :'(

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #3 on: 8 October 2013, 14:36:28 »
This patch was applied to svn.

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #4 on: 8 October 2013, 14:41:03 »
Thanks softcoder.  :thumbup:

Should I apply the changes to the wiki?

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #5 on: 8 October 2013, 14:50:31 »
Should I apply the changes to the wiki?
Go ahead.
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #6 on: 8 October 2013, 15:15:50 »
Done.

could someone please check whether it's ok https://docs.megaglest.org/XML/Tileset
« Last Edit: 18 June 2016, 15:11:31 by filux »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #7 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):
  • MegaGlest 1.2.3-dev+r1234  - a build of subversion revision 1234 which carries the v1.2.3-dev version string
  • MegaGlest r1234 - this will help developers, but modders will still find it difficult to tell whether or not a given build they have supports it
  • MegaGlest >= 1.2.4 - the supposed - since you cannot know release versions in advance - future release version which will definitely contain this feature
I very much favor the first notation, since it is precise, and easily interpreted by many.

Nice feature by the way. :)
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

MuwuM

  • Ornithopter
  • *****
  • Posts: 426
  • No Game without Move(ment)
    • View Profile
    • MuwuM - Lexicons
Re: Accept randomPositionEnabled as parameter for tileset objects
« Reply #8 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?

 

anything