H-Craft Championship Open Source

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
CuteAlien
Admin
Posts: 9838
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Ah sorry, I haven't compiled that in years :-( On first view I guess it's because you use c++11 compiler which I didn't use back then. If you change line 79 in sha2.h to "typedef uint64_t sha2_64t;" (so uint64_t instead of int64_t) it will probably work.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

Sorry for bringing an old project back to life. It must have been a while ago as sys/sysctl no longer works (COSOperator.cpp). I took that line out because I couldn't see it being used, installed ogg and vorbis and it runs! It's the first project that I've had to build in three stages. As I've installed a minimum lubuntu os I can't hear any sound or music yet, so that's a task for later tonight or tomorrow. Now tell me there's a floating FILE pointer somewhere hidden.
CuteAlien
Admin
Posts: 9838
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Hm, maybe OpenAL changed again a bit. That was the reason sound broke last time for me. And yeah sys/sysctl aslso had to be changed in Irrlicht 1.8 some time ago (and H-Craft is based on an early 1.8 if I remember right).
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

I have installed the full version of lubuntu so might get it to work. There are newer and older sound libraries on the same system, so my approach was start off with most things installed and hope.

The Raspberry Pi version however breaks. Everything compiles (cmake says openal.so.1 is missing but I see it in the libs folder), and both hovercraft64 and hcraft give this error

Code: Select all

No functor created for unknown GUI element: sld_lights
No functor created for unknown GUI element: sld_texture_resolution
Maybe this game is for experienced programmers who known their way around Linux. I can still play the game on my laptop, but maybe with no sound (I'll try once more). It's not a complete sad ending anyway.
CuteAlien
Admin
Posts: 9838
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Hm, that might just be warning at runtime.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

You are right. Nothing to worry about.

I did install a full OS install and ran openal-info and it finds my sound device, so that's one thing out the way.

Creating the device in hcraft looks like it wants the default driver (0,0) so I'm unsure why hcraft cannot find it and openal can.
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

If you like, I can start another thread about getting hcraft to run in 2025? I don't think it's project announcement stuff.
CuteAlien
Admin
Posts: 9838
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

It's fine, no need for another thread.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

Okay. I got it to work.

Code: Select all

Lubuntu full install (makes the audio drivers find things)
Need
cmake build-essential (g++)
libxrandr-dev libxxf86vm-dev x11proto-xf86vidmode-dev libxcursor-dev libsdl2-dev (makes Irrlicht compile)
libalut0 libopenal1 (runtimes I guess)
libogg-dev libvorbis-dev (makes Hcraft compile)
change int64_t to uint64_t
comment out #include <sys/sysctl>
Can I ask one question about C::B and how to include the level editor? If I used the defines menu to include HC1_ENABLE_XXXX=1 it complained it had been set twice. If I look in Linux Release will I find the level editor anywhere?
CuteAlien
Admin
Posts: 9838
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

At the end of compile_config.h there are 2 lines to #undef editor and profiler in release. Comment out the one for the editor.
Then you have to build again.

Check editor.txt in doc folder, it has some more info. Note that the editor isn't really that great.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

Just thought I'd share a screen grab of my specs. This is what an old Ideapad can handle. I think it's a Celeron. No stencil buffers :? 8)

[web site gone]
Last edited by wizard4 on Tue Mar 11, 2025 11:47 am, edited 1 time in total.
wizard4
Posts: 180
Joined: Thu Jan 25, 2024 6:54 pm
Location: UK

Re: H-Craft Championship Open Source

Post by wizard4 »

Okay, again. I have what I need. I think I will stop using the forums for 5-7 days. The editor and source will be enough. I know that given a day or two on some problem usually solves itself without the needy, compulsive typing here. I won't do anything big because that won't work. This is actually a full game (near enough). It's complete and works and the source code is offered for free. It was very different using a controller and not the keyboard this time.
CuteAlien
Admin
Posts: 9838
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Wow, no stencil buffer - pretty lucky I didn't enough about 3d coding back then to create stencil shadows :-D
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply