Post #1 · Posted at 2013-07-01 05:45:54am 11.2 years ago
Hello, every stepmania players. Because my old account can't be accessible due to both I forogtten the password and I have forgotten the registerred e-mail. So I have to register a new account to ask a theme question:
Now I am creating an SM5 theme, Like of this:
(The Green Square Area)
(The Yellow Square Area)
How to solve the problem with the ratio in widescreen? I want to make the Stream display should not be ranout or fillover the lifemeter bar. Have it got any elites to get some points?
Now I am creating an SM5 theme, Like of this:
(The Green Square Area)
(The Yellow Square Area)
How to solve the problem with the ratio in widescreen? I want to make the Stream display should not be ranout or fillover the lifemeter bar. Have it got any elites to get some points?
Post #2 · Posted at 2013-07-02 04:10:53am 11.2 years ago
I suspect the problem has to do with the "container" image you've made and how you've chosen to render it.
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
Post #3 · Posted at 2013-07-02 10:42:41am 11.2 years ago
Post #4 · Posted at 2013-07-02 10:22:52pm 11.2 years ago
dbk2 | |
---|---|
Member | |
332 Posts | |
Not Set | |
Reg. 2012-04-30 | |
Do you only want speed modifiers or do you want ALL play modifiers (like... Reverse, Tornado, Little, etc.)?
Post #5 · Posted at 2013-07-03 04:34:33am 11.2 years ago
Quote: dbk2
Do you only want speed modifiers or do you want ALL play modifiers (like... Reverse, Tornado, Little, etc.)?
Just Speed modifiers please. It would be a Good place to start.
Post #6 · Posted at 2013-07-03 06:18:40am 11.2 years ago
2DXFTW | |
---|---|
Banned | |
21 Posts | |
Reg. 2013-06-29 | |
"meow meow rawr" |
I don't know how exactly to make a theme, but now since I've seen this thread, can anyone help me?
Post #7 · Posted at 2013-07-03 09:03:52am 11.2 years ago
SM MaxX | |
---|---|
Member+ | |
911 Posts | |
Reg. 2012-08-30 | |
"I play too much touhou" |
You'll need to be more specific than that
Post #8 · Posted at 2013-07-03 10:21:15am 11.2 years ago
2DXFTW | |
---|---|
Banned | |
21 Posts | |
Reg. 2013-06-29 | |
"meow meow rawr" |
Quote: SM MaxX
You'll need to be more specific than that
What do you mean?Post #9 · Posted at 2013-07-03 10:22:56am 11.2 years ago
SM MaxX | |
---|---|
Member+ | |
911 Posts | |
Reg. 2012-08-30 | |
"I play too much touhou" |
like, do you want to know how to make a theme in general or have specific theming questions or what?
Post #10 · Posted at 2013-07-03 10:26:03am 11.2 years ago
2DXFTW | |
---|---|
Banned | |
21 Posts | |
Reg. 2013-06-29 | |
"meow meow rawr" |
Quote: SM MaxX
like, do you want to know how to make a theme in general or have specific theming questions or what?
Mostly the bolded part in general.Post #11 · Posted at 2013-07-04 09:55:57am 11.2 years ago
zGHRs | |
---|---|
Member | |
36 Posts | |
Reg. 2013-07-01 | |
Quote: dbk2
I suspect the problem has to do with the "container" image you've made and how you've chosen to render it.
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
The SM Theming Wiki has a page on Sizing Commands here: http://kki.ajworld.net/wiki/Commands:Main
My guess is that you have the size of the Lua actor for the container graphic hardcoded to a value. You may want to make it more flexible, taking SM constants like SCREEN_WIDTH into consideration.
-- maybe you have something like this...?
LoadActor("container.png") .. {
InitCommand=cmd( zoomto, 200, 20; );
};
--maybe try something like this
LoadActor("container.png") .. {
InitCommand=cmd(zoomto, SCREEN_WIDTH/2 - 40, 20 );
};
I have got a new question, What file can we put this code to direct the LifeMeter Bar? Or I make the new lua to direct the LifemeterBar?
Post #12 · Posted at 2013-07-04 10:48:40am 11.2 years ago
Quote: zGHRs
What file can we put this code to direct the LifeMeter Bar? Or I make the new lua to direct the LifemeterBar?
The file you change depends on how you are coding your theme...
Are you making your own theme, or using someone else's and changing graphics?
If you are making your own theme, the code will be in the file that you made to load the lifebar frame graphic.
If you are using someone else's theme and changing graphics, you can search through their lua files to find which one has the name of your lifebar frame. What is your lifebar frame called? That's what you should look for in lua.
For example, if your lifebar frame was called lifebarframe.png then you should look for
LoadActor("lifebarframe")..{
somewhere in one of the ScreenGameplay lua files.
Post #13 · Posted at 2013-07-04 03:09:21pm 11.2 years ago
It's inside [StreamDisplay] that controls the size of streaming life bar.
Try this in your theme's metric.ini:
[StreamDisplay]
PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
local fItemWidth = ( 230 / numItems ) \
self:x( ((itemIndex-(numItems/2))*fItemWidth) + ( numItems / 2 ) ); \
self:zoomtowidth(fItemWidth); \
self:zoomtoheight(14);
end;
TextureCoordScaleX=-30
NumPills=26
Try this in your theme's metric.ini:
[StreamDisplay]
PillTransformFunction=function(self,offsetFromCenter,itemIndex,numItems) \
local fItemWidth = ( 230 / numItems ) \
self:x( ((itemIndex-(numItems/2))*fItemWidth) + ( numItems / 2 ) ); \
self:zoomtowidth(fItemWidth); \
self:zoomtoheight(14);
end;
TextureCoordScaleX=-30
NumPills=26