Page 1 of 1

How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 2:57 pm
by DKC ambience
Hi, I recently realized that there is an option called: level options. And this option contains very good elements like putting TIME and DISABLING CONTROLS, but ......

These options are disabled, and I want to be able to use them, since my world doesn't have so much sense without time or skills. Is it possible to enable these options? :?:

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 3:12 pm
by Emral
In luna.lua:

local timer = require("timer")
timer.activate(SECONDS)

SECONDS should be the number that appears at the start in the corner. It defaults to 500. So if you leave it out and just have timer.activate(), the timer will start counting down from 500.

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 3:18 pm
by Cedur
So I guess these options are supposed to be implemented at a later time?

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 3:35 pm
by ElectriKong
Those options are for the PGE engine and have yet to be implemented in SMBX, hence they are greyed out.

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 3:55 pm
by DKC ambience
it didn't work, but thanks anyway xD

I think the options are not enabled, because at no time have I seen SMBX 2.0 videos with the time option.

edit: And yes, I hardly realize that the options are disabled.

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 3:56 pm
by Emral
DKC ambience wrote:
Thu Sep 12, 2019 3:55 pm
it didn't work, but thanks anyway xD

I think the options are not enabled, because at no time have I seen SMBX 2.0 videos with the time option.
My thing didn't work? I wrote the timer library and tested it, so that's curious. My suspicion is that your lua code isn't running cause the file is either named wrong or is in the wrong location. A screenshot of the folder it's in would help.

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 4:05 pm
by DKC ambience
Enjl wrote:
Thu Sep 12, 2019 3:56 pm
DKC ambience wrote:
Thu Sep 12, 2019 3:55 pm
it didn't work, but thanks anyway xD

I think the options are not enabled, because at no time have I seen SMBX 2.0 videos with the time option.
My thing didn't work? I wrote the timer library and tested it, so that's curious. My suspicion is that your lua code isn't running cause the file is either named wrong or is in the wrong location. A screenshot of the folder it's in would help.
yes, or the version I have is something weird or I'm doing totally wrong...



Image

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 4:23 pm
by Emral
That's not a screenshot of the folder, and it says the file is just called "luna", which makes me suspicious.

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 9:08 pm
by DKC ambience
Enjl wrote:
Thu Sep 12, 2019 4:23 pm
That's not a screenshot of the folder, and it says the file is just called "luna", which makes me suspicious.
Oh true, sorry xD

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 9:18 pm
by Emral
... no screenshot? Alright. I'll elaborate on my previous last sentence then. As you can see, the header of notepad says it's called "luna". Please open the save dialog and make sure the file is called "luna.lua", not "luna" or "luna.lua.txt". If you got the name right and the file is saved in the right location (the level folder), then your code will work.

Re: How i put the time in SMBXPal 2.0?

Posted: Thu Sep 12, 2019 9:41 pm
by DKC ambience
I think it worked, I hope everything goes well lol