Author Topic: Scripting Guide  (Read 6533 times)

Online BehemothProgrammer

  • Endtrail
  • ****
  • Posts: 225
  • T:REP 801
    • View Profile
Re: Scripting Guide
« Reply #20 on: September 07, 2017, 06:30:26 PM »
Updated the ScriptAPI.txt file with the additional actor func void AddToGallery(void) added in last update. As well I detailed some of the enemy common flags. And added a few notes here and there.
« Last Edit: September 07, 2017, 06:30:48 PM by BehemothProgrammer »
Turok 2 Co-Op Mod

QTurok | Turok: Mountain of the Sun | WolfenTurok 3D | and more...

Online BehemothProgrammer

  • Endtrail
  • ****
  • Posts: 225
  • T:REP 801
    • View Profile
Re: Scripting Guide
« Reply #21 on: September 26, 2017, 06:42:51 PM »
So I finally took the time to get a decent IDE up and running with AngelScript and Turok 2. I've included instructions and download links in the first post. So if you are thinking about working with T2 scripts no matter your skill level, I highly recommend following those instructions.
Turok 2 Co-Op Mod

QTurok | Turok: Mountain of the Sun | WolfenTurok 3D | and more...

Offline Duke64

  • Administrator
  • *****
  • Posts: 2080
  • T:REP 7130
  • Sixty Four
    • View Profile
    • Duke64Nukem.com
Re: Scripting Guide
« Reply #22 on: September 26, 2017, 07:45:26 PM »
Man we were just talking about Doom does this xD You're awesome thanks! Under "Turok 2 tools" on Turok Sanctum. Just pm me if any changes to that post are needed there.

https://turoksanctum.com/turok-2-api/
Dinosaur Hunter
"Its time to make tracks"
"You are tiny grasshopper"
"Suck it down"
"Boo, No soup for you"
"Arrrgghhhh"
"I live again"

Offline Rok

  • Global Moderator
  • *****
  • Posts: 772
  • T:REP 2338
    • View Profile
Re: Scripting Guide
« Reply #23 on: September 27, 2017, 01:05:44 PM »
Have no idea how you do these things but really cool. I'm an absolute noob in scripting so if I ever try it I would definitely use this. Good work!
Raptor Rok is metal.

Offline Jay Doomed

  • Global Moderator
  • *****
  • Posts: 992
  • T:REP 3072
    • View Profile
Re: Scripting Guide
« Reply #24 on: September 29, 2017, 10:03:05 AM »
Wow that's crazy thanks for this. That's very nice and helpful too.
"Whatever it is, it doesn't belong in this world."

Online BehemothProgrammer

  • Endtrail
  • ****
  • Posts: 225
  • T:REP 801
    • View Profile
Re: Scripting Guide
« Reply #25 on: October 23, 2017, 07:27:11 PM »
I added the AngelScript Array class in so autocomplete would work for it and added some more notes on the mainpage of the help to include some known bugs in the game.
Turok 2 Co-Op Mod

QTurok | Turok: Mountain of the Sun | WolfenTurok 3D | and more...

Offline vis

  • Dimetrodon
  • ****
  • Posts: 269
  • T:REP 954
    • View Profile
Re: Scripting Guide
« Reply #26 on: October 23, 2017, 07:37:03 PM »
So I finally took the time to get a decent IDE up and running with AngelScript and Turok 2. I've included instructions and download links in the first post. So if you are thinking about working with T2 scripts no matter your skill level, I highly recommend following those instructions.



Tnx, man! : ) I just hope next remaster patch will move things on positive scale, in mp... : O
(GoT) vis *RS*
 :nuke:

Offline Jay Doomed

  • Global Moderator
  • *****
  • Posts: 992
  • T:REP 3072
    • View Profile
Re: Scripting Guide
« Reply #27 on: October 24, 2017, 03:27:29 PM »
I added the AngelScript Array class in so autocomplete would work for it and added some more notes on the mainpage of the help to include some known bugs in the game.

As soon as I get time to check it out I will. Thanks for good work.
"Whatever it is, it doesn't belong in this world."

Online BehemothProgrammer

  • Endtrail
  • ****
  • Posts: 225
  • T:REP 801
    • View Profile
Re: Scripting Guide
« Reply #28 on: November 07, 2017, 06:37:57 PM »
I wasn't sure where to put this additional info I've collected about T2 so I just throw it into a text file here - https://pastebin.com/raw/jjbgSStB

It tells you what the behaviour property values means for EnemyAIComponent. The meaning of EventLink Trigger Types for some components. Mission Objectives. Mission Teleports. Cinema Types. Hidden cvars. and all the mode state values. All stuff for when your making SP maps.
« Last Edit: November 07, 2017, 06:38:30 PM by BehemothProgrammer »
Turok 2 Co-Op Mod

QTurok | Turok: Mountain of the Sun | WolfenTurok 3D | and more...

Online BehemothProgrammer

  • Endtrail
  • ****
  • Posts: 225
  • T:REP 801
    • View Profile
Re: Scripting Guide
« Reply #29 on: November 24, 2017, 10:27:34 AM »
This was a little thing I made to help enter EnemyAI flag values, think people might find it useful. https://www.dropbox.com/s/b3chdu3sig32ybp/T2Flags.zip?dl=0

And here's Model and Animation data editors for both Turok: Dinosaur Hunter and Turok 2 in Unity. https://www.dropbox.com/s/n3cng6coohfwjqi/TurokModelAnimEditors.zip?dl=0
« Last Edit: January 27, 2018, 06:47:53 PM by BehemothProgrammer »
Turok 2 Co-Op Mod

QTurok | Turok: Mountain of the Sun | WolfenTurok 3D | and more...