Advertisement
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

what's the difference, Linux or PC?

Comments in 'Plugin Development' started by freshkitty?, Apr 27, 2014.

  1. freshkitty?
    Offline

    freshkitty? Active Member

    Joined:
    Mar 10, 2014
    Posts:
    54
    Minecraft User:
    DaMelon
    Hey guys. Just been reading the plugin requests and things like that, and there seems to be a noticeable difference between the 2, other than the 2 hour long install for PC. Is it just easier to code? Thanks! -freshkitty?
  2. shoghicp
    Offline

    shoghicp Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    433
    Plugins:
    14
    Minecraft User:
    shoghicp
    The code is the same, most of the plugins are multi-platform (like PocketMine, the same code is run).

    Only if you use special features of an OS it becomes dependent on there (like using "\" instead of "/" for directory paths)
  3. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    Always use "/" for directory paths as Linux only supports "/" where as Windows supports both "/" and "\" :)

    EDIT: Also, "\" is for namespaces so using "/" minimises confusion.
    DarkN3ss and Darunia18 like this.
  4. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    ive just experienced that some plugins arent compatible with os versions. for example, my herobrine smite plugin worked at Centos 6 64bit OS, moving to a new OS (ubuntu12.04 64bit) my herobrinesmite plugin doesnt work anymore. i think there is something restrictions or lacking with php itself?
  5. sekjun9878
    Offline

    sekjun9878 Staff Member PocketMine Team

    Joined:
    Aug 22, 2013
    Posts:
    108
    Plugins:
    1
    Minecraft User:
    sekjun9878
    @iJoshuaHD More likely different PHP or PocketMine version.
  6. iJoshuaHD
    Offline

    iJoshuaHD Notable Member Plugin Developer

    Joined:
    Nov 7, 2013
    Posts:
    1,167
    Plugins:
    4
    Minecraft User:
    iJoshuaHD
    i point it to PHP. dang, i hate OS that doesnt have stable releases for every linux distros ...
  7. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    I'm using Linux Mint 17.1 xfce 'Rebbeca' for developming and i'm using "\" for directory seperators. Always
  8. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Always use /...
    Last edited: Jul 31, 2015
  9. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Actually i use it because in one thread you told to. :D
  10. iamadpond
    Offline

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    Slightly off topic, but I feel these are my two cents on Linux,

    Until gaming becomes mainstream on Unix, I'll stick to windows for development and deploy on a CentOS server and have the best of both worlds. <3
    LDX likes this.
  11. LDX
    Offline

    LDX Notable Member Plugin Developer

    Joined:
    Oct 2, 2013
    Posts:
    1,397
    Plugins:
    14
    How do you even develop on Windows? I tried once, but the best I can do is Notepad and Filezilla. I couldn't even get Gedit to work with Filezilla.
  12. GlaciercreepsMC
    Offline

    GlaciercreepsMC Active Member Plugin Developer

    Joined:
    Jan 21, 2014
    Posts:
    91
    Plugins:
    1
    Minecraft User:
    GlaciercreepsMC
    Why not use Notepad++ or the new Visual Studio Code? They're certainly better than the default Notepad.
  13. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Compile SSH extension and make a PHP script that compiles my code into phar and upload to server and restart the server through the script.
    Step 1: Failure, setting up cygwin on Windows takes forever.
    Step 2: omitted.
  14. iamadpond
    Offline

    iamadpond Banned

    Joined:
    Aug 24, 2013
    Posts:
    191
    Minecraft User:
    iamadpond
    I use Sublime text to write code and scripts and then deploy them via a ftp to the box. The trick is filezilla will notice I made a change and push it automatically to the server to overwrite the files already there.
    LDX likes this.
  15. LDX
    Offline

    LDX Notable Member Plugin Developer

    Joined:
    Oct 2, 2013
    Posts:
    1,397
    Plugins:
    14
    How do you enable automatic pushing? I always have to open Filezilla after saving the file in my code editor and click yes on the dialogue that pops up asking if you want to save it.
  16. Primus
    Offline

    Primus Notable Member

    Joined:
    Apr 7, 2015
    Posts:
    1,470
    Minecraft User:
    PrimusLV
    Same
  17. Legoboy0215
    Offline

    Legoboy0215 Notable Member

    Joined:
    Nov 1, 2014
    Posts:
    1,724
    Minecraft User:
    Legoboy0215
    lol. I use NotePad++ & PHPStorm & WinSCP together. They run great as a team!
  18. PEMapModder
    Offline

    PEMapModder Notable Member Plugin Developer

    Joined:
    Oct 9, 2013
    Posts:
    7,294
    Plugins:
    11
    Minecraft User:
    PEMapModder
    Why use notepad++ if you have PHPStorm.... -_-#
    BTW, PHPStorm has auto deployment.
    Legoboy0215 likes this.

Share This Page

Advertisement