CodeWalker API v1.0.30
102
3
102
3
CodeWalker API
A .NET 9 web API that allows extracting, converting, and interacting with GTA V assets using CodeWalker libraries.
Download and Install
You can download the latest pre-built release from the Releases page. No need to build manually - just extract and run.
Configuration
The API reads its settings from an appsettings.json file. You can override locally using appsettings.Development.json.
Running the API
Simply run the CodeWalker API executable. By default, it starts on port 5555.
Features
Usage
You can interact with the API via Swagger UI or regular HTTP requests.
Examples and Documentation
See GitHub for full examples and usage instructions:
https://github.com/flobros/CodeWalker.API
License
MIT
Contributing
Pull requests are welcome! Report issues on GitHub:
https://github.com/flobros/CodeWalker.API/issues
A .NET 9 web API that allows extracting, converting, and interacting with GTA V assets using CodeWalker libraries.
Download and Install
You can download the latest pre-built release from the Releases page. No need to build manually - just extract and run.
Configuration
The API reads its settings from an appsettings.json file. You can override locally using appsettings.Development.json.
Running the API
Simply run the CodeWalker API executable. By default, it starts on port 5555.
Features
- Extract and convert GTA V files (YDR, YTD, and more)
- Export models to XML
- Extract textures
- Search for files within RPF archives
- Import XML files back into RPF
Usage
You can interact with the API via Swagger UI or regular HTTP requests.
Examples and Documentation
See GitHub for full examples and usage instructions:
https://github.com/flobros/CodeWalker.API
License
MIT
Contributing
Pull requests are welcome! Report issues on GitHub:
https://github.com/flobros/CodeWalker.API/issues
Првпат Додадено: пред 5 дена
Последно Ажурирање: пред 4 дена
Последно Симнување: пред 8 минути
13 Коментари
More mods by flobros:
- Девелопери
125
8
v1.0.0
By flobros
CodeWalker API
A .NET 9 web API that allows extracting, converting, and interacting with GTA V assets using CodeWalker libraries.
Download and Install
You can download the latest pre-built release from the Releases page. No need to build manually - just extract and run.
Configuration
The API reads its settings from an appsettings.json file. You can override locally using appsettings.Development.json.
Running the API
Simply run the CodeWalker API executable. By default, it starts on port 5555.
Features
Usage
You can interact with the API via Swagger UI or regular HTTP requests.
Examples and Documentation
See GitHub for full examples and usage instructions:
https://github.com/flobros/CodeWalker.API
License
MIT
Contributing
Pull requests are welcome! Report issues on GitHub:
https://github.com/flobros/CodeWalker.API/issues
A .NET 9 web API that allows extracting, converting, and interacting with GTA V assets using CodeWalker libraries.
Download and Install
You can download the latest pre-built release from the Releases page. No need to build manually - just extract and run.
Configuration
The API reads its settings from an appsettings.json file. You can override locally using appsettings.Development.json.
Running the API
Simply run the CodeWalker API executable. By default, it starts on port 5555.
Features
- Extract and convert GTA V files (YDR, YTD, and more)
- Export models to XML
- Extract textures
- Search for files within RPF archives
- Import XML files back into RPF
Usage
You can interact with the API via Swagger UI or regular HTTP requests.
Examples and Documentation
See GitHub for full examples and usage instructions:
https://github.com/flobros/CodeWalker.API
License
MIT
Contributing
Pull requests are welcome! Report issues on GitHub:
https://github.com/flobros/CodeWalker.API/issues
Првпат Додадено: пред 5 дена
Последно Ажурирање: пред 4 дена
Последно Симнување: пред 8 минути
Seems useful! Is it possible to replace files in .rpf's with this API?
Hmm.
That's not a bad idea. What about secure encryption of rpf archives? I think it would be a useful tool for modders.
Encryption will be useful too, but now we have OpenRPF so it's not mandatory.
However, ability to editing the files inside .rpf archives would be incredibly useful for automation!
@flobros. Really don't want to install Swagger before doing some testing. This work or doesn't work from CMD?
I have to control c out.
[INFO] Loading RPF decryption keys...
[INFO] RPF decryption keys loaded successfully.
info: Program[0]
API is starting on port 5555...
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://0.0.0.0:5555
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: C:\Users\J2020\Desktop\5af8ad-CodeWalker.API
info: Microsoft.Hosting.Lifetime[0]
Application is shutting down...
@flobros I can get to this http://localhost:5555/index.html and see the API interface. LOL. Just realized it is swagger.
but my question is can I use this with cmd, powershell, or vscode terminal?
for example, based on your github
curl "http://localhost:5555/api/download-files?fullPaths=x64c.rpf/levels/gta5/props/lev_des.rpf/prop_alien_egg_01.ydr&xml=true&outputFolderPath=C:\\GTA_FILES"
Nevermind, I'll figure it out by myself. Using Get /api/download-files
, it's scanning all the files now, has been doing it for minutes. holy crap it's taking forever lol.
[CONFIG] Loaded config from Config/userconfig.json
[DEBUG] Searching for file in RPF: x64c.rpf/levels/gta5/props/lev_des.rpf/prop_alien_egg_01.ydr
[DEBUG] File not found in RPF: x64c.rpf/levels/gta5/props/lev_des.rpf/prop_alien_egg_01.ydr
warn: RpfService[0]
File not found in RPF: x64c.rpf/levels/gta5/props/lev_des.rpf/prop_alien_egg_01.ydr
warn: CodeWalker.API.Controllers.DownloadController[0]
File ' x64c.rpf/levels/gta5/props/lev_des.rpf/prop_alien_egg_01.ydr' not found.
This is a great tool. Thanks. Going to have fun with this when I have some free time. Regarding the error above, that's ok I'm not one of those ppl who duplicate every single x.rpf in mods. I just have the ones i customize in my mods folder which explains the File not found.
Still would like to know how to use this from a terminal. Do not like UI's like Swagger. Would much prefer a python environment with Gradio
Hello, this is mostly in favor of codewalker_blender_bridge plugin but I will do some updates soon using the cache that dexy has created. I might be doing something that is making it a bit slow atm which will be fixed in the next release. I check github issues mostly but every now and and then will read comments here as well.
For now, the first search might take a bit, subsequent ones should be fast.
@JohnFromGWN Yes it works from anything that can make web requests! This an api in openapi format, you can even use some get requests directly from the browser. Enjoy! :)
@Alex94 I still have to learn about this but if codewalker.core has a solution for this we can reuse that because the API is dependent on it. We will give a flag 'secure' to the import-files endpoint and do it that way. I created a github issue for it.
@flobros Hi and thanks for the reply. From my first comment here, I was not able to proceed with commands using CMD.
Content root path: C:\Users\J2020\Desktop\5af8ad-CodeWalker.API
info: Microsoft.Hosting.Lifetime[0]
The complete initialization messages are in my first message, the last is above. At that point i could no longer enter anything and had to control c it shut. I was however able to run my request on the localhost using the swagger UI web interface. Now a second however - the request only searched my mods folder, unlike OpenIV and RPF Explorer do both the mods and the game. My setup is unique, im sure of it, because I don't use dlcpacks. My dlc is in the root folder. Also, I have multiple mod folders for the same game to support massive mods such as LCCP. The current API ignores these.
@JohnFromGWN Oh yes that is correct, you have to use the SwaggerUI to make requests, use curl, a browser or similar. Sending the requests inside the same window is not possible. For the searches however that it is not finding the files that Codewalkers RPF Explorer does is a bit weird because it fully reuses dexy's code. Maybe you have a custom gta v directory or maybe something else goes wrong. Traversing the RPF archives only happens upon searching. SwaggerUI was added to support developers, other UI elements won't be added in this repository because Codewalker does this perfectly. If you want to use this for mapping reasons, try out the 'codewalker sollumz bridge' it's a blender plugin which has search, import and export ui elements which reuses this API.
@flobros Thanks. This is a great tool. Just need to find the right application for it.