This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION]  Can't spawn an npc I created  (Read 1530 times)

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
[QUESTION]  Can't spawn an npc I created
« on: November 15, 2015, 08:53:46 pm »
Hey!
I copied an npc, giving it a new Id and an new displayId (I created the displayid myself). There are no errors when executing the sql code, and the npc does show up in creature_template, but I can't spawn it. I type .npc add 59073 and the game just shows me the syntax of the .npc add comand.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION]  Can't spawn an npc I created
« Reply #1 on: November 15, 2015, 09:06:08 pm »
I just checked the log, and it says
Creature (Entry: 59073) has no model defined in table `creature_template`, can't load.
But it has a defined model!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION]  Can't spawn an npc I created
« Reply #2 on: November 15, 2015, 09:37:28 pm »
I fixed the problem by adding an entry in creature_model_info (which is strange because I've never done it before, and everything worked fine). But now I have the following problem:
[attachment=0:1128m7tw]WoWScrnShot_111515_233610.jpg[/attachment:1128m7tw]
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION]  Can't spawn an npc I created
« Reply #3 on: November 16, 2015, 12:31:14 am »
You always have to add displayID into creature_model_info table whenever you are creating a new displayID. creature_template reffers to that table and if displayID is missing there, it simply won't work. Server needs some extra data for displayIDs which are not stored in DBCs in order to make NPCs work correctly.

About your green-ish error, green always means that texture was not found or could not be applied on model. Do you have:

- baked NPC texture name specified in CreatureDisplayInfoExtra.dbc?
- texture with correct size (like 256x256, 512x512...)?
- texture in Textures/BakedNPCTextures/.. folder in your MPQ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION]  Can't spawn an npc I created
« Reply #4 on: November 17, 2015, 09:15:54 am »
Quote from: "Amaroth"
- baked NPC texture name specified in CreatureDisplayInfoExtra.dbc?
- texture with correct size (like 256x256, 512x512...)?
- texture in Textures/BakedNPCTextures/.. folder in your MPQ?
If you mean the last column in CreatureDisplayInfoExtra.dbc, I just wrote "CreatureDisplayExtra-<ID(same as in column 1)>.blp"
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION]  Can't spawn an npc I created
« Reply #5 on: November 17, 2015, 01:53:23 pm »
You need to fill there name of your NPC's texture. And you need to create that texture (by dressing your model in WMV and exporting its texture via Export Model to OBJ function), and add its BLP version into Textures/BakedNPCTextures/.. folder. Check blizzlike displayIDs which use CreatureDisplayInfoExtra.dbc (and thus are working with model on which items are equipable) to see what I'm talking about.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: [QUESTION]  Can't spawn an npc I created
« Reply #6 on: November 17, 2015, 06:33:24 pm »
give us the blp file and the creaturedisplayinfoextra.dbc
and you check that you put in your custom patch file this folder path TexturesBakedNpcTextures
and then put your blp file
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Смердокрыл

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 445
    • View Profile
Re: [QUESTION]  Can't spawn an npc I created
« Reply #7 on: November 17, 2015, 09:33:26 pm »
Ok, I created the blp using this guide and everything works perfectly. Thanks!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
or no.
At least I tried.

MR. Farrare

  • Registred Member
  • Creator of Worlds
  • *****
  • Posts: 963
    • View Profile
Re: [QUESTION]  Can't spawn an npc I created
« Reply #8 on: November 17, 2015, 11:45:27 pm »
good to hear that it worked for you  :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »