Author Topic: Adding Resource Generation in XML  (Read 1754 times)

MoLAoS

  • Ornithopter
  • *****
  • Posts: 433
    • View Profile
Adding Resource Generation in XML
« on: 10 May 2012, 01:38:16 »
...
« Last Edit: 22 June 2012, 04:04:42 by MoLAoS »

wciow

  • Behemoth
  • *******
  • Posts: 968
    • View Profile
Re: Adding Resource Generation in XML
« Reply #1 on: 11 May 2012, 02:19:13 »
Would like to help you but sadly I know nothing about the source code  :(

So this feature is meant to enable you to have a unit generate resources just by being alive without having to click a button (as with the generate command)?

Whilst you are playing with resources is there any chance of capturable resources like other RTS games? This is easily achievable in LUA but multiplayer LUA scenarios in GAE will probably never happen.
Check out my new Goblin faction - https://forum.megaglest.org/index.php?topic=9658.0

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Adding Resource Generation in XML
« Reply #2 on: 14 May 2012, 20:59:35 »
The 'balance' is not what you think it is  ;)

Use getAmount() & setAmount().
Glest Advanced Engine - Code Monkey

Timeline | Downloads

silnarm

  • Local Moderator
  • Behemoth
  • ********
  • Posts: 1,373
    • View Profile
Re: Adding Resource Generation in XML
« Reply #3 on: 15 May 2012, 10:53:52 »
GAE code is poorly documented and hard to understand. As I have stated elsewhere it practically requires the search half of search and replace to get anything done.

GAE code is documented far better than original Glest, whether its documented well I will not presume to make judgement on, but to say it is poorly documented is poor form.  It is not a small code base, but also not huge, and it could certainly do with some more refactoring to clean up the design, but if you're not familiar with the code, then of course it is going to be tough to understand.

I don't know what this search and replace program you talk of is, but if you are searching outside of the IDE, then you're probably doing it wrong. Visual Studio has 'go to declaration' and 'go to definition' in the context menus when you right click identifiers, Code::Blocks has similar functionality with different nomenclature, I recommend making extensive use of them.

If you think this is going to be significantly different in other projects of similar size (and in particular open source projects with few developers) then you are only fooling yourself.

Welcome to the real world.

Apologies if that seems harsh, just calling it as I see it.
Glest Advanced Engine - Code Monkey

Timeline | Downloads

 

anything