Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    3
    5
    327
    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.
    • EdfNightmare
      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 Haymes
        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
        • EdfNightmare
          EdfNightmare last edited by EdfNightmare

          If I remember correctly, it’s Ren’Py

          1 Reply Last reply Reply Quote 0
          • Alan Kilborn
            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 Haymes
              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
              Copyright © 2014 NodeBB Forums | Contributors