Bemanistyle #1 In music game coverage - Dance Dance Revolution, Beatmania, IIDX, Popn Music Sponsored Advertisement

Go Back   Bemanistyle [dot] com Forums > Bemani Simulation > Theme Discussion
Tags: , , ,

Closed Thread
 
Thread Tools

[stepmania 4] WELCOME TO THE FUTURE OF STEPMANIA THEMING
Old 10-10-2006, 07:10 PM   #1
AJ 187
also known as TOSE
 
AJ 187's Avatar
 
AJ 187 is offline
Join Date: Jun 2006
Location: Chicago
Posts: 693
Marketplace Rating: 0
Tokens: 346.27
Bank: 863,524,827.79
Total Tokens: 863,525,174.06
Donate Tokens
Send a message via PM  to AJ 187
Default [stepmania 4] WELCOME TO THE FUTURE OF STEPMANIA THEMING

Code:
local t =
Def.ActorFrame {
	children = {
		LoadActor("white.png")() .. {
			OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;stretchto,SCREEN_LEFT,SCREEN_TOP,SCREEN_RIGHT,SCREEN_BOTTOM)
		},
		LoadActor("shadow (32bpp).png")() .. {
			OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;diffuse,0,0,0,1;addx,20;addy,6;linear,8;addx,-40)
		},
		LoadActor("stepmania (dither).png")() .. {
			File="stepmania (dither).png",
			OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y),
		}
	}
}

return t
Hi this is Lua. All the BGAnimations are done in it now instead of XML.

:psyduck:

edit: no I don't know why t. (fending off that question before it starts)
edit to this edit: t is arbitrary, it can be anything.

edit 2: I actually don't know why I posted this, aside from this being a friendly notification of sorts.

edit 3: I will take this time to also upgrade progress on beat man THE THEME. It's on hold until SM4 becomes stable (read: first alpha release; right now we get to change the default theme from XML to Lua. This comes RIGHT AFTER Glenn finished up INI -> XML.) Whee.

edit 4: I didn't spearhead this effort so don't kill the messenger ok?
__________________

I am not in any way endorsed by the Royal British Legion.
if you wish to leave a record of your call, please state your message at the sound of the tone. *beep* buh? huh? (GTA2 forever)

Last edited by AJ 187 : 10-16-2006 at 10:46 AM. Reason: updated example in line with my latest post (as of 10/16)
 

Old 10-10-2006, 07:30 PM   #2
laser123454321
Laser123454321.Com
 
laser123454321's Avatar
 
laser123454321 is offline
Join Date: Jun 2006
Location: THE BOWLES OF . . . The Colony, Tx
Posts: 175
Marketplace Rating: 0
Tokens: 1,389.09
Bank: 188,730.82
Total Tokens: 190,119.91
Donate Tokens
Send a message via PM  to laser123454321
Default

WHY?

Ok, so now all bganimations are in Lua?

We have to learn a language inorder to theme for sm 4.0?

Most of our designers wont like that too much.
__________________
My webpage: http://www.laser123454321.com Sig made by Nerosuferoth
 

Old 10-10-2006, 07:34 PM   #3
AJ 187
also known as TOSE
 
AJ 187's Avatar
 
AJ 187 is offline
Join Date: Jun 2006
Location: Chicago
Posts: 693
Marketplace Rating: 0
Tokens: 346.27
Bank: 863,524,827.79
Total Tokens: 863,525,174.06
Donate Tokens
Send a message via PM  to AJ 187
Default

The fun part is that it seems easy to do XML -> Lua. However since only three to six people or so have been theming for SM4... :x
__________________

I am not in any way endorsed by the Royal British Legion.
if you wish to leave a record of your call, please state your message at the sound of the tone. *beep* buh? huh? (GTA2 forever)
 

Old 10-10-2006, 09:52 PM   #4
TougaKiryuu
//badass freakin' overlord
 
TougaKiryuu's Avatar
 
TougaKiryuu is offline
Join Date: Jun 2006
Location: Greer, SC
Posts: 2,202
Marketplace Rating: 0
Tokens: 6,019.80
Bank: 4,252,972.77
Total Tokens: 4,258,992.57
Donate Tokens
Send a message via PM  to TougaKiryuu
Default

lol, wtg stepman team! now I hate you even more (except for AJ) and am even more glad I forked code
__________________
 

Old 10-16-2006, 01:20 AM   #5
Takeru1412
//bemanistyle::[User]
 
Takeru1412's Avatar
 
Takeru1412 is offline
Join Date: Sep 2006
Location: Imus, Philippines
Posts: 11
Marketplace Rating: 0
Tokens: 0.00
Bank: 301.03
Total Tokens: 301.03
Donate Tokens
Send a message via PM  to Takeru1412
Default

I guess that will give themers a lot more freedom (and headaches).

Will that be implemented on the next 'intermediate' release?



*menu left/right message command in music select screen is a must*
__________________
======Takeru's Stepmania Files======
SMCHAR: Cloud v1.1 + Tifa v1 + Yuffie v1
SM39THEME: 3rdMixv.20>Laser123454321

真実は何時も一つ!
 

Old 10-16-2006, 10:39 AM   #6
AJ 187
also known as TOSE
 
AJ 187's Avatar
 
AJ 187 is offline
Join Date: Jun 2006
Location: Chicago
Posts: 693
Marketplace Rating: 0
Tokens: 346.27
Bank: 863,524,827.79
Total Tokens: 863,525,174.06
Donate Tokens
Send a message via PM  to AJ 187
Default

Yes it will be implemented on the next release. Also, I think it's changed a bit:

[00:56:55] CIA-9> Glenn Maynard * stepmania/Themes/default/Scripts/ActorDef.lua:
[00:56:55] CIA-9> Always use a real type with Def; don't say "Def.Layer". If you don't
[00:56:55] CIA-9> know the type you're using, you should be using LoadActor.

For that, we go to Themes\default\Graphics\ScreenWithMenuElements stage\default.lua:

Code:
return Def.ActorFrame {
	children = {
		LoadActor("life graph")(PLAYER_1) .. {
			InitCommand = cmd(x,SCREEN_LEFT+96;y,SCREEN_CENTER_Y+91),
		},
		LoadActor("life graph")(PLAYER_2) .. {
			InitCommand = cmd(x,SCREEN_LEFT-96;y,SCREEN_CENTER_Y+91),
		},
	}
}
So yeah, I like this better than Def.Layer.

Oh, and for completeness in understanding the code above, here's life graph.lua:

Code:
local Player = ...
assert( Player );

local t = Def.ActorFrame {
children = {
	Def.GraphDisplay {
		OnCommand=function(self)
			local Stats = STATSMAN:GetCurStageStats();
			self:LoadFromStats( Stats, Stats:GetPlayerStageStats(Player) )
		end,
		Texture = LoadActor("LifeGraph p1")() .. {
			InitCommand=cmd(ztest,1;diffusealpha,0),
			OnCommand=cmd(linear,0.5;diffusealpha,1),
			OffCommand=cmd(linear,0.5;diffusealpha,0),
		},
		Line = Def.GraphLine { InitCommand=cmd(hidden,1) },
		Body = Def.GraphBody { InitCommand=cmd(zwrite,1;blend,"BlendMode_NoEffect") },
		SongBoundary = Def.Actor { InitCommand=cmd(hidden,1) },
		Barely = Def.Actor { InitCommand=cmd(hidden,1) },
	}
}
}
return t
__________________

I am not in any way endorsed by the Royal British Legion.
if you wish to leave a record of your call, please state your message at the sound of the tone. *beep* buh? huh? (GTA2 forever)
 

Old 10-17-2006, 11:19 AM   #7
DrkShadowSonic
//bemanistyle::[Member]
 
DrkShadowSonic's Avatar
 
DrkShadowSonic is offline
Join Date: Jul 2006
Location: Ohio
Posts: 56
Marketplace Rating: 0
Tokens: 249.52
Bank: 511.26
Total Tokens: 760.78
Donate Tokens
Send a message via PM  to DrkShadowSonic
Default

omg.. that just confuses the hell out of me...
dout now i'll ever come back to themeing.
but hey. if ppl are willing to use this new stuff, than awsome.
and if Takeru is right about more freedoms thats great.
__________________
 

Old 10-17-2006, 02:08 PM   #8
Izam
//bemanistyle::[Member]
 
Izam is offline
Join Date: Jun 2006
Posts: 70
Marketplace Rating: 0
Tokens: 0.00
Bank: 101,903.70
Total Tokens: 101,903.70
Donate Tokens
Send a message via PM  to Izam
Default

With every great advancement comes another greater headache to understand it. While I've never had the attention span to finish anything I worked on for Stepmania I am interested in seeing the full potential of this change (when someone finally takes the time to sit down and hammer out all the finer points).
 

Old 10-17-2006, 05:10 PM   #9
DrkShadowSonic
//bemanistyle::[Member]
 
DrkShadowSonic's Avatar
 
DrkShadowSonic is offline
Join Date: Jul 2006
Location: Ohio
Posts: 56
Marketplace Rating: 0
Tokens: 249.52
Bank: 511.26
Total Tokens: 760.78
Donate Tokens
Send a message via PM  to DrkShadowSonic
Default

Quote:
Originally Posted by Izam View Post
I am interested in seeing the full potential of this change (when someone finally takes the time to sit down and hammer out all the finer points).

and when someone does that, they should take the time to write up a tutorial for other people to follow.
cuz even with the old themeing method, there was a tutorial on plasmadance and there was bganimation explanations and stuff like that on here.

i think someone should start workin on something like that when a stable sm4 comes out
__________________
 

Old 05-28-2007, 04:02 PM   #10
AJ 187
also known as TOSE
 
AJ 187's Avatar
 
AJ 187 is offline
Join Date: Jun 2006
Location: Chicago
Posts: 693
Marketplace Rating: 0
Tokens: 346.27
Bank: 863,524,827.79
Total Tokens: 863,525,174.06
Donate Tokens
Send a message via PM  to AJ 187
Default

bumping this because XML support has been removed as of 5/26/2007, making Lua de facto and de jure in SM4.

also all of the previous examples in this thread are outdated. Currently working on a guide for XML->Lua.

edit:
Quote:
Originally Posted by Takeru1412 View Post
*menu left/right message command in music select screen is a must*
I guess I now have the knowledge to answer this question.
MenuLeftP1MessageCommand (works for P2, MenuUp, MenuDown, MenuLeft, MenuRight as well)

edit2:
[21:55:53] Wolfman2000> Just played L9. It had a lot of the old style .ini and .xml transitions (mostly .ini). After accepting the errors of invalid class, the song went through smoothly.

They might work after all, who knows.

Last edited by AJ 187 : 05-28-2007 at 09:59 PM.
 

Old 05-28-2007, 09:05 PM   #11
RenegadePrime
//bemanistyle::[User]
 
RenegadePrime is offline
Join Date: Jun 2006
Location: Pearl Harbor, HI
Posts: 35
Marketplace Rating: 0
Tokens: 264.71
Bank: 0.00
Total Tokens: 264.71
Donate Tokens
Send a message via PM  to RenegadePrime
Default

[rant] OH NO, NOT LUA! [/rant]


Oh well, this is one of the many reasons that Uncle Sam created the six-month deployment.
 

Old 05-28-2007, 09:51 PM   #12
revenGmyass
//bemanistyle::[Regular]
 
revenGmyass's Avatar
 
revenGmyass is offline
Join Date: Aug 2006
Location: Cinere, Jakarta
Posts: 520
Marketplace Rating: 4
Tokens: 1,567.83
Bank: 0.00
Total Tokens: 1,567.83
Donate Tokens
Send a message via PM  to revenGmyass
Default

Quote:
Originally Posted by DrkShadowSonic View Post
omg.. that just confuses the hell out of me...
lol yeah, i was thinking the same thing, i guess its only because its new and we dont know much about it.
 

Old 05-28-2007, 10:40 PM   #13
Akkaraju
//get::[ACCESS]
 
Akkaraju's Avatar
 
Akkaraju is offline
Join Date: Jun 2006
Location: on my couch
Posts: 1,166
Marketplace Rating: 1
Tokens: 3,656.54
Bank: 5,134,269.49
Total Tokens: 5,137,926.03
Donate Tokens
Send a message via PM  to Akkaraju
Default

Lua has been around since the early 90s... it's just now they've decided to use it as a new language for themes. It's not new at all =P
 

Old 05-29-2007, 06:10 AM   #14
tweak_
//bemanistyle::[Member]
 
tweak_ is offline
Join Date: Jun 2006
Posts: 237
Marketplace Rating: 0
Tokens: 179.64
Bank: 218,093.12
Total Tokens: 218,272.76
Donate Tokens
Send a message via PM  to tweak_
Default

Honestly, its not that hard. If you can slightly understand the xml format, you can understand this.

For example, this xml:
Code:
<ActorFrame>
   <children>
      <Layer
         Type="AutoActor"
         File="@BG.png"
         OnCommand="x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoom,2;spin;EffectMagnitude,0,0,1;"
         />
</children>
</ActorFrame>
Becomes this in lua:
Code:
local t = Def.ActorFrame{
      LoadActor("BG.png") .. {
      OnCommand=cmd(x,SCREEN_CENTER_X;y,SCREEN_CENTER_Y;zoom,2;spin;effectmagnitude,0,0,1.5;);
      };
};
return t;
 

Old 05-29-2007, 06:48 AM   #15
k⁄⁄eternal
lesbian_ for raven_
 
k⁄⁄eternal's Avatar
 
k⁄⁄eternal is online now
Join Date: Jul 2005
Donated: $0.59 ?
Posts: 4,819
Marketplace Rating: 2
Tokens: 230.44
Bank: 195,900,971.07
Total Tokens: 195,901,201.51
Donate Tokens
Send a message via PM  to k⁄⁄eternal
Default

Hah. Honest truth? We're all too "lazy" to learn LUA, regardless of how easy it may or may not be. In this case perhaps I should clarify the usage of lazy, though.

1. We have tons of other stuff to do. Schoolwork, jobs, whatever.

2. We aren't paid to work on these things.

3. We're tired of SM devs changing their minds about important points of SM4's direction every few builds. XML removed? Why is this necessary?

4. There still isn't enough of an improvement to justify the "upgrade". Inertia, simple principle.

5. Largely due to the above, we generally aren't motivated to do the whole LUA shit.

It's easy to dickwag about how your theme is totally on the bleeding edge of SM development, but honestly? Almost all themes for SM4 right now suck. They are ugly. I don't care if you implemented six amazing new features, if your theme looks like crap, it sucks.

I've said this before, but people have been and probably will still be too thick to get it. Theming is about aesthetics, not about your ability to implement all the latest bloat into your code. This should be obvious. For example, we like Photoshop because it expands our artistic possibilities, not simply because it's a fancy tool with a big feature list. If you make a painting the oldschool way, nobody's going to bitch about your lack of fancy hardware, at least not if your painting is good.

Another point which people just don't seem to get? This whole LUA deal isn't implemented for us. Projects like ITG (Pump PRO, anyone?), things that make (it make) money are driving SM development. This flexibility is more work than it's worth for the average themer who is putting spare time on the line, but when you have a commercial project, there's much more motive to burn time on these things.

Feel free to believe that SM4 gives your genitalia those few extra centimeters. It certainly isn't doing much for your theming, and isn't going to until SM development becomes geared more toward accessibility... and we all know that isn't happening.
__________________
 
Closed Thread



Go Back   Bemanistyle [dot] com Forums > Bemani Simulation > Theme Discussion
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Sponsored Advertisement



All times are GMT -6. The time now is 02:18 AM.

vBulletin skin developed by: eXtremepixels
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
| Home | Register | FAQ | Members List | Calendar | Today's Posts | Search | New Posts |