From 8c6609943b1217735eaabcf77b273bee77554f89 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 25 Oct 2020 01:23:14 +0800 Subject: [PATCH] Dump scenario, kaetemi/ryzomclassic#155 --- ryzom/client/src/r2/dmc/client_edition_module.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ryzom/client/src/r2/dmc/client_edition_module.cpp b/ryzom/client/src/r2/dmc/client_edition_module.cpp index 6740dabfe..e388707ca 100644 --- a/ryzom/client/src/r2/dmc/client_edition_module.cpp +++ b/ryzom/client/src/r2/dmc/client_edition_module.cpp @@ -1154,6 +1154,15 @@ void CClientEditionModule::startingScenario(class NLNET::IModuleProxy * /* serve { ok = true; connectionState = "uiR2EDUploadScenario"; + +#if !FINAL_VERSION + string filename = CFile::findNewFile("scenario.rt.txt"); + COFile output(filename); + std::string ss; + rtDataPtr->serialize(ss); + output.serialBuffer((uint8*)ss.c_str(),(uint)ss.size()); + output.flush(); +#endif } else {