Jump to content


Photo

A question about COMPILE


  • Please log in to reply
4 replies to this topic

#1 Cocobard

Cocobard
  • Member
  • 5 posts

Posted 03 May 2003 - 09:28 AM

I have a question... about tp2 files.
As you know, we have different results if we do:

COMPILE ~mymod/folder_of_d_files/file1.d~
~mymod/folder_of_d_files/file2.d~
~mymod/folder_of_d_files/file3.d~
~mymod/folder_of_d_files/file4.d~

or

COMPILE ~mymod/folder_of_d_files/file1.d~
COMPILE ~mymod/folder_of_d_files/file2.d~
COMPILE ~mymod/folder_of_d_files/file3.d~
COMPILE ~mymod/folder_of_d_files/file4.d~

If we use EXTEND_BOTTOM, COPY_TRANS and APPEND to the same "states", these two commands "actually" have very different results.
And I must use the second style in my mod...

The problem is that I would like to say:

COMPILE ~mymod/folder_of_d_files~

but this is the same thing as the first command...

So is there a command, that could be:

COMPILE_FOLDER_STEP_BY_STEP ~mymod/folder_of_d_files~

and that would do what I expect? (I have W118 and I have not found it...)

Here is the kind of file.d that I want to install with it:

APPEND ~MYDLG~

IF ~~ THEN BEGIN AAA
SAY @1
= @2
= @3
IF ~~ THEN REPLY @4 GOTO AAB
IF ~cond1()~ THEN REPLY @5 GOTO 16 // 16 already exists before I append
IF ~!cond1()~ THEN REPLY @6 DO ~manyactions()~ EXIT
END

IF ~~ THEN BEGIN AAB
SAY @7
= @8
COPY_TRANS ~MYDLG~ 155 /* 155 already exist */
END

END

EXTEND_BOTTOM ~MYDLG~ 155
IF ~cond2()~ THEN GOTO AAA
END

I use many of these files in order to create a list (just like cespenar do when he looks at your items!)
If I can do this in one line I will be able to add new things to the list created in my mod without changing the tp2 file!

#2 weimer

weimer
  • Member
  • 1569 posts

Posted 04 May 2003 - 10:02 PM

Does anyone else want this feature?

I could add it for you, but it would take time. And somehow I'm thinking that it would take me a little more time than it would take you to just cut and paste a few text lines in your TP2 file. But if there is a big demand, I could do it. How many D files are we talking about here?

#3 -jcompton-

-jcompton-
  • Guest

Posted 04 May 2003 - 10:27 PM

I don't know that adding that feature would really help solve the problem anyway... if they need to be done in a particular sequence, that sequence would only be honored if WeiDU automatically chose it, and my guess is that you'd do it in alphabetical order (or, who knows, maybe surprise us and use random hash table data like the first incarnation of --traify)... in which case Cocobard would still need to tweak something on his/her end. Once you have to explain the sequence to WeiDU... well, you may as well just write out individual COMPILE lines.

Are you sure you can't accomplish what you want to do by using state labels (a155) instead of hard and fast numbers (155) and compiling simultaneously? It's generally considered sub-optimal .d coding to generate new DLGs using actual integers as state labels.

#4 Cocobard

Cocobard
  • Member
  • 5 posts

Posted 05 May 2003 - 09:04 AM

Thank you for reading my question, I want to say that I use about 65 .d files and they don't need to be done in a particular sequence...

#5 -Ghreyfain-

-Ghreyfain-
  • Guest

Posted 05 May 2003 - 09:30 AM

Then you could just make two folders.

COMPILE ~mymod/individualD/dlg1.d~
COMPILE ~mymod/individualD/dlg2.d~
COMPILE ~mymod/individualD/dlg3.d~
COMPILE ~mymod/individualD/dlg4.d~
COMPILE ~mymod/individualD/AUTODs~ // This here is a subfolder of "individualD"

Edit: Nyah, typos correct. :P