STARK engine

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

User avatar
GoodOldGeorg
Posts: 43
Joined: Mon Dec 17, 2007 3:43 pm
Location: Hungary

STARK engine

Post by GoodOldGeorg »

I ran my compiler with latest residualvm git source. WIN7 x86, MiNGW-MSYS (make clean, ./configure --enable-all-engines).
Configure script is disabling STARK engine, because OpenGL with shaders is required. Please anyone help me, how to fix it.

The configure script Screenshot:
Image
bgK
ScummVM Developer
Posts: 71
Joined: Sat Feb 13, 2016 12:40 pm

Re: STARK engine

Post by bgK »

To get a build with the STARK engine, you will need to:
- Install GLEW in your build environment
- Update to the lastest git revision. Changes have been made today in order to build the engine by default
User avatar
GoodOldGeorg
Posts: 43
Joined: Mon Dec 17, 2007 3:43 pm
Location: Hungary

Re: STARK engine

Post by GoodOldGeorg »

Thanks!

The libraries on the GLEW website are built for the Microsoft C compiler. In order to use GLEW on MinGW, i compile the libraries in this way:
http://www.prinmath.com/csci5229/misc/install.html
section "Windows: MinGW and GLEW"

This part has failed (foo.c not exist) and compile script is ran the same as before (STARK engine skipped):
..
To compile and link foo.c using MinGW and GLEW you need gcc -DUSEGLEW -Wall -ofoo foo.c -lglew32 -lglut32cu -lglu32 -lopengl32
..
Please help, what did I do wrong..
User avatar
Vorph
Posts: 98
Joined: Sat Nov 19, 2005 4:58 pm
Location: Germany

Re: STARK engine

Post by Vorph »

Hello,

I got the glew sources from http://glew.sourceforge.net. I was able to compile glew without any issues. You might need to add the glew libraries manually your system, as "make install" did not work for me...

Afterwards I was able to build the latest sources (including stark engine). I get an opengl error when trying to start a games using the stark engine...
mac_es
Posts: 145
Joined: Mon Oct 31, 2005 9:37 am

Re: STARK engine

Post by mac_es »

Vorph wrote:Hello,

I got the glew sources from http://glew.sourceforge.net. I was able to compile glew without any issues. You might need to add the glew libraries manually your system, as "make install" did not work for me...

Afterwards I was able to build the latest sources (including stark engine). I get an opengl error when trying to start a games using the stark engine...
Hello,

Which compiler? I'm getting an error in grim engine.

Code: Select all

....
Looking for C++ compiler... g++
Checking for compiler version... 4.3.3, ok
....
Checking for GL Extension Wrangler (GLEW)... yes
Checking whether iconv.h is present... yes
Checking whether iconv needs linking against libiconv... yes
Checking signature of iconv... iconv_t, const char **, size_t *, char **, size_t *
Checking for iconv... yes
Checking for OpenGL... yes (shaders enabled)
....
Engines (builtin):
    Grim [all games]
    Myst 3
    The Longest Journey

....


In file included from ../engines/grim/gfx_opengl_shaders.cpp:61:
../engines/grim/gfx_opengl_shaders.h:266: error: declaration of 'struct Grim::GfxOpenGLS::Light'
../engines/grim/gfx_base.h:43: error: changes meaning of 'Light' from 'struct Grim::Light'
Any ideas?

As the variable is private if I change the struct name I can compile and get the grim engine working but stark is not compiling...

Code: Select all

engines/stark/libstark.a(dialogpanel.o):.\residual_svn\build_windows/../engines/stark/ui/dialogpanel.cpp:150: undefined reference to `Stark::DialogPanel::_aprilColor'
engines/stark/libstark.a(dialogpanel.o):.\residual_svn\build_windows/../engines/stark/ui/dialogpanel.cpp:150: undefined reference to `Stark::DialogPanel::_otherColor'
So It looks like I have something wrong in my environment...
mac_es
Posts: 145
Joined: Mon Oct 31, 2005 9:37 am

Re: STARK engine

Post by mac_es »

Also if I modify the source to compile I got an error in stark engine:

Code: Select all

INFO: OpenGL Vendor: Intel
INFO: OpenGL Renderer: Intel(R) HD Graphics 4000
INFO: OpenGL Version: 4.0.0 - Build 10.18.10.4276
INFO: OpenGL Red bits: 8
INFO: OpenGL Green bits: 8
INFO: OpenGL Blue bits: 8
INFO: OpenGL Alpha bits: 8
INFO: OpenGL Z buffer depth bits: 24
INFO: OpenGL Double Buffer: 1
INFO: OpenGL Stencil buffer bits: 8
INFO: GLEW Version: 1.13.0
INFO: GLSL version: 4.00 - Build 10.18.10.4276
Could not open shader stark_surface.vertex!!
User avatar
Vorph
Posts: 98
Joined: Sat Nov 19, 2005 4:58 pm
Location: Germany

Re: STARK engine

Post by Vorph »

Hi there...

I am using are recent MinGW installation on a Windows Machine

Code: Select all

Running ResidualVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.8.1, ok
Building as C++11... no
Checking for whether -Wglobal-constructors work... no
...
Looking for freetype-config... /h/MinGW/bin/freetype-config
Checking for FreeType2... yes
Checking for GL Extension Wrangler (GLEW)... yes
Checking whether iconv.h is present... yes
Checking whether iconv needs linking against libiconv... yes
Checking signature of iconv... iconv_t, char **, size_t *, char **, size_t *
Checking for iconv... yes
Checking for OpenGL... yes (shaders enabled)
Checking for nasm... /h/MinGW/bin/nasm
...
Backend... sdl (1.2.14), assembly routines, savegame timestamp

Engines (builtin):
    Grim [all games]
    Myst 3
    The Longest Journey


Creating config.h
Creating config.mk
Creating engines/engines.mk
Creating engines/plugins_table.h
The building process works without any hassles, but I get (roughly) the same error message when starting TLJ...

Code: Select all

User picked target 'tlj-win' (gameid 'stark')...
  Looking for a plugin supporting this gameid... Stark Engine
  Starting 'Stark Game'
INFO: OpenGL Vendor: NVIDIA Corporation
INFO: OpenGL Renderer: GeForce GTX 660 Ti/PCIe/SSE2
INFO: OpenGL Version: 4.5.0 NVIDIA 361.43
INFO: OpenGL Red bits: 8
INFO: OpenGL Green bits: 8
INFO: OpenGL Blue bits: 8
INFO: OpenGL Alpha bits: 8
INFO: OpenGL Z buffer depth bits: 24
INFO: OpenGL Double Buffer: 1
INFO: OpenGL Stencil buffer bits: 8
INFO: GLEW Version: 1.13.0
INFO: GLSL version: 4.50 NVIDIA
Could not open shader stark_surface.vertex!!
apprentice_fu
Posts: 12
Joined: Thu Dec 23, 2010 8:16 am
Location: Germany

Re: STARK engine

Post by apprentice_fu »

mac_es wrote:

Code: Select all

...
INFO: GLSL version: 4.00 - Build 10.18.10.4276
Could not open shader stark_surface.vertex!!
The file "stark_surface.vertex" is in the ResiduelVM code under
engines/stark/shaders/

After I copied the whole "shaders" directory (as Linux user I should have made a soft link) to the directory with the TLJ data, I could start the game.
User avatar
Vorph
Posts: 98
Joined: Sat Nov 19, 2005 4:58 pm
Location: Germany

Re: STARK engine

Post by Vorph »

Wooohooo....

that did the trick :D

THX
User avatar
Vorph
Posts: 98
Joined: Sat Nov 19, 2005 4:58 pm
Location: Germany

Re: STARK engine

Post by Vorph »

I am in the posession of a german (Funcom) DVD version of the game. The version is not yet detected. Shall I file the debug output as a bug report ?

Vorph
mac_es
Posts: 145
Joined: Mon Oct 31, 2005 9:37 am

Re: STARK engine

Post by mac_es »

For me too, It runs!

Though there is not possibility to put the shaders directory in the extra path, Residual dir... I'm trying to keep the game directory as clean as possible.

Cheers
mac_es
Posts: 145
Joined: Mon Oct 31, 2005 9:37 am

Re: STARK engine

Post by mac_es »

mac_es wrote:For me too, It runs!

Though there is not possibility to put the shaders directory in the extra path, Residual dir... I'm trying to keep the game directory as clean as possible.

Cheers
If you put in the residualVM directory:

engines/stark/shaders directory also works...
User avatar
GoodOldGeorg
Posts: 43
Joined: Mon Dec 17, 2007 3:43 pm
Location: Hungary

Re: STARK engine

Post by GoodOldGeorg »

Someone help me, what did I do wrong, Please? Maybe my compiler (g++) version is wrong? GLEW compiled, installed.
http://forums.residualvm.org/viewtopic. ... 3987#p3981
bgK
ScummVM Developer
Posts: 71
Joined: Sat Feb 13, 2016 12:40 pm

Re: STARK engine

Post by bgK »

I'm glad most of you were able to sort their issues. Work is in progress to embed the shader files in the executable so that you don't have to copy them around.

@Vorph: Please post the debug output regarding your version here.

@GoodOldGeorg: You said GLEW was installed but did not post your new problem. I suggest you use a toolchain with a packaging system like https://msys2.github.io/ so that you can install packages for the dependencies, and don't have to bother about building them.
User avatar
Vorph
Posts: 98
Joined: Sat Nov 19, 2005 4:58 pm
Location: Germany

Re: STARK engine

Post by Vorph »

Hi there,

Code: Select all

Please, report the following data to the ResidualVM team along with name
den Namen des Spiels, das Sie hinzuf┬│gen wollten, als auch die Version/Sprache/usw.:
  {"x.xarc", 0, "de8327850d7bba90b690b141eaa23f61", 3032},
  {"chapters.ini", 0, "e4611d143a87b263d8d7a54edc7e7cd7", 515},
The game DVD calls itself: "The Longest Journey, Special Edition" and was published in 2006 by Funcom / dtp. Game Language (speech / text) is german.
If you need anything else...

Vorph
Post Reply