iobyte
53c321cfad
fix curl header file compile error
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9499 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 1124f22f0c2dfdd30e774d022801073f1d7761d4
Former-commit-id: 2fbd6bd193ae97328a2e0351ac3ea78ca53237d5
2024-07-24 00:05:48 +00:00
iobyte
e520583509
legacymenu: add missing include files to CMakeLists.txt
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9498 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: facfa6d8b23c669e6232c697465c6e0c190c1f5b
Former-commit-id: 8e836f44b3c2db85d0a5764d0d1373122f2399de
2024-07-22 18:19:31 +00:00
iobyte
7782ac66c6
portability: fix windows build
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9497 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 12629e2498a827919084b3a953a2ed4db51ff1b0
Former-commit-id: 242b719aff3a589bbfd277fd4dc9bcbfea72d38d
2024-07-22 16:36:09 +00:00
iobyte
e3c6a0d4a2
3rdParty: add zlib dependency for minizip
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9496 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3069823fa03db7bc9959476a5a895765e468d3e4
Former-commit-id: 63a982d56e9960444d10761fea5ccf654c8ea77e
2024-07-22 16:09:56 +00:00
iobyte
07522bc4b8
3rdParty: fix cmake file
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9495 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3f51ae1e738c910221d62f8f47bba70800630d23
Former-commit-id: 3eb5b6967938117af3609cf778c64e25b8cfa338
2024-07-20 19:16:57 +00:00
xavi92
5ee1a1adcf
win32.cpp: Fix syntax errors
...
This file was originally in C99 and (poorly) adapted to C++, which
caused some syntax errors as C++ holds different rules compared
to C99.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9494 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d7020315ae5cd1d5657c44695ec321e15be7545f
Former-commit-id: 2a88f57ba6e41584074a6410edcecf39463f868a
2024-07-19 15:17:40 +00:00
iobyte
b433af1e9a
3rdParty: add minizip and cjson
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9493 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3a1a0eb230a4a0f44c0a2e2523e60eb2209ed826
Former-commit-id: f4fd83e6fdebd8deb4fc1265c9829c351673ef2f
2024-07-19 14:37:01 +00:00
iobyte
6ccba70934
update to latest curl
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9491 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e59fe8152280e4c58f0bea1c659abd54356abc6e
Former-commit-id: b09e9078acbb1c7121c895661c71cebcaa08fa1d
2024-07-16 20:48:42 +00:00
xavi92
4dd8b822e6
Implement in-game download manager
...
This in-game download manager allows users to fetch assets, such as
cars, tracks or drivers, from a configurable list of servers following a
specific JSON schema.
Several smaller classes have been designed to assist the download
manager:
- entry: defines an entry in the assets lists and its state.
- thumbnail: defines a visible entry on the list, will always match
one entry.
- writebuf: allows dumping a file downloaded over HTTP{S} to memory.
- writefile: allows dumping a file downloaded over HTTP{S} to a file.
- unzip: a higher-level, C++ wrapper to minizip.
It was also required to implement a function that removed directories
recursively, namely rmdir_r. Since this is not portable accross POSIX
and Windows systems, their respective implementations have been provided
on src/libs/portability.
The following dependencies have been added:
- libcurl: HTTP{S} operations, already required by webserver.
- OpenSSL: hash calculation.
- minizip: zip extraction, it required its on Findminizip.cmake as it is
not provided by upstream CMake.
- zlib: required by minizip.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9490 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 915908c54f5ea8d7f6926943b2fea670e9973bea
Former-commit-id: 9cb2a8874779f6b4d9d6201f3d8af8b29c067a13
2024-07-15 03:27:16 +00:00
xavi92
afe8b2fa8b
Add JSON schema and example for assets lists
...
The JSON schema provides a machine and human-readable specification of
the assets lists that implementors must follow so that Speed Dreams can
fetch them. An example JSON file has also been provided.
Run check-jsonschema(1) to test an assets JSON file. It can be
downloaded via `pip install check-jsonschema`.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9489 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: bff0b86104dfe3e88896e1d5bfcfa35be2008265
Former-commit-id: e830b70b32d944c24515452ebd76f0dfdb0a6860
2024-07-15 03:07:48 +00:00
xavi92
dea67f471a
legacymenu: Build with standard C++11
...
Future commits will make use of C++11 features.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9488 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: f05b17bcd17f756665d440da4ed8c29a61ca9785
Former-commit-id: 459a21a593e3a2e129a7a1aa08b2cabd45931780
2024-07-15 03:06:48 +00:00
xavi92
b584e3668c
guilabel.cpp: Remove length limitation
...
For some unknown reason, labels could not have their text reassigned to
a longer text, being limited to the length of the first text that was
ever assigned to it.
This seems like an arbitrary limitation that does not introduce any
regressions, so it is probably reasonable to remove it.
Additionally, future commits will make use of labels whose text could be
reassigned several times.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9487 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 2536884b05c76ec5788ef59fc8556cc5a9fe3705
Former-commit-id: 2deec2b67b979e173b4f878dbed1811ebdde475e
2024-07-15 03:05:59 +00:00
xavi92
73dd7a7d49
guimenu.cpp: Avoid fixed-length buffer for path
...
There is no actual reason why the path length ought to be limited to
1024 bytes. Since strPath was already a std::string, it made sense to
use to concatenate all tokens with it and use c_str instead.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9486 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 1ffcb2a1e6b949ce31ddc3466921997b38855f44
Former-commit-id: 1a0565184bdc86ad5c7fd10f1db29b08ae000953
2024-07-15 03:05:28 +00:00
xavi92
fd80f2335a
eventloop: Support arguments on recompute callback
...
This will be used by future commits.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9485 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 45f75ac5601b75d4b9abd1d6962dd2144fc20005
Former-commit-id: 1191050c84198aae6f224c7b50eecad6a10fde7b
2024-07-15 03:04:36 +00:00
xavi92
9914e9d24c
Implement maximum frame rate limit
...
This new configuration can be adjusted from the display configuration
screen and allows to cap maximum fps so that CPU load is greatly
reduced, especially on menu screens.
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9484 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b63c4a7c907bbfb3fc8d44a6a77c7c1948341174
Former-commit-id: c331b396c32d1fd7d57b17ab880f44b808e12088
2024-07-15 02:52:31 +00:00
iobyte
ab2286b71e
trackgen: add default material to object files when missing
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9483 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e7a0bdbb8cf07257c37bc52a7c6b6ccef20f3ad2
Former-commit-id: 14d24fac0947c96e6c1e04c8bfa6bdfa1ed474c7
2024-07-14 15:05:39 +00:00
iobyte
3c262350cf
trackgen: remove bad triangles and empty objects
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9482 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: eb3324a025e15b163352db320a3d6e1dbd3fe352
Former-commit-id: 8249e2fce56988a9ac900e13f5ed2777d947a3b9
2024-07-13 23:29:02 +00:00
iobyte
a5ead10fba
show the track 3d model
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9481 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e910b486c2cb6146c99ba54ff7f4c19c4fed7c9c
Former-commit-id: cc770246dc7c20c526d10d8cc496026123b75283
2024-07-13 16:52:21 +00:00
iobyte
71b57e502c
trackeditor: show option to change graphic file extension to match export type
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9480 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: ff783e6ae1d7075403844631776f8d1e099faf87
Former-commit-id: 2c9ed4b8e1dd881d583d29e59985276fb61192a8
2024-07-13 15:15:25 +00:00
iobyte
a619a69a9a
trackgen: remove empty objects from models
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9479 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 3aa936cc73f0e42c17738f71639fa03cc94abde0
Former-commit-id: b15cfc67ba81a3f547f8831f37ec2f0e1321eb27
2024-07-12 20:09:22 +00:00
iobyte
92012b0dae
trackgen: update regression tests for acc files
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9478 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: b25b545db8c424314d067231dda4e028a6416537
Former-commit-id: 8c65052505b1e407fdb3ced553354d3c38e41f95
2024-07-12 15:52:15 +00:00
iobyte
31f050dfd0
trackgen: fix bad triangle detection
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9477 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 20d9024c965a3231918890615b03a6165cac9992
Former-commit-id: e6ff127e31af2ef335afc94569ef12207d5cd862
2024-07-12 15:13:20 +00:00
iobyte
bf7e9cb8dc
trackgen: warn about bad triangles
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9476 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d74a998e693635954b1471d7a909c72b14a88268
Former-commit-id: ccc80ca1ffd501cbb71e701234f2a98cc5b4ad11
2024-07-12 02:32:00 +00:00
iobyte
c838ec5768
trackgen: fix hang from bad models
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9475 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: d302f8b8bb1fff419a57b6858be2179820d393b4
Former-commit-id: 87ef5c399df84f938f7baaa7c9b17e49e9c99f5f
2024-07-11 16:26:03 +00:00
iobyte
d664b8da9f
trackgen: update version
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9474 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 1afaaf71e28eea4bc0e3ea47d9f3e762f832c544
Former-commit-id: d3cd2b4b361049fc65089b6588bcb4ab83c0577e
2024-07-11 15:42:04 +00:00
iobyte
a809475b47
trackgen: fix double sided normals
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9473 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e80bca4f9f393817be4061918f20e9dba886be68
Former-commit-id: 48b0dff667dc927c6452b2630b2ecccb95442a73
2024-07-11 15:12:02 +00:00
iobyte
cb897f2621
trackgen: update version
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9472 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: e4daa881d40a1ce79ed1efc998a4c1071b83200c
Former-commit-id: 0219ab2f223178a62ec979203bc4908d0bed7707
2024-07-10 20:45:33 +00:00
iobyte
a221addca8
trackgen: fix normal generation
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9471 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 2ce6ca6355d456c2134349a9d412246a12865105
Former-commit-id: c3bd3b135d28b95221a7ac402ad60b3593d5df09
2024-07-10 20:44:22 +00:00
iobyte
f8ea0c2426
trackgen: fix generated normals when outputting acc files
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9470 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: a0df34cdfd1dded9febe978ffa079b5d32b259f1
Former-commit-id: dde3690787777feb9af0c45ab3a182574291edad
2024-07-08 23:23:20 +00:00
iobyte
b3c35cf85b
osggraph: fix acc loader when it finds bad traingles
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9468 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 103f70883cad6cd5ea8e1e3f090ea8b50a7fffe4
Former-commit-id: 41de3f3b7427b9b6ab6cbd62af6c422f338262d3
2024-07-01 15:52:50 +00:00
iobyte
a8224fd5fe
trackgen: check raceline files in regression tests
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9467 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: 63edac72891624206387c7dcc68b430d3f1870fa
Former-commit-id: 836c22843cd8e7731cabf3a59cbddedb8b59aaf2
2024-06-29 18:18:04 +00:00
iobyte
7f246e9029
trackgen: check more renamed files in regression tests
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9466 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: dc645fc0ddfad202b2c9d05a265d9e444c07261c
Former-commit-id: a30acd4b958cf635bc0282363410e8a9d78ecb95
2024-06-29 17:54:02 +00:00
iobyte
2e0d19fdf8
trackgen: check all generated files in all regression tests
...
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9465 30fe4595-0a0c-4342-8851-515496e4dcbd
Former-commit-id: ead1245da84ff8fc2433868801340168942b81c5
Former-commit-id: 67d998b6356b9e31d64e0dd68b2accdcd5f072a6
2024-06-29 17:22:47 +00:00
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