• Login
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 582 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.
  • E
    EdfNightmare
    last edited by EdfNightmare Jul 18, 2019, 3:03 AM Jul 18, 2019, 3:03 AM

    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
    • S
      Steven Haymes
      last edited by Steven Haymes Jul 18, 2019, 4:07 AM Jul 18, 2019, 4:05 AM

      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
      • E
        EdfNightmare
        last edited by EdfNightmare Jul 18, 2019, 6:35 AM Jul 18, 2019, 6:34 AM

        If I remember correctly, it’s Ren’Py

        1 Reply Last reply Reply Quote 0
        • A
          Alan Kilborn
          last edited by Jul 18, 2019, 12:45 PM

          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
          • S
            Steven Haymes
            last edited by Jul 18, 2019, 8:56 PM

            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
            4 out of 5
            • First post
              4/5
              Last post
            The Community of users of the Notepad++ text editor.
            Powered by NodeBB | Contributors