Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/grzybeek/YMTEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
grzybeek committed Jun 8, 2021
2 parents 95a1ebd + 459153b commit 0e3db9e
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,32 @@
# YMTEditor [WIP]
## Used to edit Codewalker exported *.ymt.xml (Peds clothes) files
## Used to edit *.ymt OR *.ymt.xml - (Peds clothes) files

**How it works:**
1. Make sure you have latest Codewalker downloaded (You can get it at codewalker discord in channel #releases)
2. Find your .ymt file in Codewalker RPF Explorer, enable "Edit mode", right-click it and select "Export XML..."
3. Open exported file in YMTEditor
4. Edit it
- You can add/remove new drawables to your current components and props
- You can add/remove textures to your drawables
- **Renaming files is up to you! - if you have "000 001 002" drawables, and you remove 001, you have to manually change .ydd and .ytd file names, same goes with "a b c" textures**
- Don't touch propMask/numAlternatives/clothData and component/prop properties if you don't know what these do
5. Save edited file (currently only overriding works)
6. Open Codewalker RPF Explorer, enable "Edit mode", right-click in any folder and select "Import XML..."
### How it works: ###
* __Import/Export *.YMT.XML__
- Make sure you have latest Codewalker downloaded (You can get it at codewalker discord in channel #releases)
- Find your .ymt file in Codewalker RPF Explorer, enable "Edit mode", right-click it and select "Export XML..."
- Open exported file in YMTEditor
- Edit it
- You can add/remove new drawables to your current components and props
- You can add/remove textures to your drawables
- **Renaming files is up to you! - if you have "000 001 002" drawables, and you remove 001, you have to manually change .ydd and .ytd file names, same goes with "a b c" textures**
- Don't touch propMask/numAlternatives/clothData and component/prop properties if you don't know what these do
- Save edited file to XML (or YMT and you can skip next step)
- Open Codewalker RPF Explorer, enable "Edit mode", right-click in any folder and select "Import XML..."

* __Import/Export *.YMT__
- Find your .ymt file in Codewalker RPF Explorer, copy it to any folder
- Open .ymt file in YMTEditor
- Edit it
- You can add/remove new drawables to your current components and props
- You can add/remove textures to your drawables
- **Renaming files is up to you! - if you have "000 001 002" drawables, and you remove 001, you have to manually change .ydd and .ytd file names, same goes with "a b c" textures**
- Don't touch propMask/numAlternatives/clothData and component/prop properties if you don't know what these do
- Save edited file to YMT

**Known bugs:**
- expressionMods in component and prop section is not editable as i couldn't figure it how to do it (currently all P_HEAD props are saved with "-0.5 0 0 0 0", so if you are adding any head prop that shouldn't hide hair, you have to change that manually in .ymt)
- Components drop-down is not implemented - you can't add/remove components currently
- Components drop-down is not implemented - you can't add/remove components currently (for example: you can't add jbib if you don't have it in your .ymt already)
- clothData drop-down is not implemented - .ymt will be saved with "false" value

_My coding skills are not greatest but it works 😛_

0 comments on commit 0e3db9e

Please sign in to comment.