Th3 BSP Patcher

Release mod tools/source code to the tools here.
Forum rules
Its preferred you release the source code, but if not its ok, but if its found you stole/borrowed source code from another tool/program and violated its license it will be removed.
Vadru
VIP
Posts: 40
Joined: Wed Jul 07, 2010 2:39 pm

Th3 BSP Patcher

Postby Vadru » Sun Nov 27, 2011 7:24 pm

A tool I made to patch RW3.1 BSP files to work in th3 and easier modify collision and extract rails, spawns and other script related stuff from th4, thug and thug 2(thug and thug2 will crash game if extract rails from some maps) source not available yet cause it's reaaaally messy.
Here is an example video of what you can make with this tool + 3ds max.

Download

Morten1337
Site Admin
Posts: 316
Joined: Mon Mar 01, 2010 2:23 pm
Location: Norway

Re: Th3 BSP Patcher

Postby Morten1337 » Mon Nov 28, 2011 2:26 pm

This is crazy! Really good work! :D

Vadru
VIP
Posts: 40
Joined: Wed Jul 07, 2010 2:39 pm

Re: Th3 BSP Patcher

Postby Vadru » Mon Nov 28, 2011 5:05 pm

Thanks atm I am working on new tool that will directly convert to th3 from other th games so that you don't need to retexture all and object structure etc will be kept problem is havn't found out a way to generate a proper material split and collision plg but atleast I think I have found out the collision plg structure which is 1 of the unknown parts needed to make a BSP work in th3 that look something like this in c++:

Code: Select all

struct AABBNode
{
    //Child Type 1=Leaf 2=Branch
    BYTE ChildType[2];//2 Childs

    //Axis 0=X 4=Y 8=Z
    WORD Axis;

    //*Children
    WORD Children[2];//2 Childs
   
    //Axis-Aligned Bounding Box
    float Max;
    float Min;
};

struct Child
{
    //Starting Entry
    WORD Entry;

    //Number of Entries
    WORD numEntries;
};

//Axis-Aligned Bounding Box Tree
struct AABBTree//Collision PLG ID=0x011D
{
    //Number of Sectors, last Sector=Children
    DWORD numSects;

    //Number of Triangles used in the AABBTree
    DWORD numEntries;

    //[numSects-1] AABB
    AABBNode *Nodes;

    //[numSects] Child Entries
    Child *Children;

    //[numEntries] *Triangles
    DWORD *Entries;
};

quazz
Global Moderator
Posts: 196
Joined: Sat Nov 13, 2010 12:04 am

Re: Th3 BSP Patcher

Postby quazz » Mon Nov 28, 2011 7:52 pm

Nice work man... simply amazing!

Vadru
VIP
Posts: 40
Joined: Wed Jul 07, 2010 2:39 pm

Re: Th3 BSP Patcher

Postby Vadru » Tue Nov 29, 2011 2:43 am

It's really not that hard I'm supprised noone tryed it before the exported bsp is really similar just need to modify the order of some chunks and add new th3 data the hard part is texturing the level which I think demo did a good job doing in kona :D

User avatar
Demo
VIP
Posts: 282
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: Th3 BSP Patcher

Postby Demo » Tue Nov 29, 2011 4:19 pm

hm, right, kona usa is out already, i posted it in mod releases section.

Vadru
VIP
Posts: 40
Joined: Wed Jul 07, 2010 2:39 pm

Re: Th3 BSP Patcher

Postby Vadru » Wed Jan 11, 2012 8:38 am

I update this tool daily but I doubt anyone use it so I don't upload every new version but here is a major update :D

Update

Buggfixes
-Transparent textures looks way better now
-All Materials should now be visible when loading a new level
-QB generation now adds all objects and use StartSkating1 instead of SkaterSkating1 when respawn
-Repairing offset now repairs many more sections

New Features
-Added drop down menu to assign sound to selected material(will add more sounds soon)
-Added Give All button that will assign selected collision and sound to all materials
-Added support for thug2 QB extraction

coolsnake
VIP
Posts: 54
Joined: Mon Dec 12, 2011 11:36 am

Re: Th3 BSP Patcher

Postby coolsnake » Sun Jan 15, 2012 4:02 pm

Very nice work.

I'm guessing that you need the 3DSMax bsp exporter to obtain RW3.1 bsp files?
There are no games that use those as default I assume? :P
My converterted THUG2 PS2 parks to PC
Thanks to THPSX twitter account for converting. Contains tons of parks from Evil God, A couple from me (Beryllium, Belgian Prison), KSK Rooftops 2 and 3, Vex-Middle East, Verty Hollow from Mike, Ruin Cap etc...

User avatar
Demo
VIP
Posts: 282
Joined: Thu Aug 25, 2011 5:54 am
Contact:

Re: Th3 BSP Patcher

Postby Demo » Sun Jan 15, 2012 5:21 pm

coolsnake wrote:I'm guessing that you need the 3DSMax bsp exporter to obtain RW3.1 bsp files?

yes, you can find it on the web

coolsnake wrote:There are no games that use those as default I assume? :P

bsp is native format for every RenderWare3 game, but unfortunately due to it's format, every developer could add his own structures, for this reason game levels are incompatible. using exporter you can obtain "clean" formatted file, without any extra plugin involved which most probably will crash in any game (at least it does in th3).

Vadru
VIP
Posts: 40
Joined: Wed Jul 07, 2010 2:39 pm

Re: Th3 BSP Patcher

Postby Vadru » Thu Jan 19, 2012 1:36 pm

Update again
-Now all terrain sounds are added to dropdown and also extracting rails now also extract sounds and convert thug-thug2 sounds to its th3 equaliant.
-Fixed crash in some thug-thug2 extracted scripts so now extracting scripts for all th3-thug2 levels will work in-game.
-Added transparent checkbox to get the final touch for transparent images but should only be added to transparent images or first transparent bugg will appear(some objects doesn't render through semi transparent and you will see object behind or sky).

Comparing diffrent transparent:
Original
First fix(I know it sucks but atleast no more sky and flying objects)
Final touch


Return to “Mod Tools”

Who is online

Users browsing this forum: No registered users and 2 guests