Thread: Npc.cfg not found

Results 1 to 5 of 5
  1. #1 Npc.cfg not found 
    9girvis9
    Guest
    "problem, i have a problem with cfg files my linux server can't find them on windows all was ok i am using dedicated server help"
    Reply With Quote  
     

  2. #2  
    Registered Member Damz's Avatar
    Join Date
    Dec 2009
    Posts
    37
    Thanks given
    0
    Thanks received
    1
    Rep Power
    1
    Ok, never had / nor used linux, but i can cook up something i'm pretty high;
    Have you just went simple and re uploaded the files from windows to your linux?
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Dec 2009
    Posts
    250
    Thanks given
    30
    Thanks received
    4
    Rep Power
    1
    look for
    Code:
    config\\
    In doorhandler.java, npchandler.java, itemhandler.java, shophandler.java...
    change it to
    Code:
    config//
    compile and it should work.
    Reply With Quote  
     

  4. #4  
    Registered Member
    Its paris's Avatar
    Join Date
    Apr 2009
    Posts
    1,141
    Thanks given
    56
    Thanks received
    234
    Rep Power
    689
    Note that path names use different separator characters on different hosts. Windows uses "\", Unix"/", Macintosh ":". The static variables:

    File.separator - string with file separator
    File.separatorChar - char with file separator
    File.pathSeparator - string with path separator
    File.pathSeparatorChar - char with path separator
    can be used to insure that your programs are platform independent. For example, this snippet shows how to build a platform independent path:

    String dirName = "dataDir";
    String filename = "data.dat";
    File filData = new File(dirName + File.separator + filename);
    Source: Learning Java - Chapter 9 : Java

    This can be used to make your server really platform independant.
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Dec 2009
    Posts
    250
    Thanks given
    30
    Thanks received
    4
    Rep Power
    1
    Fuck sakes now i got same error while using other source..
    Changed all config\\ to config//
    still errors..
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •