Forums » Themes » Few problems while editing theme

Okay, I have few problems questions.

First thing - version StepMania 5 beta 3. Game mode - Pump.

http://i58.tinypic.com/2evyuqr.jpg

1. MusicWheel seems to not be straight. Provided code in default metrics.ini didn't work (game crashed). My current code:
ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems)

self:x(offsetFromCenter);
self:y( offsetFromCenter*46 );
end


2. I can't move cdtitle.
Tried
CDTitleX=SCREEN_CENTER_X

CDTitleY=SCREEN_TOP

or
CDTitleX=SCREEN_CENTER_X+400

CDTitleY=SCREEN_TOP+400

and it stayed in same place.

3. I can't get Groove Radar to work. I'm not even sure if this works with Pump game mode. Tried copying it from other theme (DDR X2 theme) along with all metric data, graphics and lua files. Didn't work.

4. I'm not sure how to align text on MusicWheel. Currently it's aligning to left and I would like to make it stick to center.

Last edited: 24 March 2014 6:00pm

Reply
I can't get to 3 and 4 at the moment, but here's the first two (well, 1, mostly) :
1) offsetFromCenter is just that - the offset from the center. So when you set X to that, it tilts a bit. use self:x(0) or leave the line out and it should be fixed.
2) I think the cdtitle is actually a proxy or something in ScreenSelectMusic decorations.
Reply
I can't get to 3 and 4 at the moment, but here's the first two (well, 1, mostly) :
1) offsetFromCenter is just that - the offset from the center. So when you set X to that, it tilts a bit. use self:x(0) or leave the line out and it should be fixed.
2) I think the cdtitle is actually a proxy or something in ScreenSelectMusic decorations.

Yep, number one works like charm.

About two? I don't quite understand, would be great if you could reiterate this. I edited it in both metrics of theme and _fallback and it still is in same place.
Reply
Oh and another thing.

5. Where can I find bits about those little "S" and "W" (speed ups and warps?). Don't know how it is named in metrics.
Reply
SegmentDisplay under [ScreenSelectMusic]
Reply
2. I can't move cdtitle.
If you're editing the default theme, the cdtitle position is set in BGAnimations/ScreenSelectMusic decorations/default.lua
Look for this:

t[#t+1] = Def.ActorFrame {
OnCommand=cmd(draworder,105;x,SCREEN_CENTER_X-76;y,SCREEN_CENTER_Y-72;zoomy,0;sleep,0.5;decelerate,0.25;zoomy,1;SetUpdateFunction,CDTitleUpdate);
OffCommand=cmd(bouncebegin,0.15;zoomx,0);
Def.Sprite {
Name="CDTitle";
InitCommand=cmd(y,19);

"x,SCREEN_CENTER_X-76;y,SCREEN_CENTER_Y-72" is the part that is positioning the frame the cdtitle is in, then "y,19" places the cdtitle at y=19 inside that frame.
< cybik> til Kyzentun fixes bugs for breakfast
--
< maxvg1> shakesoda: then why do i still play lol
<@shakesoda> because you're an ITG player. And thus, a masochist
--
<@shakesoda> Kyzentun: I think you might need to put down the meshes for a bit
Reply
1.Like this.

ItemTransformFunction=function(self,offsetFromCenter,itemIndex,numItems)
self:x(0);
self:y( offsetFromCenter*46 );
end

2.Open default/BGAnimations/ScreenSelectMusic decorations/default.lua.
Find this

t[#t+1] = Def.ActorFrame {
OnCommand=cmd(draworder,105;x,SCREEN_CENTER_X-76;y,SCREEN_CENTER_Y-72;zoomy,0;sleep,0.5;decelerate,0.25;zoomy,1;SetUpdateFunction,CDTitleUpdate);
OffCommand=cmd(bouncebegin,0.15;zoomx,0);
Def.Sprite {
Name="CDTitle";
InitCommand=cmd(y,19);
--OnCommand=cmd(draworder,106;shadowlength,1;zoom,0.75;diffusealpha,1;zoom,0;bounceend,0.35;zoom,0.75;spin;effectmagnitude,0,180,0);
};
};

Edit those.
done.

3.Open default/BGAnimations/ScreenSelectMusic decorations/default.lua.
ADD THESE:
t[#t+1] = StandardDecorationFromFileOptional( "GrooveRadar", "GrooveRadar" );


If you have copied ScreenSelectMusic GrooveRadar in Graphics folder already,just edit the metrics now,it will work.

4.Open metrics.ini

[TextBanner]
TitleOnCommand=horizalign,left;shadowlength,1;
SubtitleOnCommand=horizalign,left;shadowlength,1;
ArtistOnCommand=horizalign,left;shadowlength,1;skewx,-0.2
ArtistPrependString=""

and edit

[TextBanner]
TitleOnCommand=horizalign,center;shadowlength,1;
SubtitleOnCommand=horizalign,center;shadowlength,1;
ArtistOnCommand=horizalign,center;shadowlength,1;skewx,-0.2
ArtistPrependString=""

then if you find all words are displaying wrong...just add x,????;y,???? for them.

5.See freem's post.XD

Last edited: 25 March 2014 11:17pm

Welcome,Thememaniaians./来吧,主题狂们。
Contact me!QQ:1030110910/欢迎与我联系,QQ:1030110910
Reply

It's starting to look how I wanted it to look :3


Thank you guys for help.

Anyway, next things:
6. Is there way to remove black background under "Stage 1"?
7. How am I supposed to add background under the radar?
Reply