Error 1 The command "if not exist "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\Engine\bin\Release\" md "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\Engine\bin\Release\"xcopy /s /y "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\packages\ClearScript.V8.5.3.10.0\tools\native\x86\*.*" "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\Engine\bin\Release\"if not exist "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\Engine\bin\Release\" md "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\Engine\bin\Release\"xcopy /s /y "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\packages\ClearScript.V8.5.3.10.0\tools\native\amd64\*.*" "C:\Users\Bruce\Documents\GitHub\sphere-sfml\Engine\Engine\bin\Release\"" exited with code 4.
// from this: (line 147)if (command.start != null) { var parameters = []; parameters.push(scene); for (i = 0; i < command.arguments.length; ++i) { parameters.push(command.arguments[i]); } command.start.apply(commandContext, parameters);}// to this:if (command.start != null) { var parameters = []; parameters.push(scene); parameters.concat(command.arguments); command.start.apply(commandContext, parameters);}
The undefined battledef is odd though, the latest commit works fine in Sphere 1.5.
arguments: [].slice.call(arguments, 0),
RequireScript("Threads.js");function Test() { Threads.initialize(); Threads.createEntityThread(new Textbox("Hi, how are you?")); MapEngine("testmap.rmp", 60);}function Textbox(text) { this.wind = GetSystemWindowStyle(); this.font = GetSystemFont(); this.text = text;}Textbox.prototype.render = function() { this.wind.drawWindow(16, 16, GetScreenWidth(), 64); this.text.drawTextBox(16, 16, GetScreenWidth(), 64, 0, this.text);}Textbox.prototype.update = function() { if (IsAnyKeyPressed()) return false; else return true;}
Textbox.prototype.update = function() { if (IsKeyPressed(KEY_ENTER)) return false; else return true;}