Commit Graph

24 Commits

Author SHA1 Message Date
dominik-korsa
d6c0582c84
Remove track aliases 2025-07-12 16:58:33 +02:00
dominik-korsa
b79530ca71
Change purpose of TrackConnection 2025-07-12 01:19:55 +02:00
dominik-korsa
db273d2420
Change switch prefab definition format 2025-07-12 00:22:38 +02:00
izawartka
745d31e44a Added on-hover switches info
+TrackHoverInfoPopup now displays switch ID and model if the hovered track is part of a switch
*Fixed typo: renamed the "Switches names" layer to "Switch names"
2025-07-11 02:02:49 +02:00
izawartka
7f908f24ab Improved switches aliases resolution
+Added an option to include additional aliases indexes in switches definitions
+Added additional aliases indexes for switches Rz 60E1-300-1_9 R / L and Rz 60E1-190-1_9 R / L
2025-07-07 18:01:40 +02:00
izawartka
480d838e61 Model directory cleanup
*Structurized the src/model/ directory into subdirectories
2025-06-25 16:52:52 +02:00
izawartka
8604e87edc Various bugfixes
*Removed unnecessary spaces in SVG transforms of some map elements
*Changed the loading indicator text color
*Fixed an issue where the W28 sign sometimes had no text
*Scenery objects without a type name are now ignored
*Improved detection of signs (D0, D1, Z1 were sometimes not recognized)
*Improved detection of mechanical signals
*Improved automatic detection of radii for Rlds-type switches
2025-06-22 11:33:40 +02:00
izawartka
58e75ed730 Various small bugfixes and tweaks
*Changed the map background color
*Tweaked CSS for the side menu
*Fixed an issue where JS errors occurring during the parsing of sceneries were not logged to the console
*Fixed missing error message for an invalid scene header when the first line of the file was empty
*Fixed connections for the Crossing4.444 crossing
2025-06-21 12:22:00 +02:00
izawartka
3be5cd0291 TracksConnectionTest and tracks bugfixes
+Added a debug option called trackConnectionsTest. It will check if all tracks are connected properly
+Added Track.switch field
+Added Track.aliases field managed by Scenery.addTrackAlias()
+Added Vector3.toString()
*Switch._createSwitchTrackFromDef() now also add the track to the scenery
*Fixed track connections in switches
2025-06-19 00:12:38 +02:00
izawartka
c29208b217 Track max speed tweaks
*In the "Max speed" track coloring mode, tracks with a maximum speed or derail speed of 0 are now displayed in red
*Fixed an issue where max_speed and derailspeed of Track objects could sometimes be NaN
2025-06-18 21:44:57 +02:00
izawartka
65601978e4 Minor code bugfixes and tweaks
+Added option to disable loging the scenery model after parsing is finished
*Fixed missing def field declarations in SignalBox and Switch classes
*Fixed found switch def not being saved in the Switch object
2025-06-10 22:37:49 +02:00
izawartka
c56f471d65 Added scenery loaded dialog
+Added a dialog shown after scenery parsing is complete, displaying whether any warnings/errors occurred and, if so, showing the parser logs
*Improved parser's error handling
*Fixed a typo in the switch parsing related warning
2025-06-09 22:38:49 +02:00
izawartka
0aafbe6960 Added new auto switches logging
+Added an option in the Constants to log new automatically resolved switch definitions
2025-06-08 23:01:20 +02:00
izawartka
f95a38f96c Invisible tracks indication
+Added prefab_name field in the Track class and track_prefab_name in the Switch class
*Invisible tracks are now drawn in gray instead of being completely skipped
2025-06-04 14:13:33 +02:00
izawartka
519ed7aa1d Fixed track connections
*Fixed most of the tracks being connected in reverse
2025-06-03 19:05:03 +02:00
izawartka
9b49f4dc73 Added defined switches, fixed bugs
+Added pre-defined switches so they dont have to be generated. Unrecognised switches models are still automatically resolved and their new definitions are saved for later use
+Added .multiply, .toPrecission and .rotate functions in the Vector3 class
*Improved switches to normal tracks connections
*Improved switches-related error handling
2025-06-03 18:17:09 +02:00
izawartka
6d4aef606a Duplicated isolation name bugfix
*Fixed duplicated isolation names being rendered on switches
2025-06-02 22:46:07 +02:00
izawartka
7f279bf35d Added SignalBoxes, fixed bugs
+Added Misc objects parser
+Added SignalBoxRenderer
*Fixed Switch and TrackObject double apply protection
*Updated scp.py to not exclude Signalboxes
2025-06-01 17:45:18 +02:00
izawartka
0b77a5a782 Tracks color indication, slope calculations
+Added option to color the tracks by type or their slope
*Slightly refactored TrackRenderer component
*Fixed points calculations in StandardTrack to include track's slope
2025-06-01 14:36:42 +02:00
izawartka
b76752e40d Added Vector3 class, code cleanup
+Added Vector3 class and replaced all position and angle values with it to clean up the code
*Minor bugfixes and code cleanup
2025-06-01 01:54:26 +02:00
izawartka
b952b9c26d Added SceneryParserLog
+Added SceneryParserLog class that filters warning messages
2025-06-01 00:47:23 +02:00
izawartka
24b05c95c8 Added XYZ rotation fields to SceneryObject
+Added rx, ry, rz fields to SceneryObject class
*Modified all classes inheriting from SceneryObject to use its rotation fields instead of own "rot" field
2025-06-01 00:30:02 +02:00
izawartka
f8725c0371 Added SceneryObject, unified classes
+Added SceneryObject class. All objects like Track, TrackObject, Switch inherit from it.
*Switches now use applyObject instead of applySwitch. All SceneryObejct based objects can be applied after scenery load
2025-05-30 18:52:53 +02:00
izawartka
d78e72fc49 Initial commit 2025-05-29 13:11:22 +02:00