Logo

[5.0.12] Changing a theme's scoring

Register Log In Back To Forums

Post #1 · Posted at 2017-10-01 07:44:55pm 6.4 years ago

Offline RedAgent14
RedAgent14 Avatar Member
50 Posts
United States
Reg. 2014-08-20

I'm trying to change a theme's scoring script to include DDR A's scoring system. But whenever I edit the lua for scoring (99 Score.lua), the option is gone the next time I start the theme up. Is there something I'm forgetting to do that's making the game not recognize the edited lua?

Post #2 · Posted at 2017-10-01 09:38:47pm 6.4 years ago

Offline dbk2
dbk2 Avatar Member
332 Posts
Not Set
Reg. 2012-04-30

Is your Lua producing any errors?

You can turn on ShowThemeErrors by holding F3 and pressing F6, then holding F3 and pressing 8.

If you have ShowThemeErrors turned on and your theme has Lua errors, StepMania will display the error at the top of screen when the error occurs. This may help you locate and solve the problem.

Post #3 · Posted at 2017-10-01 10:52:27pm 6.4 years ago

Offline RedAgent14
RedAgent14 Avatar Member
50 Posts
United States
Reg. 2014-08-20


Last updated: 2017-10-01 10:52pm
https://imgur.com/a/VjwkT
That's the error I get. The cut off parts at the right are 'UserPrefScoringMode()': and (a null value)

Post #4 · Posted at 2017-10-01 11:37:27pm 6.4 years ago

Offline Kyzentun
Kyzentun Avatar Member
3,209 Posts
United States
Reg. 2008-02-20

"I'm honestly pissed off."
Most likely, you have a syntax error in 99 Score.lua, and won't see the error unless you find Logs/log.txt in the appdata folder. (scripts are loaded before the window is created, so any errors in script loading have nowhere to display)
silenttype01: Kyzentun is never harsh. He says it how it is.

GENERATION 24: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

Post #5 · Posted at 2017-10-18 05:47:46pm 6.4 years ago

Offline RedAgent14
RedAgent14 Avatar Member
50 Posts
United States
Reg. 2014-08-20

ok, I finally got around to reproducing the error to find it in the logs, and it shows:

00:00.558: Loading "/Themes/CyberiaStyle LAST APPROACH/Scripts/99 Score.lua" ...
/////////////////////////////////////////
00:00.558: WARNING: Lua runtime error: /Themes/CyberiaStyle LAST APPROACH/Scripts/99 Score.lua:101: '<eof>' expected near 'end'
/////////////////////////////////////////


I know what an EOF is, but I don't know where in the file it's being referred to (since notepad doesn't word wrap properly, meaning there is no line 101 when I edit it).

Post #6 · Posted at 2017-10-18 06:20:47pm 6.4 years ago

Offline dbk2
dbk2 Avatar Member
332 Posts
Not Set
Reg. 2012-04-30

Quote: RedAgent14
but I don't know where in the file it's being referred to (since notepad doesn't word wrap properly, meaning there is no line 101 when I edit it).

Sounds like you'd benefit from a text editor like SublimeText 3 or Atom or Notepad++.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 4% · Server Time: 2024-03-29 14:18:40
This page took 0.005 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language