Commit graph

4568 commits

Author SHA1 Message Date
iobyte
e8d7725eb5 trackgen: use C++ style casts
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8525 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 223cafca121c8f55cb5f2f30823c617ee4483d0c
Former-commit-id: da5d5f98002fd6218f0b1cd4adaa5989c5fd3f15
2022-09-19 17:46:57 +00:00
iobyte
4c86572ed1 trackgen: refactor easymesh to hide internals
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8524 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4224cd597c8e708b344e394f378be2407f4cbed6
Former-commit-id: c9a0508d4e0862ed87f2487fe7a304d5b2acdf76
2022-09-19 17:20:34 +00:00
iobyte
87b309f310 trackgen: fix some address sanitizer errors
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8523 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: baa5f7fa068eb43f8e38b66ff4b814d26a299e55
Former-commit-id: 8e0b34edf40fbe572c3dde68990f684d5cde6acf
2022-09-19 14:45:19 +00:00
iobyte
d13563e61b trackeditor: allow quotes in comments
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8522 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 27fb65a0843d8e728a9c2418c2663b3afdf659c0
Former-commit-id: 3680f713a8ff1502fdbe1453f10d8d15d4765c27
2022-09-18 20:23:40 +00:00
iobyte
64b752487e trackeditor: add comment to segments
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8521 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 5d84d2cb9cbadeed42e873828521c0abc0933103
Former-commit-id: 5366cb23eaf566eeea87af6d3e3f474ea3851612
2022-09-18 16:30:48 +00:00
iobyte
1d8d7b125a trackeditor: fix camera comment label
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8520 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 738c6ac05aa8d1ea89ae7e39a45c641fa1d198b5
Former-commit-id: d6e560d2bb349001a01b7b44f882d74ca20ee491
2022-09-18 01:18:00 +00:00
iobyte
63cb6d935f trackeditor: add comment to camera
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8519 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e7e0ce4b88668804ce961a575c941e7519cbc766
Former-commit-id: e785c34f04a05ca2c15bbacc1d1e4c3810f6cf6f
2022-09-18 00:37:51 +00:00
iobyte
8a1ab64213 trackeditor: add comment to sector
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8518 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: d0af3314c51c1e0ded6256b52ac3688b57772be0
Former-commit-id: b820e7a0cb669ac738f45458d003a44c6c403562
2022-09-18 00:13:10 +00:00
iobyte
ca13517377 trackeditor: add support for sectors
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8517 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 5ee1b81a1249e9a13cbdce63bd344fb4a85f2652
Former-commit-id: 4057e23d82a26bfd3f0c6cb0fd4fb95bf269b9f4
2022-09-17 22:47:45 +00:00
iobyte
23fd79c296 add new terrain generation attribute to use border in relief file and regenerate road/e-track-4 using it
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8515 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 23cdd1a1621f90e1ff61e50654d090e6b37e0ee4
Former-commit-id: d9cf70273c48b1f5a979d7996feee31c47225f77
2022-09-16 01:44:56 +00:00
iobyte
bda5a2a7d6 trackgen: relief files don't have textures or models so we don't need search paths
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8514 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: dd59fa65d1b96a6498195ed34aa9482ecf4421eb
Former-commit-id: ab651c2a60b4dc6c1732a0e42fbef76b90768bfe
2022-09-15 21:39:37 +00:00
iobyte
102d5a6ad1 trackeditor: use checkTexture for environment map image
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8513 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6cc2827123b7e5642afc13c27991befaf81f5ad5
Former-commit-id: e6b377fa0d17151051d888a8393c0e3a815e4d9e
2022-09-15 20:53:33 +00:00
iobyte
030a5ac53c trackeditor: check background image
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8512 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e2826bad576a5247625c25fff9009d52d84e7e25
Former-commit-id: 5c3ec4fb38444b5384807f2482bcac4a059ad716
2022-09-15 20:29:38 +00:00
iobyte
460e52fc41 trackgen: fix a cppcheck warning
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8511 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 0937de914226d5c7a56c198024d765e4b9971e33
Former-commit-id: 6a846f6c687edc8ff114a9cd58b4e16b98d4d6fb
2022-09-15 03:56:45 +00:00
iobyte
23697ed831 trackeditor: check track lights
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8510 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 39d7a55375b330febcac63db4751717c4fd6b0f3
Former-commit-id: 8d71a3e257dc392a7d3be1ea60552d50eb1ce4b3
2022-09-15 02:09:31 +00:00
iobyte
e75c417c1f trackeditor: increase numeric text field width
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8509 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 84a53569dd00492e953b2b932476141301c9f188
Former-commit-id: 9a8147c54c529122d012c97b3719ea1ae342dbe7
2022-09-14 14:24:55 +00:00
iobyte
3a920eff29 trackgen: add a regression test shell script
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8508 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4e40a07ff43bfb2130337a1a3793377b51e514dc
Former-commit-id: 35d57298837a8ea7a17023048800082c58426fde
2022-09-14 00:20:08 +00:00
iobyte
f9bc8aa41e trackeditor: check if texture has path
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8505 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: c50f756bdf85795a39c94229ebe089fd93c9ea1e
Former-commit-id: ca41ca2f6ec4a6dca5192968c4bb71a18bfc6f85
2022-09-13 20:01:46 +00:00
iobyte
9f1425f608 trackeditor: warn about rgb texture files
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8504 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b1cd54ccb2f29e11ceaf434d0b78b9a364cd30a4
Former-commit-id: fefff6f2614ed4250b47757dd25340e8ba9151bf
2022-09-13 02:48:37 +00:00
iobyte
2d61040a2a trackgen: replace some sprintfs
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8502 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4df8e0954ae5746748d26aa9c9b57f2ba55658d8
Former-commit-id: b6b7240b4fbe9649b767fd08d8a241caf6604532
2022-09-12 23:00:41 +00:00
beaglejoe
db063a2321 Added a multi-monitor fullscreen mode
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8501 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: b667a89e7a255bc31d2042386857c37f171f2ea6
Former-commit-id: 63eaa4d24a4484f540dcb5010212cd92ae0fffd4
2022-09-12 21:35:42 +00:00
iobyte
3dc3dd5972 trackgen: use std::string for search paths
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8500 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: adb2197efff2726f37955c21f67f0c11246b69a2
Former-commit-id: 433c61de7d21d195617cc8626d71fb639e88a96f
2022-09-12 21:25:14 +00:00
iobyte
931b9116f2 trackgen: go back to using our own search
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8499 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 948fa1a0888ccb30b94e65be3e5a6fe2b6c9bc59
Former-commit-id: 7deeb1ab71be5fba15f1b0e62c79f19a9c3ccbe9
2022-09-12 21:03:32 +00:00
iobyte
aedb9d1556 trackgen: save groups is std::vector
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8498 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 1382d0e342326474f71d3da847722c3be9abcd4f
Former-commit-id: 982f03dbfabfa0138762bbb845ade5d8d961cc3c
2022-09-12 19:42:02 +00:00
iobyte
5b10d5c771 trackgen: check type before casting
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8497 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 6e6aa61eb3fb338ebc90a9ca27ea0fdabd8e6752
Former-commit-id: 266e477c0a280f0f6c02de3d632113397546086a
2022-09-12 18:49:10 +00:00
iobyte
966d295429 trackgen: make global variable GroupRoot local
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8496 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 653fb615656e65a3da03d4dda8abc36762a43a85
Former-commit-id: 7c604688871e2e23cdad12eb54118acefbea2e33
2022-09-12 17:59:20 +00:00
iobyte
fb1b6f9fa0 trackgen: make global variable Root local
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8495 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f21c3d4bb0b45ed3bd8ca453daaf64f73c25fc12
Former-commit-id: b3385e60b86098e09b3728398ee55b11f2af56f9
2022-09-12 17:25:20 +00:00
iobyte
931e0d2632 trackgen: close output file
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8494 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 929bbf264cdcb3754953be5ce3c5e6d633f8770d
Former-commit-id: f46f94dae3f0a25e410b62ef5621fd45e295f395
2022-09-12 17:16:22 +00:00
iobyte
2cb38d2077 trackgen: fix object name and leak
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8493 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 8837dfd91c98a15ad9977876c63dd97b51b7898b
Former-commit-id: ba0567f3f6023b940f5c8b91b79958c037e61f4e
2022-09-12 16:27:47 +00:00
iobyte
6340a2f608 trackgen: make global variable TrackRoot local
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8492 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f644368b6b03fc7f40fd3e4309bd327546ea20bb
Former-commit-id: dd4277417276626651889c308a7a5c99c9a4bb2a
2022-09-12 15:07:18 +00:00
iobyte
45a53ebded trackgen: use ssg search path when needed
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8491 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 37d911ef90e3aab82ea195de35861c32eb10ff35
Former-commit-id: bbdccaa41d791478f03c073692c6b66a6d07d80f
2022-09-12 15:00:37 +00:00
iobyte
b89f932996 trackeditor: check for duplicate object colors
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8490 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f1fe6ed4078f7757bbe43d902702efc3db8002af
Former-commit-id: 9f0ae30e0cb4cd659a7a8deb93106f42c9b85e59
2022-09-11 21:29:10 +00:00
iobyte
ea179b7bd3 trackeditor: add environment map check
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8489 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e4a9c25f9e874b47eaae06da2fa7632825613bdd
Former-commit-id: 534fe3091cf00fa5f25f9753e98a9d69b38b05a8
2022-09-11 16:08:37 +00:00
iobyte
59269eddc6 trackeditor: check terrain generation elevation file
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8488 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7b3dd563cd452cbcaf721a076af18fcd00de9fc8
Former-commit-id: df79b68d82444d0ca1d7e171a6a8f5abfd28afa9
2022-09-10 23:35:11 +00:00
iobyte
2662f0b618 trackeditor: check if terrain generation relief file is valid
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8487 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 50646ed7de09b5accebae9ec49e117965c3250e6
Former-commit-id: feebf5b537584e134b328cd23b3dbfd35d055993
2022-09-10 20:13:59 +00:00
iobyte
0ba49f52f6 trackeditor: handle alternate side banking style used by some TORCS tracks
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8486 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 2d1186ff821ec5b7d200799c4198217d731e8cdb
Former-commit-id: 4db5ccf12803bf0dcf7579147cabb2fca45df7b0
2022-09-10 19:22:30 +00:00
iobyte
155c0cbd50 trackeditor: handle alternate pit style used by some TORCS tracks
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8485 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 1439ca3d6d0d780032d74e095032d289322a5e5a
Former-commit-id: 0ac1ab49ed596446aff55ffded0f7b71dda0dd05
2022-09-10 18:57:56 +00:00
iobyte
045eef23de trackeditor: check for missing terrain generation relief file
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8484 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7549343f8ccaa6589191fe76c5341e9a60d60084
Former-commit-id: dbf48f0ba98a76787fa5e8fd6f81555c3e635055
2022-09-10 18:42:09 +00:00
iobyte
8eb900d612 trackeditor: fix import export differences from degree to radian to degree conversions
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8483 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 52624b6a4606ce6a6196b3c9a23de42c7af42d1b
Former-commit-id: 22bb8d638d8dc60764516707c030ae7b77f352de
2022-09-10 18:10:23 +00:00
iobyte
b65df99736 trackeditor: move checks into CheckDialog
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8481 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: ec8014c518d52d4b6ede3985f2fb476b02955d1e
Former-commit-id: 54fb59ca0199c6f814e8bbeae79226fd83812dd7
2022-09-10 02:26:21 +00:00
iobyte
1f7878d3cf trackeditor: check for duplicate object names
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8480 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 03025a4f5412b08f474bcb8cd5140d071685cf54
Former-commit-id: 448193e0388ffe178a4adf4bade123709c370500
2022-09-09 17:49:28 +00:00
iobyte
f8171b282d trackeditor: fix duplicate surface name check
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8479 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: a3b1a57a839e8448983ade19e255b0cb6ff702c7
Former-commit-id: 52f23c3013293750e7c7f713c8f73a8a0d49b42c
2022-09-09 17:44:32 +00:00
iobyte
e072c0741c trackeditor: check for duplicate surface names
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8478 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 0eda3527cb79cafc20a62472ecb69c519540c0da
Former-commit-id: f561a685f9393ef65166c8d0b84e903d9a3342fd
2022-09-09 17:36:42 +00:00
iobyte
a874729aed trackeditor: check track objects
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8477 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 12b77a09c2201d0bea5097a3408248a9a07013ff
Former-commit-id: 827af8ac83261153f2c11fb283b87e31de996278
2022-09-09 17:16:45 +00:00
iobyte
64017805d4 trackeditor: export elevation map files
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8476 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 999185f1aa7157455028ce377882088ef57736f4
Former-commit-id: 0e2ac52e3a8f738628f692eacfb75b7adc178fd9
2022-09-09 01:19:06 +00:00
iobyte
1a0ecc4132 trackeditor: check more surface textures
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8475 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: abb8302d3beb09febf707d69140f94942e31c694
Former-commit-id: c07a3e9c18c70946d3ee0cc2ac5d3ab57efaa8c4
2022-09-09 00:04:55 +00:00
iobyte
8fa4bc945f trackeditor: remove invalid warning
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8474 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: f482b80b0cd94d4219a6d4380a260760a54e24a0
Former-commit-id: 6cd38b559c17af42cdbdfdb4ed67a1706fc3e0af
2022-09-08 23:08:47 +00:00
iobyte
5ac45ca488 trackeditor: add new files to cmake
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8473 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 4f0af73e44a6bfdb16c232f45b23a95ebb54823b
Former-commit-id: 11b7b20597ec0af9bcbe2de6cb813be8cc93bf56
2022-09-08 22:00:35 +00:00
iobyte
3a6689b889 trackeditor: remember last properties dialog tab
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8472 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 7a0581a8b1a518c84857a01dbd171f1a5846dc34
Former-commit-id: fe97cb86fc1a379226a3987e8e40e21cd6d82cd9
2022-09-08 17:27:26 +00:00
iobyte
241a4daea1 trackeditor: add properties button
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8471 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: bd78a2e58f53891f05c262426ed3b370e1a54db1
Former-commit-id: 6e28cce910a0ba4bcf6a6d739bb13b6aa2ad5d8d
2022-09-08 16:59:50 +00:00