openorbis / create-gp4 Goto Github PK
View Code? Open in Web Editor NEWGolang based tool to generate .GP4 files compatible with Maxton's publishing tools for producing .PKG files for the PS4.
License: GNU General Public License v3.0
Golang based tool to generate .GP4 files compatible with Maxton's publishing tools for producing .PKG files for the PS4.
License: GNU General Public License v3.0
cause clearly there is no exe to open
As it is the tool generates incorrect gp4 files when the file list contains a file from the sce_sys/trophy folder.
create-gp4 -out pkg.gp4 --content-id=EP9000-CUSA07410_00-00000000GODOFWAR --files "eboot.bin sce_sys/about/right.sprx sce_sys/param.sfo sce_sys/icon0.png sce_sys/pronunciation.xml sce_sys/nptitle.dat sce_sys/npbind.dat sce_sys/trophy/trophy00.trp sce_module/libc.prx sce_module/libSceFios2.prx"
The tool produces this xml code:
<dir targ_name="sce_sys"> <dir targ_name="about" /> </dir>
But should procude this one:
<dir targ_name="sce_sys"> <dir targ_name="about" /> <dir targ_name="trophy"/> </dir>
Trying to build the incorrect gp4 file with "PkgTool.Core pkg_build" gives this error:
Unhandled exception. System.InvalidOperationException: Sequence contains no elements at System.Linq.ThrowHelper.ThrowNoElementsException() at LibOrbisPkg.PFS.PfsProperties.FindDir(String name, FSDir root) at LibOrbisPkg.PFS.PfsProperties.BuildFSTree(Gp4Project proj, String projDir) at LibOrbisPkg.PKG.PkgProperties.FromGp4(Gp4Project project, String projDir) at PkgTool.Program.<>c.<.cctor>b__6_2(String[] args) at PkgTool.Verb.<>c__DisplayClass4_0.<Create>b__0(Dictionary
2 _, Dictionary2 _2, String[] a) at PkgTool.Verb.Run(Verb[] verbs, String[] args, String name) at PkgTool.Program.Main(String[] args)
As the xml seems to be hardcoded in the tool a simple solution is to add the "trophy" dir tag after the about folder tag.
A more elaborate solution would require to parse the path part of every file and add the necesary "dir" tags to create a proper tree hierarchy in the xml output.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.