Chaosforge Forum

  • March 28, 2024, 23:13
  • Welcome, Guest
Please login or register.



Login with username, password and session length
Pages: [1]

Author Topic: Infinite Arena (0.9.9.1)  (Read 3963 times)

yaflhdztioxo

  • Programmer
  • Local Inquisitor
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Infinite Arena (0.9.9.1)
« on: April 24, 2010, 19:25 »

Since several are based on it but not everyone knows what it is, the infinite arena is attached (1.03).  Wiki version also updated.
« Last Edit: April 25, 2010, 22:17 by yaflhdztioxo »
Logged

ZZ

  • AliensRL Beta Tester
  • Lieutenant Colonel
  • *
  • Offline Offline
  • Posts: 469
    • View Profile
Re: Infinite Arena (0.9.9.1)
« Reply #1 on: April 25, 2010, 10:17 »

And what are the changes besides different columns and the more full description of RollBeing function?
Logged
Put a chainsaw in my coffin. If I go to Hell, I'll need to do some cleaning there.

yaflhdztioxo

  • Programmer
  • Local Inquisitor
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: Infinite Arena (0.9.9.1)
« Reply #2 on: April 25, 2010, 10:48 »

Bug fix with the resolverange function.  That function (rather annoyingly) takes a number as well as a table.  Due to how Lua handles arguments resolverange(1, 2) is effectively resolverange(1), which will always return 1.  The correct syntax is resolverange( {1, 2} ) which passes a table.

Why oh why it does that we may never know.  But I was calling it the wrong way originally.


The commenting and reorganizing IS the major change.  Just to make this crystal clear:
The point of these updates is to MAKE the above code crystal clear :).  If there's a section you think could be easier to understand or you don't like the organization speak up.  If you have your own suggestions you can include them as well.
« Last Edit: April 26, 2010, 16:04 by yaflhdztioxo »
Logged

yaflhdztioxo

  • Programmer
  • Local Inquisitor
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 298
  • Lost Sole
    • View Profile
Re: Infinite Arena (0.9.9.1)
« Reply #3 on: April 25, 2010, 22:19 »

New version.  Certain code should be clearer, Vs are less likely to swarm you, chainsaw, BFG.
Logged

Simon-v

  • Composer
  • Elder Chaos Guard
  • Captain
  • *
  • *
  • Offline Offline
  • Posts: 272
  • Only Human
    • View Profile
    • The Life and Works of One Simon Volpert
Re: Infinite Arena (0.9.9.1)
« Reply #4 on: April 26, 2010, 14:40 »

Implemented the new code in Angel of Patience. It makes much more sense now. Thanks for the update!
Logged
Pages: [1]