Jump to content


Photo

Discussion on 'Converting existing mods to the EE engine'


120 replies to this topic

#106 Thimblerig

Thimblerig
  • Modders
  • 1359 posts
  • Gender:Female
  • Location:New Zealand

Posted 11 October 2014 - 03:45 PM

And, I know that item images are a bit different, but I assume that the names of the .bams stay the same across platforms.  So a custom item that used BG1 .bams, if used in EE, would still call the correct images...?

 

(Sorry if I'm asking stupid questions: items and picture formats are a whole new flavour of weird-and-scary for me.)



#107 jastey

jastey
  • Gibberlings
  • 6536 posts
  • Gender:Female

Posted 11 October 2014 - 10:01 PM

Portraits: I use:

medium portrait: BG:EE - 169x266; BG/BG2 - 110x170

small portrait: BG:EE - 54x84; BG/BG2 - 38x60

 

epilogue portrait remains 210x330 for both classic and EE

 

I made my EE portraits by resizing the epoligue portrait, I did not change any color encoding (but maybe someone with better knowledge should anser for that, too).

 

For the .BAMs: All BG1 description bams are present in the BG:EE as.bmp, which the EE games use, and the names are the same for BG:EE and BG1. Inventory bams are .bams in EE also. For Tutu and BGT, the bams are not necessarily the same as for BG1, this depends whether the bam is present or the name already used for BGII.

So, yes, a custom item using BG1 bams would call the correct pictures in an EE game, but for BGT and TUTU, it's better to check.



#108 Thimblerig

Thimblerig
  • Modders
  • 1359 posts
  • Gender:Female
  • Location:New Zealand

Posted 11 October 2014 - 10:07 PM

Thank you very much :)



#109 Thimblerig

Thimblerig
  • Modders
  • 1359 posts
  • Gender:Female
  • Location:New Zealand

Posted 22 October 2014 - 01:10 PM

Would using the .d version of IF_FILE_EXISTS be a reasonable way of coding interjections by EE (and therefore occasional) NPCs?

 

The WeiDU Doc gives examples like this:

 

 

APPEND [ IF_FILE_EXISTS ]filename state list END
This tells WeiDU to place the given states at the end of the already-existing dialogue filename.DLG. If there is IF_FILE_EXISTS and the file doesn’t exists, this action is skipped.

 

EXTERN [ IF_FILE_EXISTS ]filename stateLabel
The dialogue continues at the state with label stateLabel in the file filename.DLG. The whole transition is not compiled if there’s IF_FILE_EXISTS and the file filename doesn’t exist.

 

 

Has anybody tried it?  Like:

 

<snip>

 

IF ~~ marshmallows3

SAY ~Now that the fire is going (finally), let's toast our balls of white and fluffy goodness...~

++ ~Righto!~ + marshmallows4

++ ~I changed my mind - I prefer my balls-of-goodness untoasted, thank you.~ EXIT

IF ~InMyArea("Neera") !StateCheck("Neera",CD_STATE_NOTVALID)~ THEN EXTERN IF_FILE_EXISTS ~NeeraJ~ marshmallowneera

END

 

APPEND IF_FILE_EXISTS ~NEERAJ~

 

IF ~~ marshmallowneera

SAY ~*whoooooooosh*~

= ~...~

= ~... sorry?~

IF ~~ EXIT

END

 

END // APPEND

 

**

 

Or would the potentially missing death variable be something the compiler would choke on?


Edited by Thimblerig, 22 October 2014 - 01:20 PM.


#110 jastey

jastey
  • Gibberlings
  • 6536 posts
  • Gender:Female

Posted 22 October 2014 - 08:38 PM

Wow, this would be genius, and would make all work-arounds for missing dlgs unnecessary.

Missing DV are no problem.



#111 Thimblerig

Thimblerig
  • Modders
  • 1359 posts
  • Gender:Female
  • Location:New Zealand

Posted 23 October 2014 - 12:30 AM

Assuming it works, that is.  (I don't always have much success using things straight from the readmes :p  )



#112 temnix

temnix
  • Members
  • 194 posts

Posted 10 September 2016 - 04:24 AM

People, I'm new to the journal, and it has changed so many times. I'm using BGEE 2.0 and Weidu. The Weidu documentation really isn't helpful. Can you please tell me just what to type in the tp2 file and in the d file? Just give me an example with the syntax, if you will.

 

Sample quest

Hey, this sample guy wants me to run an errand!

 

Sample quest

Hey, I ran it so fast!

 

What to write where? And erase the first one, of course. I'd really appreciate an answer, I'm freaking exasperated with this last minor obstacle to getting my preview mod out. It has everything but correctly working quest records.



#113 jastey

jastey
  • Gibberlings
  • 6536 posts
  • Gender:Female

Posted 25 September 2016 - 03:15 AM

I lost track about all the changes on the ee engine a while ago. I do believe the tutorial is quite outdated, though.

Still, one question: is it true version 2.0 doesn't accept description images in bmp format any more? If yes, can someone enlighten my why they would do that?



#114 argent77

argent77
  • Modders
  • 617 posts
  • Gender:Male

Posted 25 September 2016 - 05:16 AM

Still, one question: is it true version 2.0 doesn't accept description images in bmp format any more? If yes, can someone enlighten my why they would do that?

Yes, they have returned to using BAM resources again. However, it now supports the new BAM V2 format as well, so you don't lose any transparency information of the graphics. The format is still slightly incompatible with files for the original games though. You have to reset BAM center coordinates to (0, 0) for the image to be displayed correctly.
 



#115 jastey

jastey
  • Gibberlings
  • 6536 posts
  • Gender:Female

Posted 25 September 2016 - 11:00 PM

Thank you for the info! Is there any more changes in the 2.x patch leading to existing ee mods being incompatible?



#116 argent77

argent77
  • Modders
  • 617 posts
  • Gender:Male

Posted 26 September 2016 - 03:54 AM

I can't think of anything else that has to be taken care of if your mod is already compatible with pre-2.0 versions of the games. The journal entry storage format has changed, but WeiDU's ADD_JOURNAL function can handle it correctly since v240.

Well, there is a NPC-related issue. To prevent your party-joinable NPC from getting a hefty HP and level bonus in LoB (Legacy of Bhaal) mode you have to set CRE flags bit 22.
 



#117 jastey

jastey
  • Gibberlings
  • 6536 posts
  • Gender:Female

Posted 26 September 2016 - 10:49 AM

Thank you!



#118 SebastianCCCC

SebastianCCCC
  • Members
  • 17 posts

Posted 16 January 2017 - 01:20 PM

Request help: 

In order to make my mods more compatible with other mods, I used a lot Expended Stats provided by ToBEx in my mods, for item/spell check in scripts. 

But in EEs it no longer works.

Are there any way in EE  can work like that? 

 

Thank you!



#119 Jarno Mikkola

Jarno Mikkola

    The Imp

  • Modders
  • 5926 posts
  • Gender:Male
  • Location:The town where the dead haven't keeled over, yet. In Finland.

Posted 17 January 2017 - 12:02 AM

Request help:
In order to make my mods more compatible with other mods, I used a lot Expended Stats provided by ToBEx in my mods, for item/spell check in scripts.
But in EEs it no longer works.
Are there any way in EE can work like that?

What specific mod are we talking about ? All I can say, there's likely ways.

Welcome to the sanity, you are free to search for the limit, it's out there, we drew it in the sand.

Here's how to install all the stable mods you ever really could want to Infinity Engine games.


#120 SebastianCCCC

SebastianCCCC
  • Members
  • 17 posts

Posted 17 January 2017 - 05:51 AM

 

Request help:
In order to make my mods more compatible with other mods, I used a lot Expended Stats provided by ToBEx in my mods, for item/spell check in scripts.
But in EEs it no longer works.
Are there any way in EE can work like that?

What specific mod are we talking about ? All I can say, there's likely ways.

 

You mean my mod? 

Since other mod like SCS uses almost every available stat, so I add an effect with opcode 318, parameter1=1, parameter2=4444, to items/spells, then in script like

IF
  CheckStat(Player1,1,4444)
THEN
  RESPONSE #100
    ForceSpellRES("c4#SnSa",Player1)
    Continue()
END




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users