Commit graph

5017 commits

Author SHA1 Message Date
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
xavi92
13f9bcc402 track4.cpp: Fix out-of-bounds access on ValStyle
ValStyle is meant to hold a textual representation of every value
defined by enum tSegStyle. However, it is mandatory that both
definitions match because, otherwise, the application could look up
the wrong data or just crash due to a segmentation fault.

So this was what actually happened: ValStyle defined less strings than
enum tSegStyle contained, so an out-of-bounds access was indeed
possible.

In order to avoid this, a X macro, namely TRACK_SEG_STYLES, has been
defined. This allows the definitions for enum tSegStyle and ValStyle
to always match, as they are handled automatically by the preprocessor.

Additionally, it was detected TRK_VAL_PITBUILDING was also missing, and
some elements for ValStyle were wrongly ordered:

- Element [4] should match TRK_VAL_PITBUILDING, not TRK_VAL_FENCE.
- Element [5] should match TRK_VAL_NO_BARRIER, not TRK_VAL_FENCE1.


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

Former-commit-id: 0888cd18c5cadeae112b80e5c6e388207e4b7c20
Former-commit-id: 9b5a57936367fd898d509a1193aed5430ba2d8cf
2024-04-25 23:39:38 +00:00
iobyte
06379da0cb trackeditor: enable csr mode automatically for csr
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9408 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 75289456bef013ed18809e1c5c399140470df198
Former-commit-id: aa9461365b4812ea00a841b75aff0db9ea4150e1
2024-04-24 20:16:17 +00:00
iobyte
f63458c0c8 trackeditor: use csr-trackgen when csr preference selected
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9407 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f020211ea521f21a8e8e90c9bc884335f0231352
Former-commit-id: 793b798608d552e9b0126c160df04121ebf6b2a1
2024-04-23 23:27:12 +00:00
iobyte
2190b4f0fb fix #1274
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9406 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f4ae1fbfd471fe5509e1809e1e140565b21240b3
Former-commit-id: 49d7a7b378a244a9f9e6e1d78fd3343b04592079
2024-04-23 21:39:21 +00:00
xavi92
a1271353ac trackgen: Fix order for plib dependencies
Since ssg depends on sg, the former must be listed first so that
the linker can resolve dependencies accordingly.

This fixes sd2-trackgen builds on Arch Linux-based distributions.


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

Former-commit-id: 2070cf0afbbde78810bb948528113e2ee18a8285
Former-commit-id: 931bcfaa22207e43dcec2ee5cde4ed206b430c1e
2024-04-20 01:29:35 +00:00
iobyte
3fe9e59c33 trackeditor: add CSR header short name read/write/edit support
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9403 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 795b56d04dd0d4404612b6c87ed9dc032ffd4a20
Former-commit-id: 8f3ebe4adcc7c9856003487e2bca8bd4aacb576d
2024-04-09 22:59:47 +00:00
torcs-ng
1f61dafa67 - fix bug car's windows appear / disappear in interior view on ssggraph
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9402 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 9250b8e9117b8b6216c361b6dbb9f5abd7f6e272
Former-commit-id: fcbf02a26b7f6894017a76ca1daf1e437e5338e2
2024-04-07 17:18:13 +00:00
iobyte
f61e205c51 trackeditor: add support for editing CSR objects and make CSR support a preferences opt-in
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9401 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2c49e97091b9dfa854bb85795fe34cfad13b9309
Former-commit-id: 4eacae9512e170ea21780139cfee98720063d226
2024-04-07 05:03:01 +00:00
iobyte
27e6beeef6 trackeditor: add missing diff, fix crash from missing relief file and add editing of local info best lap
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9400 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: eb251055320a9120ad7f46e26ffe586797040751
Former-commit-id: 77ff6a1edc9bdd13b894b60feef09ab6a53f4ff4
2024-04-06 05:59:12 +00:00
iobyte
a2f3ca0096 trackeditor: start adding suport for Cars-Sports-Racing version of track file (only lossless read/write for now, editing will come next)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9399 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e8efa4d82d3904c25302a1d8435a191b5e7b8c17
Former-commit-id: 2a66dc1290cf1da8ab03eaa743fe8719a6d4d43b
2024-04-06 04:38:35 +00:00
iobyte
c1d8aa125c tgfclient: add some more member functions to GfuiMenuScreen
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9398 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b1cf9c4767143ed70304027314fffd8bc8203c1b
Former-commit-id: 1a9f43885e656d834a7a8253016d85767472d0be
2024-04-04 21:53:53 +00:00
iobyte
934d905e9c fix leak
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9397 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c37bcd09bc56e82991eb41e37d539dc01b6ba082
Former-commit-id: a976cdc45686d69e89f1de733dfc7fba67144caa
2024-03-31 22:09:21 +00:00
iobyte
06d20693d6 tgfclient: fix sdl screen surface leak
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9396 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ada24f3ec6dca40860210b4f0e8f374359b0671e
Former-commit-id: 24f7100af039cb7b8ecb8cb882b3ab1ea4170702
2024-03-31 21:20:48 +00:00
iobyte
a83b9c98fa tgfclient: fix some handle leaks
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9395 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 15ed2786575c1dc9575a0d451e91a683b0c7ad6d
Former-commit-id: b0252b0537b9d97b166a7ccae84d6ebd83102e9e
2024-03-31 20:16:57 +00:00
iobyte
3427deedbd fix reading property from a bad xml file
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9394 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: be81835688686b3b8d0c10944378c45d2566597f
Former-commit-id: 13db61e44f67a8d77f028db1a84409a22b6ab282
2024-03-22 00:50:25 +00:00
iobyte
a4a4b50a01 move some static variables into class
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9393 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 9e2df5c887090e207974008d123c475769a83cb5
Former-commit-id: 601064eb86803806dc265e5e74a144b53cd14141
2024-03-21 21:45:07 +00:00
iobyte
517d04b2f0 tgfclient: add getNumProperty to GfuiMenuScreen
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9392 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 9d4780acb53ddc4bac90feefa99eb2cf19cc9df0
Former-commit-id: bef2525457e5a57a5457b3474e1387481c1ad3d2
2024-03-21 20:46:03 +00:00
iobyte
ad8e716943 tgfclient: move gfuiMenuPrivateData into GfuiMenuScreen
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9391 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: cd23cbd2c19d975ae3052393e4114d761296428b
Former-commit-id: c1f9123c505b796877bf527a0c34c2e9296c5bed
2024-03-21 20:39:53 +00:00
iobyte
5e23fe4eb5 tgfclient: don't delete user data
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9390 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c798a3f847b11f20b961d6c734f61c88f7f1b4a2
Former-commit-id: f18c6647bb96fc815105efef83bf8c52f6c5ed65
2024-03-21 19:58:25 +00:00
iobyte
e9c0f1d7aa show file name and line number in value out of range warning messages
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9389 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: cffc7ff5e5b2ec238b0f0024b6d35c531e8e1c0a
Former-commit-id: 7fd0175342f1ec3d5ad4f940f0a28507b734b3d9
2024-03-20 23:15:05 +00:00
iobyte
e7158f9e24 fix ls1-archer-r9-v41.xml
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9388 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: d21fddb68915c7a48608b4d2c344c040604e07c3
Former-commit-id: 417f2b0918b8fee46a291ef3883e54ce18719b15
2024-03-20 22:53:11 +00:00
harunasan
637dee7afa Simuv4.1: Add general longitudinal and lateral mu modifiers.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9387 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 169b44c33ee53c86d198df4270e3ebc7e01f9297
Former-commit-id: 018269ad78b882e31c210aeb98c9416d42d2fdc2
2024-03-15 04:39:41 +00:00
madbad
51d3973cde fix some OSGhud warnings
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9386 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ef5b36fcfdb04abf57612ce5b31157d22e4bfbc6
Former-commit-id: 67c4a53d49bd9d0e9e11e791cf8618b5bb5a0b60
2024-03-10 10:21:12 +00:00
madbad
947461d294 script used to recursively format the menu xml files
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9385 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4a9d56c67cd0173d72060be857302718f3002300
Former-commit-id: 4d65524f0fd1c8fa42d54ec1040febf85f8f203a
2024-03-09 22:12:27 +00:00
harunasan
0680a192b7 Simuv4.1: Reduce car-to-car collision impact severity, fixed longitudinal tire forces not being applied correctly, implemented very basic puncture functionality (severe grip reduction, wheel model axis height reduced)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9382 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b4812a058e8762813a7bc91e3c9ab031f266993a
Former-commit-id: 87386920a0e6029fa9492f7aae4aad1becd9ea53
2024-03-09 08:22:53 +00:00
madbad
1813719441 CURL fix for ticket #1267
dont cleanup data before the request is actually performed

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

Former-commit-id: 8ecde29a8c32fcd4a4c1cf316f804dfec99ea585
Former-commit-id: e4e790e9aa53c85ee5afe5411edbc274c8b4f48e
2024-03-08 18:05:22 +00:00
madbad
3350287cf5 fix CURL depracations warnings
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9380 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c0797bad31b5e2eec76313fd08d38008dab2f878
Former-commit-id: d2e3e25f2b5586a8f12b51b2b29b4c8faf76b560
2024-03-07 22:56:15 +00:00
madbad
e3f728eb28 fix CURL depracations warnings
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9379 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 0fa9d0cc06dbd9f85c769216ec6f1325d6a1dcdd
Former-commit-id: 43be39457b2d0fb0f083107e4c41757e8c972143
2024-03-07 16:41:49 +00:00
iobyte
2d8c7ae16e run trackgen on all remaining tracks that can be regenerated so testtrackgen script doesn't fail
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9378 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: d0a0a1c42e2c9ed7251b74f93b6ddfcb1c26cc8a
Former-commit-id: 1c48fd03cb4db1836340dfbef846e3dfd56097bb
2024-03-05 18:39:31 +00:00
iobyte
d1b61fffcf trackgen: fix visual studio warning
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9375 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: fdde08be715b878a9eb9ee210a7546ea0f34b635
Former-commit-id: f03681a272186daed0d6086249615260322c2ee6
2024-03-04 19:27:04 +00:00
iobyte
69ed76fba4 trackgen: fix gcc warning
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9374 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 0377f0509cee7bb22aa8b796a8c2b483d36d176d
Former-commit-id: fc4bb1e9deb532a342a0693987b430265dcb178c
2024-03-04 19:00:52 +00:00
iobyte
398ff6a5b4 simuv4.1: fix cppcheck warning
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9373 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c19a496ef0dc8cf6046353ed823a8493b6fc45bc
Former-commit-id: c5a2351ebbef94ea5dc0cc6ca9142e1a8fddb7ad
2024-03-04 17:08:21 +00:00
iobyte
301efbd5ce convert e-track-5 to version 4
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9370 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c9535d97e47c425f9a2216d260424daa41694efd
Former-commit-id: 1cd9ecfbc7028f49420ab28fb7b1aa274a7a94c7
2024-03-04 01:13:19 +00:00