Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Nostale
You last visited: Today at 10:17

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



OpenNos problem compile

Discussion on OpenNos problem compile within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2020
Posts: 2
Received Thanks: 1
OpenNos problem compile

Hello, i have problem with compile source.
Maybe any get help to me ?
Problem screen:
Tested on VS 2017 or 2019 and not working.
Import.Console not parse all, after parse "Item" crash.
Error say "System.OverflowException: "The value is too large or too small for the signed byte value.".
I tested a compile and run NosCore and work's without error's...
FasTeRsKi is offline  
Old 12/03/2020, 12:00   #2
 
elite*gold: 0
Join Date: Jan 2019
Posts: 37
Received Thanks: 3
Quote:
Originally Posted by FasTeRsKi View Post
Hello, i have problem with compile source.
Maybe any get help to me ?
Problem screen:
Tested on VS 2017 or 2019 and not working.
Import.Console not parse all, after parse "Item" crash.
Error say "System.OverflowException: "The value is too large or too small for the signed byte value.".
I tested a compile and run NosCore and work's without error's...
Run in debug and you give the line error. Probably you only need change 1 byte to a short/int
Zro Freaks is offline  
Old 12/03/2020, 19:36   #3
 
elite*gold: 0
Join Date: Nov 2020
Posts: 2
Received Thanks: 1
Quote:
Originally Posted by Zro Freaks View Post
Run in debug and you give the line error. Probably you only need change 1 byte to a short/int
This problem resolve.

I'm not create a new topic and go quote this topic.
I have a next problem with OpenNos..
Problem with login account on game, not working :/ Not error's
Screen:
FasTeRsKi is offline  
Old 12/29/2020, 00:25   #4
 
elite*gold: 0
Join Date: Dec 2020
Posts: 3
Received Thanks: 0
What was the issue? I have the same problem..

npc.DarkResistance = Convert.ToSByte(currentLine[7]);

value is too big or too small error
nostaleEnthusiast is offline  
Old 12/29/2020, 00:52   #5
 
erixor's Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 409
Received Thanks: 1,067
Quote:
Originally Posted by nostaleEnthusiast View Post
What was the issue? I have the same problem..

npc.DarkResistance = Convert.ToSByte(currentLine[7]);

value is too big or too small error
Instead of converting to sbyte, try converting to short or bigger if it still doesn't work. sbyte only goes from -128 to +127 so if a npc has less or more than that, you won't be able to convert it. Using Convert.ToInt16 should work.

You might also have to edit the entity and the DTO and create a migration after that since it's most likely a database entity.

If it still doesn't work, try Convert.ToInt32 but I don't think you'll need it
erixor is offline  
Old 12/29/2020, 02:22   #6
 
elite*gold: 0
Join Date: Dec 2020
Posts: 3
Received Thanks: 0
Quote:
Originally Posted by erixor View Post
Instead of converting to sbyte, try converting to short or bigger if it still doesn't work. sbyte only goes from -128 to +127 so if a npc has less or more than that, you won't be able to convert it. Using Convert.ToInt16 should work.

You might also have to edit the entity and the DTO and create a migration after that since it's most likely a database entity.

If it still doesn't work, try Convert.ToInt32 but I don't think you'll need it
I understood changing the sbyte part, but I'm not sure what to write for migration, could you help?
nostaleEnthusiast is offline  
Old 12/29/2020, 07:35   #7
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
Quote:
Originally Posted by nostaleEnthusiast View Post
I understood changing the sbyte part, but I'm not sure what to write for migration, could you help?
OpenNos is code first so :
1- change the value in the entity
2 - add-migration Aphrodite
3 - update-database
4 - update the dto
0Lucifer0 is offline  
Old 12/29/2020, 10:00   #8
 
Shitoshi's Avatar
 
elite*gold: 0
Join Date: Feb 2020
Posts: 51
Received Thanks: 69
Quote:
Originally Posted by FasTeRsKi View Post
This problem resolve.

I'm not create a new topic and go quote this topic.
I have a next problem with OpenNos..
Problem with login account on game, not working :/ Not error's
Screen:
Did you add account in good db.Account? Did you convert your string password to sha512?
Shitoshi is offline  
Reply


Similar Threads Similar Threads
OpenNos "The project 'OpenNos.Login' failed to build."
06/19/2019 - Nostale - 11 Replies
Hello! When I put in update-database in Visual Studio I get the 'The project 'OpenNos.Login' failed to build.' error. I already did what was on the troubleshoot before I put it in. I've been at this for hours and I can't figure it out. Can someone help me please?
[OpenNos] The project 'OpenNos.Login' failed to build.
04/09/2019 - Nostale - 5 Replies
Can someone please help me with this? I do everything in the guide but when I put update-database tells me that, I tried everything I saw in the forum to do and nothing works for me.
[Sell/OpenNos] OpenNos-Dev Ciapa reworked
03/07/2019 - Nostale - 1 Replies
Hello. I currently have a private source and re customized the Ciapa OpenNos-Dev. This source is one of the most updated you can find. More than 2 years of work have been done by several developers including Fizo, Batti and many others. features: - Custom Prestige by clicking on an item of your choice - Reward system relative to the level - Chat chat channel with $ Chat
[OpenNos] ¿How to select the project OpenNos.DAL.EF?
05/04/2018 - Nostale - 4 Replies
Hello, I have a problem with my visual studio 2017, it turns out that to be able to give the update-database command I must have the project OpenNos.DAL.EF But the thing is that in my visual studio there is no option to select the project ... I need help!:D:D
[opennos]The project 'OpenNos.Login' failed to build.
08/03/2017 - Nostale - 9 Replies
Hello I have a problem with the package manager console to run the update- database command to opennos soon as I executes the command, he said: The project ' opennos.login ' failed to build What to do? I made the updates to Microsoft Visual Studio thank you ..



All times are GMT +1. The time now is 10:17.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.