Skip to content

All Comments

17361 to 17380 of 19724

Filter comments

The "What Did You Just Do In NoLimits" Thread
NoLimits Coaster

Have a look at this, peeps, and deem if it's worth finishing. I have 2nd car view and front view POVs in the video. I was hoping to generate more swing. There's a tiny bit, and I think it's fun, but I'd like to see what you all think (suspended coaster). It's intended to be a modern suspended coaster. Probably from Vekoma, but I didn't design with any specific manufacturer/designers in mind (Model is FVD, btw).

https://youtu.be/q1j9nn4o57c

View comment
Script for operator panel exchange
Scripting

You can communicate with NL2 using its telemetry server. Here's a quick demonstration how this can be done in Python:

The demonstration Python program text:

import socket
import struct

TCP_IP = '127.0.0.1'
TCP_PORT = 15151
RECEIVE_BUFFER_SIZE = 1024

# see https://docs.python.org/3/library/struct.html#format-characters
# and
# NoLimits 2/help/pages/telemetry.html#messageformat
no_data_message_struct = struct.Struct('!cHIHc')

with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as nl2_connection:
    nl2_connection.connect((TCP_IP, TCP_PORT))

    # idle message (id 0) with request ID 42
    my_message = no_data_message_struct.pack(b'N', 0, 42, 0, b'L')

    nl2_connection.send(my_message)
    received_data = nl2_connection.recv(RECEIVE_BUFFER_SIZE)

_, id, request_id, _, _ = no_data_message_struct.unpack(received_data)
print("raw", repr(received_data))
print("message id", id)
print("request id", request_id)

If you want to communicate with a NL2 script, that's not possible by using the telemetry server for now, but maybe in the future.

View comment
17361 to 17380 of 19724