ConverterPIX - Game formats to middle formats

Post any tutorial and tools you might find it useful for other creators.
Post Reply
User avatar
mwl4
Posts: 104
Joined: 25 Dec 2012 16:06
Location: Poland
Contact:

ConverterPIX - Game formats to middle formats

#1 Post by mwl4 » 15 Aug 2016 01:37

Hello,
as you probably know, SCS Tools for Blender was released long time ago, but still there was not possibility of editing models or prefabs that are stored in game formats.
That's why I wrote a tool some time ago, and today came time to release it. Open Source. It's weird felling, but perhaps for somebody it could be very useful to know how to read game formats.

Github repository: https://github.com/mwl4/ConverterPIX

There you can find source, but also binaries (windows x86 and linux). How you can use that?

That's pretty simple. Here is video that explains basics:
https://www.youtube.com/watch?v=DpUSlQxMVuw

What does it support?
- pmg(0x13, 0x14)
- pmd(0x04)
- pma(0x03)
- ppd(0x15)
- tobj(magic = 1890650625)
- pmc
- mat

Enjoy.

PS. I hope somebody from community will create user interface, I do not have time :)

DONATE!

Help:

Code: Select all

 Parameters:
  -h                   - prints help text
  -m <model_path>      - turns into single model mode and specifies model path (relative to base)
  -t <tobj_path>       - turns into single tobj mode and specifies tobj path (relative to base)
  -d <dds_path>        - turns into single dds mode and prints debug info (absolute path)
  -b <base_path>       - specify base path
  -e <export_path>     - specify export path

 Usage:
  converter_pix -b C:\ets2_base -m /vehicle/truck/man_tgx/interior/anim s_wheel
    ^ will export into C:\ets2_base_exp single model with s_wheel animation.
    ^ instead of exact animation name you can use * to convert every anim file from model directory.
    ^ when anim name is not started by /, then converter is looking for it in model directory.

  converter_pix C:\ets2_base
    ^ will convert whole base, it will export it into: <base_path>_exp (C:\ets2_base_exp in this example).
    ^ you can also specify export path using the -e parameter.

  converter_pix -b C:\ets2_base -t /material/environment/vehicle_reflection.tobj
    ^ will convert tobj file and copy texture to export path.

  converter_pix -b C:\ets2_base -m /model/mover/characters/models/generic/m_afam_01 /model/mover/characters/animations/man/walk/walk_01
    ^ animations are located in another directory than the models. These animations can be used for multiple models.

 Note that animations will not be converted when converting the whole base.
 This is caused by lack of information, so you have to convert each model individually to edit animations.
Last edited by mwl4 on 04 Apr 2017 07:37, edited 4 times in total.

User avatar
Smarty
Beta tester
Posts: 2120
Joined: 30 Jun 2015 01:56
Location: Ontario, Canada
Contact:

Re: ConverterPIX - Game formats to middle formats

#2 Post by Smarty » 15 Aug 2016 04:03

This is fantastic! I look forward to trying it out this week. Thank you so much! :D
Image

IonutL
Posts: 3141
Joined: 13 Apr 2014 20:16

Re: ConverterPIX - Game formats to middle formats

#3 Post by IonutL » 15 Aug 2016 10:31

So first you need to extract base.scs with the SCS_extractor tool. And then put the resulting folder in the converterpix.

User avatar
mwl4
Posts: 104
Joined: 25 Dec 2012 16:06
Location: Poland
Contact:

Re: ConverterPIX - Game formats to middle formats

#4 Post by mwl4 » 15 Aug 2016 10:42

Yep, that's correct.

User avatar
50keda
SCS Software
Posts: 2707
Joined: 07 Dec 2012 11:59

Re: ConverterPIX - Game formats to middle formats

#5 Post by 50keda » 15 Aug 2016 16:55

I am not sure, but maybe this topic should be moved to Blender Tools forum as it's about middle format and it's usability for BT ;)

User avatar
ohaha
Posts: 17052
Joined: 07 Dec 2012 06:31
Location: Watchin' y'all
Contact:

Re: ConverterPIX - Game formats to middle formats

#6 Post by ohaha » 15 Aug 2016 17:42

Is this THE tool we're missing? :shock:
Retired, but still loving it.

User avatar
SimulatorSam
Global moderator
Posts: 6239
Joined: 05 Mar 2014 17:52
Location: United Kingdom
Contact:

Re: ConverterPIX - Game formats to middle formats

#7 Post by SimulatorSam » 15 Aug 2016 17:44

*Gaaaaaaaasp* :o This is amazing! :D

plykkegaard
Posts: 2725
Joined: 26 Oct 2014 13:42

Re: ConverterPIX - Game formats to middle formats

#8 Post by plykkegaard » 15 Aug 2016 18:33

Kewl
Sorry, out of office

IvanGF14
Posts: 79
Joined: 10 Jul 2014 20:05

Re: ConverterPIX - Game formats to middle formats

#9 Post by IvanGF14 » 15 Aug 2016 18:43

Just what was missing. Thanks :shock: ;)

User avatar
MandelSoft
Beta tester
Posts: 1022
Joined: 23 Aug 2013 18:55
Location: Zoetermeer [NL]
Contact:

Re: ConverterPIX - Game formats to middle formats

#10 Post by MandelSoft » 15 Aug 2016 19:21

Well, this sure makes Blender tools ten times more useful. Give the man a cookie ;)
╔═══╗────╔═╗╔═╗────╔╗
║╔═╗║────║║╚╝║║────║║
║╚═╝╠═╦══╣╔╗╔╗╠══╦═╝╠══╗
║╔══╣╔╣╔╗║║║║║║╔╗║╔╗║══╣
║║──║║║╚╝║║║║║║╚╝║╚╝╠══║
╚╝──╚╝╚══╩╝╚╝╚╩══╩══╩══╝
Don't ask us for a release date; we don't know either.

Post Reply

Return to “User Tutorials & Tools”

Who is online

Users browsing this forum: No registered users and 2 guests