NPC Gen

Results 1 to 11 of 11
  1. #1
    Member Shane Lutz is offline
    MemberRank
    May 2012 Join Date
    43Posts

    NPC Gen

    Hey Guys Im still kinda new to the PW development, so im asking after hours of searching and trial and error.
    How would one obtain coords + position for the npcgen.data

    I have tried to use the dev console with d_showpos. as well as logging out and verifying it through pwAdmin. gives the same location and following that seing as it i not in the right format I located this http://dl.dropboxusercontent.com/u/1...nvert/c3d.html
    posted by I forget who in the 1.3.6 forums

    but the npc still doesnt spawn.
    I've also tried to launch the snpcedit in admin mode and use the "get cordinates" button but either 1 of 2 things happen.
    A) all remain blank
    B) all populate to -3xxx.xxx always the same number populating in all feilds.

    So in short in asking is anyone would happen to have a converter or the formula used to convert in game coords to the npcgen format.
    or if someone could possibly point me in the right direction.

    Thanks alot in advance.


  2. #2
    The One And Only DaMadBoy is offline
    Grand MasterRank
    Jun 2009 Join Date
    Behind You!Location
    545Posts

    Re: NPC Gen

    First:
    http://forum.ragezone.com/f750/eleme...0/#post6877440

    Then:
    Shift + ~

    Then:
    d_showpos

  3. #3
    Member Shane Lutz is offline
    MemberRank
    May 2012 Join Date
    43Posts

    Re: NPC Gen

    Quote Originally Posted by Shane Lutz View Post

    I have tried to use the dev console with d_showpos. as well as logging out and verifying it through pwAdmin. gives the same location and following that seing as it i not in the right format I located this http://dl.dropboxusercontent.com/u/1...nvert/c3d.html
    posted by I forget who in the 1.3.6 forums

    but the npc still doesnt spawn.
    .
    tried it and unlrss im doing somethhing way wrong then im at a loss atk ty for ur time though

  4. #4
    The One And Only DaMadBoy is offline
    Grand MasterRank
    Jun 2009 Join Date
    Behind You!Location
    545Posts

    Re: NPC Gen

    Is the ID of the NPC correct? Did you set it to be an NPC in npcgen.data? Does it have any incorrect task, crafting, buy/sell service IDs or anything like that in elements editor?

  5. #5
    Developer - JS Ben is offline
    DeveloperRank
    Jul 2013 Join Date
    BelguimLocation
    1,246Posts

    Re: NPC Gen

    Are you placing npc's on the main map? if so are you using the NPCgen.data in the ''worlds'' folder

  6. #6
    Member Shane Lutz is offline
    MemberRank
    May 2012 Join Date
    43Posts

    Re: NPC Gen

    Quote Originally Posted by whoami1995 View Post
    Are you placing npc's on the main map? if so are you using the NPCgen.data in the ''worlds'' folder
    yes and yes

    Quote Originally Posted by DaMadBoy View Post
    Is the ID of the NPC correct? Did you set it to be an NPC in npcgen.data? Does it have any incorrect task, crafting, buy/sell service IDs or anything like that in elements editor?
    no there is nothing diferent I literally cloned tailor fang pei (west adc) and changed the ID to see if I could get it to spawn first.
    using the command from the dev console, the coords it gives are no where near the same position as the npc itself that is listed in the npcgen.data even when standing right on top of it. so is there a algorithim that would allow me to change the it to the correct format or just use exactly what comes up?

    I noticed in 1.3.6 there is a npcgen client side as well, I have yet to find it in the release I'm using but it is a 146 release so Im assuming in 144+ that it is soely server sided?

  7. #7
    The One And Only DaMadBoy is offline
    Grand MasterRank
    Jun 2009 Join Date
    Behind You!Location
    545Posts

    Re: NPC Gen

    You shouldn't have any npcgen.data files client side, even on 1.3.6. At least not to my knowledge.

    Don't use the coords that are displayed next to the mini map for npcgen.data. Use the ones displayed above an NPC, Mob or your character when using d_showpos and type them into npcgen.

    Example: -1477.093 218.104 2641.804
    These are: Spawn X Spawn Y Spawn Z

  8. #8
    Member Shane Lutz is offline
    MemberRank
    May 2012 Join Date
    43Posts

    Re: NPC Gen

    thanks will try again now

    - - - Updated - - -

    Quote Originally Posted by DaMadBoy View Post
    You shouldn't have any npcgen.data files client side, even on 1.3.6. At least not to my knowledge.

    Don't use the coords that are displayed next to the mini map for npcgen.data. Use the ones displayed above an NPC, Mob or your character when using d_showpos and type them into npcgen.

    Example: -1477.093 218.104 2641.804
    These are: Spawn X Spawn Y Spawn Z
    Thanks for all the help, it spawned now Im assuming it was a mistake on my end because I have no idea wtf I did I booted the server and it was there, one last question though, how would one get spawn direction ?

  9. #9
    The One And Only DaMadBoy is offline
    Grand MasterRank
    Jun 2009 Join Date
    Behind You!Location
    545Posts

    Re: NPC Gen

    Code:
    NPC Facing Direction (For NPCGEN.DATA):
    
    Looking Direction	|	ROT1	|	ROT2	|	ROT3
    --------------------------------------------------------------------
    
    NORTH				0.000		0.000		0.500
    
    NORTH EAST			0.500		0.000		0.500
    
    EAST				0.500		0.000		0.000
    
    SOUTH EAST			0.500		0.000		-0.500
    
    SOUTH				0.000		0.000		-1.000
    
    SOUTH WEST			-0.500		0.000		-0.500
    
    WEST				-0.500		0.000		0.000
    
    NORTH WEST			-0.500		0.000		0.500

  10. #10
    Grand Master 343 is offline
    Grand MasterRank
    Oct 2009 Join Date
    Ancient DGN CTYLocation
    5,510Posts

    Re: NPC Gen

    and actually yes there is a 'converter' - it's built into sMAPtool:

    Attached Thumbnails Attached Thumbnails coord-conversion.png  

  11. #11
    Member Shane Lutz is offline
    MemberRank
    May 2012 Join Date
    43Posts

    Re: NPC Gen

    ty both for the help



Advertisement