Page 2 of 2

Re: Delphi Starter can compile zGameEditor?

Posted: Fri Dec 02, 2016 8:03 pm
by VilleK
Can you please post your player.bin here?

Re: Delphi Starter can compile zGameEditor?

Posted: Sun Dec 04, 2016 2:37 pm
by Aquilus
I pack it in a rar because i wasn't able to put the normal .bin in the message.

Re: Delphi Starter can compile zGameEditor?

Posted: Sun Dec 04, 2016 6:56 pm
by VilleK
Your player.bin is missing a resource named "data_file".

It should be included by this line in ZzDC.dpr:

{$R 'Data.res' 'Data.rc'}

which includes resources from data.rc (that imports data from dummy.dat).

Maybe the starter edition do not support including windows resources?

Please check that you have the files data.res, data.rc and dummy.dat and that the {$R directive in ZzDC.dpr is compiled.

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Dec 05, 2016 3:31 pm
by Aquilus
I have these three files, how i check that the {$R directive in ZzDC.dpr is compiled?

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Dec 05, 2016 4:12 pm
by VilleK
Maybe try change the $R filenames to xdata.res xdata.rc. Do you get any error or warning message from the compiler that those files are missing?

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Dec 05, 2016 7:25 pm
by Aquilus
If i rename Data.rc there is an error, if i rename Data.res no.

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Dec 05, 2016 8:00 pm
by VilleK
What if you rename dummy.dat, right click on Zzdc in project tree, select "Clean" from popup menu, and then build.

Here I get:
[BRCC32 Error] Data.rc(1): Cannot open file: dummy.dat

I'd expect you to get the same?

Re: Delphi Starter can compile zGameEditor?

Posted: Tue Dec 06, 2016 7:10 pm
by Aquilus
Yeah same error here.

Re: Delphi Starter can compile zGameEditor?

Posted: Wed Dec 07, 2016 6:54 pm
by VilleK
That's good because it means it actually looks for the file. What if you do a Clean and then a Build, still no data_file resource in zzdc.exe? (verify by trying it with ZDesigner.exe or open with hex editor and search for string 'data_file')

Re: Delphi Starter can compile zGameEditor?

Posted: Thu Dec 08, 2016 1:54 pm
by Aquilus
Now, there is no more "runtime error 216 at 00403FC1"
But the error in ZDesigner.exe "zgameeditor-master\tools\zdesigner\frmEdline 294" still exist

Re: Delphi Starter can compile zGameEditor?

Posted: Sun Dec 11, 2016 1:06 pm
by VilleK
I don't understand what's wrong then, since it clearly looks for the file but it doesn't link it into the binary. Either it is a bug or an intended limitation in Starter edition.

You can still do a lot of things in ZGE since you can build ZDesigner.exe though.

Re: Delphi Starter can compile zGameEditor?

Posted: Sun Dec 11, 2016 7:47 pm
by Aquilus
Yeah, i think i will study/make change on the IDE, but yes this is strange, i hope isn't a limitation of the starter edition but a my problem :/ .
(just for do the last test, can you make a screen of your config of Zzdc.exe i will try to replicate it, thanks!)
Thanks anyway man, you are the best!

Re: Delphi Starter can compile zGameEditor?

Posted: Fri Dec 07, 2018 8:58 am
by Ats
Hi,

I've installed Delphi Starter to try compiling ZzDC on windows. But it gives me an error:

[dcc32 Eror] ZPlatform_Win32.inc(806): E2003 Undeclared identifier : 'TPath'

If I comment lines 806 to 810 (Open file relative to path of exe-file), it compiles fine the ZzDC.exe and it works great.