-scriptlang launch option, and other vscript things
Quote from walropodes on June 22, 2011, 2:49 amHey!
I was browsing through Portal 2's client.dll, and saw that there's a launch option called "-scriptlang", and the languages I saw mentioned by the launch option were: squirrel, python, lua, and gamemonkey
I tried launching Portal 2 with "python", I can get to the main menu but when I try to launch a Valve map it crashes. This is to be expected, presumably because it's trying to use Squirrel scripts as Python. So I tried launching a custom map with no scripts, and it loads without crashing. I tried using the console command "script" which lets me use vscript commands in the console, and did this:
- Code: Select all
script print("Hello World!");But it prints an error message that says that the "script server is not running".
Is there a way to get other vscript languages going in Portal 2 or are we stuck with Squirrel?
Hey!
I was browsing through Portal 2's client.dll, and saw that there's a launch option called "-scriptlang", and the languages I saw mentioned by the launch option were: squirrel, python, lua, and gamemonkey
I tried launching Portal 2 with "python", I can get to the main menu but when I try to launch a Valve map it crashes. This is to be expected, presumably because it's trying to use Squirrel scripts as Python. So I tried launching a custom map with no scripts, and it loads without crashing. I tried using the console command "script" which lets me use vscript commands in the console, and did this:
- Code: Select all
script print("Hello World!");
But it prints an error message that says that the "script server is not running".
Is there a way to get other vscript languages going in Portal 2 or are we stuck with Squirrel?
