H-Craft Championship Open Source

Announce new projects or updates of Irrlicht Engine related tools, games, and applications.
Also check the Wiki
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

@CuteAlien
Doing some more tests, found some logical (probabaly) bug in design of some levels. Those levels which have as begin/end of tracks that thing at left/right side of track:

http://kas1e.mikendezign.com/aos4/gl4es ... mp_bug.jpg

I.e. "season01 - s1 race 06" and "season02 - s2 race 01" as example

Issue that when you finish lap, the whole lap didn't have connection between end and start. When you fly to the end of the lap you didn't see "finish lines" on the road, and everything looks like its "end of the track" without continue. See what i mean:

http://kas1e.mikendezign.com/aos4/gl4es ... mp_bug.jpg

Even when you watch on that part from other side somewhere in the middle of the lap, that "finish thing" didn't connected to anything, like lap is not connected with beigning/end.

See:

http://kas1e.mikendezign.com/aos4/gl4es ... mp_bug.jpg

Then, once you finish lap, where logicaly should be those finish line, then everything just "jumps" and new lap started.

Its like you didn't have it all as full track, but instead all the time its like have no finihs, but when by logic another lap should starts, it then redraw everything to have it like you pass the lap.

That happens at least on win32 and on amigaos4 , didn't checked linux one but i assume will be the same, and its just some bug (or it intendent ? ) in those tracks design.
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

That's seen as bug? Oh my :-( It's a teleporter...
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
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

:)) ha, so its expected then, no problems :)

Maybe that feels like a bug because no "magic" happens when one come to teleport, i.e. it not start "working" or something telling user that something start happens, instead you just fly, then "jump" , and level starts again :)

But at least its intendent, so only to understand why there is that crash happens sometime when level 4 (or 5) want to start.. Maybe just commenting out that assertion will be dirty-fast hack ?:) Or, printf all values of that crashed line ..
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

Ok added printfs before asserion on that line, that what i have:

When first level passed and press "next race" and wait when "start race" button appears:
mTrackMarkerReached = 368
aiTrack.GetNumTrackInfos = 373
mTrackMarkerReached = 368
aiTrack.GetNumTrackInfos = 373

mTrackMarkerReached = 363
aiTrack.GetNumTrackInfos = 373

and that block repeats.

When we pass second level , and the same press "next race" and wait till "start race" button appears:
mTrackMarkerReached = 640
aiTrack.GetNumTrackInfos = 645
mTrackMarkerReached = 640
aiTrack.GetNumTrackInfos = 645

mTrackMarkerReached = 634
aiTrack.GetNumTrackInfos = 645

and that block repeats
When we pass 3st level and wait "start race" button:

mTrackMarkerReached = 812
aiTrack.GetNumTrackInfos = 819
mTrackMarkerReached = 812
aiTrack.GetNumTrackInfos = 819


mTrackMarkerReached = 806
aiTrack.GetNumTrackInfos = 819

and repeat
And now, when we pass 4st level and wait till "start race" button appear (and when we actually got our assertion crash):
mTrackMarkerReached = 705
aiTrack.GetNumTrackInfos = 819
mTrackMarkerReached = 624
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 467
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 705
aiTrack.GetNumTrackInfos = 819
mTrackMarkerReached = 624
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 467
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 705
aiTrack.GetNumTrackInfos = 323

assertion "mTrackMarkerReached >= 0 && mTrackMarkerReached < (int)aiTrack.GetNumTrackInfos()" failed: file "player.cpp", line 315
See, it repeat last parts as usuall, and then, instead of 819 we have 323 by any of reassons and then assertion fail.

I was able to reproduce it currently only on amigaos4, didn't tried if win32 or linux may have that issue at all (so maybe something about big-endianes, or integer differences, or anything of that sort).

Have any idea maybe what/where to printf now ? I can try to just remove assertion at all, to see if it will works still (will it ?)

EDIT:

I remove assertion() line, and so didn't crash anymore, and that what i have in log when tried to play again and go to that problematic part:

mTrackMarkerReached = 368
aiTrack.GetNumTrackInfos = 819
mTrackMarkerReached = 568
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 392
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 368
aiTrack.GetNumTrackInfos = 819
mTrackMarkerReached = 568
aiTrack.GetNumTrackInfos = 819

mTrackMarkerReached = 392
aiTrack.GetNumTrackInfos = 819

and then (part which assertion() fail):

mTrackMarkerReached = 368
aiTrack.GetNumTrackInfos = 323
mTrackMarkerReached = 568
aiTrack.GetNumTrackInfos = 323

mTrackMarkerReached = 392
aiTrack.GetNumTrackInfos = 323


mTrackMarkerReached = 318
aiTrack.GetNumTrackInfos = 323
mTrackMarkerReached = 318
aiTrack.GetNumTrackInfos = 323

mTrackMarkerReached = 312
aiTrack.GetNumTrackInfos = 323


mTrackMarkerReached = 318
aiTrack.GetNumTrackInfos = 323
mTrackMarkerReached = 318
aiTrack.GetNumTrackInfos = 323

mTrackMarkerReached = 312
aiTrack.GetNumTrackInfos = 323


mTrackMarkerReached = 0
aiTrack.GetNumTrackInfos = 323
mTrackMarkerReached = 0
aiTrack.GetNumTrackInfos = 323
mTrackMarkerReached = 0
aiTrack.GetNumTrackInfos = 323
And then all continue well as expected, aiTrack.GetNumTrackInfos always bigger than mTrackMarkerReached. And all seems visually from gameplay fine, and i didn't see any issues (at least visually) with removed assertion.

Have any ideas maybe with all that info ?:)
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Despite the name aiTrack this is just about points reached on the track (the kind of lines over the track which you can can see in the editor...which you can start with 'e' in debug before main-screen). So - this track has probably 323 reachable check-points. And the mTrackMarkerReached should be about the place a player has reached. So I guess it's reset too late? Or not reset?

Uhm, I'll have to to read that code again. Too long ago to remember (12 years ago??? I suddenly feel old ...). But right now I'm deep in debugging Irrlicht about other stuff. Have to finish that first.
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
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

Thanks ! But that no problems anyway, i just comment out that assertion line, and visually all works and plays fine , no one will notice :) So not big deal, if only some theoretical interest to know what going on. But "reset too late" sounds pretty possible , so we have some race-condition or so which may happens on one machine and didn't on another. But as commenting assertion() out fix it all , so no problems.
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

@All

As can be seen in previous posts on that topic, I was trying to make AmigaOS4 port of it, and now it's done! There is a news item I post on Amiga portals:

Image

H-Craft Championship is fun to play sci-fi-racer. It features 28+ racetracks, a fresh design, and unique driving physics. It comes with a challenging Championship, an arcade, and 2 time-attack modes. Also on "Rivals" up to 4 players can have an exciting tournament on a single computer.

Image Image

The game was commercial and closed-source, but just a few years ago sources were open.

On x5000 with RadeonHD and latest ogles2/warp3dnova, you can expect 50-65 fps in 1920x1080.

You also need to read (or at least check) the tasty PDF coming with the game. As the game was commercial, it means that all was done as should, and it comes with a good pdf tutorial.

There are a few brief moments which probably need to take attention on before you start:

-- to have FPS counter enabled press "F11" in an actual game.
-- to change between fullscreen/window mode, change in media/config.xml on line 23 "fullscreen" value (1 - fullscreen, 0 - window).
-- to change between different camera views press "C"

A game needs about 250MB of RAM, 300 MB of GPU memory, 35 MB of system's VRAM memory and 250 MB of HDD space.

See how it all in action:

Image video of H-CRAFT Championship in action on AmigaOS4, 1920x1080 full HD
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

@CuteAlien

There is some fresh review of HCRAFT port to AmigaOS4. It is in Poland, but google translate done things well, so if you in interest there is: http://www.amigaone.pl/?p=2969
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Thanks. According to the translation I got you are a well-known Russian helicopter? ;-)
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
kas1e
Posts: 212
Joined: Sun Jan 21, 2018 8:39 am

Re: H-Craft Championship Open Source

Post by kas1e »

Haha yep :) Dunno what they mean, but probably something like "does many ports" :)
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: H-Craft Championship Open Source

Post by netpipe »

h-craft needs a steam version.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

We could have needed steam back then.
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
netpipe
Posts: 669
Joined: Fri Jun 06, 2008 12:50 pm
Location: Edmonton, Alberta, Canada
Contact:

Re: H-Craft Championship Open Source

Post by netpipe »

steamOS version, i was wondering if this will be updated to irrlicht 1.8.5 soon or what the last version it compiled with on github.
Live long and phosphor!
-- https://github.com/netpipe/Luna Game Engine Status 95%
CuteAlien
Admin
Posts: 9643
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: H-Craft Championship Open Source

Post by CuteAlien »

Never compiled with steamOS. Which would be interesting. And compiling Irrlicht with steamOS probably worth it's own topic. Given that it's based on Debian8 both should have a good chance of working.
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