Jump to content


Various loose ends...


  • Please log in to reply
10 replies to this topic

#1 -jcompton-

-jcompton-
  • Guest

Posted 18 October 2002 - 08:15 AM

1. Whatever happened to the "slightly snazzier" color menu? I seem to remember you saying it was broken, and then that was it.



2. Okay, okay, state trigger/action-passing CHAIN is now such an ass-kicker over CHAIN2 that I really am no longer interested in using CHAIN2 ever ever again, but I'm also curious why, from a "compiler goodness" standpoint, you discourage it.



3. Vague reminder on install all/uninstall all, but with ability to exclude some items, or at least "not die if a FORBID_FILE/REQUIRE_FILE is hit."



4. Vague reminder on TP2 export of items, spells, CREs.



5. This is a pretty out-there request. It's just a thought. If it's way stupidly hard, don't do it. Would it be possible to devise an INTERJECT function that seeks out a _string_ in a specified dialogue? (Application: being able to interject into a mod-created or mod-altered dialogue, where you cannot be sure of the state. Practical example: RtW, which isn't interested in shipping mod NPC interjections for its events, and given the geometric problem of accounting for all the different potential mod NPCs at compile-time, I can't blame them too much.)

#2 -jcompton-

-jcompton-
  • Guest

Posted 18 October 2002 - 08:52 AM

6. Change the SETUP mode so that if the user downloads "Kelsey, Athkatla, and a Big Bottle of Mouthwash", runs Setup-Gargle.exe, and neither Gargle.tp2 nor Setup-Gargle.tp2 are found, WeiDU says "I'm sorry, you seem to be trying to install the Gargle mod, but I cannot find Gargle.tp2 or Setup-Gargle.tp2" rather than grabbing the first TP2 it finds and running it instead. (This falls under the "Not Weimer's problem if you can't manage Use Folder Names", but it seems a reasonable "loophole" to close all the same, and could help clue the user in that they've bodged it.)

#3 -Ghreyfain-

-Ghreyfain-
  • Guest

Posted 18 October 2002 - 10:58 AM

Wes, I think you also mentioned something about copying an entire folder of items/spells/what have you that already have StrRefs, with WeiDU being able to copy them over in a single swoop, complete with StrRefs and all.

Personally, I would rather use a .tp2 and .tra for easier editing in the future, but there does seem to be a demand for it.

#4 weimer

weimer
  • Member
  • 1569 posts

Posted 18 October 2002 - 01:15 PM

I absolutely cannot seem to get the color menu thing to work. Sorry.

setup-foo dies if both foo.tp2 and setup-foo.tp2 are not there.

In your tp2 file, replace your "REQUIRE_FILE foo" with "ACTION_IF FILE_EXISTS foo THEN do stuff ELSE PRINT ~Not doing stuff.~".

Supporting CHAIN2 is a big hack in the parser (I have to work much harder to remember what DLG file we're talking about). In addition, keeping the docs up to date requires more effort.

I don't understand your "seeks a string" interject. Rather than give a state label you give a say string and we interjet on that state? I could do it, but what happens if they translate the mod?

Working on the automatic directory of SPL/CRE/ITM thing. Should be ready in an hour or two.

#5 -jcompton-

-jcompton-
  • Guest

Posted 18 October 2002 - 01:50 PM

I absolutely cannot seem to get the color menu thing to work. Sorry.


No big deal, wasn't important to me, I was just wondering what the situation was.

setup-foo dies if both foo.tp2 and setup-foo.tp2 are not there.


I must insist otherwise.

WeiDU v 81 Log

 D:\games\bg2\setup-gargle.exe
[./chitin.key] loaded, 590551 bytes
[./chitin.key] 182 BIFFs, 41793 resources
[dialog.tlk] loaded, 9033007 bytes
[dialog.tlk] 76566 string entries
[dialog.tlk] claims to be writeable.
[dialog.tlk] claims to be a regular file.
[WeiDU.log] parsed
[Setup-Solaufein.tp2] parsed (for uninstall)

Choose your language:
 0 [American English]
 1 [Italiano Linguaggio (tradotto da Luciana Stella Boscaratto)]
 2 [Deutsche Sprache (Übersetzung durch Falk Swoboda)]
 3 [Francais (traduction de Ly Meng, Archange de la Redemption)]

I don't understand your "seeks a string" interject. Rather than give a state label you give a say string and we interjet on that state?


Yeah.

I_C_T IMOEN25J ~I'd rather have a bottle in front of me...~
== J#KLS25J IF ~IsValidForPartyDialog("J#Kelsey") THEN ~Don't say it, Imoen. Please.~
END

I could do it, but what happens if they translate the mod?


Fire and brimstone!

Yes, I could see that causing bad things to happen unless our languages matched up. Or if in a later version they fix spelling, change a noun, or add a space. However, I would be okay with saying "Kelsey Interject Pack for RTW 1.0.1: Warning! Only works for the English language install of RTW 1.0.1!" and then working with their translators to do it differently later.

#6 weimer

weimer
  • Member
  • 1569 posts

Posted 18 October 2002 - 01:56 PM

By "dies if" I meant "I have fixed my local copy (see v82, available now) so that WeiDU dies if".

You could also use WeiDU's ACTION_IF to check and see if they have installed the English version (regexp search on WeiDU.log) ... but this all seems hacky to me. Can we get anyone else to comment on this feature?

Anyway, WeiDU 82 includes --automate, which should be applied to a directory of SPL/ITM/CRE files and spits out a TP2 component. Example:

weidu --automate valen/cre --textapp Setup-Valen.tp2

Let me know if you see any bugs. Could the person who wanted this feature write some docs for it?

#7 -jcompton-

-jcompton-
  • Guest

Posted 18 October 2002 - 05:14 PM

By "dies if" I meant "I have fixed my local copy (see v82, available now) so that WeiDU dies if".


Ah, many apologies, yes, I see it working now.

You could also use WeiDU's ACTION_IF to check and see if they have installed the English version (regexp search on WeiDU.log) ... but this all seems hacky to me. Can we get anyone else to comment on this feature?


Well, it IS hacky, but I think it's the best solution going to be able to slot into a conversation where the state number cannot be guaranteed.

By "someone else", do you mean you want me to get Quitch in here to tell you "No, I will not include his interjects nor do I want to do a 2^n set of ACTION_IFs detecting for NPC mods to compile interjects at install time?" or do you want me to get another NPC modder, or...? Can it be assumed that you're not too worried about interjects for Valen or Solaufein in RtW? Or may I call Westley Weimer to the stand? :)

#8 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 22 October 2002 - 02:21 PM

I must admit that the --automate feature is quite the time saver. As always, great work Wes.

I now humbly request the --createmymod switch. :D
Check out BG1Tutu.

#9 weimer

weimer
  • Member
  • 1569 posts

Posted 22 October 2002 - 03:48 PM

If I recall correctly, our friend Ken was the first to ask for the "fuzzy logic tool that would just do what we wanted". As soon as I finish writing that bit of code, I'll have the --createmymod switch refer to it.

Since you seem to like --automate, do you feel like writing some docs for it? Just email me a paragraph description or something.

#10 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 22 October 2002 - 04:24 PM

Sure. I'll write something up at work tomorrow.
Check out BG1Tutu.

#11 japheth

japheth

    Codewalker

  • Member
  • 317 posts

Posted 22 October 2002 - 04:29 PM

If I recall correctly, our friend Ken was the first to ask for the "fuzzy logic tool that would just do what we wanted". As soon as I finish writing that bit of code, I'll have the --createmymod switch refer to it.


Oh yeah, and as soon as the --createmymod switch is implemented, I promise I will write copious amounts of documentation for it. :)
Check out BG1Tutu.