Author Topic: "Error: Cannot process COPY_TRANS" means what, exactly?  (Read 3024 times)

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
"Error: Cannot process COPY_TRANS" means what, exactly?
« on: January 20, 2013, 03:33:24 PM »
I am actually asking because I cannot COPY_TRANS a state where the transaction contains sleep() (BG1). Weidu gives me the error message "Cannot process COPY_TRANS". Could it be that the action sleep() is borked?

The state in question is from drunk.dlg:

IF ~~ THEN BEGIN 4 // from: 3.2 3.1
  SAY #5031 /* ~Hey!  Whats are you,  uhhhhh.........~ */
  IF ~~ THEN DO ~Sleep()
~ EXIT
END


I am using I_C_T to this state, which doesn't compile with the error "Error: Cannot process COPY_TRANS" (no more information).

I can do I_C_T to other states and other dlg-files, though (and they actually work in the game).

COPY_TRANS from this state didn't work, either (I tried the work around with INTERJECT and COPY_TRANS, but no luck).

Any ideas?

Offline Kulyok

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 6253
  • Gender: Female
  • The perfect moment is now.
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #1 on: January 20, 2013, 11:52:27 PM »
It sounds stupid, I know, but maybe it doesn't like that you're having the ~Sleep line split into two? What if you simply put it like

IF ~~ THEN DO ~Sleep()~ EXIT

?

jastey*

  • Guest
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #2 on: January 21, 2013, 02:53:48 AM »
The state is from the original game. Maybe that is the problem, but it meens I'd have to adjust the state, first, one way or the other. I am considering erasing the sleep() command by A_T_A (only for BG1, in Tutu / BGT the I_C_T works fine).

Still, is there a docu as to what "cannot process " means in this case?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #3 on: January 21, 2013, 07:09:39 AM »
"Cannot process COPY_TRANS" is a catch-all message signifying there was some unspecified error (i.e., as far as error messages go it is not a very helpful one).
I doubt it's the wayward tilde causing it. Those are common.
I can't reproduce this problem locally, but if you want to pursue the matter, I can add some more information to the current error message, and probably add a few more checks to try to narrow the problem down. Maybe a less ambiguous error can shed some light on the matter.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #4 on: January 21, 2013, 12:03:09 PM »
That would be very cool! More detailed error message, I mean.

Did you try to I_C_T to this state in BG1 (TotSC), and it worked without problems?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #5 on: January 22, 2013, 01:26:54 AM »
Yes. If you fax over your code I can give that a try, if you like.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #6 on: January 23, 2013, 12:53:11 PM »
What exactly means "fax over"?

My code is basically

Quote
I_C_T %tutu_var%drunk 4 c#q12_Drunk
== %tutu_var%drunk IF ~Global("C#BGQE_NPCReactions","GLOBAL",1)~ THEN ~bla~
END
(with %tutu_var% = ~~ for BG1)

If you get this to install without problems on your vanilla BG1+TotSC game, I would be interested to see your decompiled drunk.dlg. Thank you in advance!

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #7 on: January 23, 2013, 04:37:54 PM »
Yes, it installs.
My drunk 4 is the same as the state you posted.
I guess I should try to pencil in some time for poring over the code and making some educated guesses for where tighter error checking could be useful.

Offline jastey

  • Global Moderator
  • Planewalker
  • *****
  • Posts: 1524
  • Gender: Female
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #8 on: January 24, 2013, 04:25:39 AM »
While trying to compile your drunk.d as a quick fix I discovered that ~Sleep()~ is not listed in my BG1 game's action.ids. I guess that's the problem. I would like to include it, but I cannot find it in the IESDP. What would the "official" patching code look like? e.g., for ApplySpellRES, it is:

APPEND ~action.ids~ ~160 ApplySpellRES(S:ResRef*,O:Target*)~       
UNLESS ~ApplySpellRES~

It would be something like

APPEND ~action.ids~ ~xxx Sleep()~       
UNLESS ~Sleep~

but I don't know which number I should give it?

Offline Wisp

  • Moderator
  • Planewalker
  • *****
  • Posts: 1176
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #9 on: January 24, 2013, 06:43:55 AM »
I think one of the developers goofed and there is no and never was a "Sleep" action. You can probably confirm whether it is an issue by replacing it with a valid action, e.g., PlayDead().
« Last Edit: January 24, 2013, 06:46:49 AM by Wisp »

jastey*

  • Guest
Re: "Error: Cannot process COPY_TRANS" means what, exactly?
« Reply #10 on: January 24, 2013, 06:57:38 AM »
I tried replacing the sleep with ~~ by using REPLACE_TRANS_ACTION, but it was in the same .d and gave the same compiling error. Was it because the state wasn't changed until after the compilation of the d? I cannot remember correctly. I think I have to do changes like that first or with a different command so weidu knows that it takes the changed state for the COPY_TRANS. Can someone tell me, maybe I have to use two separate .d?

 

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Name: Email:
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image
Type the letters shown in the picture:
What color is grass?:
What is the seventh word in this sentence?:
What is five minus two (use the full word)?: