Delphi Starter can compile zGameEditor?

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

Moderator: Moderators

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

Delphi Starter can compile zGameEditor?

Post by Aquilus »

Hi! it's me (again xD). I see that Delphi Starter is free! Can it compile zGameEditor?
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 think so, yes. I suggest you try and let me know if you run into any problems with compiling.
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post 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'
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 »

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:
Attachments
Skärmklipp.PNG
Skärmklipp.PNG (15.1 KiB) Viewed 24453 times
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post 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?
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 »

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

Re: Delphi Starter can compile zGameEditor?

Post 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?
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 »

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

Re: Delphi Starter can compile zGameEditor?

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

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

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus »

Same situation with both solution :(

Any other things that can i try?
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 »

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

Re: Delphi Starter can compile zGameEditor?

Post by Aquilus »

Yes, i did all these passage as you say.
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 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.
Attachments
exe.zip
(270.34 KiB) Downloaded 502 times
Aquilus
Posts: 25
Joined: Thu Jul 14, 2016 7:10 pm

Re: Delphi Starter can compile zGameEditor?

Post 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.
Attachments
Immagine.png
Immagine.png (121.7 KiB) Viewed 24400 times
Post Reply