This commit is contained in:
MegaMech 2025-12-15 12:27:48 -07:00
commit 950626d7a2
3 changed files with 3 additions and 3 deletions

View File

@ -64,9 +64,8 @@ void TrackBrowser::FindCustomTracks() {
track->ResourceName = info.ResourceName;
GetWorld()->SetCurrentTrack(std::move(track));
});
} else {
printf("ContentBrowser.cpp: Track '%s' missing required track files. Cannot add to game\n Missing %s/data_track_sections file\n", name.c_str(), dir.c_str());
printf("[TrackBrowser] Track '%s' missing required track files. Cannot add to game\n Missing %s/data_track_sections file\n", name.c_str(), dir.c_str());
}
}
}

View File

@ -357,7 +357,7 @@ namespace TrackEditor {
u16* ptr = &track->Props.PathSizes.unk0;
for (auto& path : paths) {
if (i >= ARRAY_COUNT(track->Props.PathTable2)) {
SPDLOG_INFO(" The game can only import 5 paths. Found more than 5. Skipping the rest\n");
SPDLOG_INFO(" The game can only import 5 paths. Found more than 5. Skipping the rest");
break; // Only 5 paths allowed. 4 track, 1 vehicle
}
ptr[i] = path.size();

View File

@ -351,6 +351,7 @@ bool IsTriangleWindingInverted() {
}
Track::Track() {
Props.SetText(Props.ResourceName, "mod:blank_track", sizeof(Props.ResourceName));
Props.SetText(Props.Name, "Blank Track", sizeof(Props.Name));
Props.SetText(Props.DebugName, "blnktrck", sizeof(Props.DebugName));
Props.SetText(Props.TrackLength, "100m", sizeof(Props.TrackLength));