Delphi Starter can compile zGameEditor?

ZGE Source Code discussion. Ask questions, present your changes, propose patches etc.

Moderator: Moderators

User avatar
VilleK
Site Admin
Posts: 2172
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK » Fri Dec 02, 2016 8:03 pm

Can you please post your player.bin here?

Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus » Sun Dec 04, 2016 2:37 pm

I pack it in a rar because i wasn't able to put the normal .bin in the message.
Attachments
Player.rar
(128.06 KiB) Downloaded 333 times

User avatar
VilleK
Site Admin
Posts: 2172
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK » Sun Dec 04, 2016 6:56 pm

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.

Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus » Mon Dec 05, 2016 3:31 pm

I have these three files, how i check that the {$R directive in ZzDC.dpr is compiled?

User avatar
VilleK
Site Admin
Posts: 2172
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK » Mon Dec 05, 2016 4:12 pm

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?

Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus » Mon Dec 05, 2016 7:25 pm

If i rename Data.rc there is an error, if i rename Data.res no.

User avatar
VilleK
Site Admin
Posts: 2172
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK » Mon Dec 05, 2016 8:00 pm

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?

Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus » Tue Dec 06, 2016 7:10 pm

Yeah same error here.

User avatar
VilleK
Site Admin
Posts: 2172
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK » Wed Dec 07, 2016 6:54 pm

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')

Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus » Thu Dec 08, 2016 1:54 pm

Now, there is no more "runtime error 216 at 00403FC1"
But the error in ZDesigner.exe "zgameeditor-master\tools\zdesigner\frmEdline 294" still exist

User avatar
VilleK
Site Admin
Posts: 2172
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK » Sun Dec 11, 2016 1:06 pm

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.

Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus » Sun Dec 11, 2016 7:47 pm

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!

User avatar
Ats
Posts: 438
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by Ats » Fri Dec 07, 2018 8:58 am

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.

Post Reply