The most frequent problems after installing Cuxial Dance Class, with the cause and the fix for each one.
The resource does not start
Cause. A dependency is missing or starts later. Cuxial Dance Class needs ox_lib, oxmysql, cuxial_bridge and cuxial_emotes.
Fix. Start the dependencies first:
ensure ox_lib
ensure oxmysql
ensure cuxial_bridge
ensure cuxial_emotes
ensure cuxial_danceclass"No dances available in the catalog" when starting a dance
Cause. The dance catalog of Cuxial Emotes could not be read. The console shows [cuxial_danceclass] no se pudo leer el catálogo de bailes de cuxial_emotes.
Fix. Check that cuxial_emotes is complete and starts before cuxial_danceclass. If its files are incomplete, copy it again from the original package.
/danceclass does nothing, or the cursor appears without a panel
Cause. The interface is not loading. The folder web/dist is missing or incomplete, usually after a partial upload.
Fix. Make sure web/dist/index.html and the folder web/dist/assets exist inside the resource. If they do not, copy the resource again from the original package and restart the server.
"You can't teach dance classes"
Cause. instructor.mode is 'job' and the player's job is not in instructor.jobs, or it is 'ace' and the player lacks the permission in instructor.ace.
Fix. Add the job to instructor.jobs, grant the ACE permission, or set instructor.mode = 'everyone'.
"You must be inside a dance studio"
Cause. rooms.anywhere is false and the centre of the drawn zone is outside every studio in rooms.studios. With an empty studios list, no class can be opened at all.
Fix. Add your studios to rooms.studios with their coordinates and radius, or set rooms.anywhere = true.
The zone is rejected when opening the class
Cause. One of these:
- It has fewer points than
rooms.zone.minPoints. - Its farthest point is more than
rooms.zone.maxRadiusmetres from its centre. - It overlaps another open class.
Fix. Draw the zone again, smaller or further away. Raise rooms.zone.maxRadius if your studios need bigger zones.
"The cuxial_bridge zone creator is not available"
Cause. The installed version of Cuxial Bridge has no zone creator.
Fix. Update cuxial_bridge to the latest version and restart the server.
A player walks into the zone and does not join
Cause. One of these:
- The class has already started. Students can only join before the first dance.
- The class is full.
- The player is already in another class, or is the instructor of this one.
- The class has a fee. The player has to press E while the prompt is on screen, and needs the money in the account set in
rooms.fee.account.
Fix. Check the points above. The player can also join with /danceclass join inside the zone, and /danceclass debug prints the classes detected around them to the F8 console.
F6 does not start the dance
Cause. One of these:
- The player is not the instructor of a class.
- A dance is still in progress.
- There are fewer students than
class.minStudents. - The class already reached
class.maxRounds. - The player has bound the key to something else.
instructor.nextKeyis only the default for players who have never joined.
Fix. Use /danceclass next or the button in the panel, or rebind the key in the GTA key settings.
Dances give no gym points
Cause. One of these:
- Cuxial Gym is not running. The script looks for it under the resource name
CuxialGym, whichcuxial_gymprovides. - The student's accuracy was below
points.minAccuracy. - The student already reached
points.maxPerClassin this class. points.skillis not a skill name Cuxial Gym accepts.
Fix. Start cuxial_gym before cuxial_danceclass and check the points block. Without Cuxial Gym the rest of the script works and no skill is raised.
A student did not get the fee back
Cause. One of these:
rooms.refundIfNoRoundisfalse.- A dance had already started. Fees are only refunded while the class has not danced yet.
Fix. This is intended. Fees are refunded while the class has not danced yet and rooms.refundIfNoRound is true.
The history stays at zero
Cause. One of these:
- The class was closed without any dance. Only classes with at least one dance are saved.
- The student left before the class ended. Only the students present at the end are saved.
- The table
cuxial_danceclass_historycould not be created. The console shows[cuxial_danceclass] error creando la tabla.
Fix. For the table, check the oxmysql errors in the server console when the resource starts. The database user needs permission to create tables.
Difficulty or rank names appear in another language
Cause. The label fields of difficulties and ranks are written in shared/config.lua.
Fix. Rewrite those labels in the language of your server.
Texts appear in the wrong language
Cause. The script follows the ox:locale convar.
Fix. Set it in server.cfg and restart. en and es are included:
setr ox:locale "en"