TERRA-Engine icon indicating copy to clipboard operation
TERRA-Engine copied to clipboard

Examples are broken.

Open krukhlis opened this issue 8 years ago • 7 comments

Hi All, First of all, thank you for the engine. I haven't updated it for a while, but with latest version now I can see it misses some classes and units when I try to compile examples. E.g.:

gridpathfinding.dpr(185,10) Error: identifier idents no member "SpriteRenderer" gridpathfinding.dpr(185,10) Fatal: There were 1 errors compiling module, stopping

or

Compiling ..\Samples\Source\3D\Particles\particles_simple.dpr particles_simple.dpr(7,3) Fatal: Can't find unit TERRA_UI used by MaterialDemo Fatal: Compilation aborted Error: c:\lazarus\fpc\3.0.0\bin\x86_64-win64\ppcx64.exe returned an error exitcode

Almost all 3D examples fail to compile because of absense of TERRA_UI.

Is it possible to to get fixed examples or missed classes/units?

Thanks in advance.

krukhlis avatar Jan 05 '17 22:01 krukhlis

Same here.

Delutto avatar Jan 06 '17 14:01 Delutto

Hi guys, if you want to use this engine please use the "Old_master" branch, that one is compiling 100% and was used in a couple games that were sold comercially.

The current master branch is a work in progress, while the core things work fine, there are some samples that were not fixed yet. The required changes in many cases are trivial, but since there are so many sample projects I did only change the most important. If there's any special sample that you need tell me and I'll try fixing it for the master branch.

Relfos avatar Jan 06 '17 20:01 Relfos

Thanks Sergio for your work!

Obtener Outlook para Android

On Fri, Jan 6, 2017 at 9:00 PM +0100, "Sérgio Flores" [email protected] wrote:

Hi guys, if you want to use this engine please use the "Old_master" branch, that one is compiling 100% and was used in a couple games that were sold comercially.

The current master branch is a work in progress, while the core things work fine, there are some samples that were not fixed yet. The required changes in many cases are trivial, but since there are so many sample projects I did only change the most important. If there's any special sample that you need tell me and I'll try fixing it for the master branch.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

turric4n avatar Jan 06 '17 20:01 turric4n

@Relfos , thank you, will give a try with old_master. Just another finding -- I've tried to compile TERRA-Engine-master\Samples\Source\3D\Meshes\mesh_ik.dpr -- it fails with errors with TerraString, stream, etc( lots of errors).

krukhlis avatar Jan 06 '17 20:01 krukhlis

If I remember correctly, the mesh_ik.dpr was a experience I did to add support for 3D inverse kinematics to the engine, however I did not complete it yet (altough the core was working).

There is a fully working sample for 2D IK though, and it should compile both in old_master and master branches.

Relfos avatar Jan 06 '17 23:01 Relfos

I've tried the old_master as well -- yep, it's more stable and consistent so far. But it also lacks some units, e.g. TERRA_UIWindow The gui_tabs.dpr and other UI samples require it but it doesn't exist. :)

krukhlis avatar Jan 07 '17 03:01 krukhlis

In the old master all widgets were implemented in the TERRA_Widgets.pas, including UIWindow. The UI system was one of the things that were massively rewritten in the newest version, and they are not compatible. You can't run samples from one version of the engine in the other, however I now see that both versions have all samples mixed in, so I removed the incorrect samples in each branch.

Relfos avatar Jan 07 '17 14:01 Relfos