Commit Graph

8358 Commits

Author SHA1 Message Date
hikerstk
72044141d8 Correctly handle a case in which bad items are in front of items-to-collect
(previously the AI sometimes decided to aim for the good items, then to avoid
then ... and this undecided behaviour resulted in actually hitting the bad item).
Documented the item collection and avoidance code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-10 22:49:43 +00:00
hikerstk
8a2c1b466d Fixed memory leaks in case of --no-graphics (just to reduce
unnecessary output of LeakCheck).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11573 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 23:45:56 +00:00
hikerstk
1f4a25efab Disabled debugging (again).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 23:38:21 +00:00
hikerstk
18d77b9da1 Improved handling of zippers: zippers will now be selected earlier (previously
a kart needed 2.0 nitro in order to use a zipper), but won't be used if items
to avoid are close by (since zipper make it harder to avoid them).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-09 22:41:49 +00:00
auria
633937f979 Updated farm by ctdabomb
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11569 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-08 17:40:30 +00:00
hikerstk
5b6002fd8b Fixed code for debugging, made it easier to compare various version
of the AI (findNonCrashing old vs new; collecting vs non-collecting).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 06:17:24 +00:00
hikerstk
e58d0139b1 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11567 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 06:13:46 +00:00
auria
f74f945558 Add minimal support for GP challenges in the overworld. More to come
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 02:06:50 +00:00
auria
80786003c3 Simple workaround the shading issue in the end cutscene, plus play a soundat the end to make it sound less empty
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11564 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 01:24:29 +00:00
auria
271d837e94 Move a texture used by endcutscene plus a track to common data dir, licensing work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 01:08:44 +00:00
auria
aa62ddd91b many more improvements to end cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11561 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 01:02:11 +00:00
auria
a658ca0f47 Fix tux colors in end cutscene + make Nolok's castle a little less bare
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11559 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 00:21:42 +00:00
hikerstk
d73b69ab09 Count how often a kart is off track for profile statistics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11558 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:48:01 +00:00
hikerstk
1649ed5336 Nolok bubblegum flag might not be reset in case of a restart (not
entirely sure if this is necessary, but it can't hurt).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11557 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:46:39 +00:00
hikerstk
795bce6e67 Hopefully fixed crash: m_emitter was not initialised if a normal item
does not have a parent (resulting in a crash in when testing if
the emitter() was "nolok").


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11556 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 05:43:32 +00:00
hikerstk
775a346f19 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11555 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 04:53:22 +00:00
hikerstk
0ba86c2c3b Fixed counting of explosions and rescues in KartWithStats.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 04:52:39 +00:00
hikerstk
42b9550373 Added stats output sorted by controller groups (useful to compare various
AI controllers).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11553 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-06 00:43:26 +00:00
hikerstk
be34f742e7 Removed 'very clever' logic (to avoid trying to collect items that
are too far out of our way) ... which only resulted in the AI not
being able to decide which of two items to pick, and then driving
left/right/left ... till it missed both items.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 06:56:49 +00:00
auria
0f17674e1e Fix stupid crash, I should probably go to bed :) while I'm at it shut up harmless warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 02:06:55 +00:00
auria
72b915191c Revert edit accidentally committed in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11550 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 02:02:24 +00:00
auria
d6a0b12df4 No pink skidlines for Nolok bubblegums
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11549 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 02:00:49 +00:00
auria
353d0dbd3b Another forgotten file...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11548 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 01:35:29 +00:00
auria
c9cd4d6063 File forgotten in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11547 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 01:27:53 +00:00
auria
af219c1672 Give nolok his special bubblegum
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11546 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 01:16:01 +00:00
auria
718a90e009 Add nolok hammer sound
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11545 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-05 00:19:08 +00:00
hikerstk
fba4298b07 Fixed compiler warning in linux (and getPowerup() will never be NULL).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:39:00 +00:00
hikerstk
c50fc164b6 Removed debugging output and dead code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11542 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:29:26 +00:00
hikerstk
6c7bfd3050 Improved handling of situations in which a good and bad item
are close, which results in the AI getting the bad item when
trying to collect the good one. Some refactoring of code by
adding a hitLine function to Item.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 23:17:09 +00:00
auria
06821dc880 Give nolok a special swatter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 01:54:28 +00:00
auria
bfc1a5e14c Give nolok some special powers in the last fight against him. Changing the swatter and bubble gum to different models might help make it more dramatic of course
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11538 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-04 00:39:14 +00:00
hikerstk
35c7cf0848 Added first version of item avoidance to the AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11537 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-03 22:49:30 +00:00
auria
20382c0f15 Allow a challenge to specify which AI kart to use, and use it for the final race against Nolok challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11536 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-03 20:18:48 +00:00
samuncle
f20fe77a98 An improved skybox and a new lightmap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-02 19:43:13 +00:00
magned
0aa7494469 Enables both new skidding behaviour and new skidding AI. Disables old sharp turn behaviour and PRESENT_AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11533 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-01 22:45:07 +00:00
auria
afe3d7b910 Make car accel sound mono so that OpenAL can pan it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-01 00:24:43 +00:00
auria
39069aa684 Add audio to end cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11530 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-31 23:49:11 +00:00
auria
bdc744a3fd End cutscene updates
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11527 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-31 01:58:58 +00:00
auria
e211de77b6 Lock gnu and nolok until the last challenge is solved
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11525 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-29 23:53:44 +00:00
hikerstk
7e2b9abc6e Fixed release mode compilation and removed some compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11524 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-27 23:05:44 +00:00
wardje
23b5d5cd43 Fix wrong grouping fort magma introduced in r11436.
Didn't notice this when applying ctdabomb's patch that makes up
r11436. It made fortmagma be alone in a group called "bigupdate".
Switching back to standard.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11521 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-25 14:38:34 +00:00
wardje
01226565b1 Remove overworld from track listing
Someone probably wants to make this more permanent in the media repo,
assuming that it isn't that is.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11520 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-25 14:32:05 +00:00
mbjornstk
9905a5a982 Update build system with new ai_properties.[ch]pp files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11519 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-24 03:38:36 +00:00
hikerstk
983e3b036f Updated cmake build environment to include new files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11518 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-24 00:57:38 +00:00
hikerstk
a1c51d61a5 Added first and early version of an item-collecting AI (within
SkiddingAI).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11517 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 22:00:36 +00:00
auria
fe65f46035 Work on end cutscene. Code to start particles based on a condition
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 01:52:55 +00:00
auria
6f88c78753 Work around special keys annoyance where control key presses are eaten by my window manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 01:50:21 +00:00
hikerstk
ed9b701e53 Added maximum amount of nitro a kart can collect to stk_config.xml
(instead of "const int MAX_NITRO = 16"  in moveable.hpp).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11512 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-19 23:41:36 +00:00
hikerstk
ecd569b093 1) Fixed crash: hovering on top of random kart in the kart selection screen
would crash since getItemModel was not static (and no ItemManager instance
   exists at that time).
2) Items are now also stored in quad-based containers, which will allow the
   AI to better find 'interesting' items.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11511 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-16 22:02:41 +00:00
hikerstk
df103e413e Hopefully fixed NAN problem #687.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11510 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-16 05:59:04 +00:00