Giter Club home page Giter Club logo

lucasystemtools's Introduction

Stats Languages

lucasystemtools's People

Contributors

deqxj00 avatar wetor avatar yurisizuku avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

lucasystemtools's Issues

Fatal Twelve Nintendo Switch sprite swap mod

Hello there, I've been looking for a way to make a sprite swap mod for a visual novel published by Prototype for the Switch, called Fatal Twelve. The game uses .PAK files similar to other games published by Prototype.

I am having trouble extracting .pak and .dat files using the program. I am trying to figure out if the OpCode has something to do with it. I can upload any files for testing. If you have the time and are willing, support for extracting/repacking files for this game is appreciated. Thank you!

Here's the error I'm getting when trying to extract a CHARCG.PAK

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\[username]\Downloads\LucaSystemTool_release\LucaSystemTool\CHARCG_unpacked\aln_ban_nor_clo'.

UPDATE: My bad, I was using the wrong command. After using the export (was using import...), I now have extracted files. After looking at it in text editor, I can figure out they are CZ3, and exported them to png with the tool. However, some of the files are a little broken and will give me incomplete image data. How to fix?

How do I edit/replace the font in Flowers - Shiki?

From FONT.PAK, there are some files that I think will be able to do this. One is info52, and the others are the font bitmaps (明朝52 is included as an example), with 52 being the font size used for the in-game text.

I was able to export some files from info52 using 'info' as the file type (info52_, info52_dicStr_sort2.txt, info52_string_sort_utf-8.txt), and of these, I believe info52_dicStr_sort2.txt will let me edit the width of the characters when pulled from the font bitmap.

I was able to export the font bitmap 明朝52.png from 明朝52 using cz1 as the filetype. When using 'info' as the file type, I was able to export other files (明朝52_, 明朝52_dicStr_sort2.txt, 明朝52_string_sort_utf-8.txt), but I don't believe editing them is necessary.

My question is, if I edit info52_dicStr_sort2.txt from info52, and 明朝52.png from 明朝52, how do I import them back into the main files (info52 and 明朝52)? Let me know if I need to provide any more information or if any of my assumptions were incorrect. All of the files I've referenced are in the attached zip.

flowers_shiki_font_edit.zip

One last question that I'm sure won't have an answer: Is there a way to decrease the line spacing in the game's text box, and add a fourth line?

Some CZ0 files have wrong headers when imported.

I don't know why, but some PNGs are not accepted by the game when converted to CZ0. When I looked at the file header and compared them to the existing one, I saw that they are different, here is an example in the picture.
image
image

When I copy the file header from the old file into the new one, the game accepts it and shows it.
image

What is the right command to repack the PAK archives?

Hello, what is the right command to repack the PAK archives?
When I try this kind of command: LucaSystemTools -t pak -m import -f wrk -o rdy pops up a bunch of errors.

D:\wrk\LucaSystemTool>LucaSystemTools -t pak -m import -f wrk -o rdy
Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\wrk\LucaSystemTool\wrk\SCRIPT_unpacked\SEEN0513'.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at ProtPak.PAKManager.Pack(String file) in D:\wrk\LucaSystemTool\src\lben\LucaSystemTools\PakTools.cs:line 91
   at ProtPak.PAKManager.FileImport(String path, String outpath) in D:\wrk\LucaSystemTool\src\lben\LucaSystemTools\PakTools.cs:line 227
   at LucaSystem.Utils.CommandLineUtil.OnExecute() in D:\wrk\LucaSystemTool\src\lben\LucaSystemTools\Utils\CommandLineUtil.cs:line 179
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.Invoke(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](CommandLineContext context)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](IConsole console, String[] args)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](String[] args)
   at LucaSystemTools.Program.Main(String[] args) in D:\wrk\LucaSystemTool\src\lben\LucaSystemTools\Program.cs:line 17

The following folders and files are in the wrk folder:

\wrk\SCRIPT.PAK_unpacked\
\wrk\SCRIPT.PAK.pakhead
\wrk\SCRIPT.PAK

The following files are in the wrk\SCRIPT.PAK_unpacked\ folder:

SCRIPT.PAK_unpacked

_ARFLAG
_BUILD_COUNT
_CGMODE
_KEYWORD
_QUAKE
_SAYAVOICE
_SCR_LABEL
_TASK
_VARNUM
_VARSTR
_VOICE_PARAM
SEEN0513
SEEN0514
SEEN0515
SEEN0516
SEEN0517
SEEN0518
SEEN0519
SEEN0520
SEEN0521
SEEN0522
SEEN0523
SEEN0524
SEEN0525
SEEN0526
SEEN0527
SEEN0528
SEEN1000
SEEN1001
SEEN1002
SEEN1003
SEEN1004
SEEN1200
SEEN1201
SEEN1202
SEEN1203
SEEN2000
SEEN2001
SEEN2004
SEEN2005
SEEN2100
SEEN2500
SEEN2513
SEEN2514
SEEN2515
SEEN2516
SEEN2517
SEEN2518
SEEN2520
SEEN2521
SEEN2522
SEEN2523
SEEN2600
SEEN2601
SEEN2602
SEEN2603
SEEN2700
SEEN2800
SEEN2801
SEEN2802
SEEN2803
SEEN2804
SEEN2805
SEEN2806
SEEN2807
SEEN2808
SEEN2809
SEEN2810
SEEN2811
SEEN2812
SEEN2813
SEEN2814
SEEN2815
SEEN2816
SEEN2817
SEEN2818
SEEN2819
SEEN2830
SEEN2888
SEEN3000
SEEN3001
SEEN3524
SEEN3600
SEEN3601
SEEN3800
SEEN3900
SEEN4000
SEEN4001
SEEN4002
SEEN4003
SEEN4102
SEEN4103
SEEN4444
SEEN5000
SEEN5001
SEEN5002
SEEN5003
SEEN5004
SEEN5005
SEEN5006
SEEN5522
SEEN6000
SEEN6001
SEEN6002
SEEN6003
SEEN6010
SEEN6100
SEEN6101
SEEN6102
SEEN6518
SEEN7030
SEEN8010
SEEN8011
SEEN8030
SEEN8040
SEEN8050
SEEN8052
SEEN8054
SEEN8061
SEEN8090
SEEN8091
SEEN8110
SEEN8130
SEEN8140
SEEN8150
SEEN8220
SEEN8240
SEEN8241
SEEN8242
SEEN8243
SEEN8244
SEEN8245
SEEN8250
SEEN8500
SEEN8501
SEEN8530
SEEN8540
SEEN8580
SEEN8590
SEEN8600
SEEN8601
SEEN8610
SEEN8620
SEEN8621
SEEN8691
SEEN8692
SEEN8693
SEEN8694
SEEN8695
SEEN8721
SEEN8731
SEEN8733
SEEN8734
SEEN8735
SEEN8736
SEEN8737
SEEN8750
SEEN8751
SEEN8752
SEEN8753
SEEN8754
SEEN8755
SEEN8756
SEEN8757
SEEN8758
SEEN8760
SEEN8761
SEEN8770
SEEN9700

Using a bunch lb_en

I am confused by the error Could not find a part of the path 'D:\wrk\LucaSystemTool\wrk\SCRIPT_unpacked\SEEN0513'.
There is no such folder SCRIPT_unpacked but SCRIPT .PAK _unpacked

Unhandled exception. System.IO.EndOfStreamException: Unable to read beyond the end of the stream.

当我试着使用命令 LucaSystemTools -t pak -m import -f SCRIPT.PAK_unpacked -o SCRIPT 打包LBEN的脚本文件时,出现以下错误:

Unhandled exception. System.IO.EndOfStreamException: Unable to read beyond the end of the stream.
   at ProtPak.PAKManager.Pack(String file) in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\PakTools.cs:line 64
   at ProtPak.PAKManager.FileImport(String path, String outpath) in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\PakTools.cs:line 227
   at LucaSystem.Utils.CommandLineUtil.OnExecute() in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\Utils\CommandLineUtil.cs:line 173
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.Invoke(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](CommandLineContext context)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](IConsole console, String[] args)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](String[] args)
   at LucaSystemTools.Program.Main(String[] args) in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\Program.cs:line 17.

打包别的目录不会报错,但也不能正确打包。是使用的命令不正确吗?

Little Busters! English Edition support possible?

Hello!

First of all, I'm so glad to see work being done on LUCASystem engine. Your efforts seem quite amazing.

I wanted to ask whether supporting LBEE on PC is possible. I've tried out your tool on some of the files and it was a success, at least on image files. I could extract the font info files and the font images themselves.
I also tried to extract SCRIPT.PAK to get into the script files, and while it successfully gave me the raw files, I don't know where/how to find necessary opcodes for LB's script files to extract them in a "readable" and editable sense. I tried out some of the prebuilt OPCODES you guys have given with the files but they didn't work.
Can you help me with LBEE's files (especially to edit the font files and the script)? I wanted to translate this game to Turkish and it'd be a great help if you could help me. I can provide the necessary files if you're up for the task. Thank you so much beforehand and keep up the great work!

Tool doesn't support PAK patch type

This kind of PAK can be found in Summer Pockets Reflection Blue on Switch.
PARTS2.zip

This is a patch to PARTS.PAK

It has the same files registered in header as in PARTS, but only files that are changed are actually packed while all other files are nulled in offset-size table (+entries in additional tables if necessary)

error

Unhandled exception. System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\Admin\Documents\Switch\ReflectionBlue\romfs\PARTS2.PAK_unpacked\'.
   at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at System.IO.StreamWriter.ValidateArgsAndOpenPath(String path, Boolean append, Encoding encoding, Int32 bufferSize)
   at ProtPak.PAKManager.Unpack(String file) in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\PakTools.cs:line 141
   at ProtPak.PAKManager.FileExport(String path, String outpath) in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\PakTools.cs:line 222
   at LucaSystem.Utils.CommandLineUtil.OnExecute() in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\Utils\CommandLineUtil.cs:line 171
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.Invoke(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](CommandLineContext context)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](IConsole console, String[] args)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute[TApp](String[] args)
   at LucaSystemTools.Program.Main(String[] args) in D:\a\LucaSystemTools\LucaSystemTools\LucaSystemTools\LucaSystemTools\Program.cs:line 17

this is not an error related to not existing folder since this folder is created before crash. It works correctly for standard PAK files, but not for this type.

Solution: ignore all files with size nulled

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.