Comments (8)
FWIW GDRETools can convert STEX > PNG.
I haven't tested their OGG conversion as I don't have a game that uses them atm. But if it can handle OGG too, perhaps it would be more suitable to use GDRETools rather than expanding the scope of PckTool? And if it can't handle OGG conversion, maybe it would be worth raising a feature request for GDRETools?
edit: As far as I can tell, GDRETools has surpassed the capabilities of godotdec, as it seems to be possible to do the same things in GDRETools, but with more features. It does, however, decompile source code in full (via RE Tools > Recover Project), so other tools that don't expose the source may be preferable if you intend to distribute/require it as part of your tooling.
from godotpcktool.
Do you know how the STEX files are packed / what they contain?
If they are converted by Godot to an entirely different form from the source asset, I'm not sure how possible it is to revert that conversion...
from godotpcktool.
So it looks like STEX files have a header followed by (potentially) PNG data, so it shouldn't be too difficult to look at the Godot source code for STEX generation to reverse engineer the header format and then write code that is able to extract the PNG data from a STEX file.
https://www.reddit.com/r/godot/comments/hyokie/is_there_a_tool_available_to_convert_stex_files/
https://whatext.com/stex
from godotpcktool.
You might want to look at the code at this location: https://github.com/Bioruebe/godotdec
They have a -c option included to convert items.
from godotpcktool.
It looks like that just detects the .png.stex being part of a file name and skips the .stex file header to dump what presumably is the png content. Doing things properly and in a checked way (for example verifying that the stex specifies that the resource is of png type) would be a bit more difficult.
Edit: here's the interesting part in that source code:
https://github.com/Bioruebe/godotdec/blob/66fef2185989944f8d45581e3f02b0e05c621506/godotdec/Program.cs#L74
from godotpcktool.
Indeed, seen the interesting part. Wasn't suggesting you take this 1-to-1 into your code btw, but since there are some references on that Github it might be an interesting read to see what model you can come up with.
from godotpcktool.
I would like to do a similar thing - Convert .oggstr files back to .ogg
I had no luck finding anything about that on the web
from godotpcktool.
I would like to do a similar thing - Convert .oggstr files back to .ogg
< foo.oggstr tail -c +280 > foo.ogg
from godotpcktool.
Related Issues (20)
- Add podman build workflow for working with older glibc HOT 6
- How to repack on Windows? HOT 4
- nlohmann/json.hp dependency HOT 2
- ERROR: Invalid magic number ? HOT 5
- Add support for macOS HOT 2
- Add support for Godot 4 PCK files HOT 4
- I cant open. when i try it just instantly close HOT 1
- When im tryna open it, it just shows the CMD Window & insta-closes 2 ms after, pls help HOT 1
- Code analysis warning about string::find usage
- How do I install it on linux? HOT 1
- It doesn't imports images. Only the import file. HOT 3
- TOC padding is wrong HOT 2
- Possible to overwrite files in the PCK? HOT 4
- Embedded pck files HOT 6
- Question: Absolute path problems HOT 3
- Override file HOT 4
- Support PCK format version 0 (Godot 2.x)
- Unicode support HOT 2
- Add support for writing Godot 4 .pck files HOT 1
- how to use this program on macOS ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godotpcktool.