Welcome!

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!

Blade And Soul Emu release ( Atomix )

akakori
Joined
Apr 3, 2008
Messages
368
Reaction score
98
Well let me know if u have any preference in libraries used in the c++ port. i posted the details of libaries to be used.
 
Initiate Mage
Joined
Sep 23, 2014
Messages
2
Reaction score
0
I don't think CM_LOGIN_AUTH = 0xD
With 0xD I have the ACTOR problem.

Inside the body of packet 0xD there isn't the charID so when CM_LOGIN_AUTH arrives and the function OnLoginAuth is called the p.CharID is a big number and not the charID.
If I force the charID on the RequestCharInfo the client got a disconnection (packet 0x000 received on loginserver).

Have you already found a solution?

PS. I used CBT2 client
 
Newbie Spellweaver
Joined
Apr 20, 2013
Messages
39
Reaction score
2
Any help? :?:
GameServer.exe (I swear I've edited the 'ScriptManager.cs')
Code:
[ERROR]03/05/2015 00:04:52 System.Reflection.ReflectionTypeLoadException: Unable to load one or more types required . Recover LoaderExceptions property for more information.
   at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
   at System.Reflection.RuntimeModule.GetTypes()
   at SagaBNS.GameServer.Scripting.ScriptManager.LoadAssembly(Assembly newAssembly) in c:\Users\Federico\Desktop\_BnS Bola Share\Source\GameServer\Scripting\ScriptManager.cs:line 119
   at SagaBNS.GameServer.Scripting.ScriptManager.LoadScript(String path) in c:\Users\Federico\Desktop\_BnS Bola Share\Source\GameServer\Scripting\ScriptManager.cs:line 57

The anothers exe dont has errors (With the noob build the GS work, maybe error compile? but i dont have errors in compile from the VS2013 console..).

Edit: Unpaker.exe dont run (I put the .dll what say in the tutorial)
 
Last edited:
Newbie Spellweaver
Joined
Apr 20, 2013
Messages
39
Reaction score
2
Also move that damn code off your desktop and put it somewhere near the top of the drive letter. (without spaces in the primary folder name)

Moved the damn code to D:\.


ScriptManager.cs
:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.CSharp;
using System.IO;
using System.CodeDom.Compiler;
using System.Reflection;

using SmartEngine.Core;
using SmartEngine.Network.Utils;
using SmartEngine.Network;

namespace SagaBNS.GameServer.Scripting
{
public class ScriptManager : Singleton<ScriptManager>
{
Dictionary<ushort, NPCScriptHandler> npcScripts = new Dictionary<ushort, NPCScriptHandler>();
Dictionary<ulong, MapObjectScriptHandler> mapObjectScripts = new Dictionary<ulong, MapObjectScriptHandler>();
string path;

public Dictionary<ushort, NPCScriptHandler> NpcScripts { get { return npcScripts; } }
public Dictionary<ulong, MapObjectScriptHandler> MapObjectScripts { get { return mapObjectScripts; } }
public ScriptManager()
{
}

public void LoadScript(string path)
{
Logger.ShowInfo("Loading uncompiled scripts");
Dictionary<string, string> dic = new Dictionary<string, string>() { { "CompilerVersion", "v4.0" } };
CSharpCodeProvider provider = new CSharpCodeProvider(dic);
int eventcount = 0;
this.path = path;
try
{
string[] files = Directory.GetFiles(path, "*.cs", SearchOption.AllDirectories);
Assembly newAssembly;
int tmp;
if (files.Length > 0)
{
newAssembly = CompileScript(files, provider);
if (newAssembly != null)
{
tmp = LoadAssembly(newAssembly);
Logger.ShowInfo(string.Format("Containing {0} Scripts", tmp));
eventcount += tmp;
}
}
Logger.ShowInfo("Loading compiled scripts....");
files = Directory.GetFiles(path, "*.dll", SearchOption.AllDirectories);
foreach (string i in files)
{
newAssembly = Assembly.UnsafeLoadFrom(System.IO.Path.GetFullPath(i));
if (newAssembly != null)
{
tmp = LoadAssembly(newAssembly);
Logger.ShowInfo(string.Format("Loading {1}, Containing {0} Scripts", tmp, i));
eventcount += tmp;
}
}
}
catch (Exception ex)
{
Logger.ShowError(ex);
}


Logger.ShowInfo(string.Format("Totally {0} Scripts Added", eventcount));
}

private Assembly CompileScript(string[] Source, CodeDomProvider Provider)
{
//ICodeCompiler compiler = Provider.;
CompilerParameters parms = new CompilerParameters();
CompilerResults results;

// Configure parameters
parms.CompilerOptions = "/target:library /optimize";
parms.GenerateExecutable = false;
parms.GenerateInMemory = true;
parms.IncludeDebugInformation = true;
//parms.ReferencedAssemblies.Add(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\Reference Assemblies\Microsoft\Framework\v3.5\System.Data.DataSetExtensions.dll");
//parms.ReferencedAssemblies.Add(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\Reference Assemblies\Microsoft\Framework\v3.5\System.Core.dll");
//parms.ReferencedAssemblies.Add(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles) + @"\Reference Assemblies\Microsoft\Framework\v3.5\System.Xml.Linq.dll");
parms.ReferencedAssemblies.Add("System.dll");
parms.ReferencedAssemblies.Add("System.Core.dll");
parms.ReferencedAssemblies.Add("SmartEngine.Network.dll");
parms.ReferencedAssemblies.Add("Common.dll");
parms.ReferencedAssemblies.Add("GameServer.exe");
/*foreach (string i in Configuration.Instance.ScriptReference)
{
parms.ReferencedAssemblies.Add(i);
}*/
// Compile
results = Provider.CompileAssemblyFromFile(parms, Source);
if (results.Errors.HasErrors)
{
foreach (CompilerError error in results.Errors)
{
if (!error.IsWarning)
{
Logger.ShowError("Compile Error:" + error.ErrorText);
Logger.ShowError("File:" + error.FileName + ":" + error.Line);
}
}
return null;
}
//get a hold of the actual assembly that was generated
return results.CompiledAssembly;
}

private int LoadAssembly(Assembly newAssembly)
{
Module[] newScripts = newAssembly.GetModules();
int count = 0;
foreach (Module newScript in newScripts)
{
Type[] types = newScript.GetTypes();
foreach (Type npcType in types)
{
try
{
if (npcType.IsAbstract == true) continue;
if (npcType.GetCustomAttributes(false).Length > 0) continue;
if (npcType.IsSubclassOf(typeof(NPCScriptHandler)))
{
NPCScriptHandler newEvent;
try
{
newEvent = (NPCScriptHandler)Activator.CreateInstance(npcType);
}
catch (Exception)
{
continue;
}
if (!this.npcScripts.ContainsKey(newEvent.NpcID) && newEvent.NpcID != 0)
{
this.npcScripts.Add(newEvent.NpcID, newEvent);
}
else
{
if (newEvent.NpcID != 0)
Logger.ShowWarning(string.Format("NpcID:{0} already exists, Class:{1} droped", newEvent.NpcID, npcType.FullName));
}
}
else if (npcType.IsSubclassOf(typeof(MapObjectScriptHandler)))
{
MapObjectScriptHandler newEvent;
try
{
newEvent = (MapObjectScriptHandler)Activator.CreateInstance(npcType);
}
catch (Exception)
{
continue;
}
ulong id = (ulong)newEvent.MapID << 32 | newEvent.ObjectID;
if (!this.mapObjectScripts.ContainsKey(id))
{
this.mapObjectScripts.Add(id, newEvent);
}
else
{
if (newEvent.ObjectID != 0 && newEvent.MapID != 0)
Logger.ShowWarning(string.Format("MapID:{0} ObjectID:{1} already exists, Class:{2} droped", newEvent.MapID, newEvent.ObjectID, npcType.FullName));
}
}
}
catch (Exception ex)
{
Logger.ShowError(ex);
}
count++;
}
}
return count;
}

}
}

- The unpaker.exe work, my mistake.

Screenshot .exe runing:
Bola - Blade And Soul Emu release ( Atomix ) - RaGEZONE Forums


Mmm, maybe the problem is in compile? When I compile the source, first 'Build>Clean Solution' and next 'Build>Build Solution". (Debug)

Edit:
If I use Release, AccountServer and CharacterServer.exe dont run.
 
Last edited:
  • Like
Reactions: DNC
Newbie Spellweaver
Joined
Apr 20, 2013
Messages
39
Reaction score
2
I use Debug.
Show me results from that being built.

Ok, but I have in spanish.

VS2013 log built
1>------ Operación Compilar iniciada: proyecto: Core, configuración: Debug x86 ------
2>------ Operación Compilar iniciada: proyecto: LoginPacketDump, configuración: Debug Win32 ------
3>------ Operación Compilar iniciada: proyecto: WebPlattfrom, configuración: Debug Any CPU ------
3>Validación de sitio web completada
1> Core -> D:\BnS\Source\Bin\SmartEngine.Core.dll
2> stdafx.cpp
4>------ Operación Compilar iniciada: proyecto: Network, configuración: Debug x86 ------
2> dllmain.cpp
4>D:\BnS\Source\SmartEngine.Network\DefaultEncryptionKeyExchange.cs(14,27,14,33): warning CS0108: 'SmartEngine.Network.DefaultEncryptionKeyExchange.Module' oculta el miembro heredado 'SmartEngine.Network.EncryptionKeyExchange.Module'. Utilice la nueva palabra clave si su intención era ocultarlo.
4>D:\BnS\Source\SmartEngine.Network\DefaultEncryptionKeyExchange.cs(20,23,20,26): warning CS0108: 'SmartEngine.Network.DefaultEncryptionKeyExchange.Key' oculta el miembro heredado 'SmartEngine.Network.EncryptionKeyExchange.Key'. Utilice la nueva palabra clave si su intención era ocultarlo.
4>D:\BnS\Source\SmartEngine.Network\Encryption.cs(48,66,48,69): warning CS1573: El parámetro 'len' no tiene la etiqueta param correspondiente en el comentario XML para 'SmartEngine.Network.Encryption.Encrypt(byte[], int, int)' (pero sí otros parámetros)
4>D:\BnS\Source\SmartEngine.Network\Encryption.cs(55,66,55,69): warning CS1573: El parámetro 'len' no tiene la etiqueta param correspondiente en el comentario XML para 'SmartEngine.Network.Encryption.Decrypt(byte[], int, int)' (pero sí otros parámetros)
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(130,33,130,57): warning CS0618: 'System.Threading.Thread.Suspend()' está obsoleto: 'Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(132,33,132,56): warning CS0618: 'System.Threading.Thread.Resume()' está obsoleto: 'Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(150,33,150,44): warning CS0618: 'System.Threading.Thread.Suspend()' está obsoleto: 'Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(152,33,152,43): warning CS0618: 'System.Threading.Thread.Resume()' está obsoleto: 'Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(173,33,173,44): warning CS0618: 'System.Threading.Thread.Suspend()' está obsoleto: 'Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(175,33,175,43): warning CS0618: 'System.Threading.Thread.Resume()' está obsoleto: 'Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(216,21,216,32): warning CS0618: 'System.Threading.Thread.Suspend()' está obsoleto: 'Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(218,21,218,31): warning CS0618: 'System.Threading.Thread.Resume()' está obsoleto: 'Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(235,21,235,32): warning CS0618: 'System.Threading.Thread.Suspend()' está obsoleto: 'Thread.Suspend has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(237,21,237,31): warning CS0618: 'System.Threading.Thread.Resume()' está obsoleto: 'Thread.Resume has been deprecated. Please use other classes in System.Threading, such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect resources. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(371,29,371,50): warning CS0618: 'System.Net.Sockets.TcpListener.TcpListener(int)' está obsoleto: 'This method has been deprecated. Please use TcpListener(IPAddress localaddr, int port) instead. '
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(535,13,535,34): warning CS0618: 'SmartEngine.Network.Network<T>.AutoLock' está obsoleto: '由于全局锁对于死锁方面的防护比较难控制,故不建议使用自动全局锁'
4>D:\BnS\Source\SmartEngine.Network\DefaultClient.cs(73,17,73,36): warning CS0618: 'SmartEngine.Network.Network<T>.AutoLock' está obsoleto: '由于全局锁对于死锁方面的防护比较难控制,故不建议使用自动全局锁'
4>D:\BnS\Source\SmartEngine.Network\Global.cs(56,17,56,44): warning CS0675: Operador OR bit a bit usado en un operando con extensión de signo; considere la posibilidad de convertir en primer lugar a un tipo sin signo menor
4>D:\BnS\Source\SmartEngine.Network\Map\Map.cs(792,65,792,66): warning CS1573: El parámetro 'z' no tiene la etiqueta param correspondiente en el comentario XML para 'SmartEngine.Network.Map.Map<T>.GetActorsAroundArea(int, int, int, int)' (pero sí otros parámetros)
4>D:\BnS\Source\SmartEngine.Network\Packet.cs(205,38,205,47): warning CS1573: El parámetro 'bigEndian' no tiene la etiqueta param correspondiente en el comentario XML para 'SmartEngine.Network.Packet<T>.GetString(bool, ushort)' (pero sí otros parámetros)
4>D:\BnS\Source\SmartEngine.Network\Packet.cs(250,36,250,45): warning CS1573: El parámetro 'bigEndian' no tiene la etiqueta param correspondiente en el comentario XML para 'SmartEngine.Network.Packet<T>.PutString(bool, string, ushort)' (pero sí otros parámetros)
4>D:\BnS\Source\SmartEngine.Network\Packet.cs(263,36,263,45): warning CS1573: El parámetro 'bigEndian' no tiene la etiqueta param correspondiente en el comentario XML para 'SmartEngine.Network.Packet<T>.PutString(bool, string)' (pero sí otros parámetros)
4>D:\BnS\Source\SmartEngine.Network\VirtualFileSystem\LPK\LZMA\ICoder.cs(93,59,93,60): warning CS1570: El comentario XML en 'SevenZip.CoderPropID.PosStateBits' tiene código XML con formato incorrecto -- 'Un nombre comenzaba con un carácter no válido.'
4>D:\BnS\Source\SmartEngine.Network\VirtualFileSystem\LPK\LZMA\ICoder.cs(97,61,97,62): warning CS1570: El comentario XML en 'SevenZip.CoderPropID.LitContextBits' tiene código XML con formato incorrecto -- 'Un nombre comenzaba con un carácter no válido.'
4>D:\BnS\Source\SmartEngine.Network\VirtualFileSystem\LPK\LZMA\ICoder.cs(101,62,101,63): warning CS1570: El comentario XML en 'SevenZip.CoderPropID.LitPosBits' tiene código XML con formato incorrecto -- 'Un nombre comenzaba con un carácter no válido.'
4>D:\BnS\Source\SmartEngine.Network\ClientManager.cs(336,16,336,21): warning CS0169: El campo 'SmartEngine.Network.ClientManager<T>.check' no se usa nunca
4>D:\BnS\Source\SmartEngine.Network\Random.cs(11,13,11,17): warning CS0414: El campo 'SmartEngine.Network.RandomF.last' está asignado pero su valor no se usa nunca
4> Network -> D:\BnS\Source\Bin\SmartEngine.Network.dll
2> LoginPacketDump.cpp
2>d:\bns\source\tools\loginpacketdump\LoginPacketDump.h(60): warning C4018: '<' : no coinciden signed/unsigned
2>d:\bns\source\tools\loginpacketdump\LoginPacketDump.h(72): warning C4101: 'ex' : variable local sin referencia
2>d:\bns\source\tools\loginpacketdump\LoginPacketDump.h(110): warning C4101: 'ex' : variable local sin referencia
2>d:\bns\source\tools\loginpacketdump\LoginPacketDump.h(147): warning C4101: 'ex' : variable local sin referencia
5>------ Operación Compilar iniciada: proyecto: Common, configuración: Debug Any CPU ------
2>d:\bns\source\tools\loginpacketdump\loginpacketdump.cpp(30): warning C4793: 'DumpPacketReceive' : función compilada como nativa :
2> Ensamblado nativo insertado no admitido en código administrado
2>d:\bns\source\tools\loginpacketdump\loginpacketdump.cpp(11): warning C4793: 'DumpPacketSend' : función compilada como nativa :
2> Ensamblado nativo insertado no admitido en código administrado
2> .NETFramework,Version=v4.0.AssemblyAttributes.cpp
2> Creando biblioteca D:\BnS\Source\Tools\LoginPacketDump\Debug\LoginPacketDump.lib y objeto D:\BnS\Source\Tools\LoginPacketDump\Debug\LoginPacketDump.exp
2> LoginPacketDump.vcxproj -> D:\BnS\Source\Tools\LoginPacketDump\Debug\LoginPacketDump.dll
5>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3270: La arquitectura del procesador del proyecto que se va a compilar "MSIL" y la arquitectura del procesador de la referencia "D:\BnS\Source\Bin\SmartEngine.Core.dll", "x86", no coinciden. Esta falta de coincidencia puede causar errores en tiempo de ejecución. Cambie la arquitectura del procesador de destino del proyecto mediante el Administrador de configuración para alinear las arquitecturas de procesador entre el proyecto y las referencias, o tome una dependencia de las referencias con una arquitectura de procesador que coincida con la arquitectura del procesador de destino del proyecto.
5>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3270: La arquitectura del procesador del proyecto que se va a compilar "MSIL" y la arquitectura del procesador de la referencia "D:\BnS\Source\Bin\SmartEngine.Network.dll", "x86", no coinciden. Esta falta de coincidencia puede causar errores en tiempo de ejecución. Cambie la arquitectura del procesador de destino del proyecto mediante el Administrador de configuración para alinear las arquitecturas de procesador entre el proyecto y las referencias, o tome una dependencia de las referencias con una arquitectura de procesador que coincida con la arquitectura del procesador de destino del proyecto.
5> Common -> D:\BnS\Source\Common\bin\Debug\Common.dll
6>------ Operación Compilar iniciada: proyecto: GameServer, configuración: Debug x86 ------
7>------ Operación Compilar iniciada: proyecto: PacketViewer, configuración: Debug x86 ------
8>------ Operación Compilar iniciada: proyecto: LoginServer, configuración: Debug x86 ------
7>D:\BnS\Source\Tools\PacketViewer\PacketParser.cs(166,17,166,24): warning CS0219: La variable 'lastSeq' está asignada, pero su valor nunca se utiliza
7>D:\BnS\Source\Tools\PacketViewer\PacketParser.cs(414,58,414,60): warning CS0168: La variable 'ex' se ha declarado pero nunca se utiliza
7>D:\BnS\Source\Tools\PacketViewer\PacketParser.cs(461,46,461,48): warning CS0168: La variable 'ex' se ha declarado pero nunca se utiliza
7>D:\BnS\Source\Tools\PacketViewer\PacketParser.PacketHandlers.CBT3.cs(960,17,960,23): warning CS0162: Se ha detectado código inaccesible
7> PacketViewer -> D:\BnS\Source\Tools\PacketViewer\bin\Debug\PacketViewer.exe
9>------ Operación Compilar iniciada: proyecto: AccountServer, configuración: Debug x86 ------
9>D:\BnS\Source\AccountServer\Configuration\Configuration.cs(15,48,15,56): warning CS0169: El campo 'SagaBNS.AccountServer.Configuration.language' no se usa nunca
9>D:\BnS\Source\AccountServer\Database\AccountDB.cs(162,63,162,81): warning CS0067: El evento 'SagaBNS.AccountServer.Database.AccountDB.SaveResultCallback' nunca se utiliza
9> AccountServer -> D:\BnS\Source\Bin\AccountServer.exe
8>D:\BnS\Source\LoginServer\Packets\Client\Login\CM_CHAR_CREATE.cs(31,20,31,27): warning CS0219: La variable 'keyData' está asignada, pero su valor nunca se utiliza
8>D:\BnS\Source\LoginServer\Packets\Client\Login\CM_CHAR_SLOT_REQUEST.cs(31,20,31,29): warning CS0219: La variable 'loginName' está asignada, pero su valor nunca se utiliza
8> LoginServer -> D:\BnS\Source\Bin\LoginServer.exe
10>------ Operación Compilar iniciada: proyecto: CharacterServer, configuración: Debug x86 ------
6>D:\BnS\Source\GameServer\Skills\SkillHandlers\KungfuMaster\JumpPunch.cs(45,21,45,40): warning CS0114: 'SagaBNS.GameServer.Skills.SkillHandlers.KungfuMaster.JumpPunch.HandleSkillActivate(SagaBNS.Common.Skills.SkillArg)' oculta el miembro heredado 'SagaBNS.GameServer.Skills.SkillHandlers.Common.DefaultAttack.HandleSkillActivate(SagaBNS.Common.Skills.SkillArg)'. Para hacer que el miembro actual invalide esa implementación, agregue la palabra clave override. De lo contrario, agregue la palabra clave new.
6>D:\BnS\Source\GameServer\Command.cs(54,20,54,39): warning CS0219: La variable 'RemoteCommandPrefix' está asignada, pero su valor nunca se utiliza
6>D:\BnS\Source\GameServer\Command.cs(426,13,426,19): warning CS0162: Se ha detectado código inaccesible
6>D:\BnS\Source\GameServer\Network\Client\GameSession.Item.cs(312,18,312,27): warning CS0219: La variable 'warehouse' está asignada, pero su valor nunca se utiliza
6>D:\BnS\Source\GameServer\Packets\Client\Actor\CM_ACTOR_MOVEMENT.cs(234,17,234,23): warning CS0162: Se ha detectado código inaccesible
6>D:\BnS\Source\GameServer\Command.cs(45,31,45,42): warning CS0414: El campo 'SagaBNS.GameServer.Command.Commands._MasterName' está asignado pero su valor no se usa nunca
6>D:\BnS\Source\GameServer\Network\Client\GameSession.Login.cs(26,16,26,24): warning CS0649: El campo 'SagaBNS.GameServer.Network.Client.GameSession.username' nunca se asigna y siempre tendrá el valor predeterminado null
6>D:\BnS\Source\GameServer\Network\Client\GameSession.Login.cs(27,14,27,25): warning CS0169: El campo 'SagaBNS.GameServer.Network.Client.GameSession.accountGUID' no se usa nunca
6>D:\BnS\Source\GameServer\Network\Client\GameSession.Login.cs(27,27,27,35): warning CS0169: El campo 'SagaBNS.GameServer.Network.Client.GameSession.slotGUID' no se usa nunca
6>D:\BnS\Source\GameServer\Network\Client\GameSession.Login.cs(27,37,27,46): warning CS0169: El campo 'SagaBNS.GameServer.Network.Client.GameSession.tokenGUID' no se usa nunca
6>D:\BnS\Source\GameServer\Packets\Client\Login\SM_LOGIN_INIT.cs(17,16,17,31): warning CS0169: El campo 'SagaBNS.GameServer.Packets.Client.SM_LOGIN_INIT.offsetAfterName' no se usa nunca
6>D:\BnS\Source\GameServer\Tasks\Actor\RespawnTask.cs(18,14,18,21): warning CS0414: El campo 'SagaBNS.GameServer.Tasks.Actor.RespawnTask.already' está asignado pero su valor no se usa nunca
6>D:\BnS\Source\GameServer\Tasks\Actor\MapObjRespawnTask.cs(18,14,18,21): warning CS0414: El campo 'SagaBNS.GameServer.Tasks.Actor.MapObjRespawnTask.already' está asignado pero su valor no se usa nunca
6> GameServer -> D:\BnS\Source\Bin\GameServer.exe
11>------ Operación Compilar iniciada: proyecto: ChatServer, configuración: Debug x86 ------
12>------ Operación Compilar iniciada: proyecto: Scripts, configuración: Debug Any CPU ------
10>D:\BnS\Source\CharacterServer\Database\ItemDB.cs(112,17,112,22): warning CS0219: La variable 'count' está asignada, pero su valor nunca se utiliza
10>D:\BnS\Source\CharacterServer\Configuration\Configuration.cs(15,48,15,56): warning CS0169: El campo 'SagaBNS.CharacterServer.Configuration.language' no se usa nunca
10>D:\BnS\Source\CharacterServer\Database\CharacterDB.cs(326,63,326,81): warning CS0067: El evento 'SagaBNS.CharacterServer.Database.CharacterDB.SaveResultCallback' nunca se utiliza
10>D:\BnS\Source\CharacterServer\Database\ItemDB.cs(160,60,160,78): warning CS0067: El evento 'SagaBNS.CharacterServer.Database.ItemDB.SaveResultCallback' nunca se utiliza
10> CharacterServer -> D:\BnS\Source\Bin\CharacterServer.exe
11> ChatServer -> D:\BnS\Source\Bin\ChatServer.exe
13>------ Operación Compilar iniciada: proyecto: LobbyServer, configuración: Debug x86 ------
12>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3270: La arquitectura del procesador del proyecto que se va a compilar "MSIL" y la arquitectura del procesador de la referencia "D:\BnS\Source\Bin\GameServer.exe", "x86", no coinciden. Esta falta de coincidencia puede causar errores en tiempo de ejecución. Cambie la arquitectura del procesador de destino del proyecto mediante el Administrador de configuración para alinear las arquitecturas de procesador entre el proyecto y las referencias, o tome una dependencia de las referencias con una arquitectura de procesador que coincida con la arquitectura del procesador de destino del proyecto.
12>C:\Program Files (x86)\MSBuild\12.0\bin\Microsoft.Common.CurrentVersion.targets(1635,5): warning MSB3270: La arquitectura del procesador del proyecto que se va a compilar "MSIL" y la arquitectura del procesador de la referencia "D:\BnS\Source\Bin\SmartEngine.Network.dll", "x86", no coinciden. Esta falta de coincidencia puede causar errores en tiempo de ejecución. Cambie la arquitectura del procesador de destino del proyecto mediante el Administrador de configuración para alinear las arquitecturas de procesador entre el proyecto y las referencias, o tome una dependencia de las referencias con una arquitectura de procesador que coincida con la arquitectura del procesador de destino del proyecto.
12> Scripts -> D:\BnS\Source\Scripts\bin\Debug\Scripts.dll
13> LobbyServer -> D:\BnS\Source\Bin\LobbyServer.exe
3>
3>Validación completada
========== Compilar: 13 correctos, 0 incorrectos, 5 actualizados, 0 omitidos ==========

If i try use this build, I can log in server, make a character, but i can enter to the world.

Server log (I translate the log to english):

ChatServer
[ERROR]03/05/2015 10:03:45 System.NullReferenceException:Object reference not set to an instance of an object.
at SagaBNS.Common.Packets.CharacterServer.SM_ACTOR_INFO.set_Character(ActorPC value) in d:\BnS\Source\Common\Packets\CharacterServer\SM_ACTOR_INFO.cs:line 78
at SagaBNS.CharacterServer.Network.Client.CharacterSession.OnActorInfoRequest(CM_ACTOR_INFO_REQUEST p) in d:\BnS\Source\CharacterServer\Network\Client\CharacterSession.Char.cs:line 22
at SagaBNS.CharacterServer.Packets.Client.CM_ACTOR_INFO_REQUEST.OnProcess(Session`1 client) en d:\BnS\Source\CharacterServer\Packets\Client\CM_ACTOR_INFO_REQUEST.cs:line 21
at SmartEngine.Network.Network`1.ProcessPacket(Packet`1 p) in d:\BnS\Source\SmartEngine.Network\Network.cs:line 488

GameServer
[ERROR]03/05/2015 10:01:27 System.Reflection.ReflectionTypeLoadException: Unable to load one or more types required . Recover LoaderExceptions property for more information.

at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.RuntimeModule.GetTypes()
at SagaBNS.GameServer.Scripting.ScriptManager.LoadAssembly(Assembly newAssembly) in d:\BnS\Source\GameServer\Scripting\ScriptManager.cs:line 119
at SagaBNS.GameServer.Scripting.ScriptManager.LoadScript(String path) in d:\BnS\Source\GameServer\Scripting\ScriptManager.cs:line 57
 
Newbie Spellweaver
Joined
Dec 5, 2013
Messages
11
Reaction score
6
This thread has made me laugh, all the problems you people (ones that have no business messing with this) are easily fixable with a bit of maybe..effort on your part..could go a long way. if you honestly have problems configuring simple config files, removing the old assembly generation steps (which were there to keep track of the revision and date of each server/module) you should just quit. there is absolutely nothing in this server that you could hope to update and or use this as a base for newer BnS versions, because packets and a few of the servers went through radical changes after CBT2.

I swear all the people posting logs and asking the same damn question for a hand-me-out is just sad. sad to see more people who don't have/don't want to get a clue messing with this stuff rather than more of those who wish to ACTUALLY learn from it.

Also imho if you havent gotten your hands dirty reversing and understanding server development (not programming any chump can program in a managed language) you'd probably do well to start with something of smaller scale, BnS especially as it is now isnt for the people who cant dig in and understand the problems and do their own research/reversing.

Also props to DnC seems he actually took a few moments to analyze the build errors and project setup before screaming at everyone with error logs i cant do anything about our work being leaked but if i had a choice i'd rather it had gotten leaked to more people such as him since they actually value whats there and care to examine and understand it.



i give props to them for this i agree, just that trying decipher what they have right now had me chasing all over, but the comments in chinese doesnt help lol

The comment in chinese were from the original developer of the backbone of the server's network infrastructure he's a good guy and he's chinese. in short he developed smart-engine and what you all have here is extremely old..actually older than i originally thought it's funny to see the struggles that as i said before with a bit of research and time spent studying are easily avoidable and fixable.
 
Last edited:
  • Like
Reactions: DNC
Newbie Spellweaver
Joined
Apr 20, 2013
Messages
39
Reaction score
2
@ DNC

With this ScriptManager I have the some problem with the line 57 and 119, but now the GameServer.exe load more info (NpcID's, MapID's), but the [ERROR] is same.

I check dir Scripts (I try put in different ways, but nothing change).

Bola - Blade And Soul Emu release ( Atomix ) - RaGEZONE Forums



@coldreader88 I think.. all born with an interesting project, what will happen if you laughed at atomix for trying?... He dont born know it, he try from 0 and make this, I think this leaked files it will serve to inspire new proyects, but if you only laughed to what they try, nothing happends.

Sorry for my really bad english.

In spanish:
Yo pienso, que todo nace de un proyecto interesante, que hubiera pasado si te hubieras burlado de atomix por intentarlo? el no nació sabiendo como hacerlo, intento desde 0. Y creo que estos archivos filtrados sirven para inspirar nuevos proyectos, pero si te ríes de lo que intentan, nada pasara.
 
Junior Spellweaver
Joined
Aug 3, 2012
Messages
131
Reaction score
27
Source\GameServer\Scripting\ScriptManager.cs:line 57
edit line 52
befor :
foreach (string i in files)
{
newAssembly = Assembly.LoadFile(System.IO.Path.GetFullPath(i));

after :
foreach (string i in Directory.GetFiles(path, "*.dll"))

{
newAssembly = Assembly.LoadFile(System.IO.Path.GetFullPath(i));

Bola - Blade And Soul Emu release ( Atomix ) - RaGEZONE Forums
 
Last edited:
Newbie Spellweaver
Joined
Dec 5, 2013
Messages
11
Reaction score
6
Server Emulator was written by chineses, lokireborn owner of Atomix are american, i believe he is not the owner of true project, and we never will know who is true owner of Saga Project

Dude..you have no clue what your talking about either..:thumbdown:
 
Blade & Soul Eldoria Developer
[VIP] Member
Joined
Jul 30, 2012
Messages
1,224
Reaction score
160
i got message failed to connect to server, please try again
Bola - Blade And Soul Emu release ( Atomix ) - RaGEZONE Forums


ok fixed this poop, but now i got another issue.

in lobby gameserver and loginserver its say
connecting to account server
 
Last edited:
Joined
Sep 30, 2010
Messages
455
Reaction score
135
Im using the start.bat

And i dont patched anything or edited the client.

Im using a different client. Its the Chinese Open beta 2013 client. (PlayBnS)

I just want to start the client. Dont care if i cant connect or something.

Bola - Blade And Soul Emu release ( Atomix ) - RaGEZONE Forums
 
Joined
Sep 30, 2010
Messages
455
Reaction score
135
I dont want to use that old client lol.

i want to use this client xD

I just want to be able to start it nothing more.
 
Newbie Spellweaver
Joined
Feb 8, 2009
Messages
43
Reaction score
1
help plz REMOVED
mysqlconnectivity
db = new MySqlConnection(string.Format("Server={1};Port={2};Uid={3};Pwd={4};Database={0};Charset=utf8;","sagabns", "127.0.0.1", 3306, "root", "saga"));
dbinactive = new MySqlConnection(string.Format("Server={1};Port={2};Uid={3};Pwd={4};Database={0};Charset=utf8;", "sagabns", "127.0.0.1", 3306, "root", "saga"));
 
Last edited:
Blade & Soul Eldoria Developer
[VIP] Member
Joined
Jul 30, 2012
Messages
1,224
Reaction score
160
If you followed my instructions. (Not that most of you do)
You'll see that you DID NOT CONFIGURE THE CONFIG FILES....
Please go back and follow the instructions.
I know for a fact it says to Modify AccountServer, CharacterServer and LoginServer xml files.
Modify the IP addresses in the first 2 and the Port for field PublicAddress in the 3rd one.
Make sure you have your database properly set in the first 2 with proper Login / Password.

Try again.

its still say connecting to account server
 
Back
Top