Logo

[5.0.12] Changing a theme's scoring

Enregistré Connexion Retour aux forums

Post #1 · Posté à 2017-10-01 07:44:55pm il y a 6.6 années

Offline RedAgent14
RedAgent14 Avatar Member
50 Messages
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 · Posté à 2017-10-01 09:38:47pm il y a 6.6 années

Offline dbk2
dbk2 Avatar Member
332 Messages
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 · Posté à 2017-10-01 10:52:27pm il y a 6.6 années

Offline RedAgent14
RedAgent14 Avatar Member
50 Messages
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 · Posté à 2017-10-01 11:37:27pm il y a 6.6 années

Offline Kyzentun
Kyzentun Avatar Member
3,209 Messages
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 · Posté à 2017-10-18 05:47:46pm il y a 6.5 années

Offline RedAgent14
RedAgent14 Avatar Member
50 Messages
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 · Posté à 2017-10-18 06:20:47pm il y a 6.5 années

Offline dbk2
dbk2 Avatar Member
332 Messages
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++.
Enregistré Connexion Retour aux forums

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

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 6% · Database: 4% · Server Time: 2024-05-23 04:57:04
Page générée en 0.006 secondes.
Theme: starlight · Language: french
Reset Theme & Language