Turok: Dinosaur Hunter Forums!

Turok Games => Turok Dinosaur Hunter => Turok Dinosaur Hunter Modding/Mapping => Topic started by: BehemothProgrammer on February 01, 2018, 10:23:43 PM

Title: Model And Animation Editor Scripts in Unity
Post by: BehemothProgrammer on February 01, 2018, 10:23:43 PM
Download: https://www.dropbox.com/s/0v95pis1skotk62/TurokEditors.unitypackage?dl=0 (https://www.dropbox.com/s/0v95pis1skotk62/TurokEditors.unitypackage?dl=0)

I'm sure everyone who enjoys making custom models and animation mods would really like this. Just keep in mind these were only for me, but I'm giving them to everyone anyway so they're not fancy. If you're new to Unity and need to know how to use it then watching videos of getting started with Unity would be what you need. Unity Personal Edition (https://unity3d.com/get-unity/download (https://unity3d.com/get-unity/download)) is free to download and you can use that to use these scripts.

You will need basic knowledge of how to navigate Unity (There's plenty of Tutorials online for getting started). And if you're interested in making animations you'll need to know how to create AnimationClips. And I'll explain how to use the scripts I made in Unity.



T1 map file format technical document (https://pastebin.com/RZNDquUE)
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: Duke64 on February 02, 2018, 12:25:37 AM
This is great! thanks a lot! I put it on Turok Sanctum also under tools for dinosaur hunter.

https://turoksanctum.com/turok-model-and-animation-editor-scripts-for-unity/

 :raptoid:
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: Jay Doomed on February 02, 2018, 10:32:05 AM
Absolutely just amazing. Again Behemoth. Thanks for the tools you have made like this. Just wow.

 :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner:
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: Rok on February 02, 2018, 11:29:07 AM
Absolutely just amazing. Again Behemoth. Thanks for the tools you have made like this. Just wow.

 :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner:
:feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather:
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: Duke64 on February 03, 2018, 01:31:02 AM
Man this will help me very much.

If I can just import the models I'm making this is great once again.

 :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen: :primagen:
Absolutely just amazing. Again Behemoth. Thanks for the tools you have made like this. Just wow.

 :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner: :campaigner:
:feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather: :feather:

(https://turoksanctum.com/wp-content/uploads/2018/02/templebin.jpg)
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: BehemothProgrammer on February 04, 2018, 03:16:11 PM
I updated the scripts to check for more user error stuff. Duke64 really wants to get his doom maps in.
 :oblivion: :primagen: :queen: :raptoid: :treasure: :t-rex: :alien: :bore: :campaigner: :chronosceptor: :feather: :long-hunter: :nuke:
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: Duke64 on February 04, 2018, 03:58:02 PM
I updated the scripts to check for more user error stuff. Duke64 really wants to get his doom maps in.
 :oblivion: :primagen: :queen: :raptoid: :treasure: :t-rex: :alien: :bore: :campaigner: :chronosceptor: :feather: :long-hunter: :nuke:

Thanks a lot! Its a hassle when dealing with Doom maps to Turok if you have to edit the bin and create custom kmats with 100's of materials. Its a huge time saver! Going to try now.

:raptoid:
Title: Re: Turok Model And Animation Editor Scripts For Unity
Post by: BehemothProgrammer on February 08, 2018, 05:03:24 PM
Updated the scripts again.

T1 Models
T1 Animations

Title: Re: Model And Animation Editor Scripts in Unity
Post by: Duke64 on February 16, 2018, 08:58:52 PM
Thanks for your updates really appreciate them man.
Title: Re: Model And Animation Editor Scripts in Unity
Post by: BehemothProgrammer on February 17, 2018, 12:08:24 AM
yeah np. I'm using this myself as well for an update for my mod so as long as I'm working on it I'll continue to update it when needed.
Title: Re: Model And Animation Editor Scripts in Unity
Post by: Victorious_Games on August 22, 2018, 03:46:21 PM
So this works for Turok 2 as well?
Title: Re: Model And Animation Editor Scripts in Unity
Post by: raul on March 06, 2019, 11:50:57 PM
Thanks for sharing this tool with us! I went ahead and downloaded the tool and followed your tutorial. In unity everything looks good, but in the kex editor ( for turok dinosaur hunter) my model is insanely tiny. I must be missing a step. Ive tried several things, i need a bit of help please.
Title: Re: Model And Animation Editor Scripts in Unity
Post by: DoomMarine23 on March 07, 2019, 03:54:57 PM
You probably just need to adjust your scale. Just grab a model from the game, if you need one, let me know and I'll do it for you.

After you get the model, import into your model editor, along with your new model, and just scale yours to match, and do your work in the unity editor again. Simple!
Title: Re: Model And Animation Editor Scripts in Unity
Post by: raul on March 07, 2019, 10:46:37 PM
I tried doing some of those things, but maybe they are not the correct scale. Would you mind sending me one of yours? Or maybe i should extract one from the game? Thanks!
Title: Re: Model And Animation Editor Scripts in Unity
Post by: DoomMarine23 on March 08, 2019, 03:45:55 PM
Sure, are you working on a first person model, or something that would exist in the world? They use different scales.
Title: Re: Model And Animation Editor Scripts in Unity
Post by: raul on March 08, 2019, 11:13:41 PM
Im working on props for the world at the moment. Its weird before all these sweet plugins i made my own for maya that exported an obj at the correct scale for the turok engine. I am aware that from a modeling app to turok we have to scale stuff by 10x, when using fireseed it works fine. But for some reason when i try to scale stuff up in Unity it just wont take the changes into account. Is odd..im wondering im missing a step.

Anyway, to answer your question. im testing stuff out with a box that is 2 meters tall. I extracted a few models already and tried putting them into the unity engine to export them back in and even those show up tiny. So im definately doing something dumb. Thanks for helping!

EDIT---

I figured it out. I had to scale down my model 25%, so that it matches the  size of models in the game. And then scale it by 100 before exporting to unity to get it to export property. For some reason scaling my model in unity was not working. Oh well..
Title: Re: Model And Animation Editor Scripts in Unity
Post by: BehemothProgrammer on May 17, 2019, 10:35:24 PM
I just added my work on reading/writing Turok 2 map files that I used for my coop mod in this package. And thanks to Kaiser for telling me the map file format back then.
Title: Re: Model And Animation Editor Scripts in Unity
Post by: BehemothProgrammer on June 29, 2019, 05:45:00 PM
I just added my work on reading/writing Turok 1 map files in this package (raw text outline https://pastebin.com/raw/psQ2ib0S (https://pastebin.com/raw/psQ2ib0S). C# code is in the package).

All the file formats for Turok 1 and 2 Remaster are now known.

I also made a step by step explanation of the T1 map file format here. (https://pastebin.com/RZNDquUE)