|
|
@@ -100,8 +100,8 @@ def raw_inputter():
|
|
|
set_defaults(inp, ['inf'])
|
|
|
params = [{"termination_time": float(inp[1])}]
|
|
|
elif inp[0] == "realtime":
|
|
|
- set_defaults(inp, ['inf', 1.0])
|
|
|
- params = [{"termination_time": float(inp[1]), "realtime_scale": float(inp[2])}]
|
|
|
+ set_defaults(inp, [1.0, 'inf'])
|
|
|
+ params = [{"realtime_scale": float(inp[1]), "termination_time": float(inp[2])}]
|
|
|
elif inp[0] == "small_step":
|
|
|
set_defaults(inp, ['inf'])
|
|
|
params = [{"termination_time": float(inp[1])}]
|
|
|
@@ -127,7 +127,7 @@ def raw_inputter():
|
|
|
print("Breakpoint removal requires 2 parameters!")
|
|
|
continue
|
|
|
# Merge together the final part again
|
|
|
- inp = [inp[0], inp[1], " ".join(inp[2:-2]).replace("\\n", "\n"), get_bool(inp[-2]), get_bool(inp[-1])]
|
|
|
+ inp = [inp[0], inp[1], " ".join(inp[2:-2]).replace("\\n", "\n").replace('\\t', '\t'), get_bool(inp[-2]), get_bool(inp[-1])]
|
|
|
print("Generated parameters: " + str(inp))
|
|
|
params = inp[1:]
|
|
|
elif inp[0] == "del_breakpoint":
|
|
|
@@ -204,7 +204,7 @@ def raw_inputter():
|
|
|
continue
|
|
|
params.insert(0, action)
|
|
|
print "Console sending input to the Modelverse! %s" % params
|
|
|
- controller.addInput(Event("mv_input", "input", params))
|
|
|
+ controller.addInput(Event("mv_input", "input", [json.dumps(params)]))
|
|
|
|
|
|
input_thread = threading.Thread(target=raw_inputter)
|
|
|
input_thread.daemon = True
|