Jump to content


Photo

TobEx Modder Reference


  • Please log in to reply
13 replies to this topic

#1 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 23 March 2011 - 07:42 PM

I have attached here the current version of the TobEx Modder's Reference. Please note that the reference tells you nothing about how to achieve any modding goal. It only summarises the changes that TobEx makes to the engine, in an IESDP-like format.

Correct as of build 0.25.10.7 (test release).

Attached Files


Edited by Ascension64, 06 October 2012 - 11:17 PM.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#2 phordicus

phordicus
  • Member
  • 212 posts

Posted 24 March 2011 - 12:56 AM

awesome and handy.
Druid Kit Enhancements 1.0 (requires Dispel Magic fix, whether ToBEx's or Taimon's)

#3 DavidWallace

DavidWallace
  • Validating
  • 337 posts

Posted 24 March 2011 - 01:50 AM

That's hugely useful, thanks.

#4 Galactygon

Galactygon

    Modding since 2002

  • Member
  • 938 posts

Posted 24 March 2011 - 06:49 AM

Thanks for taking the time to do this; it will give us a chance to catch up.

-Galactygon
Posted Image

#5 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 25 March 2011 - 12:48 AM

You can also find the most recent modder reference in the ./TobEx/TobEx_redist/readme directory.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#6 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 14 August 2011 - 04:14 AM

Walk sounds is also similar, but not the same, the 2da is named walksnd.2da
For example, skeleton looks like this:

           RESREF     MIN        MAX        RANGE 
SKELETON   WAL_19     0x6403     0x6403     5 

Any animation between MIN/MAX will have the WAL_19[a,b,c,d] walksounds.

There is a bloodcolor 2da too, bloodclr.2da.
The skeleton looks like this:

           VALUE      MIN        MAX        
MSKEL      0x25       0x6403     0x6403     

Any animation between MIN/MAX will have the 0x25 palette entry as blood color.
Avenger

#7 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 23 October 2011 - 04:10 PM

item_use.2da in gemrb is the equivalent of ITCREXCL.2DA in ToBEx

I can implement similar. However, what if people wanted different STRREFs for the different actions?

Walk sounds is also similar, but not the same, the 2da is named walksnd.2da

Does GemRB then search by animation name e.g. SKELETON rather than the anim ID? And what do you do for terrain-specific sounds?

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#8 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 03 March 2012 - 03:57 AM

example, with only skeleton and default sound entry:
2DA V1.0
*
		   RESREF	 MIN		MAX		RANGE
SKELETON   WAL_19	 0x6403	 0x6403	 5
DEFAULT	SOUND	  0x7500	 0x77ff	 4

This will result in WAL_19, WAL_19a-d sounds for the animID 0x6403
The rowname is just for clarity.
When processing this table, gemrb already read avatars.2da. So it will simply go over it, setting up every matching entries.
We do the same for blood color and will probably do with other rare tweaks needed on avatars table.

Terrain specific sounds are listed in pathfind.2da, as you can see, we support multiple terrain specific sounds:
2DA V1.0
*
		 0 1 2 3 4 5 6 7 8 9 a b c d e f
PASSABLE 8 1 1 1 1 1 1 1 0 1 8 1 0 8 3 1
COST  10 4
SOUND * WAL_04 WAL_MT WAL_02 WAL_05 WAL_06 WAL_01 WAL_03 * WAL_02 * WAL_01 * * * WAL_04

There is code to resolve searchmap specific walksounds by matching the animation walksound to entries in pathfind.2da (row 2 and above). If there is a match, it gets the searchmap specific value.
This is similar to how random treasure or random spawngroup resrefs are resolved.

About the item_use table:
This (theoretical line): MISC88 ALORA 10219 3
would be equivalent with this:
MISC88 ALORA 10219 1
MISC88 ALORA 10219 2

You may change the second line's resref to anything, and it will be matched when needed.
In other words, we match the itemname, actorname, action flag.
If the action flag doesn't match, the line is ignored, but another line with the actor/item names would still be matched if found.

Edited by Avenger_teambg, 03 March 2012 - 04:00 AM.

Avenger

#9 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 24 April 2012 - 04:20 AM

Updated to most recent test build. I've added sections to summarise the changes to file formats (namely, extra bits added to flags).

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#10 Ascension64

Ascension64
  • Modder
  • 5983 posts

Posted 06 October 2012 - 11:17 PM

Updated to reflect latest test build.

--------------
Retired Modder
Note: I do not respond to profile comments/personal messages in regards to troubleshooting my modifications. Please post on the public forums instead.

Baldur's Gate Trilogy-WeiDU and Mods
Throne of Bhaal Extender (TobEx)

Contributions: (NWN2) A Deathstalker (voice acting) - (IWD2) IWD2 NPC Project (soundset editing) - (Misc) SHS PC Soundsets (voice acting)
Legacy: (BG/Tutu/BGT) Beregost Crash Fixer 1.9 (18 Jul 10) - (BG2) Enable conversations with charmed/dominated creatures (18 Jul 10) - (BG2) Experience Corrections (18 Jul 10) - (Misc) Platform Conversion Utility RC2 (13 Feb 10)


#11 The Imp

The Imp

    Not good, see EVIL is better. You'll LIVE.

  • Member
  • 5155 posts

Posted 14 January 2016 - 08:40 AM

Would there be any kind soul and turn this into a website instead of a downloadable web file ? This hampers the usability factor by x10. Well... people being lazy and all that.


Yep, Jarno Mikkola. my Mega Mod FAQ. Use of the BWS, and how to use it(scroll down that post a bit). 
OK, desert dweller, welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand. Ouh, actually it was still snow then.. but anyways.


#12 Sam.

Sam.
  • Administrator
  • 1338 posts

Posted 14 January 2016 - 01:33 PM

Would there be any kind soul and turn this into a website instead of a downloadable web file ? This hampers the usability factor by x10. Well... people being lazy and all that.

TobExReference

 

The page contains quite a few HTML coding errors.  I'll try to get around to fixing them eventually.  The URL won't change, tho, so you can go ahead and start linking to it if you like.


"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

--<CHARNAME> to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage


#13 Fiann of the Silver Hand

Fiann of the Silver Hand
  • Member
  • 286 posts

Posted 14 January 2016 - 05:43 PM

Would there be any kind soul and turn this into a website instead of a downloadable web file ? This hampers the usability factor by x10. Well... people being lazy and all that.


You know you can just bookmark it in your browser to wherever it is on your hard drive.  Same exact thing as a web site, except accessible offline and editable.


Edited by Fiann of the Silver Hand, 14 January 2016 - 05:44 PM.


#14 Sam.

Sam.
  • Administrator
  • 1338 posts

Posted 24 January 2016 - 04:47 PM

The page contains quite a few HTML coding errors. I'll try to get around to fixing them eventually.

Several hundred edits/changes later, it should be more or less good-to-go. Note that I focused solely on the HTML syntax: the content should be unchanged.


Edited by Sam., 24 January 2016 - 04:47 PM.

"Ok, I've just about had my FILL of riddle asking, quest assigning, insult throwing, pun hurling, hostage taking, iron mongering, smart-arsed fools, freaks, and felons that continually test my will, mettle, strength, intelligence, and most of all, patience! If you've got a straight answer ANYWHERE in that bent little head of yours, I want to hear it pretty damn quick or I'm going to take a large blunt object roughly the size of Elminster AND his hat, and stuff it lengthwise into a crevice of your being so seldom seen that even the denizens of the nine hells themselves wouldn't touch it with a twenty-foot rusty halberd! Have I MADE myself perfectly CLEAR?!"

--<CHARNAME> to Portalbendarwinden

--------------------

post-10485-0-15080600-1348188745.jpg
___________Old pen and paper modules of the 70s and 80s.___________

CA Forums CA Homepage