|
You last visited: Today at 16:02
Advertisement
Need some help with Redux V2 5065 source
Discussion on Need some help with Redux V2 5065 source within the CO2 Private Server forum part of the Conquer Online 2 category.
03/03/2019, 04:27
|
#1
|
elite*gold: 0
Join Date: Mar 2019
Posts: 3
Received Thanks: 0
|
Need some help with Redux V2 5065 source
Hey guys, having some drama when i go to start the server via Visual Studio.
When i go to "Run"
UPDATE: Now when starting/ gets to the create server window, input the IP and password etc, then comes back to this error.
Exception Unhandled; NHibernate.Exceptions.GenericADOException: 'could not execute query
[ CALL GetGuildMemberList(?p0) ]
Name:guildId - Value:37
[SQL: CALL GetGuildMemberList(?p0)]'
return session
.GetNamedQuery("GetGuildMemberList")
.SetParameter("guildId", guildId)
.SetResultTransformer(Transformers.AliasToBean<DbG uildMemberInfo>())
.List<DbGuildMemberInfo>();
Is there something here with the NHibernate that needs to be changed?
[Unsure if related, but when Executing SQL file, the only error that comes up is related to a guild list issue also] Heres the SQL error [when excecuting SQL file];
"[SQL] Query Nov_16_Backup start
[ERR] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!=guildRank LIMIT 1;
END' at line 3
[ERR] CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteUserGuildAttr`(IN userId INT unsigned, IN guildId INT unsigned, IN guildRank SMALLINT unsigned)
BEGIN
DELETE FROM guildattr WHERE id=userId AND guild_id=guildId AND rank!=guildRank LIMIT 1;
END
[ERR] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank, u.Level AS Level, g.donate_silver AS Donation FROM guildattr AS g LEFT JOI' at line 3
[ERR] CREATE DEFINER=`root`@`localhost` PROCEDURE `GetGuildMemberList`(IN guildId INT unsigned)
BEGIN
SELECT u.Name AS Name, g.rank AS Rank, u.Level AS Level, g.donate_silver AS Donation FROM guildattr AS g LEFT JOIN characters AS u ON u.UID=g.id WHERE g.guild_id=guildId && u.UID IS NOT NULL ORDER BY g.rank DESC, u.Level DESC, u.Name;
END
[SQL] Finished with error
"
Apologies for a wall of text. Just frustrating :P
|
|
|
03/03/2019, 06:07
|
#2
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
Since you're using a newer version of MySQL and updated the assemblies for it (as you mentioned in an earlier version of your post), you could try updating the assemblies for NHibernate as well. I think there are a few: Iesi.Collections.* and NHibernate.*.
|
|
|
03/03/2019, 06:13
|
#3
|
elite*gold: 0
Join Date: Mar 2019
Posts: 3
Received Thanks: 0
|
Quote:
Originally Posted by Spirited
Since you're using a newer version of MySQL and updated the assemblies for it (as you mentioned in an earlier version of your post), you could try updating the assemblies for NHibernate as well. I think there are a few: Iesi.Collections.* and NHibernate.*.
|
Can't find replacement files for NHibernate or Iesi anywhere in MySQL files etc. Have found the old ones in the source files. Is there something I havn't installed to obtain these files?
|
|
|
03/03/2019, 06:20
|
#4
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,283
Received Thanks: 4,191
|
Quote:
Originally Posted by HauntedBoi
Can't find replacement files for NHibernate or Iesi anywhere in MySQL files etc. Have found the old ones in the source files. Is there something I havn't installed to obtain these files?
|
It's a separate library you have to download.
If you know how to use nuget, I'd suggest using that instead. Instructions are on their website, or you can google a tutorial. If you do a straight download, you'll have to add it to the bin folder and then add that as a reference in your project's solution. I think Chris manually copied everything, so it's just a bit repetitive.
|
|
|
03/03/2019, 08:51
|
#5
|
elite*gold: 0
Join Date: Mar 2019
Posts: 3
Received Thanks: 0
|
Alright thanks bro, i'll put in some time tonight and see how I go.
Yeah nah, I got the swing of NuGet, but just cant install what I need to, as the source says its not compatible. Gah haha not sure how to get past this
|
|
|
03/11/2019, 04:41
|
#6
|
elite*gold: 26
Join Date: Jul 2011
Posts: 522
Received Thanks: 285
|
Quote:
Originally Posted by HauntedBoi
Hey guys, having some drama when i go to start the server via Visual Studio.
When i go to "Run"
UPDATE: Now when starting/ gets to the create server window, input the IP and password etc, then comes back to this error.
Exception Unhandled; NHibernate.Exceptions.GenericADOException: 'could not execute query
[ CALL GetGuildMemberList(?p0) ]
Name:guildId - Value:37
[SQL: CALL GetGuildMemberList(?p0)]'
return session
.GetNamedQuery("GetGuildMemberList")
.SetParameter("guildId", guildId)
.SetResultTransformer(Transformers.AliasToBean<DbG uildMemberInfo>())
.List<DbGuildMemberInfo>();
Is there something here with the NHibernate that needs to be changed?
[Unsure if related, but when Executing SQL file, the only error that comes up is related to a guild list issue also] Heres the SQL error [when excecuting SQL file];
"[SQL] Query Nov_16_Backup start
[ERR] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '!=guildRank LIMIT 1;
END' at line 3
[ERR] CREATE DEFINER=`root`@`localhost` PROCEDURE `DeleteUserGuildAttr`(IN userId INT unsigned, IN guildId INT unsigned, IN guildRank SMALLINT unsigned)
BEGIN
DELETE FROM guildattr WHERE id=userId AND guild_id=guildId AND rank!=guildRank LIMIT 1;
END
[ERR] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'Rank, u.Level AS Level, g.donate_silver AS Donation FROM guildattr AS g LEFT JOI' at line 3
[ERR] CREATE DEFINER=`root`@`localhost` PROCEDURE `GetGuildMemberList`(IN guildId INT unsigned)
BEGIN
SELECT u.Name AS Name, g.rank AS Rank, u.Level AS Level, g.donate_silver AS Donation FROM guildattr AS g LEFT JOIN characters AS u ON u.UID=g.id WHERE g.guild_id=guildId && u.UID IS NOT NULL ORDER BY g.rank DESC, u.Level DESC, u.Name;
END
[SQL] Finished with error
"
Apologies for a wall of text. Just frustrating :P
|
Been through that before. Basically the stored procedures aren't being imported properly into your DB due to a version difference.
The way to fix it is to write your own stored procedure to handle the same task or to just query the DB normally and remove the procedure call from the method that is calling it in your repository class.
Good luck.
|
|
|
All times are GMT +1. The time now is 16:03.
|
|