New tool[s]

Extra extra, Read All About it!
Post Reply
User avatar
nemerle
Posts: 365
Joined: Thu Jan 10, 2013 3:40 pm

New tool[s]

Post by nemerle » Wed Feb 08, 2017 5:34 pm

Currently there are a few utilities being developed:
  • Code available: piggtool - a simple command-line pigg unpacker - useful for extracting files required for server operation.
  • WIP: binconverter - - tool that will know how to process all of the clientside 'bin' files, and save them ( using cereal library ) in json-ified and cerealized binary form. Converted files will be used by the server, instead of serializing original bin files, thus simplifying code.
  • Planning: geoconverter - will convert CoH geometry files into simple 3D models (likely in obj+mtl format ), might also support 'geobin' group conversion.
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

User avatar
nemerle
Posts: 365
Joined: Thu Jan 10, 2013 3:40 pm

Re: New tool[s]

Post by nemerle » Sun Feb 19, 2017 12:47 pm

The preliminary version of the pigg and bin tools are available here
Both programs are command-line only ( unless there's a need for UI utility ? )

Supported files:
  • Shops data - 'stores.bin'
  • Shops items- 'items.bin'
  • Shop department names data - 'depts.bin'
  • Tailoring cost data - 'tailorcost.bin'
  • Costume part data - 'costume.bin'
  • Body part data - 'BodyParts.bin'
  • Supergroup emblem data - 'supergroupEmblems.bin'
  • Color palette data - 'supergroupColors.bin'

Possible issues:
1. The executables might need a VisualStudio redistributables
2. Chrome might warn You after downloading that "SegsTools.zip is not commonly downloaded" d'oh ? :)
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

User avatar
nemerle
Posts: 365
Joined: Thu Jan 10, 2013 3:40 pm

Re: New tool[s]

Post by nemerle » Mon Feb 20, 2017 12:03 am

I've just finished scene graph serialization support, expect a fresh binaries tomorrow :)

also, a micro-example of converted file:

Code: Select all

{
    "SceneGraph": {
        "Version": 2,
        "Scenefile": "",
        "Defs": [
            {
                "Name": "_Dr_Shop01",
                "Object": "_Dr_Shop01",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01_LOD",
                "Object": "_Dr_Shop01_LOD",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01Directional",
                "Object": "_Dr_Shop01Directional",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01_Dummy",
                "Object": "_Dr_Shop01_Dummy",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01_LOD",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01Directional",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "_Dr_Shop01_Dummy",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "Door_Shop01_Mission",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [
                    {
                        "Name": "_Dr_Shop01Directional",
                        "Position": [
                            0.21020500361919403,
                            1.2490229606628418,
                            1.5351560115814209
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "_Dr_Shop01_LOD",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "_Dr_Shop01_Dummy",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "object_library/Omni/MissionBeacons/Marker_Door_Removal",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    }
                ],
                "Properties": [
                    {
                        "Name": "dbSrvrTracked",
                        "Value": "Door",
                        "Type": 0
                    }
                ],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "Door_Shop01",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [
                    {
                        "Name": "_Dr_Shop01_LOD",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "_Dr_Shop01",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "_Dr_Shop01Directional",
                        "Position": [
                            0.21008299291133881,
                            1.2490229606628418,
                            -2
                        ],
                        "Rotation": [
                            0,
                            3.1415920257568359,
                            0
                        ]
                    },
                    {
                        "Name": "object_library/Omni/MissionBeacons/Marker_Door_Removal",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    }
                ],
                "Properties": [
                    {
                        "Name": "Generator",
                        "Value": "Door_Shop01",
                        "Type": 0
                    }
                ],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "Door_Shop01_Mission_Dummy",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [
                    {
                        "Name": "_Dr_Shop01_LOD",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "_Dr_Shop01_Dummy",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "object_library/Omni/MissionBeacons/Marker_Door_Removal",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    }
                ],
                "Properties": [
                    {
                        "Name": "dbSrvrTracked",
                        "Value": "Door",
                        "Type": 0
                    }
                ],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            },
            {
                "Name": "Door_Shop01_Dummy",
                "Object": "",
                "Type": "",
                "Flags": 0,
                "Location": [
                    {
                        "Name": "_Dr_Shop01_LOD",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "_Dr_Shop01_Dummy",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    },
                    {
                        "Name": "object_library/Omni/MissionBeacons/Marker_Door_Removal",
                        "Position": [
                            0,
                            0,
                            0
                        ],
                        "Rotation": [
                            0,
                            0,
                            0
                        ]
                    }
                ],
                "Properties": [],
                "Tints": [],
                "Sounds": [],
                "TextureReplacements": [],
                "Omnis": [],
                "Beacons": [],
                "Fogs": [],
                "AmbientColors": [],
                "Lods": []
            }
        ],
        "Refs": []
    }
}
"Ich was in one sumere dale,
in one suthe diyhele hale,
iherde ich holde grete tale
an hule and one niyhtingale."

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest