Newbie Spellweaver
- Joined
- Jul 31, 2013
- Messages
- 99
- Reaction score
- 2
Can someone pass me the link of any tutorial of how to edit the data.enc? or explain me? Thank you.
Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!
Join Today!how this code ??
Code://--------------------------------------## // Game: CABAL Online // File Format: Data.ENC // Description: Adds a text entry and adjusts the chunk size accordingly. //--------------------------------------## // Author: Yamachi // Team: Forge // Website: http://forge-dev.com //--------------------------------------## Assert(exists(estType), "No template results found. Please run the appropriate template before attempting to run this script again."); Assert(estType == "Data.ENC", "File format not supported."); int chunk = InputNumber("Please choose the chunk to add a text entry to.", "Chunk (1 = EFX, 2 = WAV):", "1"); Assert(index != BAD_VALUE, "No chunk was selected."); Assert(0 < index < 3, "Invalid chunk specified."); string entry = InputString("Please provide the text to insert.", "Text:", ""); Assert(entry != "", "No text specified."); int64 start; if (chunk == 1) { start = startof(WAV); } else { start = FileSize(); } InsertBytes(start, 2 + Strlen(entry)); WriteShort(start, Strlen(entry)); WriteString(start + 2, entry); if (chunk == 1) { EFX.chunk_size += 2 + Strlen(entry); } else { WAV.chunk_size += 2 + Strlen(entry); } // Refresh RunTemplate("Cabal_data.enc.bt");
I know how to use it, I know it does with data.enc because I ran this script and gave an error
ran the usual script data.enc and then ran this script and gave the error
//--------------------------------------##
// Game: CABAL Online
// File Format: Data.ENC
// Description: Adds a text entry and adjusts the chunk size accordingly.
//--------------------------------------##
// Author: Yamachi
// Team: Forge
// Website:You must be registered to see links
//--------------------------------------##
Assert(exists(estType), "No template results found. Please run the appropriate template before attempting to run this script again.");
Assert(estType == "Data.ENC", "File format not supported.");
int chunk = InputNumber("Please choose the chunk to add a text entry to.", "Chunk (1 = EFX, 2 = WAV):", "1");
Assert(chunk != BAD_VALUE, "No chunk was selected.");
Assert(0 < chunk < 3, "Invalid chunk specified.");
string entry = InputString("Please provide the text to insert.", "Text:", "");
Assert(entry != "", "No text specified.");
int64 start;
if (chunk == 1) {
start = startof(WAV);
} else {
start = FileSize();
}
InsertBytes(start, 2 + Strlen(entry));
WriteShort(start, Strlen(entry));
WriteString(start + 2, entry);
if (chunk == 1) {
EFX.chunk_size += Strlen(entry);
} else {
WAV.chunk_size += Strlen(entry);
}
// Refresh
RunTemplate("Cabal_data.enc.bt");
// Refresh
RunTemplate("Cabal_data.enc.bt")
//--------------------------------------##
// Game: CABAL Online
// File Format: Data.ENC
// Description: Adds a text entry and adjusts the chunk size accordingly.
//--------------------------------------##
// Author: Yamachi
// Team: Forge
// Website:You must be registered to see links
//--------------------------------------##
Assert(exists(estType), "No template results found. Please run the appropriate template before attempting to run this script again.");
Assert(estType == "Data.ENC", "File format not supported.");
int chunk = InputNumber("Please choose the chunk to add a text entry to.", "Chunk (1 = EFX, 2 = WAV):", "1");
Assert(chunk != BAD_VALUE, "No chunk was selected.");
Assert(0 < chunk < 3, "Invalid chunk specified.");
string entry = InputString("Please provide the text to insert.", "Text:", "");
Assert(entry != "", "No text specified.");
int64 start;
if (chunk == 1) {
start = startof(WAV);
} else {
start = FileSize();
}
InsertBytes(start, 2 + Strlen(entry));
WriteShort(start, Strlen(entry));
WriteString(start + 2, entry);
if (chunk == 1) {
EFX.chunk_size += Strlen(entry);
} else {
WAV.chunk_size += Strlen(entry);
}
// Refresh
RunTemplate("Cabal_data.enc.bt");