Thread: need help with a few things!

Results 1 to 5 of 5
  1. #1 need help with a few things! 
    Registered Member
    Join Date
    Jul 2014
    Posts
    58
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    http://prntscr.com/i3p7q3




    ERROR! THREAD NAME: New I/O worker #1
    java.io.IOException: The system cannot find the path specified
    at java.io.WinNTFileSystem.createFileExclusively(Nati ve Method)
    at java.io.File.createNewFile(Unknown Source)
    at com.server.utils.Utils.copyFile(Utils.java:162)
    at com.server.utils.SerializableFilesManager.createBa ckup(SerializableFilesManager.java:44)
    at com.server.net.decoders.LoginPacketsDecoder.decode WorldLogin(LoginPacketsDecoder.java:264)
    at com.server.net.decoders.LoginPacketsDecoder.decode (LoginPacketsDecoder.java:42)
    at com.server.net.ServerChannelHandler.messageReceive d(ServerChannelHandler.java:98)
    at org.jboss.netty.channel.SimpleChannelHandler.handl eUpstream(SimpleChannelHandler.java:95)
    at org.jboss.netty.channel.DefaultChannelPipeline.sen dUpstream(DefaultChannelPipeline.java:563)
    at org.jboss.netty.channel.DefaultChannelPipeline.sen dUpstream(DefaultChannelPipeline.java:558)
    at org.jboss.netty.channel.Channels.fireMessageReceiv ed(Channels.java:268)
    at org.jboss.netty.channel.Channels.fireMessageReceiv ed(Channels.java:255)
    at org.jboss.netty.channel.socket.nio.NioWorker.read( NioWorker.java:91)
    at org.jboss.netty.channel.socket.nio.AbstractNioWork er.processSelectedKeys(AbstractNioWorker.java:373)
    at org.jboss.netty.channel.socket.nio.AbstractNioWork er.run(AbstractNioWorker.java:247)
    at org.jboss.netty.channel.socket.nio.NioWorker.run(N ioWorker.java:35)
    at org.jboss.netty.util.ThreadRenamingRunnable.run(Th readRenamingRunnable.java:102)
    at org.jboss.netty.util.internal.DeadLockProofWorker$ 1.run(DeadLockProofWorker.java:42)
    at java.util.concurrent.ThreadPoolExecutor.runWorker( Unknown Source)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source)
    at java.lang.Thread.run(Unknown Source)





    this all happens after any account is created logged in logged out then trying to log back in any help?


    also I want to completely remove the tutorial from the source I'm using (enths) and just have it to pull the xp mode selector when you log in (lets face it no one cares about a tutorial)






    ****EDIT*****


    I have now removed the tutorial and trying to add my own in (just have it give you basic starter set and start the dialog for the difficulties having trouble figuring out how to have it pop up the difficulty dialog though :/ here is what I have so far in Starter.java




    Code:
    package com.server.game.player;
    
    import com.server.game.player.Player;
    import com.server.game.player.content.FriendChatsManager;
    import com.server.game.tasks.WorldTask;
    import com.server.game.tasks.WorldTasksManager;
    
    public class Starter {
    
    			
    	public static void player.getDialogueManager().startDialogue("Difficulties");
    		
    	
    	
    	
    	public static final int MAX_STARTER_COUNT = 1;
    
    		
        	
    		
    		public static void appendStarter(Player player) {
            		player.getHintIconsManager().removeUnsavedHintIcon();
                    player.getMusicsManager().reset();
                    player.getCombatDefinitions().setAutoRelatie(false);
                    player.getInventory().addItem(385, 1);
        			player.getInventory().addItem(1856, 1); // Information Book
        			player.getInventory().addItem(6099, 1); // Teleport Crystal
        			player.getInventory().addItem(995, 10000000); // 10M Coins
        			player.getInventory().addItem(1153, 1); // Iron Helm
        			player.getInventory().addItem(1115, 1); // Iron Platebody
        			player.getInventory().addItem(1067, 1); // Iron Platelegs
        			player.getInventory().addItem(1323, 1); // Iron Scimitar
        			player.getInventory().addItem(1333, 1); // Rune Scimitar
        			player.getInventory().addItem(4587, 1); // Dragon Scimitar
        			player.getInventory().addItem(1007, 1); // Cape
        			player.getInventory().addItem(841, 1); // Shortbow
        			player.getInventory().addItem(861, 1); // Magic Shortbow
        			player.getInventory().addItem(884, 1000); // Iron Arrow
        			player.getInventory().addItem(556, 1000); // Air Rune
        			player.getInventory().addItem(558, 500); // Mind Rune
        			player.getInventory().addItem(562, 200);// Chaos Rune
                    //player.getHintIconsManager().addHintIcon(2592, 5605, 1, 100, 0, 0,-1, false);
                    player.getCombatDefinitions().refreshAutoRelatie();
                    player.starterpackage = 1;
                    player.starterpackage = 1;
    				
        	}
    }



    *****EDIT 2*****

    this did not work it did not give the items and it also did not start the dialog to select difficulties
    :/



    ****EDIT 3******


    Player.java

    Code:
    /**
    	 * Starter Package
    	 * Tutorial
    	 */
    	
    	public int starterpackage = 1; 
    	public boolean starter = true;
    	public boolean isStarter() {
    		return starter;
    	}
    	public void setStarter(boolean starter) {
    		this.starter = starter;
    	}
    
    	public boolean isServerTutorial() {
    		return ServerTutorial;
    	}
    	public void setServerTutorial(boolean serverTutorial) {
    		ServerTutorial = serverTutorial;
    	}

    yes I have it importing the starter.java file
    Reply With Quote  
     

  2. #2  
    Respected Member


    Kris's Avatar
    Join Date
    Jun 2016
    Age
    26
    Posts
    3,638
    Thanks given
    820
    Thanks received
    2,642
    Rep Power
    5000
    Code:
    public static void player.getDialogueManager().startDialogue("Difficulties");
    good job my friend. Perhaps before coming here to ask for help from us you go and look how methods should actually look like?

    Oh and regarding the error itself, it's because the path doesn't exist; perhaps missing folders or just in general fucked up path.
    Attached image
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2014
    Posts
    58
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by Kris View Post
    Code:
    public static void player.getDialogueManager().startDialogue("Difficulties");
    good job my friend. Perhaps before coming here to ask for help from us you go and look how methods should actually look like?

    Oh and regarding the error itself, it's because the path doesn't exist; perhaps missing folders or just in general fucked up path.

    honestly I'm used to basic stuff editing shops changing home changing prices editing drops adding models etc so this is something new to me iv never really done stuff like this I decided to remove that whole method because your right that isint a proper way to do it and I honestly don't know how to do it so I tried to do this



    package com.server.game.player;

    import com.server.game.player.Player;
    import com.server.game.player.content.FriendChatsManager;
    import com.server.game.tasks.WorldTask;
    import com.server.game.tasks.WorldTasksManager;

    public class Starter {







    public static final int MAX_STARTER_COUNT = 1;




    public static void appendStarter(Player player) {
    player.getHintIconsManager().removeUnsavedHintIcon ();
    player.getMusicsManager().reset();
    player.getCombatDefinitions().setAutoRelatie(false );
    player.getDialogueManager().startDialogue("Difficu lties");

    player.getInventory().addItem(385, 1);
    player.getInventory().addItem(1856, 1); // Information Book
    player.getInventory().addItem(6099, 1); // Teleport Crystal
    player.getInventory().addItem(995, 10000000); // 10M Coins
    player.getInventory().addItem(1153, 1); // Iron Helm
    player.getInventory().addItem(1115, 1); // Iron Platebody
    player.getInventory().addItem(1067, 1); // Iron Platelegs
    player.getInventory().addItem(1323, 1); // Iron Scimitar
    player.getInventory().addItem(1333, 1); // Rune Scimitar
    player.getInventory().addItem(4587, 1); // Dragon Scimitar
    player.getInventory().addItem(1007, 1); // Cape
    player.getInventory().addItem(841, 1); // Shortbow
    player.getInventory().addItem(861, 1); // Magic Shortbow
    player.getInventory().addItem(884, 1000); // Iron Arrow
    player.getInventory().addItem(556, 1000); // Air Rune
    player.getInventory().addItem(558, 500); // Mind Rune
    player.getInventory().addItem(562, 200);// Chaos Rune
    //player.getHintIconsManager().addHintIcon(2592, 5605, 1, 100, 0, 0,-1, false);
    player.getCombatDefinitions().refreshAutoRelatie() ;
    player.starterpackage = 1;
    player.starterpackage = 1;

    }




    that also did not work either :/ I'm sorry if its inconvinent of me to be asking this but I'm trying to learn and do better



    ps: yes character back up folder was missing
    Reply With Quote  
     

  4. #4  
    Contributor

    clem585's Avatar
    Join Date
    Sep 2013
    Posts
    3,789
    Thanks given
    706
    Thanks received
    702
    Rep Power
    570
    Quote Originally Posted by Kris View Post
    Code:
    public static void player.getDialogueManager().startDialogue("Difficulties");
    good job my friend. Perhaps before coming here to ask for help from us you go and look how methods should actually look like?

    Oh and regarding the error itself, it's because the path doesn't exist; perhaps missing folders or just in general fucked up path.
    It's okay, he's obviously switching over from Javascript to Java.

    OT: Just use this line to start the starter dialogue assuming it's created:

    Code:
    player.getDialogueManager().startDialogue("Difficulties");
    Project thread
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2014
    Posts
    58
    Thanks given
    2
    Thanks received
    1
    Rep Power
    11
    Quote Originally Posted by clem585 View Post
    It's okay, he's obviously switching over from Javascript to Java.

    OT: Just use this line to start the starter dialogue assuming it's created:

    Code:
    player.getDialogueManager().startDialogue("Difficulties");


    yes the dialogue is created as it was being opend with the original server tutorial when ever a new player joined it would ask them to choose the difficulty but now that iv completely removed the original tutorial and am now trying to add my own 2 things are not happening when a new player is created the 1. do not get the items and 2 the difficulty selector does not pop up either
    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

Similar Threads

  1. [PI] Need help with a few things.
    By Alexander in forum Help
    Replies: 2
    Last Post: 09-23-2010, 07:59 PM
  2. i need help with a few things
    By Lord Stark in forum Help
    Replies: 3
    Last Post: 08-09-2010, 06:47 AM
  3. Need help with a few things [paying]
    By owner josh in forum Help
    Replies: 9
    Last Post: 04-18-2010, 07:16 PM
  4. Need help with a few things.
    By Scottyy in forum Help
    Replies: 2
    Last Post: 08-16-2009, 06:50 AM
  5. Need help with a few thing.
    By Blazer3321 in forum Help
    Replies: 2
    Last Post: 05-31-2009, 09:55 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •