Commit Graph

25 Commits

Author SHA1 Message Date
izawartka
87b592e78b Update Scenery Processor script
- Refactored Scenery Processor script and updated it with more options
2026-08-12 17:20:26 +02:00
izawartka
415878ba02 Updated parse_prefabs.py
+Added track speed limit info parsing in parse_switch_prefabs.py
*Renamed parse-prefabs.py to parse_switch_prefabs.py
*parse_switch_prefabs.py will no longer provide track  slope and banking information unless specified otherwise with the --extended-track-shape flag
*Modified parse_prefabs.py to use argparse
-Removed shebang from parse_prefabs.py script (caused problems on some python installations)
2025-08-05 20:30:54 +02:00
izawartka
82c3c7cfbb Updated glb_bounds.py
*Changed optional params of glb_bounds.py to use dashes instead of underscores in optional params
*Added missing glb_bounds.py header
2025-08-02 00:46:32 +02:00
izawartka
4131401fe6 Fixed scp.py
*Fixed scp.py allowing for any Misc object (instead of just SignalBoxes and Plaforms)
2025-07-25 20:38:38 +02:00
Igor Zawartka
67c64ca838
Merge pull request #5 from dominik-korsa/prefab-parser
Add a prefab-parser.py script and use it for switch prefabs
2025-07-24 23:58:07 +02:00
izawartka
ec29f33835 Update list.py
*Updated list.py to sort the list before saving
2025-07-23 03:08:12 +02:00
dominik-korsa
b7c71e37ac
Merge branch 'main' into prefab-parser
# Conflicts:
#	src/components/map/object-renderers/TrackRenderer.js
#	src/helpers/miscHelper.js
2025-07-23 01:03:59 +02:00
izawartka
884652ac8f Updated scp.py
*Updated scp.py to not ignore MiscGroups
2025-07-21 18:54:36 +02:00
dominik-korsa
56c1360e30
Merge remote-tracking branch 'refs/remotes/upstream/main' into prefab-parser 2025-07-19 14:07:45 +02:00
dominik-korsa
e1d1540f9e
Remove SwitchPrefab class 2025-07-19 13:41:04 +02:00
dominik-korsa
14b69ed562
Move connection processing to Python script 2025-07-19 13:06:38 +02:00
izawartka
87b2091333 Added Platforms parsing
+Added support for parsing Platforms
+Added glb_bounds.py - a script for extracting bounding boxes from GLB files
*Updated scp.py to not ignore MiscGroups and Platforms
2025-07-19 12:26:23 +02:00
dominik-korsa
0d7e8dc18c
Move some prefab processing from JavaScript to Python script 2025-07-19 02:13:17 +02:00
dominik-korsa
d5206e4281
Use track data from the parse-prefabs script for all prefabs 2025-07-16 16:08:48 +02:00
dominik-korsa
ebbb2323e8
Create eprint function for info logging 2025-07-16 13:01:18 +02:00
dominik-korsa
6ce107fcba
Add script usage note 2025-07-16 12:51:27 +02:00
dominik-korsa
7ddf45cbc4
Print output in a more usable format 2025-07-16 12:17:33 +02:00
dominik-korsa
e3b991f786
Parse actual tracks in prefabs 2025-07-16 11:54:12 +02:00
dominik-korsa
507c516b0b
Export prefabs to JSON 2025-07-16 10:37:07 +02:00
izawartka
fdc28c467c Added list.py
+ Added list.py script to help generate a list of sceneries from public/sceneries/
2025-07-13 23:47:25 +02:00
izawartka
04364de22b Fixed minor bugs
*Fixed options for disabled layers in the side menu not collapsing
*Fixed missing return value in ElectrificationResolver._findTracksAdjacentToRoutes
*Changed SceneryObject.fromText to throw an error instead of logging it
*Updated tools/scp.py version text
2025-07-13 23:46:02 +02:00
dominik-korsa
7d36835b28
Don't remove route tracks in scenery processor script 2025-07-12 21:43:26 +02:00
izawartka
18e3056c45 Signalboxes and signals recognition bugfix
*Fixed scp.py removing signal boxes with no name
*Fixed the parser skipping mechanical signals
*Improved loading speed of unoptimized .sc files by throwing less unknownObjectType warnings
2025-06-09 01:04:38 +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
d78e72fc49 Initial commit 2025-05-29 13:11:22 +02:00