Naotsun19B / PDFImporter

Unreal Engine 4 plugin that can import PDF files as PDF assets into the editor and view them in a special editor. Also add a Blueprint node that loads the PDF file as a PDF asset at runtime.
40 stars 9 forks source link

can't start packaged game for Windows and no log generated #3

Open waterfu1124 opened 2 years ago

waterfu1124 commented 2 years ago

Enable the plugin and It works fine in the editor,but can't start packaged game for Windows and no log generated. I disabled the plugin, restarted Unreal, rebuilt my game, all good(both for 4.24 and 4.26). What caused it to happen,I wonder if you could help me.

Naotsun19B commented 2 years ago

I haven't managed it for a long time, so I can't give you an exact solution, but why not try changing the module type of PDFImporter.uplugin from Developer to EditorNoCommandlet?

waterfu1124 commented 2 years ago

好久没管了,所以不能给你一个准确的解决方案,但是不如把PDFImporter.uplugin的类型从Developer模块改成EditorNoCommandlet呢?

I gave it a try,It doesn't work either

waterfu1124 commented 2 years ago

PDF Importer Plugin in Unreal MarketPlace is not yours? It's too similar

waterfu1124 commented 2 years ago

I find a CrashDumps file in C:\Users\Administrator\AppData\Local\CrashDumps\ 0xC0000005\projectname.exe.xxxx.dmp shows exception code 0xC0000005 exception information The thread tried to read from or write to a virtual address for which it does not have the appropriate access. i have no idea which code cause it

Naotsun19B commented 2 years ago

Here is my marketplace. https://www.unrealengine.com/marketplace/ja/profile/Naotsun?count=20&sortBy=effectiveDate&sortDir=DESC&start=0

It's true that the marketplace-like items are listed for a fee ... I'm honestly surprised.

EchoRed-3D commented 1 year ago

Okay i resolve this in GhostscriptCore.cpp (L17) replace this : FString FGhostscriptCore::PagesDirectoryPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(IPluginManager::Get().FindPlugin(TEXT("PDFImporter"))->GetBaseDir(), TEXT("Content")));

by : const FString FGhostscriptCore::PagesDirectoryPath = FPaths::ConvertRelativePathToFull(FPaths::Combine(FPaths::ProjectPluginsDir(), TEXT("PDFImporter"), TEXT("Content")));