[GAMES] H-Craft Championship SciFi-Racing

Moderators: meveric, mdrjr, odroid

[GAMES] H-Craft Championship SciFi-Racing

Unread postby AreaScout » Tue Jun 16, 2015 9:27 pm

Hi all

H-Craft Championship is a SciFi-racer written in 2007, it is ported to Android in 2014/2015 and can also be found on Google Playstore, it is now fully open source and that was the reason for me to port it for our ODROID's under linux, only small changes was necessary to make the game working



Image Image

Ok let's start:

Get some pre-requirements

Code: Select all
sudo apt-get install mercurial codeblocks libogg-dev


Checkout the sources + media files

Code: Select all
hg clone https://bitbucket.org/mzeilfelder/trunk_hc1
hg clone https://bitbucket.org/mzeilfelder/media_hc1


apply patches + build

Code: Select all
cd trunk_hc1
wget -O patch1.txt http://pastebin.com/raw.php?i=XguQTBpD
wget -O patch2.txt http://pastebin.com/raw.php?i=1hPYC6W8

patch --binary < patch1.txt
patch < patch2.txt
cd build
./make-libs-linux.sh


on my setup libogg did failed to build, but we installed it previously via apt so it shouldn't make problems on linktime

next compile steps are done with codeblock:

start Code::Blocks IDE and open Irrlicht-gcc.cbp found in ~/trunk_hc1/libs/irrlicht_ogl-es/source/Irrlicht folder
select as target Linux Release - accurate math - static
build it.

H-Craft:
in the Code::Blocks IDE open ~/trunk_hc1/src/hover.cbp
select the corresponding Linux target ( XU3 or U3 ) and click build.

when finished, copy media files to H-Craft directory

Code: Select all
cd ~/media_hc1
cp -R media ../trunk_hc1


Now you can start game from console with:

Code: Select all
cd ~/trunk_hc1
./hovercraft


Have Fun
Last edited by AreaScout on Sun Jul 19, 2015 6:41 pm, edited 2 times in total.
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby v0ltumna » Wed Jun 17, 2015 5:51 am

Good job, thank you AreaScout.
User avatar
v0ltumna
 
Posts: 69
Joined: Fri Jul 05, 2013 10:21 pm
languages_spoken: english, german
ODROIDs: U2, U3

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby odroid » Wed Jun 17, 2015 10:51 am

Great news!
Thanks,
User avatar
odroid
Site Admin
 
Posts: 28717
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby meveric » Wed Jun 17, 2015 2:13 pm

There are some issues with the licence which prevents me from building a complete .deb file, but i think i know of a workaround.. i will try to come up with something ;)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9186
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby AreaScout » Thu Jun 18, 2015 2:59 am

@odroid @v0ltumna

no need to thank you, just take the tons of gifts in the truck as usual and send it over to my home :lol:

the game engine irrlicht does sometimes something strange, it switches the display refresh rate to something other then the current setting, i.e if you have 1080p/60 then it switches to 1080p/24 or 1080p/25 or 1080p/30, thats not good as we have vsync and the video driver can only produce the same fps like the refresh rate.....

i will provide a fix for it shortly, h-craft does run 1000 times smother with 1080p/60

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby AreaScout » Thu Jun 18, 2015 4:42 pm

patch1.txt is new now ( since yesterday ) with a fix for the refresh rate !


have fun
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby streetboy » Fri Jun 19, 2015 3:37 pm

Thank you AreaScout.
Your instruction worked with the C1 too.

It runs smoothly on my C1. But it is not easy to drive the flying craft. Too much sensitive for Sunday Driver ! :)
User avatar
streetboy
 
Posts: 194
Joined: Tue Feb 26, 2013 6:43 pm
languages_spoken: english
ODROIDs: ODROID-X,U2,XU3-Lite
C1, XU4

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby AreaScout » Fri Jun 19, 2015 10:11 pm

streetboy wrote:Thank you AreaScout.
Your instruction worked with the C1 too.

It runs smoothly on my C1. But it is not easy to drive the flying craft. Too much sensitive for Sunday Driver ! :)


np, if you configure your controller ( i have ps3 controller left analogstick for steering, right analog for throttle control and brake ) then it's easy and the game makes lot of fun !

steering (left/right) did make problems on mapping, but copy the media shaders and hovercarft binary to a new folder ( i.e ~/hcraft-game ) solved the problem -> strange !

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby meveric » Sat Jun 20, 2015 2:58 am

Ok, we were able to get to an agreement with the Developers and are now allowed to distribute a .deb package.
You can find the game in my repository all/main package list and can install it with
Code: Select all
apt-get install hcraft-odroid
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9186
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby AreaScout » Sat Jun 20, 2015 8:21 pm

Nice to see a consent here, really a nice engine that is :)

Image
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby Julius » Mon Jun 22, 2015 10:38 pm

Works great on my X2, thanks a lot!
Julius
 
Posts: 54
Joined: Wed Apr 30, 2014 5:59 am
languages_spoken: english
ODROIDs: X2

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby m4f2g » Mon Jul 09, 2018 11:23 pm

got stucken @ apply patches + build:
patch --binary < patch1.txt
patch < patch2.txt

how to patch what???

odroid@odroid:~/trunk_hc1$ patch --binary < patch1.txt
can't find file to patch at input line 4
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r ccbba6fef46d src/irrlicht_manager.cpp
|--- a/src/irrlicht_manager.cpp Tue Jun 02 22:44:28 2015 +0200
|+++ b/src/irrlicht_manager.cpp Wed Jun 17 19:29:00 2015 +0000
--------------------------
File to patch: patch2.txt
patching file patch2.txt
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 112.
Hunk #3 FAILED at 130 (different line endings).
patch unexpectedly ends in middle of line
Hunk #4 FAILED at 140 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file patch2.txt.rej
m4f2g
 
Posts: 16
Joined: Wed Jun 06, 2018 8:39 am
Location: Baden, Germany
languages_spoken: german, english
ODROIDs: 2 [XU4] modified,
HominoidSplit Air Case + freefloating OGST-n64 Front Panel

VU7a+ as "mobile"screen in ameridroid vu7 tablet

Re: [GAMES] H-Craft Championship SciFi-Racing

Unread postby AreaScout » Wed Jul 11, 2018 6:56 pm

m4f2g wrote:got stucken @ apply patches + build:
patch --binary < patch1.txt
patch < patch2.txt

how to patch what???

odroid@odroid:~/trunk_hc1$ patch --binary < patch1.txt
can't find file to patch at input line 4
Perhaps you should have used the -p or --strip option?
The text leading up to this was:
--------------------------
|diff -r ccbba6fef46d src/irrlicht_manager.cpp
|--- a/src/irrlicht_manager.cpp Tue Jun 02 22:44:28 2015 +0200
|+++ b/src/irrlicht_manager.cpp Wed Jun 17 19:29:00 2015 +0000
--------------------------
File to patch: patch2.txt
patching file patch2.txt
Hunk #1 FAILED at 1.
Hunk #2 FAILED at 112.
Hunk #3 FAILED at 130 (different line endings).
patch unexpectedly ends in middle of line
Hunk #4 FAILED at 140 (different line endings).
4 out of 4 hunks FAILED -- saving rejects to file patch2.txt.rej


That tutorial is outdated i think, at that time the irrlicht_manager.cpp was the only file with ASCII '^M' line ending and therefore i had to use the --binary switch to get the patch done, i think the file has changed since then, code was added so you have to apply that patch manually or use the pre-build package from meveric repository

RG
User avatar
AreaScout
 
Posts: 614
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: english, german
ODROIDs: X2, U3, XU3, C2, XU4Q


Return to Games and Emulators

Who is online

Users browsing this forum: No registered users and 1 guest