Feature Request: AI javadoc to be auto-regenerated again

Feature Request: AI javadoc to be auto-regenerated again

Here is where ideas can be collected for the skirmish AI in development

Moderators: hoijui, Moderators

Post Reply
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Feature Request: AI javadoc to be auto-regenerated again

Post by Anarchid »

Recently i've tried updating Cran's Java AI to work with ZK, and had moderate successes. However, when doing so i bumped into apparent lack of Game/Team RulesParams access in the java interface documentation, filing it under "got implemented in cpp interface, but not in Java". The javadoc link in the wiki says that the documentation is regenerated daily, and afair the GRP/TRP changes pre-dated 98.0.

However, apparently, this perception was erroneous, because this works:

Code: Select all

@Override
public int update(int frame) {

   if (frame % 90 == 0) {
      List<Team> teams = clb.getAllyTeams();
      sendTextMsg("AllyTeam size  = " + teams.size());
      for (Team team : teams) {
         sendTextMsg("\tteam " + team.getTeamId());
         List<TeamRulesParam> trps = team.getTeamRulesParams();
         sendTextMsg("TeamRulesParams size = " + trps.size());
         int i = 0;
         for (TeamRulesParam p : trps) {
            sendTextMsg("\tparam: " + p.getName() + "\tfloat: " + p.getValueFloat() + "\tstring: " + p.getValueString());
            if (++i >= 3) {
               break;
            }
         }
         TeamRulesParam p = team.getTeamRulesParamByName("commSpawned");
         sendTextMsg("param commSpawned: " + p.getValueFloat());
      }

      List<GameRulesParam> grps = clb.getGame().getGameRulesParams();
      sendTextMsg("GameRulesParams size = " + grps.size());
      int i = 0;
      for (GameRulesParam p : grps) {
         sendTextMsg("\tparam: " + p.getName() + "\tfloat: " + p.getValueFloat() + "\tstring: " + p.getValueString());
         if (++i >= 3) {
            break;
         }
      }
      GameRulesParam p = clb.getGame().getGameRulesParamByName("CAI_disabled");
      sendTextMsg("param CAI_disabled: " + p.getValueFloat());
   }

   return 0; // signaling: OK
}
Is whatever technology was responsible for regenerating the javadoc offline? Or is it only run for releases, and my memory fails about GRP/TRP being available in 98.0?
Last edited by Anarchid on 10 Jun 2015, 13:46, edited 1 time in total.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AI Javadoc needs refreshing?

Post by abma »

a cronjob created these files daily which got lost due to some server migration.

to fix this it has to be added to the buildslave... (=feature request)
User avatar
Anarchid
Posts: 1384
Joined: 30 Nov 2008, 04:31

Re: Feature Request: AI javadoc to be auto-regenerated again

Post by Anarchid »

I've modified the thread title accordingly. Should i mantis this?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Feature Request: AI javadoc to be auto-regenerated again

Post by abma »

yes, please.
Post Reply

Return to “AI”