Jump to content

Stan`

0 A.D. Project Leader
  • Posts

    18745
  • Joined

  • Last visited

  • Days Won

    618

Posts posted by Stan`

  1. I tried to imagine what the latte tavern that was discovered some time ago could look like hence the curved smoke. I remember reading than chairs weren't common pratice so I went for benches. Add that it wasn't originally planned to add a table but without it it lozt the tavern fil. I then added plates mugs and beef horns :)

    • Like 1
  2. Currently only the c++ part has its documentation generated. Since there are some JSDOC comments on the Js part of the code as well I thought it would be nice to generate it as well. I therefore separated the js code (AI, GUI, RMGEN, Components, Globals, Helpers,...) from the public folder of A20 to generate the documentation.

    Documentation was generated with JSDOC 3 using the node.js plugin
     

    Since classes don't have the proper @class tag for now I added in attack.js so you can see what it can look like.

    Here are the Documentation files (Open Index.html) : out.7z

    And here are the files I used for the generation : 0adtest.7z

    During the execution I got the following warnings : The unexpected identifiers ones are deprecated foreach (@elexis if you want to nuke those) and there are some errors with comments.

     

    Spoiler

    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\AlertRaiser.js: Line 43: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\Formation.js: Line 100: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\FormationAttack.js: Line 28: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\Foundation.js: Line 174: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\GarrisonHolder.js: Line 69: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\Guard.js: Line 52: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\GuiInterface.js: Line 753: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\PlayerManager.js: Line 92: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\ProductionQueue.js: Line 320: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\ResourceGatherer.js: Line 96: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\StatisticsTracker.js: Line 205: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\tests\test_UnitAI.js: Line 298: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\Trader.js: Line 48: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\Trigger.js: Line 31: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\TriggerPoint.js: Line 77: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\components\UnitAI.js: Line 4646: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\common\functions_utility.js: Line 39: Unexpected token for
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\common\music.js: Line 111: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\common\timer.js: Line 55: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\manual\manual.js: Line 16: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\savedgames\load.js: Line 22: Unexpected token for
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\savedgames\save.js: Line 34: Unexpected token for
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\session\input.js: Line 222: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\session\unit_actions.js: Line 580: Unexpected identifier
    ERROR: Unable to parse a tag's type expression for source file C:\Users\User\Desktop\0adtest\gui\structree\helper.js with tag title "param" and text "keypath The path to the value to be fetched. "Identity/GenericName"
                   is equivalent to {"Identity":{"GenericName":"FOOBAR"}}": Invalid type expression ""Identity":{"GenericName":"FOOBAR"}": Expected "!", ".", "<", "=", "?", "[]", "|" or end of input but ":" found.
    ERROR: Unable to parse a tag's type expression for source file C:\Users\User\Desktop\0adtest\gui\structree\helper.js with tag title "param" and text "keypath The path to the value to be fetched. "Identity/GenericName"
                   is equivalent to {"Identity":{"GenericName":"FOOBAR"}}": Invalid type expression ""Identity":{"GenericName":"FOOBAR"}": Expected "!", ".", "<", "=", "?", "[]", "|" or end of input but ":" found.
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\gui\structree\structree.js: Line 22: Unexpected token for
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\helpers\Commands.js: Line 769: Unexpected token for
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\helpers\Damage.js: Line 22: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\helpers\FSM.js: Line 168: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\helpers\Setup.js: Line 14: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\helpers\Walls.js: Line 163: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\maps\random\rmgen\map.js: Line 270: Unexpected identifier
    ERROR: Unable to parse C:\Users\User\Desktop\0adtest\maps\random\survivalofthefittest_triggers.js: Line 95: Unexpected identifier
    ERROR: Unable to parse a tag's type expression for source file C:\Users\User\Desktop\0adtest\maps\scripts\TriggerHelper.js with tag title "return" and text "A list of new entities per origin like
    {originId1: [entId1, entId2], originId2: [entId3, entId4], ...}": Invalid type expression "originId1: [entId1, entId2], originId2: [entId3, entId4], ...": Expected "$", "'", ".", "0", "\"", "\\", "_", "break", "case", "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "enum", "export", "extends", "finally", "for", "function", "if", "implements", "import", "in", "instanceof", "interface", "let", "new", "package", "private", "protected", "public", "return", "static", "super", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "yield", Unicode letter number, Unicode lowercase letter, Unicode modifier letter, Unicode other letter, Unicode titlecase letter, Unicode uppercase letter or [1-9] but " " found.
    ERROR: Unable to parse a tag's type expression for source file C:\Users\User\Desktop\0adtest\maps\scripts\TriggerHelper.js with tag title "return" and text "A list of new entities per origin like
    {originId1: [entId1, entId2], originId2: [entId3, entId4], ...}": Invalid type expression "originId1: [entId1, entId2], originId2: [entId3, entId4], ...": Expected "$", "'", ".", "0", "\"", "\\", "_", "break", "case", "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "enum", "export", "extends", "finally", "for", "function", "if", "implements", "import", "in", "instanceof", "interface", "let", "new", "package", "private", "protected", "public", "return", "static", "super", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "yield", Unicode letter number, Unicode lowercase letter, Unicode modifier letter, Unicode other letter, Unicode titlecase letter, Unicode uppercase letter or [1-9] but " " found.

     

    • Like 5
×
×
  • Create New...