The-Cataclysm-Preservation-Project / TrinityCore

Archived repository for WoW 4.3.4.15595. The project will be reworked for Cataclysm Classic as an official new branch of TrinityCore at https://github.com/TrinityCore/TrinityCore
GNU General Public License v2.0
237 stars 100 forks source link

Cannot generate mmaps #361

Closed ghost closed 2 years ago

ghost commented 2 years ago

Description:

The mmaps-generator fails to load a dbc-file. Seems to be non-working.

Current behaviour:

$ ./mmaps_generator
TrinityCore rev. a6b07c2c9d46+ 2022-06-02 22:16:12 +0200 (master branch) (Unix, RelWithDebInfo, Static) (MMAP generator)
<Ctrl-C> to stop [...]
Failed to load LiquidType.dbc

Expected behaviour: I would expect some visual progress and output of the script, probably ending with Ok, all done

Steps to reproduce the problem: $ ./mmaps_generator

TC rev. hash/commit:

TrinityCore rev. a6b07c2c9d46+ 2022-06-02 22:16:12 +0200 (master branch) (Unix, RelWithDebInfo, Static) (MMAP generator)

TDB version:
irrelevant

Operating system: Arch Linux

Ovahlord commented 2 years ago

obviously you need dbc files in the game's directory.

ghost commented 2 years ago

Obviously they seem to be present ^^'

$ find . -name *.dbc
./dbc/enUS/ItemClass.dbc
./dbc/enUS/SpellEffectCameraShakes.dbc
./dbc/enUS/ChrClasses.dbc
./dbc/enUS/MovieVariation.dbc
./dbc/enUS/AnimKitConfig.dbc
./dbc/enUS/ItemGroupSounds.dbc
./dbc/enUS/ItemDamageOneHand.dbc
./dbc/enUS/gtRegenMPPerSpt.dbc
./dbc/enUS/FileData.dbc
./dbc/enUS/CharTitles.dbc
./dbc/enUS/WorldStateZoneSounds.dbc
./dbc/enUS/TerrainMaterial.dbc
./dbc/enUS/GameTables.dbc
./dbc/enUS/ItemRandomProperties.dbc
./dbc/enUS/Package.dbc
./dbc/enUS/GemProperties.dbc
./dbc/enUS/ScreenEffect.dbc
./dbc/enUS/SoundFilterElem.dbc
./dbc/enUS/SoundEntries.dbc
./dbc/enUS/JournalEncounterSection.dbc
./dbc/enUS/GameObjectDisplayInfo.dbc
./dbc/enUS/AnimKit.dbc
./dbc/enUS/GuildColorBackground.dbc
./dbc/enUS/SpellReagents.dbc
./dbc/enUS/gtOCTBaseMPByClass.dbc
./dbc/enUS/GuildColorBorder.dbc
./dbc/enUS/BannedAddOns.dbc
./dbc/enUS/ScreenLocation.dbc
./dbc/enUS/DungeonMap.dbc
./dbc/enUS/gtChanceToSpellCrit.dbc
./dbc/enUS/LightFloatBand.dbc
./dbc/enUS/TransportAnimation.dbc
./dbc/enUS/SoundAmbienceFlavor.dbc
./dbc/enUS/SpellVisualKitAreaModel.dbc
./dbc/enUS/SoundEntriesFallbacks.dbc
./dbc/enUS/CreatureFamily.dbc
./dbc/enUS/CreatureModelData.dbc
./dbc/enUS/SpellAuraRestrictions.dbc
./dbc/enUS/SpellDescriptionVariables.dbc
./dbc/enUS/Startup_Strings.dbc
./dbc/enUS/LoadingScreenTaxiSplines.dbc
./dbc/enUS/Achievement_Criteria.dbc
./dbc/enUS/EmotesTextSound.dbc
./dbc/enUS/SpellMissile.dbc
./dbc/enUS/GroundEffectDoodad.dbc
./dbc/enUS/AreaAssignment.dbc
./dbc/enUS/TerrainType.dbc
./dbc/enUS/EmotesText.dbc
./dbc/enUS/Material.dbc
./dbc/enUS/JournalEncounter.dbc
./dbc/enUS/AuctionHouse.dbc
./dbc/enUS/WorldMapArea.dbc
./dbc/enUS/SoundAmbience.dbc
./dbc/enUS/ResearchProject.dbc
./dbc/enUS/ResearchSite.dbc
./dbc/enUS/ItemDamageOneHandCaster.dbc
./dbc/enUS/ObjectEffectGroup.dbc
./dbc/enUS/WorldSafeLocs.dbc
./dbc/enUS/AreaTable.dbc
./dbc/enUS/gtChanceToMeleeCritBase.dbc
./dbc/enUS/ResearchField.dbc
./dbc/enUS/LFGDungeons.dbc
./dbc/enUS/NPCSounds.dbc
./dbc/enUS/ItemNameDescription.dbc
./dbc/enUS/gtOCTRegenMP.dbc
./dbc/enUS/ImportPriceQuality.dbc
./dbc/enUS/SpellShapeshift.dbc
./dbc/enUS/SpellEquippedItems.dbc
./dbc/enUS/QuestInfo.dbc
./dbc/enUS/Map.dbc
./dbc/enUS/GlueScreenEmote.dbc
./dbc/enUS/LightIntBand.dbc
./dbc/enUS/StringLookups.dbc
./dbc/enUS/NameGen.dbc
./dbc/enUS/CameraShakes.dbc
./dbc/enUS/ZoneMusic.dbc
./dbc/enUS/EmotesTextData.dbc
./dbc/enUS/ItemVisualEffects.dbc
./dbc/enUS/SkillLineAbility.dbc
./dbc/enUS/CharHairGeosets.dbc
./dbc/enUS/SkillLine.dbc
./dbc/enUS/GlyphSlot.dbc
./dbc/enUS/PhaseShiftZoneSounds.dbc
./dbc/enUS/MountType.dbc
./dbc/enUS/SpellRange.dbc
./dbc/enUS/ItemArmorShield.dbc
./dbc/enUS/ArmorLocation.dbc
./dbc/enUS/SpellCastingRequirements.dbc
./dbc/enUS/FactionGroup.dbc
./dbc/enUS/HolidayDescriptions.dbc
./dbc/enUS/SpellAuraVisXTalentTab.dbc
./dbc/enUS/AnimationData.dbc
./dbc/enUS/DeathThudLookups.dbc
./dbc/enUS/ItemPriceBase.dbc
./dbc/enUS/MovieFileData.dbc
./dbc/enUS/MapDifficulty.dbc
./dbc/enUS/SpellMechanic.dbc
./dbc/enUS/SpamMessages.dbc
./dbc/enUS/SpellMissileMotion.dbc
./dbc/enUS/SpellVisual.dbc
./dbc/enUS/HolidayNames.dbc
./dbc/enUS/GuildColorEmblem.dbc
./dbc/enUS/NamesProfanity.dbc
./dbc/enUS/BankBagSlotPrices.dbc
./dbc/enUS/TalentTreePrimarySpells.dbc
./dbc/enUS/SoundFilter.dbc
./dbc/enUS/VocalUISounds.dbc
./dbc/enUS/ItemArmorQuality.dbc
./dbc/enUS/ItemBagFamily.dbc
./dbc/enUS/PowerDisplay.dbc
./dbc/enUS/WeaponSwingSounds2.dbc
./dbc/enUS/AreaPOISortedWorldState.dbc
./dbc/enUS/ZoneIntroMusicTable.dbc
./dbc/enUS/SpellLevels.dbc
./dbc/enUS/ItemPetFood.dbc
./dbc/enUS/QuestPOIPoint.dbc
./dbc/enUS/ItemDisenchantLoot.dbc
./dbc/enUS/HelmetGeosetVisData.dbc
./dbc/enUS/Faction.dbc
./dbc/enUS/CharStartOutfit.dbc
./dbc/enUS/gtNPCManaCostScaler.dbc
./dbc/enUS/DungeonMapChunk.dbc
./dbc/enUS/DurabilityQuality.dbc
./dbc/enUS/WorldMapContinent.dbc
./dbc/enUS/Achievement_Category.dbc
./dbc/enUS/TaxiPath.dbc
./dbc/enUS/GameTips.dbc
./dbc/enUS/LiquidType.dbc
./dbc/enUS/Talent.dbc
./dbc/enUS/LiquidMaterial.dbc
./dbc/enUS/LanguageWords.dbc
./dbc/enUS/CharacterFacialHairStyles.dbc
./dbc/enUS/TaxiPathNode.dbc
./dbc/enUS/CurrencyCategory.dbc
./dbc/enUS/UnitPowerBar.dbc
./dbc/enUS/DeclinedWordCases.dbc
./dbc/enUS/ItemDamageTwoHand.dbc
./dbc/enUS/DungeonEncounter.dbc
./dbc/enUS/SpellClassOptions.dbc
./dbc/enUS/WorldMapTransforms.dbc
./dbc/enUS/ItemDamageRanged.dbc
./dbc/enUS/PageTextMaterial.dbc
./dbc/enUS/LoadingScreens.dbc
./dbc/enUS/WowError_Strings.dbc
./dbc/enUS/ImportPriceArmor.dbc
./dbc/enUS/JournalInstance.dbc
./dbc/enUS/ObjectEffect.dbc
./dbc/enUS/PlayerCondition.dbc
./dbc/enUS/ItemDamageTwoHandCaster.dbc
./dbc/enUS/SpellAuraVisibility.dbc
./dbc/enUS/AnimReplacement.dbc
./dbc/enUS/CreatureDisplayInfoExtra.dbc
./dbc/enUS/PvpDifficulty.dbc
./dbc/enUS/SkillTiers.dbc
./dbc/enUS/PetitionType.dbc
./dbc/enUS/GMSurveyAnswers.dbc
./dbc/enUS/gtCombatRatings.dbc
./dbc/enUS/TransportPhysics.dbc
./dbc/enUS/DestructibleModelData.dbc
./dbc/enUS/SpellEffect.dbc
./dbc/enUS/TotemCategory.dbc
./dbc/enUS/BarberShopStyle.dbc
./dbc/enUS/CreatureType.dbc
./dbc/enUS/GMSurveyCurrentSurvey.dbc
./dbc/enUS/ChrClassesXPowerTypes.dbc
./dbc/enUS/LFGDungeonExpansion.dbc
./dbc/enUS/SpellDuration.dbc
./dbc/enUS/LightParams.dbc
./dbc/enUS/AreaPOI.dbc
./dbc/enUS/CreatureMovementInfo.dbc
./dbc/enUS/CreatureSoundData.dbc
./dbc/enUS/ChrRaces.dbc
./dbc/enUS/SpellFocusObject.dbc
./dbc/enUS/FactionTemplate.dbc
./dbc/enUS/RandPropPoints.dbc
./dbc/enUS/FootprintTextures.dbc
./dbc/enUS/ObjectEffectModifier.dbc
./dbc/enUS/QuestFactionReward.dbc
./dbc/enUS/GuildPerkSpells.dbc
./dbc/enUS/ItemDisplayInfo.dbc
./dbc/enUS/SpellAuraOptions.dbc
./dbc/enUS/SpellVisualKit.dbc
./dbc/enUS/NumTalentsAtLevel.dbc
./dbc/enUS/ItemDamageAmmo.dbc
./dbc/enUS/ItemDamageThrown.dbc
./dbc/enUS/AnimKitConfigBoneSet.dbc
./dbc/enUS/GMSurveySurveys.dbc
./dbc/enUS/LiquidObject.dbc
./dbc/enUS/CreatureImmunities.dbc
./dbc/enUS/CameraMode.dbc
./dbc/enUS/SkillRaceClassInfo.dbc
./dbc/enUS/SpellCategories.dbc
./dbc/enUS/SpellTotems.dbc
./dbc/enUS/AttackAnimKits.dbc
./dbc/enUS/JournalEncounterItem.dbc
./dbc/enUS/EnvironmentalDamage.dbc
./dbc/enUS/SoundProviderPreferences.dbc
./dbc/enUS/Exhaustion.dbc
./dbc/enUS/CinematicSequences.dbc
./dbc/enUS/gtChanceToMeleeCrit.dbc
./dbc/enUS/LockType.dbc
./dbc/enUS/SoundEntriesAdvanced.dbc
./dbc/enUS/AnimKitBoneSet.dbc
./dbc/enUS/ImportPriceWeapon.dbc
./dbc/enUS/SpellScaling.dbc
./dbc/enUS/ImportPriceShield.dbc
./dbc/enUS/Lock.dbc
./dbc/enUS/Holidays.dbc
./dbc/enUS/Stationery.dbc
./dbc/enUS/AnimKitSegment.dbc
./dbc/enUS/ZoneLight.dbc
./dbc/enUS/SpellShapeshiftForm.dbc
./dbc/enUS/OverrideSpellData.dbc
./dbc/enUS/SkillLineCategory.dbc
./dbc/enUS/SoundEmitters.dbc
./dbc/enUS/ServerMessages.dbc
./dbc/enUS/DeclinedWord.dbc
./dbc/enUS/SummonProperties.dbc
./dbc/enUS/AnimKitPriority.dbc
./dbc/enUS/VehicleUIIndicator.dbc
./dbc/enUS/TalentTab.dbc
./dbc/enUS/GMTicketCategory.dbc
./dbc/enUS/CurrencyTypes.dbc
./dbc/enUS/Cfg_Configs.dbc
./dbc/enUS/Phase.dbc
./dbc/enUS/AreaTrigger.dbc
./dbc/enUS/ItemVisuals.dbc
./dbc/enUS/ChatChannels.dbc
./dbc/enUS/TerrainTypeSounds.dbc
./dbc/enUS/MailTemplate.dbc
./dbc/enUS/QuestXP.dbc
./dbc/enUS/SpellChainEffects.dbc
./dbc/enUS/SpellDifficulty.dbc
./dbc/enUS/ItemRandomSuffix.dbc
./dbc/enUS/WeaponImpactSounds.dbc
./dbc/enUS/SpellCooldowns.dbc
./dbc/enUS/Resistances.dbc
./dbc/enUS/world_PVP_Area.dbc
./dbc/enUS/gtOCTClassCombatRatingScalar.dbc
./dbc/enUS/Emotes.dbc
./dbc/enUS/GMSurveyQuestions.dbc
./dbc/enUS/ResearchBranch.dbc
./dbc/enUS/AreaGroup.dbc
./dbc/enUS/AnimReplacementSet.dbc
./dbc/enUS/SpellInterrupts.dbc
./dbc/enUS/SpellRuneCost.dbc
./dbc/enUS/Spell.dbc
./dbc/enUS/SpellSpecialUnitEffect.dbc
./dbc/enUS/ObjectEffectPackage.dbc
./dbc/enUS/CinematicCamera.dbc
./dbc/enUS/ItemDamageWand.dbc
./dbc/enUS/CharSections.dbc
./dbc/enUS/ScalingStatDistribution.dbc
./dbc/enUS/WorldStateUI.dbc
./dbc/enUS/AnimKitBoneSetAlias.dbc
./dbc/enUS/JournalEncounterCreature.dbc
./dbc/enUS/SpellItemEnchantment.dbc
./dbc/enUS/PaperDollItemFrame.dbc
./dbc/enUS/LFGDungeonsGroupingmap.dbc
./dbc/enUS/GlyphProperties.dbc
./dbc/enUS/ScalingStatValues.dbc
./dbc/enUS/Languages.dbc
./dbc/enUS/SpellPower.dbc
./dbc/enUS/LFGDungeonGroup.dbc
./dbc/enUS/SpellVisualEffectName.dbc
./dbc/enUS/SpellActivationOverlay.dbc
./dbc/enUS/WMOAreaTable.dbc
./dbc/enUS/AttackAnimTypes.dbc
./dbc/enUS/Light.dbc
./dbc/enUS/SpellCategory.dbc
./dbc/enUS/ObjectEffectPackageElem.dbc
./dbc/enUS/DurabilityCosts.dbc
./dbc/enUS/gtOCTHpPerStamina.dbc
./dbc/enUS/VehicleUIIndSeat.dbc
./dbc/enUS/VehicleSeat.dbc
./dbc/enUS/ItemSubClassMask.dbc
./dbc/enUS/ParticleColor.dbc
./dbc/enUS/DanceMoves.dbc
./dbc/enUS/ItemSubClass.dbc
./dbc/enUS/SpellIcon.dbc
./dbc/enUS/WorldChunkSounds.dbc
./dbc/enUS/ItemReforge.dbc
./dbc/enUS/ItemArmorTotal.dbc
./dbc/enUS/QuestSort.dbc
./dbc/enUS/UnitBloodLevels.dbc
./dbc/enUS/BattlemasterList.dbc
./dbc/enUS/ItemPurchaseGroup.dbc
./dbc/enUS/gtBarberShopCostBase.dbc
./dbc/enUS/SkillLineAbilitySortedSpell.dbc
./dbc/enUS/ItemLimitCategory.dbc
./dbc/enUS/PhaseXPhaseGroup.dbc
./dbc/enUS/NamesReserved.dbc
./dbc/enUS/WorldMapOverlay.dbc
./dbc/enUS/SpellFlyout.dbc
./dbc/enUS/gtOCTBaseHPByClass.dbc
./dbc/enUS/ItemSet.dbc
./dbc/enUS/ChatProfanity.dbc
./dbc/enUS/gtSpellScaling.dbc
./dbc/enUS/SpellVisualKitModelAttach.dbc
./dbc/enUS/FootstepTerrainLookup.dbc
./dbc/enUS/SoundEmitterPillPoints.dbc
./dbc/enUS/SpellFlyoutItem.dbc
./dbc/enUS/Vehicle.dbc
./dbc/enUS/SpellTargetRestrictions.dbc
./dbc/enUS/LightSkybox.dbc
./dbc/enUS/Movie.dbc
./dbc/enUS/ZoneLightPoint.dbc
./dbc/enUS/VideoHardware.dbc
./dbc/enUS/SpellVisualPrecastTransitions.dbc
./dbc/enUS/GameObjectArtKit.dbc
./dbc/enUS/SpellRadius.dbc
./dbc/enUS/MountCapability.dbc
./dbc/enUS/SpellItemEnchantmentCondition.dbc
./dbc/enUS/CreatureSpellData.dbc
./dbc/enUS/SpellCastTimes.dbc
./dbc/enUS/Weather.dbc
./dbc/enUS/GroundEffectTexture.dbc
./dbc/enUS/QuestPOIBlob.dbc
./dbc/enUS/gtChanceToSpellCritBase.dbc
./dbc/enUS/CharBaseInfo.dbc
./dbc/enUS/TaxiNodes.dbc
./dbc/enUS/Achievement.dbc
./dbc/enUS/Cfg_Categories.dbc
./dbc/enUS/UnitBlood.dbc
./dbc/enUS/CastableRaidBuffs.dbc
./dbc/enUS/CreatureDisplayInfo.dbc
./dbc/enUS/SpellDispelType.dbc
./dbc/enUS/TransportRotation.dbc
thordarsen commented 2 years ago

I had the same issue. Turns out the locale wasn't getting passed right. In _src/tools//mmapsgenerator/PathGenerator.cpp I manually forced the locale by replacing dbcLocales[0] with "enUS" on lines 388 & 392. Then remake the tools. Haven't figured out yet why dbcLocales[0] doesn't have the right value (current "."), but as a hack this seems to work.

Ovahlord commented 2 years ago

https://github.com/The-Cataclysm-Preservation-Project/TrinityCore/commit/16f699b0498f72c3863e531f45e5ed8bfe1176dd