Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Examples are broken. #12

Open
krukhlis opened this issue Jan 5, 2017 · 7 comments
Open

Examples are broken. #12

krukhlis opened this issue Jan 5, 2017 · 7 comments

Comments

@krukhlis
Copy link

krukhlis commented Jan 5, 2017

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.

@Delutto
Copy link

Delutto commented Jan 6, 2017

Same here.

@Relfos
Copy link
Owner

Relfos commented Jan 6, 2017

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.

@turric4n
Copy link

turric4n commented Jan 6, 2017 via email

@krukhlis
Copy link
Author

krukhlis commented Jan 6, 2017

@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).

@Relfos
Copy link
Owner

Relfos commented Jan 6, 2017

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.

@krukhlis
Copy link
Author

krukhlis commented Jan 7, 2017

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. :)

@Relfos
Copy link
Owner

Relfos commented Jan 7, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants