leezer3 / OpenBVE

OpenBVE- A free train simulator
http://www.openbve-project.net
281 stars 51 forks source link

[Request] Request for Hmmsim's independent syntax support and complete support for Seoul Subway Line 2, the basic route. #1082

Open hwanghyunseo opened 4 weeks ago

hwanghyunseo commented 4 weeks ago

If hmmsim's own syntax is supported, it will be useful not only for the basic route of hmmsim but also for route creation. Currently, errors occur when executing the basic route of hmmsim, but if syntax support is expanded, not only will the errors in the basic route be corrected, but it will also be useful when creating routes, so it seems to have a good effect. The syntax description is translated from Korean to English on the hmmsim site, so please refer to it. The syntax here is the syntax actually used in the basic route. Also, some of it is similar to the syntax of BVE5, so it may be easy. Since BVE5 routes are already supported, it seems to have a big effect.

PatternObj(index, layoutinterval, layoutangle, x, y, object0, object1, ...); Index: Enter the index to use as a value between 0 and 255. Layoutinterval: Enter the interval to repeat layout. Layoutangle: Enter the interval to use as the layout angle of the object. x: Enter the relative position of the X-axis based on the corresponding rail. y: Enter the relative position of the Y-axis based on the corresponding rail. Object: Enter the object indexes to repeat layout in order. The objects will be repeatedly placed in order until layout is finished.

PatternEnd(index); Index: Enter the index at which to end the repeating batch.

CurveTransition(); Use this before calling the Curve command to set the transition curve.

PitchTransition(); Use this before calling the Pitch command to set the vertical curve. OpenBVE 2024-10-29 오후 11_14_05 OpenBVE 2024-10-29 오후 11_15_26 OpenBVE 2024-10-29 오후 11_15_31 OpenBVE 2024-10-29 오후 11_15_36 Please also fix the object error on Line 2 quickly. https://github.com/leezer3/OpenBVE/issues/700#issuecomment-1080053365 This person said that it is similar to the repeater syntax of bve5, and since it supports the bve5 route, I think it will work well.