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: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post by VilleK »

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 »

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 574 times
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post 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.
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus »

I have these three files, how i check that the {$R directive in ZzDC.dpr is compiled?
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post 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?
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus »

If i rename Data.rc there is an error, if i rename Data.res no.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post 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?
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus »

Yeah same error here.
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post 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')
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post 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
User avatar
VilleK
Site Admin
Posts: 2274
Joined: Mon Jan 15, 2007 4:50 pm
Location: Stockholm, Sweden
Contact:

Re: Delphi Starter can compile zGameEditor?

Post 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.
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post 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!
User avatar
Ats
Posts: 603
Joined: Fri Sep 28, 2012 10:05 am
Contact:

Re: Delphi Starter can compile zGameEditor?

Post 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.
Post Reply