Jump to content


Photo

Compile error with dialogs


  • Please log in to reply
8 replies to this topic

#1 WelloBanir

WelloBanir
  • Member
  • 11 posts

Posted 12 September 2003 - 03:25 AM

Maybe it's a bug, maybe a restriction of weidu or of the DOS-Environment in w2k.

It seems that WeiDU cannot compile more than 1000 .Ds with the matching .TRAs at a time. I tried it, and WeiDU exited with the error message "too many open files".

It was a COMPILE-statement in a tp2, telling WeiDU to compile alle D in a folder. The TRA-folder was mentioned in a AUTO_TRA-statement.

No strings were appended to the dialog.tlk, no dlgs were compiled, nothing happened.

Maybe there is a known workaround for such cases, if so please tell me. Maybe i have to change a setting of w2k.



BTW, I cannot "make" (compile) WeiDU (and IWG) on my Linux. I do have make, gcc and ocaml, it's a gentoo-system now(no Mandrake anymore).

I cannor recall the exact error message, it appears when compiling a x???.h, telling me that memcpy or another mem-function in that h-file is not defined properly.

If that is a unknown issue,  i can post a complete error message, but right now i am not at my computer.
Weidu works fine on Linux with the wine-"Not an Emulator".

Both "errors"/features apply to weidu 135/136.

Again, thanks for WeiDU.

#2 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 12 September 2003 - 03:36 AM

I have to ask, why were you compiling that many .D's at the same time. I have 6 in my mod!
"You alone can make my song take flight..."

#3 WelloBanir

WelloBanir
  • Member
  • 11 posts

Posted 12 September 2003 - 04:57 AM

I try to follow Bardez and his BGT, so i have to compile all bg1-dialogs into bg2, though some might still be there and working.

#4 Grim Squeaker

Grim Squeaker

    Fallen

  • Member
  • 1018 posts

Posted 12 September 2003 - 06:08 AM

Why don't you copy and paste some of the .D's into the same file. As you as you have the BEGIN statements in correctly then it should be fine. You could have one big Banter D etc.
"You alone can make my song take flight..."

#5 -jcompton-

-jcompton-
  • Guest

Posted 12 September 2003 - 06:40 AM

It would seem that there's a more sensible way to do this by using the IWG code portion. But if your problem is that you have

COMPILE ~1~ ~2~ ~3~ ~4~ ... ~1001~

then just split them up.

COMPILE ~1~
COMPILE ~2~

etc.

#6 -Devon-

-Devon-
  • Guest

Posted 12 September 2003 - 09:39 PM

BTW, I cannot "make" (compile) WeiDU (and IWG) on my Linux. I do have make, gcc and ocaml, it's a gentoo-system now(no Mandrake anymore).

I cannor recall the exact error message, it appears when compiling a x???.h, telling me that memcpy or another mem-function in that h-file is not defined properly.

Hey, the same thing happens on Mac OS X. I think it's because the patching code that Fred gave Weimer was supposed to work with a configure command. Anyway, add this line under the linux section:

export COMPILEFLAGS = -ccopt '-DHAVE_MEMCHR -DHAVE_MEMSET -DHAVE_MEMCPY -DHAVE_MEMCMP'

and it should work. An inelegant but workable workaround.

Cheers,
Devon Smith

#7 Loriel

Loriel
  • Member
  • 57 posts

Posted 13 September 2003 - 03:36 AM

Hey Devon - does this mean there's a new Mac OS X version coming soon? If so, could you compile a new one after the new ADD_STORE_ITEM, etc are in there (especially if there's going to be an ADD_AREA_TRIGGER)?

#8 WelloBanir

WelloBanir
  • Member
  • 11 posts

Posted 13 September 2003 - 06:30 AM

Thanks. Will test that all soon.

And for bg1, yes, i do have bg1tutu now. That's not what i intended, but comes rather close.

So i will split up the D to be compiled into several folders, i think that will do.

#9 weimer

weimer
  • Member
  • 1569 posts

Posted 17 September 2003 - 01:32 PM

Too many open files -> fixed locally.

Missing #defines -- Devon is right about configure. "Fixed."