Commit graph

5150 commits

Author SHA1 Message Date
iobyte
c5dbb80c8a trackgen: check all generated files in regression tests
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9464 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b136a63c0625d9b08b2ad86d3af43ac2d02468be
Former-commit-id: 78d1b53642d5ec038af7529c7e83e857bbd08082
2024-06-29 17:10:09 +00:00
iobyte
291e8c70dd trackgen: update version number
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9463 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7012ce73dce6dca1c26a753b0d153f36f675d55b
Former-commit-id: 9d2422275620367bf1535f27a11a46d523be0d9e
2024-06-29 14:15:22 +00:00
iobyte
835d6ecd22 trackgen: fix object placement
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9462 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: eca67fb050781a2bc55f08ee01a4803ce2a2b66b
Former-commit-id: bda15a8f09a598e0ba80a2ba58b659d982ddf8fb
2024-06-29 14:12:36 +00:00
iobyte
a25d786695 trackgen: update version number
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9461 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4e83f4544d47100fce903cdfebef23978fdab709
Former-commit-id: 2b4dd4abccd55161be7fc27bc6fdc46e4bb98da9
2024-06-28 17:32:51 +00:00
iobyte
9af5493b38 trackgen: fix some gcc warnings
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9460 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fd70345df8c973d58684915e959fc2c3d39db234
Former-commit-id: e01c46defcd5f998639663f87bd9750caca25b74
2024-06-28 03:26:54 +00:00
iobyte
7ee438afe0 trackgen: fix object placement
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9459 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 970011e7a832d86b54411a71d58df5a1fe8c345b
Former-commit-id: 206b7456ca56e8332ea46c7ed51a42667dd164fe
2024-06-28 01:18:05 +00:00
iobyte
61eda576e1 trackgen: don't output separate object files when outputting acc
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9458 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6a327f2dd5af7feb0adaa4121ec843f1c016a326
Former-commit-id: 254fbb42bcbd027c50190a5dad40db9f8fe7f4c4
2024-06-26 23:43:20 +00:00
iobyte
a22c00e42a trackeditor: add generating acc files
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9457 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f836bbb3da002a35baba5ba85d478219af4d57ab
Former-commit-id: 8897919dd7435fd004a00f30e29a62f3f8cb33a5
2024-06-26 23:25:59 +00:00
xavi92
18ab5f1222 gui.cpp: Avoid undefined behaviour on isprint(3)
Attempting to call isprint(3) for values not representable on an
unsigned char or different than EOF is undefined behaviour
according to the C standard.


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9456 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2f8d96956ce4b905564c50460092bb265b42a598
Former-commit-id: 8dbc4cfec2603def878794227f621102c7e6e13c
2024-06-26 21:11:40 +00:00
iobyte
8d43ac0ea3 trackgen: add ability to generate acc files
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9455 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fdd384b94fbecbf79c490c0555d6fe3e03cee497
Former-commit-id: 02972d8066d366fa8421850afd6820040c62e945
2024-06-26 20:27:11 +00:00
iobyte
e142c238a3 trackeditor: add ability to set use material on individual objects
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9454 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4e1843cbe3a903c2620379220ff8b379422d9113
Former-commit-id: 7313616f6e0dfcc121874a883a0f51e8e3b0fd32
2024-06-26 17:51:19 +00:00
iobyte
41348f9574 trackeditor: add tiled file to terrain generation
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9453 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 8542d330ec2511dc5e8163b9adcdac4adf8c9896
Former-commit-id: f7da30a9184826d7d99d25596a7eb937602a9374
2024-06-25 00:04:33 +00:00
iobyte
0f28c8336d ssggraph: ssgStripify doesn't support multiple textures
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9452 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: a9cc3a13def5b699e6ae407dfe3dface9f55e182
Former-commit-id: e464730a6af7caad7a60b2334af52958c0f95efa
2024-06-20 18:33:19 +00:00
iobyte
f0663c87bf trackgen: improve acc texture reading and writing
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9451 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 04fca5c868835b3c0b927c3be50acc2bf641602d
Former-commit-id: 49e69ae2fd951063e0e69e99fcfd9a724de31e7a
2024-06-18 19:04:09 +00:00
iobyte
3e9695349a update sdl2 to latest version
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9450 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 3a6123ea3489f298163f8eb87d14ef48825eb312
Former-commit-id: 186246958a5109fe405c090c28a73fe391ddcb88
2024-06-18 12:50:30 +00:00
iobyte
1ecad705a4 update SDL2 to latest version
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9449 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 60476f325580e9a658267c2e70f2129840c55c96
Former-commit-id: 4102321e3c800ca9961a2b579af8602876b9c426
2024-06-17 18:09:14 +00:00
iobyte
f8a29c0c5b accc: don't output an invalid ref
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9448 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e6f8d98fd1742a0601899c70944c3d7eee4f2d8d
Former-commit-id: 3285af2d75a5fdb44f8fc201548879b3dc3f6b14
2024-06-17 03:21:22 +00:00
iobyte
8a58304603 accc: fix some buffer overruns
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9447 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 565c4ed075324d0c225e92e6ca38a597ec20705d
Former-commit-id: 9d266d4868d4a9846224352873a81f46d8833ec2
2024-06-16 23:18:38 +00:00
iobyte
2e544286b9 accc: only need to check for different surf or mat when generating triangle strips
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9446 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 53e6dc6c91b26a11237a5779cb5a91d3026075a9
Former-commit-id: 2a9ba08b1ee3862c940d952981b39c5663d71803
2024-06-15 20:13:32 +00:00
iobyte
18df64e1e6 osggraph: skip first 2 frames when calculating fps
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9445 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7adee7c5dd7a835813a7c43e95be44834cc6e1ce
Former-commit-id: 19a57eafadfd04debc8470e0943e53a7d9c90f15
2024-06-15 15:11:27 +00:00
iobyte
e278092b8e osggraph: show min and max fps in hud
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9444 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e819e9653d282a27f92ca64a65e212e1a1f43554
Former-commit-id: 4466a007fd6f5c8f8bc9f7cc70d6752b99fb4b20
2024-06-15 14:16:00 +00:00
harunasan
592ec17f95 USR: Add Consistency modifier. This adds subtle inconsistency to bots when "consistency" is set to > 0.0 in a driver's skill.xml
Also, workaround fix for some cars (mainly LMP1 cars) not being able to pit in narrow pit spaces (eg. LongDay/LongJour) due to not having enough time to slow down and enter their box.

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9443 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: af96d1d94e13e9e31c411bbd445492cf4a2892ee
Former-commit-id: 4d5dc7ab8ee3efb5ca6b3bb8f527a0e02ee69f3b
2024-06-15 01:29:25 +00:00
iobyte
2c04b6263b osggraph: don't need to tessellate triangle strips
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9442 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2ef831d342d128857459ad5cdfb6d0b9166cd2d4
Former-commit-id: 0e54dc664400977bf9f0d32e4459cfe4966132e1
2024-06-14 23:08:59 +00:00
xavi92
ccb0d6b7fd OsgMain.cpp: Use osgUtil::Optimizer
As its name suggests, this class allows to perform minor optimizations
to the scene graph, resulting on small frame rate improvements.

That said, this class is meant as a compromise for overly complex scene
graphs that should be optimised properly instead.


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9441 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7322252a1d7aa782b6a4b64e8a79178fa5b3afe1
Former-commit-id: 8cac406ace350cfbedc99b700f3a6e4c29414e67
2024-06-14 21:19:46 +00:00
iobyte
9f51f516d6 osggraph: don't need to show 3000 stars
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9438 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 67fb11ea6fa9765435ab392e2640a336f41085c1
Former-commit-id: a960f8df178bdb5c2fcc0474aff251c73f4fdc9b
2024-06-11 16:05:23 +00:00
iobyte
6e2534e001 simuv5: fix car body disappearing when colliding with wall or barrier
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9437 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 5fb9c0c90a2c7453b5b1d265e67bc0df1821a135
Former-commit-id: 631e56202fd5ae190b86eaf2b6cd6322b723c6b0
2024-06-11 15:52:45 +00:00
iobyte
ed6775bfe2 simu5: fix car body disappearing at start of race
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9436 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: bb060b7cab1ddb088c5d3b122989aa69921686a6
Former-commit-id: c30b6bac28f11715fe4eb7415f7fa9c1379118f2
2024-06-11 14:57:53 +00:00
iobyte
52f3234eee add cppcheck config for unix64
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9435 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 24173ad43ca493e5545da3f927c13f1ee18b3039
Former-commit-id: c0fb1bb37ecfa1c5309f55edc5a577c15fcb5973
2024-06-10 16:34:31 +00:00
iobyte
b30e7bdeec add cppcheck config for win64
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9434 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fd34595fee1801d60e18831942149cfe1f451aeb
Former-commit-id: 93f5c0c57286a964ecb711eb8ac1f7fcd4773cde
2024-06-10 16:22:57 +00:00
iobyte
b2874934ce trackgen: change regression tests to use installed sd2-trackgen if none is specified
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9433 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fb2748529ef9731e4860eb8b62318d0eabd769ad
Former-commit-id: 118607da1ec8adff41a7c201826088de8d4e6eaa
2024-06-10 15:20:26 +00:00
iobyte
194873d23e snddefault: make flags unsigned
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9432 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 8d9ee8f7676c49a110375a30a1a4516c4e3aa9a8
Former-commit-id: 71425e82c738506d2aac053ed6b5cecc9f89a01a
2024-06-10 02:59:19 +00:00
iobyte
cf6881dbb7 snddefault: fix some cppcheck warnings
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9431 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: a04d17181878ded5af02a0f504199244f170fab9
Former-commit-id: 951fd03f34080e38207b5acd44ba579ce64d9981
2024-06-10 02:33:49 +00:00
iobyte
0017228cd0 snddefault: fix valgrind uninitialized memory warnings
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9430 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 26196acb3ebd2f874c1e306989907c60520ff90f
Former-commit-id: 857a0f63be2f3cc56ea303a3bc945d1cfef63d47
2024-06-10 02:17:22 +00:00
iobyte
4cab08adcd ssggraph: replace global variable grFilePath with function grSetFilePath
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9429 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 629adb423cf17d4b60a37cc49ab756f08283756d
Former-commit-id: 763a6cdb6de25bd36d38040f01f9b0996de03a7a
2024-06-09 17:10:27 +00:00
iobyte
7375c14241 osggraph: add osg stats using ? key
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9428 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 19ff7a06be63a287b82647600d6384fde32cb55a
Former-commit-id: 9bfd9aed69cba598b1f878164a6c4ef83d4529dd
2024-06-09 01:14:31 +00:00
iobyte
adfefc1101 osggraph: clean up acc loader code
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9427 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e4f8898fad67f65f6bf6f281212e78b83766e4f6
Former-commit-id: e152877766c756c2375693c12c86330fcc2dd3fa
2024-06-08 18:45:45 +00:00
iobyte
8dad6b0a56 osggraph: fix acc loaders use of surface flags
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9426 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 729285307a53a70681b3203fe36df430ea82da01
Former-commit-id: cb039517fb1e222c845c9704723c3631eecab2bb
2024-06-08 02:48:01 +00:00
iobyte
fe3c838688 simuv5: fix memory leak
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9424 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 646b75e73fc21ccfa888df9164c51bf01554586f
Former-commit-id: aff6835d23d7f4ad8aff8058fa248ad26addebac
2024-05-23 18:51:38 +00:00
iobyte
1a2ecb4248 fix memory leak
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9423 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 46e947176f5f26ed7cc734614528101a48c870c9
Former-commit-id: c807da11a58a9619e7ee55194b090d930506039e
2024-05-23 17:20:48 +00:00
iobyte
4e20110006 fix address sanitizer odr violations by adding namespaces
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9422 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b74294d25bfc40ecac7d56747825507144b855f0
Former-commit-id: 8aa3da7fabde6e2686af896d8f569359aa125a38
2024-05-23 16:18:08 +00:00
iobyte
f31203374e fix ssgVtxTableShadow default constructor
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9421 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 9fe3181c8b7949613595aa57fab0e7785a20153f
Former-commit-id: 6165818128ab6785c4a17371e91b3a056724a1bf
2024-05-23 15:52:58 +00:00
iobyte
0e80602479 add nationality to player config
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9420 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fee8d4efec0a2e34143ec8989f751e07685c407f
Former-commit-id: eb4f142141da34e1f9e95f248968289c1f2c5a83
2024-05-19 20:20:28 +00:00
iobyte
83bb469528 move SDL_GL_SetAttribute after SDL_InitSubSystem and use SDL_GL_CONTEXT_PROFILE_COMPATIBILITY for everything but apple
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9419 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: d1234600a87c2e9cd65a64c9edf4f5d3599ae6f7
Former-commit-id: fdf67bbbc1fcb8944490ec550d2cfc3d98b353d0
2024-05-16 15:02:20 +00:00
iobyte
27b4c960a4 set track categories based on game
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9418 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 027f092cb8841a0428e6aab5eef617d0b679f12b
Former-commit-id: e9e06bfc5b9e2bf8d7699fbdd6d9dcfba04a0262
2024-05-12 20:44:11 +00:00
iobyte
ef4a14a61b fix crash from unitialized variable
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9417 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 3da62b5a6808b013c4aedb485e3521a2da828972
Former-commit-id: efc7817ad7c4a4cc6e3e5616eec30ca4c6fb113c
2024-05-07 23:44:25 +00:00
madbad
aa33fdb612 remove wrongly committed GfLog call
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9414 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 54cf2e915b142c329a5be4202982233dd2d0c5d2
Former-commit-id: 9cc2301abe7e1aeb7b43c3b705b2c54815b42f6b
2024-05-02 08:46:41 +00:00
madbad
d1cfc38476 OSG particles: fix compilation issues, patch by @iobyte
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9413 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4dd3fc395c06968a777d4d03c42ab570bce02b6b
Former-commit-id: 1b366120678890c38b7c3a6dd81326cfe6325e6d
2024-05-02 07:46:09 +00:00
xavi92
3ddd623569 track4.cpp: Remove use of C++20 designated initializers
Whereas designated initializers were introduced in C by the C99
standard, their use in C++ is only relatively recent, instead being
introduced by C++20.

Modern versions of g++ and clang++ would support this syntax for some
time now, but Speed Dreams still relies on proprietary compilers like
MSVC to build on proprietary platforms like Microsoft Windows. It is
known that the versions of this proprietary compiler used by Speed
Dreams does not support C++20 features yet, so the designated
initializer must be removed to avoid breaking builds.


git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9412 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 3aab0c11fbbdd9a6a536ffb5d747c2f12ce2908b
Former-commit-id: ac39a8fbb62b001655ab8e29b1c3cbd6d97ad503
2024-05-02 06:59:18 +00:00
madbad
3f04b049cf OSG: first basic implementation of particles (include smoke, dirt, dust and sparks)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9411 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 84662ad4e1a03e8d3f08897035e99c08ca91dd39
Former-commit-id: fd0bd6e7c5f89a316bb8fa822655742f18ba730f
2024-05-01 15:53:23 +00:00
iobyte
52ac6db3f7 trackeditor: fix straight dx and dy calculations
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9410 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 3a38012962d6d37c94d91ba9b1f5a2678deece92
Former-commit-id: 48059083b77437bcfae6408d9b7efc0294f35b1e
2024-04-29 15:26:02 +00:00