Jump to content


Photo

Discussion on 'Converting existing mods to the EE engine'


120 replies to this topic

#1 jastey

jastey
  • Gibberlings
  • 6969 posts
  • Gender:Female

Posted 26 August 2013 - 07:20 AM

Very much appreciated! Thank you!

#2 Kulyok

Kulyok
  • Modders
  • 5770 posts
  • Gender:Female
  • Location:Moscow, Russia

Posted 26 August 2013 - 07:49 AM

Huge thanks for both you and Wisp for all this. (Ooooh, sounds like a huge headache. So many items... so many journal entries... Panicking! BG2EE is not being released right now, right? Right?)

#3 CamDawg

CamDawg

    Dreaming of a red Xmas

  • Gibberling Poobah
  • 9317 posts
  • Gender:Not Telling

Posted 24 September 2013 - 09:57 AM

Added new sections for portraits and kits as well as a library to assist in kit conversion.

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#4 DavidW

DavidW
  • Gibberlings
  • 4311 posts
  • Gender:Male

Posted 24 September 2013 - 11:25 AM

Just mirroring here my query on the "common workshop" thread: what ToBEx functionality has found its way into BG2EE? SCS uses:

- configurable bypass-II flag
- configurable ignore-mirror-image flag
- expanded number of slots in RNDTREAS

(It also uses the option to deactivate concentration checks on zero damage but I think I'll just have to work around that.)

#5 CoM_Solaufein

CoM_Solaufein

    213374U

  • Modders
  • 416 posts
  • Gender:Male
  • Location:The Frozen North

Posted 29 September 2013 - 10:27 PM

I'm converting an old BG1 mod that is using the ancient JOURNAL (in a dialog after taking a quest actual code: JOURNAL @10) and AddJournalEntry() [actual code: AddJournalEntry(@1301) ]which is in a dialog file. I would use ADD_JOURNAL in both instances?
Posted Image

"Magically Enhancing the IE Games" since 2001.

Web site
The Undying BG2 mod!
CoM Portraits!

#6 Kaeloree

Kaeloree

    beluga

  • Modders
  • 833 posts
  • Gender:Male

Posted 29 September 2013 - 10:36 PM

JOURNAL and INFO entries don't need ADD_JOURNAL; only QUEST/SOLVED/JOURNAL_UNSOLVED/JOURNAL_SOLVED need ADD_JOURNAL.

#7 CoM_Solaufein

CoM_Solaufein

    213374U

  • Modders
  • 416 posts
  • Gender:Male
  • Location:The Frozen North

Posted 29 September 2013 - 10:48 PM

So I don't need to make any changes then? Its good as is?
Posted Image

"Magically Enhancing the IE Games" since 2001.

Web site
The Undying BG2 mod!
CoM Portraits!

#8 Kaeloree

Kaeloree

    beluga

  • Modders
  • 833 posts
  • Gender:Male

Posted 29 September 2013 - 11:35 PM

Should be, yep. :)

#9 CamDawg

CamDawg

    Dreaming of a red Xmas

  • Gibberling Poobah
  • 9317 posts
  • Gender:Not Telling

Posted 30 September 2013 - 03:43 PM

And now we've got our new WeiDU. I went through and updated a variety of mods to get an idea of how hard it would be, and also so that folks can have some real-world examples.

G3 Anniversary is probably the easiest mod to examine and covers a lot of territory--it adds audio, a tileset, and uses journal entries, so it covers most of the updates you'll need to do. Mur'Neth is a good example for BG:EE conversion as it now covers Tutu, BGT, and BGEE. It also includes a kit and uses some of the unique kit features available when installed on EE.

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#10 Kulyok

Kulyok
  • Modders
  • 5770 posts
  • Gender:Female
  • Location:Moscow, Russia

Posted 30 September 2013 - 10:00 PM

Thank you, that's really very-very helpful! Respect for doing so much updates at once! To you and all involved, naturally.

Okay, here comes love, here comes marriage, here comes Kulyok with silly questions. Here we go:

- off-topic, but something strange happened with the default path in G3A installer: when I clicked it for the first time, G3A installer offered me a ProgramFiles directory. When I installed the mod and clicked the installer the second time(and the third), it showed my current directory, D:\Personal\Mods\VariousMods, but when I moved it to another directory, D:\Personal\Stuff and clicked it there, it still showed me D:\Personal\Mods\VariousMods. Weird.

- We only have to edit Setup-Mod.tp2, and add some lines to Setup-Mod.tra(+ create a Setup-Mod-EE.tra where we put all item descriptions, minus their usable/unusable blocks), correct? Nothing else needs to be changed(okay, portraits).
- All in all, the changes in G3A amount to this: an extra .tra file which overwrites our item descriptions(lines @182 and @190), and ADD_JOURNAL command, right?
- Why did adding CD_STATE_VALID state moved to the section where the game is not BG2EE? Does it mean that BG2EE has CD_STATE_NOTVALID by default? (And Cam achieved immortality?)
- AddJournal. Am I correct in assuming that ADD_JOURNAL TITLE (@19984) @19985 @19986 is not enough and we still need good old AddJournalEntry(@19985,QUEST_DONE) and EraseJournalEntry(@19986) and such, and they'll still work correctly? Because no tutorial mentioned this fact(or else I'm a horrible reader), and I'm a bit lost/nervous without confirmation.

#11 Kulyok

Kulyok
  • Modders
  • 5770 posts
  • Gender:Female
  • Location:Moscow, Russia

Posted 01 October 2013 - 01:10 AM

And, before I forget, one more question: suppose a mod is not traified, and the only journal entries it has look like this:

UNSOLVED_JOURNAL ~The Final Battle with Bodhi.

Bodhi appeared in an ambush shortly before I reached her haven, warning me that she was aware of my pursuit and stealing from me the one person that is dearest to my heart: Branwen. Before she vanished and unleashed more of her undead creations upon me, Bodhi warned me that if I continue I will lose even more than I thought possible. I cannot give up on the Rhynn Lanthorn... but now the life and immortal soul of the one I love is at stake, as well!~
SOLVED_JOURNAL ~The Final Battle with Bodhi.

While I had feared for some time that Bodhi's final revenge on me would be to take away Branwen forever, it seems that the information in the lorebook was right... Amaunator's idol has restored Branwen not only to life, but has removed the vampiric curse from her, as well.~

What do we do in ADD_JOURNAL, then? Will the lines below work?

ADD_JOURNAL TITLE (~The Final Battle with Bodhi.~)
~The Final Battle with Bodhi.

Bodhi appeared in an ambush shortly before I reached her haven, warning me that she was aware of my pursuit and stealing from me the one person that is dearest to my heart: Branwen. Before she vanished and unleashed more of her undead creations upon me, Bodhi warned me that if I continue I will lose even more than I thought possible. I cannot give up on the Rhynn Lanthorn... but now the life and immortal soul of the one I love is at stake, as well!~
~The Final Battle with Bodhi.

While I had feared for some time that Bodhi's final revenge on me would be to take away Branwen forever, it seems that the information in the lorebook was right... Amaunator's idol has restored Branwen not only to life, but has removed the vampiric curse from her, as well.~

#12 Wisp

Wisp
  • Modders
  • 1097 posts
  • Gender:Male

Posted 01 October 2013 - 01:36 AM

- AddJournal. Am I correct in assuming that ADD_JOURNAL TITLE (@19984) @19985 @19986 is not enough and we still need good old AddJournalEntry(@19985,QUEST_DONE) and EraseJournalEntry(@19986) and such, and they'll still work correctly? Because no tutorial mentioned this fact(or else I'm a horrible reader), and I'm a bit lost/nervous without confirmation.

Yes, you still need to use AddJournalEntry() etc. (the tutorial does mention this). ADD_JOURNAL is strictly something extra you do in additional to the regular stuff.

And, before I forget, one more question: suppose a mod is not traified, and the only journal entries it has look like this:

You need to traify. You can only ADD_JOURNAL with @trarefs, #strrefs and (AT var)s. If it's any consolation, using trarefs is less error-prone than using raw strings. If you ADD_JOURNALed with a string that did not exactly match the journal entry as used in D/BAF files, the results would not be what you desired (ADD_JOURNAL would create another strref use that instead).

#13 CamDawg

CamDawg

    Dreaming of a red Xmas

  • Gibberling Poobah
  • 9317 posts
  • Gender:Not Telling

Posted 01 October 2013 - 04:12 AM

- off-topic, but something strange happened with the default path in G3A installer: when I clicked it for the first time, G3A installer offered me a ProgramFiles directory. When I installed the mod and clicked the installer the second time(and the third), it showed my current directory, D:\Personal\Mods\VariousMods, but when I moved it to another directory, D:\Personal\Stuff and clicked it there, it still showed me D:\Personal\Mods\VariousMods. Weird.

The installer looks for the usual BG2 directory; if it can't find it it'll just use the current path. Once you select a path, though, it'll remember it.

- All in all, the changes in G3A amount to this: an extra .tra file which overwrites our item descriptions(lines @182 and @190), and ADD_JOURNAL command, right?

Right, though I would also highly recommend moving audio and tileset decompression to the new HANDLE_AUDIO and HANDLE_TILESETS macros. It's so much easier than having to maintain platform-specific batch files.

- Why did adding CD_STATE_VALID state moved to the section where the game is not BG2EE? Does it mean that BG2EE has CD_STATE_NOTVALID by default? (And Cam achieved immortality?)

I probably should have been a little more careful here--CD_STATE_NOTVALID is in BG2EE, but not BGEE. STATE_REALLY_DEAD, being necessary for bugfixes, is on both.

I came here with a simple dream: a dream of killing all humans. And this is how it must end? Who's the real seven billion ton robot monster here? Not I. Not... I.


#14 cmorgan

cmorgan

    journeyman investigator

  • Gibberlings
  • 7097 posts
  • Gender:Male
  • Location:Glencoe, IL, USA

Posted 01 October 2013 - 06:03 PM

1 vote to make CD_STATE_NOTVALID universal to BG:EE, BG2:EE, any other future XX:EE, et al (tell Coriander that you demand permanent status on all variants of i.e. games or you will be forced to republish the bigg's square, round, triangular, and trapezoidal mods :) )

Edited by cmorgan, 01 October 2013 - 06:03 PM.

I love deadlines. I love the whooshing noise they make as they go by. - Douglas Adams

#15 berelinde

berelinde

    The Typo Queen

  • Gibberlings
  • 8594 posts
  • Gender:Male
  • Location:New Jersey, USA

Posted 01 October 2013 - 07:01 PM

Thanks for putting this together, and thanks for the recommendations in post #10. I've got a feeling I'll be spending a lot of time with those mods over the next few weeks.
Must. Write. Faster.

cmorgan: "None of us get old around here, just more proficient at doing more stuff with less braincells!"

berelinde's mods
TolkienAcrossTheWater website
TolkienAcrossTheWater Forum



Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users