Page 1 of 2

Delphi Starter can compile zGameEditor?

Posted: Sun Nov 27, 2016 10:29 am
by Aquilus
Hi! it's me (again xD). I see that Delphi Starter is free! Can it compile zGameEditor?

Re: Delphi Starter can compile zGameEditor?

Posted: Sun Nov 27, 2016 11:17 am
by VilleK
I think so, yes. I suggest you try and let me know if you run into any problems with compiling.

Re: Delphi Starter can compile zGameEditor?

Posted: Sun Nov 27, 2016 1:44 pm
by Aquilus
Ok! I'm trying the error are these:
[dcc32 Error] Renderer.pas(2251): E2070 Unknown directive: 'TRenderTarget'
[dcc32 Error] Renderer.pas(2251): E2029 Declaration expected but '.' found
[dcc32 Error] Renderer.pas(2254): E2003 Undeclared identifier: 'List'
[dcc32 Error] Renderer.pas(2256): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2256): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2257): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2259): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2259): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2260): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2261): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2262): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2263): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2263): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2264): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2265): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2266): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2268): E2066 Missing operator or semicolon
[dcc32 Error] Renderer.pas(2272): E2070 Unknown directive: 'TRenderTarget'
[dcc32 Error] Renderer.pas(2272): E2029 Declaration expected but '.' found
[dcc32 Error] Renderer.pas(2283): E2029 Statement expected but 'DESTRUCTOR' found
[dcc32 Error] Renderer.pas(2283): E2029 ';' expected but 'DESTRUCTOR' found
[dcc32 Error] Renderer.pas(350): E2065 Unsatisfied forward or external declaration: 'TRenderTarget.CleanUp'
[dcc32 Error] Renderer.pas(352): E2065 Unsatisfied forward or external declaration: 'TRenderTarget.DefineProperties'
[dcc32 Fatal Error] GLDrivers.pas(5): F2063 Could not compile used unit 'Renderer.pas'

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Nov 28, 2016 8:55 am
by VilleK
Make sure that the main project file you open is "ZzDc.groupproj".

When it is opened correctly the Project Manager view should look like this:

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Nov 28, 2016 7:31 pm
by Aquilus
Oh stupid me! I was opening it from .dpr, from grouprj now it works perfectly! Now zGameEditor can be compiled Free! A real full free game engine, nice! :D


PS For compile the exporter i should wait for the official release right?

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Nov 28, 2016 7:45 pm
by VilleK
Good that it works!
Aquilus wrote:PS For compile the exporter i should wait for the official release right?
Not sure what you mean? What is the exporter?

Re: Delphi Starter can compile zGameEditor?

Posted: Mon Nov 28, 2016 8:54 pm
by Aquilus
The Player.bin and the PlayerSS.bin, i guess that they are made from Zzdc.exe, and when i try to compile it i get the previus error, that mean i need to wait an official release for have a brunch without error, right?

Re: Delphi Starter can compile zGameEditor?

Posted: Tue Nov 29, 2016 9:01 am
by VilleK
Aha, this was a bug. I've committed a fix to github so please get the latest sources.

Zzdc.exe is the player (runtime engine) so when you can built it try just rename zzdc.exe to player.bin.

Re: Delphi Starter can compile zGameEditor?

Posted: Tue Nov 29, 2016 11:14 am
by Aquilus
I'm really exitacted, finally i can help (after a long time of learning xD) you with zGameEditor i LOVE that engine man! I hope Embarcadero take Delphi Starter free forever for all.
Thanks again!


PS when i compile Zzdc.exe and rename it in Player.bin, the my have the size of 310 your of 242 and when i try to compile the game it gave me this error ("zgameeditor-master\tools\zdesigner\frmEdline 294") inside the error and another out of the editor ("runtime error 216 at 00403FC1")
Damn i need to study more, if i can't fix a problem like this, how can i help the community...

Re: Delphi Starter can compile zGameEditor?

Posted: Tue Nov 29, 2016 12:41 pm
by VilleK
It is a bit tricky: The final player.bin is built from makeplayer.bat and linking with custom low-memory RTL functions. So the one you build in IDE will always be bigger. Try unchecking "Remove unused code" in Project menu in ZGE, or also update ZzDC.map file (create by setting project options - Delphi Compiler - Linking - Map File = Detailed in Delphi IDE and rebuild).

Re: Delphi Starter can compile zGameEditor?

Posted: Tue Nov 29, 2016 3:42 pm
by Aquilus
Same situation with both solution :(

Any other things that can i try?

Re: Delphi Starter can compile zGameEditor?

Posted: Wed Nov 30, 2016 9:55 pm
by VilleK
Just so I follow: did you build zzdc.exe and zzdc.map, rename zzdc.exe to player.bin, copy both files to same location as ZDesigner.exe, built ZDesigner.exe from IDE, and then try building a empty ZGE project from ZDesigner?

Re: Delphi Starter can compile zGameEditor?

Posted: Thu Dec 01, 2016 7:14 pm
by Aquilus
Yes, i did all these passage as you say.

Re: Delphi Starter can compile zGameEditor?

Posted: Fri Dec 02, 2016 11:48 am
by VilleK
I just tried that here (rebuild Zzdc.exe with map file from IDE) and it works for me. I've attached the files, please check if they work for you too.

Re: Delphi Starter can compile zGameEditor?

Posted: Fri Dec 02, 2016 2:54 pm
by Aquilus
Yeah! Your work but with some bugs, 2D example are glitched, 3D are ok but all have japanase character as name.
The first thingi noticed is that your .bin is 309kb while the my is 310.