Community
    • Login

    Notepad++ need to get user for game submod, how to without typing the username?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    5 Posts 3 Posters 577 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • EdfNightmareE
      EdfNightmare
      last edited by EdfNightmare

      Well, basically, I need help to be able to make 1 version of the code for each OS that game is available, being Windows, Mac and Linux, and I don’t want to type the code for each user, how can I do one version for each OS quoted?

      1 Reply Last reply Reply Quote 0
      • Steven HaymesS
        Steven Haymes
        last edited by Steven Haymes

        Hi EdfNightmare,

        It would help to know what language your are writing in. Most programming languages have functions to identify the OS that they are running under. For example in Python:

        import sys
        import os
        import platform
        sys.platform
        ‘win32’
        os.name
        ‘nt’
        platform.system()
        ‘Windows’

        Of course, different operating systems will require different installations of the necessary libraries, compilers etc.

        Steve

        1 Reply Last reply Reply Quote 1
        • EdfNightmareE
          EdfNightmare
          last edited by EdfNightmare

          If I remember correctly, it’s Ren’Py

          1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn
            last edited by

            This isn’t a Notepad++ question, this is a coding question. Please refrain from discussing things unrelated to Notepad++ here. Reference cookie baking.

            1 Reply Last reply Reply Quote 2
            • Steven HaymesS
              Steven Haymes
              last edited by

              I agree. I was bad. The original post does not belong here and it would be more appropriate in a forum for the programming language involved.

              1 Reply Last reply Reply Quote 2
              • First post
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors