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
iobyte
14d4d00c54
trackeditor: update reliefs tab when loading relief file
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9369 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: f869dba6426e4cc5aa57163c4cfd66b53acb4707
Former-commit-id: f4fc1ccc63c66a54258030e4b045c82d01850a63
2024-03-04 01:05:41 +00:00
harunasan
a74cafdae1
SimUV4.1 and Car Interfaces: Add "mu wet" parameter, tread drain factor. Backported tire punctures due to excess wear from SimUV5. Implemented tire grip linear falloff at 50%/75%/100% wear (-1%/-5%/-20%)
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9368 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b9aaf31729ea3ac556fe99f1b0ca5609ff705c6a
Former-commit-id: f5e78647ebeaf062c69e75c26f52aeec17127da3
2024-03-03 22:25:40 +00:00
iobyte
da901f29c6
convert dirt-5 track to version 4
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9367 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 49f1360d20b42c158bf0d62d105f8d1af074b6ab
Former-commit-id: 928c2fc518a2d771feafd4c5b379bd0340d99482
2024-03-03 18:14:27 +00:00
madbad
c8dc68df8e
new menu design: code updates
...
styled labels and comboboxes
and +/- buttons for setup screen
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9366 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 675e6671e75ee8ac63140b1ea1e5b450f8164c2e
Former-commit-id: b212925089d1e19ca7cd02ce97e4c6ebf9b16a59
2024-03-03 17:31:07 +00:00
harunasan
0fefff7bee
SimUV4.1: Add "hyper wear rate" scaling when tires are well out of optimal range (starts at 20 C over optimal)
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9360 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 5a2622ffbfbb6d781f62b83a3b02e964289e89cc
Former-commit-id: 343b22b415c45f0d1200d470f9317e6c738b5741
2024-03-02 10:41:20 +00:00
harunasan
9b2d8d13f4
SimUV4.1 and Car Interfaces: Added Tire Tread Drain Rate/Speed.
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9359 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 64d14cb71321ef776bf38927a5a9d06979efd339
Former-commit-id: 6d46448b9c1dc75df401aa797e1d706e3bc340b3
2024-03-02 08:56:02 +00:00
beaglejoe
09ab84c598
updated glm to 1.0.1
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9358 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: db9b68d5904aa4f08bb0ddefbfc52804b0409314
Former-commit-id: 3d461c3b918d6caffae138b433582f0151c35263
2024-03-01 20:30:52 +00:00
iobyte
4c70e26452
trackeditor: fix changing barrier surface when switching between fence types
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9357 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3d71257faa2627da15eafc810ddc330af91cd4a3
Former-commit-id: 43eea79547a43786e7f6a5804f3afd3007ba8a58
2024-03-01 20:25:41 +00:00
iobyte
1b53b8c853
trackgen: fix mirrored texture on right side border walls
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9356 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 2440d649b7ef5dbb1e0dfb04f6a3c326a252f42b
Former-commit-id: 9ceed55965cc74a06390e22026f606820973675a
2024-03-01 17:44:08 +00:00
iobyte
7ecb288761
trackgen: add new fence type with different textures on each side
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9355 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 69aeed2cd3fa26b6a5b7f7b3b571ba2c2b48c09e
Former-commit-id: 0585151ad0818af51dd553e7b909f51ee93298eb
2024-03-01 17:31:10 +00:00
iobyte
7d85b75193
trackgen: add new fence type with same texture on both sides
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9353 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 9be0c2f7fdadedd1834b9bceabcb0f76d14b276f
Former-commit-id: 780aed8c91243ae0d4470f22a52189fbe966d041
2024-03-01 14:30:44 +00:00
iobyte
31853373b6
trackgen: fix mirrored right side barrier textures
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9352 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 1b0bce1c95429b4d5eed03ac87d5402bcfa54355
Former-commit-id: 718452a1e082a475842f6b826899fba345c42d68
2024-03-01 02:19:01 +00:00
harunasan
bdab973f8d
SimUV4.1: Limit skid/slip force for tire wear too
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9351 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 6d1fc01004ba79f419e31fa671a41f5ba9139101
Former-commit-id: f8120e05b400ed4253d244d8a56c79acbd90ed37
2024-02-29 06:57:27 +00:00
harunasan
1008c8e8ba
USR: Reduced margin when passing, added "Aggression Mult" in private car setup (increases speed when on PATH_L or PATH_R)
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9349 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 2d8badbe3ca27781f13a6c2f9fd3904928191ee9
Former-commit-id: 8bc2576a1e4054672c27888e0c6977c150d243bd
2024-02-29 06:00:13 +00:00
harunasan
caf11bc0fa
SimUV4.1: Fixed Grip Factor when using Arcade/Rookie/Amateur player modes
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9348 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 0f1da1501467d0b762a890d0470e3002355f7cb0
Former-commit-id: 83fc787c899157a8ad888036a989b749632850de
2024-02-29 05:54:03 +00:00
harunasan
548d5e2b39
SimUV4.1: Normalize tire slip and forces
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9347 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: f6f20bcacd53fce719366e354d049eebdd622f4d
Former-commit-id: ae3b02f6df09b16650ee0adc56cd50841268dce6
2024-02-29 05:39:15 +00:00
iobyte
6c3a1aa88a
trackeditor: fix setting last tab when there in no last tab
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9342 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3e96800298920a3f9e4fa4d7478d2a9ccbdadd28
Former-commit-id: d3e3a42e124cdc78bdac70730919db477da1afdb
2024-02-26 18:25:18 +00:00