Page 1 of 1

Feature Request: AI javadoc to be auto-regenerated again

Posted: 10 Jun 2015, 10:56
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?

Re: AI Javadoc needs refreshing?

Posted: 10 Jun 2015, 13:35
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)

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

Posted: 10 Jun 2015, 13:46
by Anarchid
I've modified the thread title accordingly. Should i mantis this?

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

Posted: 14 Jun 2015, 18:33
by abma
yes, please.

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

Posted: 24 Sep 2015, 22:10
by abma