游戏开发进行中UE5引擎打不开后续

发布时间 2023-10-31 14:13:17作者: yang131

游戏每次启动都有个问题:

   之前我实现了插件里的接口,但是已启动,关于接口这一块的就消失了,有些函数还在但是却是自定义事件,不是接口里的,Class Settings里面也提了

 

 

然后我把他改成了新的character class,然后在c++的接口新增一个函数,然后无法编译:

 

    无法编译的报错是  invalid path  ,invliad character之类的,百度之后说是项目里每次更新完要提交,猜测是git没有提交,ue项目是包含git信息的

 

之后ue像之前那样报错,后来经过摸索,发现可以从工程目录里的SaveGames,中看到Crashes,找到最近时间的这个,能看到日志

o remove pin.
[2023.10.31-05.56.40:895][ 0]LogBlueprint: Warning: [AssetLog] E:\UEGames\Project\UE5\HunterLegands\Content\VillageMap\BP_MyCharacter.uasset: [Compiler] Input pin Damage specifying non-default value no longer exists on node PutDamage . Please refresh node or reset pin to default value to remove pin.
[2023.10.31-05.56.40:895][ 0]LogBlueprint: Error: [AssetLog] E:\UEGames\Project\UE5\HunterLegands\Content\VillageMap\BP_MyCharacter.uasset: [Compiler] Could not find a function named "PutDamage" in 'BP_MyCharacter'.
Make sure 'BP_MyCharacter' has been compiled for PutDamage
[2023.10.31-05.56.40:908][ 0]LogLinker: Warning: [AssetLog] E:\UEGames\Project\UE5\HunterLegands\Plugins\DamageCaculator\Content\Bp_DamageCaculatorComponent.uasset: CreateExport: Failed to load Parent for BlueprintGeneratedClass /DamageCaculator/Bp_DamageCaculatorComponent.Bp_DamageCaculatorComponent_C
[2023.10.31-05.56.40:909][ 0]LogLinker: Warning: [AssetLog] E:\UEGames\Project\UE5\HunterLegands\Plugins\DamageCaculator\Content\Bp_DamageCaculatorComponent.uasset: CreateExport: Failed to load Parent for BlueprintGeneratedClass /DamageCaculator/Bp_DamageCaculatorComponent.Bp_DamageCaculatorComponent_C

 有

LogClass: Error: FloatProperty FDamageTimes::Interval is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: IntProperty FDamageTimes::DamageNumber is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: FloatProperty FDamageTimes::ColdTime is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: FloatProperty FDamageInTime::ColdTime is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: FloatProperty FDamageInTime::LeftTime is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: FloatProperty FDamageInTime::MaxTime is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: FloatProperty FDamageInTime::Interval is not initialized properly. Module:DamageCaculator File:Public/DamageCaculatorComponent.h
[2023.10.31-05.34.26:475][ 0]LogClass: Error: IntProperty FDamageInTime::DamageNumber is not initialized properly.

这个是插件里的成员需要初始化  改完之后依然无法启动报错变成了

,根据之前的经验我把策略变成了先把Default Spawn Pawn也就是BP_MyCharacter.uasset 拷贝出现,当前目录删除掉,这样子GameMode找不到默认Spawn类,但是可以启动

启动之后把他复制进来就行了