Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => "Retro-Porting" => Topic started by: Piccolodmq on May 01, 2018, 02:01:30 am

Title: Retroporting FACTIONS(5.4.7 to 3.3.5a)
Post by: Piccolodmq on May 01, 2018, 02:01:30 am
Hi there, I have retroported Creature Template From a MOP repack to my 3.3.5a server, and everything works, except I get this error when I start the server, so I edited and got all the missing factions from Both Faction.dbc and FactionTemplate.dbc, but still get the error.

---
Creature (Entry: 62491) has non-existing faction template (1302). This can lead to crashes, aborting.
---

What do I have to edit in the DB, so I can have custom Factions?

This is the NPC (i know there most be lke a million more, that causes the crash because of the faction.

INSERT INTO `creature_template` (`entry`, `difficulty_entry_1`, `difficulty_entry_2`, `difficulty_entry_3`, `KillCredit1`, `KillCredit2`, `modelid1`, `modelid2`, `modelid3`, `modelid4`, `name`, `subname`, `IconName`, `gossip_menu_id`, `minlevel`, `maxlevel`, `exp`, `faction`, `npcflag`, `speed_walk`, `speed_run`, `scale`, `rank`, `dmgschool`, `BaseAttackTime`, `RangeAttackTime`, `BaseVariance`, `RangeVariance`, `unit_class`, `unit_flags`, `unit_flags2`, `dynamicflags`, `family`, `trainer_type`, `trainer_spell`, `trainer_class`, `trainer_race`, `type`, `type_flags`, `lootid`, `pickpocketloot`, `skinloot`, `resistance1`, `resistance2`, `resistance3`, `resistance4`, `resistance5`, `resistance6`, `spell1`, `spell2`, `spell3`, `spell4`, `spell5`, `spell6`, `spell7`, `spell8`, `PetSpellDataId`, `VehicleId`, `mingold`, `maxgold`, `AIName`, `MovementType`, `InhabitType`, `HoverHeight`, `HealthModifier`, `ManaModifier`, `ArmorModifier`, `DamageModifier`, `ExperienceModifier`, `RacialLeader`, `movementId`, `RegenHealth`, `mechanic_immune_mask`, `flags_extra`, `ScriptName`, `VerifiedBuild`) VALUES (62491, 0, 0, 0, 0, 0, 42505, 0, 0, 0, 'Brewmaster Bo', '', '', 0, 90, 90, 4, 1302, 2, 1, 1.14286, 1, 1, 0, 2000, 2000, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 7, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 123898, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, '', 0, 3, 1, 75, 10, 1, 2, 0, 0, 0, 1, 0, 0, '', 16048);


I folloed this guide, and it mentions nothing about DB or other changes.

http://www.ac-web.org/forums/showthr...g-New-Factions


Thanks!
Title: Re: Retroporting FACTIONS(5.4.7 to 3.3.5a)
Post by: Shakar on September 19, 2018, 04:18:41 am
While the topic was posted long ago, here is an answer of sorts at least...

Basically, the error is saying the faction ID (Number in the faction field) belongs to a faction which doesn't exist in the DBC files you're using. You will need to retroport a more recent factions.dbc to the version of the game you're using for the faction ID to work.

If this was fixed by you long ago, ignore this but for those that get it, this should be able to work for them.
Title: Re: Retroporting FACTIONS(5.4.7 to 3.3.5a)
Post by: Piccolodmq on September 21, 2018, 02:23:58 am
I apreciate the answer.   I did exactly that and it worked like a charms.   Faction related DBCs are really similar from MOP to WTOLK, so it was easy work.

THanks anyways !