Just imported from GM1.4 to GM2. Question about compatibility script...

Discussion in 'Programming' started by sully9088, Jan 16, 2020.

  1. sully9088

    sully9088 Member

    Joined:
    Jan 16, 2020
    Posts:
    2
    Why would the compatibility script change all of my script descriptions and add a "@description" in there? See below:

    Converting GML script: ${project_dir}\scripts\scr_hairXYoffsetVars\scr_hairXYoffsetVars.gml
    Converted description /// @description scr_hairXYoffsetVars();

    I don't understand this. Can someone explain this please? Thanks!
     
  2. TsukaYuriko

    TsukaYuriko Q&A Spawn Camper Forum Staff Moderator

    Joined:
    Apr 21, 2016
    Posts:
    1,846
    That's a JSDoc annotation, used to summarize what the script does.
     
    sully9088 likes this.
  3. Yal

    Yal GMC Memer GMC Elder

    Joined:
    Jun 20, 2016
    Posts:
    4,172
    Basically someone thought that the convenient /// comments ruined the romantic mood, and they're now replaced with the more verbose Javadoc notation.
     
    Alice and TsukaYuriko like this.
  4. sully9088

    sully9088 Member

    Joined:
    Jan 16, 2020
    Posts:
    2
    Thank you! Man there are a lot of changes to GMS2
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice