Giter VIP home page Giter VIP logo

twinkles-twinstar / twinstar.toolkit Goto Github PK

View Code? Open in Web Editor NEW
50.0 6.0 11.0 28.92 MB

A tool to help us create PvZ-2 MOD . Distribution & Installation : https://github.com/twinkles-twinstar/TwinStar.ToolKit.Document

License: GNU General Public License v3.0

PowerShell 0.01% C++ 34.32% TypeScript 4.01% Lua 0.16% C 57.22% Java 0.01% Kotlin 0.07% Swift 0.09% Objective-C 0.01% Dart 0.75% CMake 0.13% C# 3.23%
pvz2

twinstar.toolkit's Introduction

Hi there 👋

  • 👋 Hi, I’m @TwinStar
  • 👀 I’m interested in twins's love story...twincest is best!
  • 🌱 I’m currently learning C++/TS/React/...
  • 📫 How to reach me : [email protected]

twinstar.toolkit's People

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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

twinstar.toolkit's Issues

Loosen Kernel Json Library

I have added the version: 6 to the pam json, later toolkit doesn't support the conversion due to non-used properties appear. Can this be loosen in Kernel like you did with the Helper?
image
image

Bug: reading path with more than 260 characters

I tried to use the Kernel to write the file on my Windows OS (the path have more than 260 characters), below is the script (The directory is already existed, so it is not the bug come from me), I think you should add the prefix "\\?\" for Windows machine: https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fopen-wfopen?view=msvc-170

In Kernel/kernel/utility/file_system/file_system.hpp line 157 make this change:

auto file = _wfopen(cast_pointer<WCHAR>(make_null_terminated_string(StringEncoding::utf8_to_utf16(self_cast<BasicString<Character8>>(make_string(Third::fmt::format("\\\\?\\{}", make_regular_path(target).to_string().view()))))).begin()).value, cast_pointer<WCHAR>(make_null_terminated_string(StringEncoding::utf8_to_utf16(self_cast<BasicString<Character8>>(make_string_view(mode)))).begin()).value);

image
test.zip

Helper: Animation Viewer problem

The Helper is extremely strict in JSON parsing, yet also animation rendering. Even the pam json made by toolkit is refused, can it be fixed? When an exception is thrown, the helper itself refused to open a new file (please fix this, second image)
Below is the pam json
image

image
CHILLYPEPPER.pam.json

How to use Toolkit for Android?

The document points out you should place some library in /system/lib64, but I am no way to do that as my phone can't mount system partition. Can I use another approach? Why don't you include these libraries in your app directly?

Add support for CFW2

Add ability to decode, unpack or convert CFW2 files and vice versa.

They were found in PvZ Free
CFW2

JSON Trailing Commas

When decoding RTONs and NEWTONs into JSON, almost everything has a comma at the end.

Example (Resources.NEWTON):
image

Building Shell

I want to build the Shell according to the README.md in \Shell. But I keep getting this error:
image

Here is my command: ./build.ps1 C:\Users\Admin\Desktop\TwinKleS.ToolKit-master\Shell -system native -build debug -native_compiler_c msvc -native_compiler_cxx msvc

Can you tell me what's wrong in it? I'm using a Windows device

Shell GUI的bug?

Shell GUI无法读取除了/storage/emulated/0/Android/data/com.twinstar.toolkit.shell_gui/files/以外的路径,而且已经给了权限
Screenshot_2023-02-16-20-13-38-840_com twinstar toolkit shell_gui

Type checking for TwinStar Helper

When selecting a non .pam.json, the tool crashed and closed suddenly. I think you should raise an error to notify the user instead of forcing the program to close, the rest are fine.

Add support for PvZ 2 10.8.1 Official

In the newest version (10.8.1), PopCap has added new "RESOURCES.NEWTON", toolkit should be modify to adapt the decode and encode newton function.
Additionally, ResourceConvert.ts must also be modified.

assert_test(resource_path_list.length === 1, `MANIFEST subgroup must has one only resource`);

The size of the MANIFEST now increased to 2, so toolkit should not check this anymore, instead please find the RESOURCES.RTON and call the decode RTON function through API.

Please check it yourself.

PvZ 2 10.8.1 Resource in my Onedrive

System.IO.IOException Error with helper.msix on Windows 10

Experiencing System.IO.IOException issue relating to incorrect path input with the helper.msix. When running it, the error as follows occurs:

FAILED
System.IO.IOException: The filename, directory name, or volume label syntax is incorrect. : 'C:\Windows\system32\‪T:\TwinStar.ToolKit\kernel'
   at System.IO.FileSystem.CopyFile(String sourceFullPath, String destFullPath, Boolean overwrite)
   at Helper.Module.ModdingWorker.MainPageController.LaunchSession()

'C:\Windows\system32' is awkwardly added at the beginning of the path. This issue is consistent on two different Windows 10 machines.

Also, when I execute "launch.cmd" and input correct "launch_gui.cmd" in the path option, the system does not respond and instead returns to the option for reentering the path.

Any help on these issues would be greatly appreciated.

Shell GUI Error

Hi apparently your shell GUI denied access to the directory in the phone, is there anyway I can allow it without root? Thanks 👍
Screenshot_20230215-210614.jpg

Bug: Export of PAMs to Flash is misshaped!

I just tried your new tool and it's magnificent!!! Shows the animations perfectly in the "Helper". But the same results are not shown when exporting to XFL (Flash). I tried with RSBs for ipad3, ipad2; also with an Android OBB and readjusting Atlas or not. With Adobe Flash CS6 and Animate CC 2019 and obviously placing each sprite in the "\LIBRARY\media" path of each plant folder, but the animations still look like a mess (even through my locale is correctly set) :(

The thing is, with Animate it's the only way to export them to .MP4 or another video format, as well as a .GIF or a transparent image like .PNG. I can't capture the screen either because it records very laggy. Or else you could add to the "Helper" the option to export animations both in .PNG and in any HQ video format and also be able to change the background color.

I wouldn't have any more problems for now. Otherwise your tool is amazing, it shows the effort you put into it. Thank you very much for it and keep up the good work!

BL
EP
BD
BD2
TT

Issue reading UTF8 String on Windows

I used a script to obtain list of file, (using KernelX.FileSystem.list_file)
Result is two file starts name with Chinese characters break toolkit (I used Console.success(e, []) to print the file name). Below is the output:
0cf9254b-ff49-41c7-9f79-53d1a594c70d.png

Actual:

426308125_903067254651055_5577970099944017666_n.png

By the way, I'm using Kernel: 62, Script: 103 and ShellCli: 35

Flash to PAM JSON Issue

I decode the pam to pam.json normally, later convert to Flash. This is a strange issue because the tool cannot convert Flash to pam.json, below is the video and PAM (Also this PAM is from PvZ2C RSB):

2023-05-01.19-33-20.mp4

ZOMBIE_SKYCITY_ZOMBOSS.zip

Update English

Please update the Language for English in Script, I have updated some missing strings that has not been translated to English.

image

English.json

Command Forwarder Improvement

Command Forwarder should display the output argument, and then check if the file/directory existed. If existed, please ask the user to change or override in the project Helper.
image

BNK 编码疑似存在 bug

如题。将 GLOBAL_DATA 解码并原样编码,出现了钢琴的技能音乐断断续续的 bug。发现编码的生成结果与原始文件并不完全相同。
此外,用太极解码并编码似乎并不会出现这个问题。

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.