Author Topic: Generated API Listings  (Read 2247 times)

GGLucas

  • Dr. Evil
  • BMS Staff
  • Delusional
  • *
  • Posts: 1877
  • Karma: +300/-6
    • View Profile
Generated API Listings
« on: January 28, 2011, 02:36:53 PM »
Since the wiki is outdated and incomplete, I have made the game output a list of every function signature it knows of that is bound to the scripting engine.

There are no argument names or function descriptions as of yet, so its usefulness is limited. For anyone it might still be useful to, however, you can find the lists here:

Server Engine API
Client Engine API

erdrik

  • Sentient
  • **
  • Posts: 199
  • Karma: +22/-0
    • View Profile
Re: Generated API Listings
« Reply #1 on: January 28, 2011, 04:15:11 PM »
 :o Wow! Thanks! that will be very useful. ;D
Erdrik's Mods:
Refuel Auto-Pilot

maxi

  • Delusional
  • ****
  • Posts: 504
  • Karma: +18/-0
    • View Profile
Re: Generated API Listings
« Reply #2 on: January 29, 2011, 03:33:49 AM »
:o Wow! Thanks! that will be very useful. ;D
I agree

jarenthil

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Generated API Listings
« Reply #3 on: February 06, 2011, 11:37:28 PM »
Very nice.

One thing I noticed:  subSystem::getVariableName() doesn't take an index parameter.  Seems like it should.

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
Re: Generated API Listings
« Reply #4 on: February 07, 2011, 01:21:16 AM »
Nice catch. It does indeed need an index, so it probably would've crashed if called. Fixed for the next patch.

jarenthil

  • Newbie
  • *
  • Posts: 9
  • Karma: +0/-0
    • View Profile
Re: Generated API Listings
« Reply #5 on: February 09, 2011, 04:47:59 AM »
PlanetStructureList::prepare() crashes if you pass null.

I assumed I should prepare(null) after using it, as one does with ResearchWebs and EmpireObjects, but I guess not!

Thy Reaper

  • BMS Lead Developer
  • BMS Administrator
  • Hopeless
  • *
  • Posts: 3237
  • Karma: +397/-8
    • View Profile
    • Blind Mind Studios
Re: Generated API Listings
« Reply #6 on: February 09, 2011, 11:18:56 AM »
Thanks, we'll fix that.

Cartman34

  • Newbie
  • *
  • Posts: 18
  • Karma: +0/-0
    • View Profile
Re: Generated API Listings
« Reply #7 on: March 01, 2012, 01:28:26 AM »
I updated 10 days ago the wiki from the glacicle.org API reference and began to fill parameters, description etc.
But It take so long time, I will help more as I could.

Complete the Wiki is better for community than create your own reference. ;-)

Azalrion

  • Delusional
  • ****
  • Posts: 1325
  • Karma: +147/-1
  • Memory Murderer
    • View Profile
Re: Generated API Listings
« Reply #8 on: March 01, 2012, 01:51:42 AM »
The API isn't an own reference for bms really, I've used it solidly in the place of the wiki for almost a year.
GA - Mod Team
GA Forums