Page 1 of 1

Cant open Lua Console on newest version

Posted: Sat Dec 05, 2020 7:08 pm
by rurquiza
Is there anything different in this release from February? The default key for opening the Lua Console is not working, and I can't find it on bidding options. =/

Re: Cant open Lua Console on newest version

Posted: Sat Dec 05, 2020 7:14 pm
by nozmajner
It if fixed on master, it is bindable. Release will hopefully happen the coming weeks.
One might suggest, that the best course of action is to build master, so the loads of new things get tested a bit more.
But if you can't do that, in Documents/Pioneer/config.txt find the console binding line, and set it to Key48. That should put the console to 0 on the top numbers row

Re: Cant open Lua Console on newest version

Posted: Sat Dec 05, 2020 7:25 pm
by rurquiza
It works!!! Thank you very much!

Re: Cant open Lua Console on newest version

Posted: Sun Dec 06, 2020 6:16 pm
by rurquiza
Alright. The whole reason I wanted to access the lua console was to set custom time accelerations... I figured I can switch to any of the preset values by typing:

import("Game").SetTimeAcceleration(“10x”)

or 100x or 1000x.... but any other number won't work. How do I make it go to custom values like 30x or 60x ???

Re: Cant open Lua Console on newest version

Posted: Sun Dec 06, 2020 6:59 pm
by nozmajner
You can't as far as I know, the values are hardcoded.
If the reason for it is having 500-1000AU-ish distances in some systems, then you might want to target the other star for Hyperjump before you jump into the system.

Re: Cant open Lua Console on newest version

Posted: Mon Dec 07, 2020 4:37 pm
by rurquiza
No... just wanted to have more time acceleration options before the 100x, like 30x or 60x. But ok then, thanks!

Re: Cant open Lua Console on newest version

Posted: Mon Dec 07, 2020 6:43 pm
by impaktor
You need the game source code to do that, and re-compile. (src/Game.cpp might be a good place to start un-nesting the code).