Register for your free account! | Forgot your password?

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

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

Advertisement



eastmile error source

Discussion on eastmile error source within the Nostale forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2020
Posts: 5
Received Thanks: 0
eastmile error source



I do not know what to do, is there anyone to support?
thank you
CromeFast is offline  
Old 02/03/2020, 23:31   #2
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
I guess the message is explicit enough... another solution is to remove all the code you don’t understand.
0Lucifer0 is offline  
Thanks
3 Users
Old 02/04/2020, 15:53   #3
 
XV50's Avatar
 
elite*gold: 0
Join Date: Sep 2019
Posts: 368
Received Thanks: 166
Quote:
Originally Posted by 0Lucifer0 View Post
I guess the message is explicit enough... another solution is to remove all the code you don’t understand.
Yeah, removing Code from the ImportFactory so he can't parse anything.
Stop posting useless **** comments just to farm some posts.
XV50 is offline  
Thanks
1 User
Old 02/04/2020, 16:12   #4
 
Saber none's Avatar
 
elite*gold: 30
Join Date: Sep 2014
Posts: 593
Received Thanks: 316
Quote:
Originally Posted by XV50 View Post
Yeah, removing Code from the ImportFactory so he can't parse anything.
Stop posting useless **** comments just to farm some posts.
I mean isn't he right? I'm the last person judging anyone for not knowing what to do, but expecting an explicit problem which is more than "I don't know what to do" shouldn't be too much huh?
Saber none is offline  
Thanks
2 Users
Old 02/04/2020, 16:23   #5
 
Roxeez's Avatar
 
elite*gold: 0
Join Date: Jun 2019
Posts: 102
Received Thanks: 228
Quote:
Originally Posted by XV50 View Post
Yeah, removing Code from the ImportFactory so he can't parse anything.
Stop posting useless **** comments just to farm some posts.
I'm mostly sure it was sarcastic because if he don't understand such a basic error it's not only parser how need to be removed
Roxeez is offline  
Old 02/04/2020, 19:54   #6
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
Quote:
Originally Posted by XV50 View Post
Yeah, removing Code from the ImportFactory so he can't parse anything.
Stop posting useless **** comments just to farm some posts.
I haven’t said to remove this line. I suggested to remove code he doesn’t understand. That is maybe most of the project but still. It is a good way to learn part by part.

But as you seems to ask for the real answer to the question (that he will never understand) there it is. List in c# use array under the hood. Arrays are fixed size. When adding to the list c# vm is allocating new memory if needed to your array. In case of parallel it add based on previous value. (Size+1) unfortunately as it’s doing multiple thing it’s trying size + 1 multiple time. Doing it at the same time result in the value being wrong as the difference between the read and wrote value make that the original value changed.

Thread 1: what is the amount of slot => 0
Thread 2: what is the amount of slot => 0
Thread 1 : add 1 => 0+1 => 1
Thread 2 : add 1 => 0+1 => 1 Thread 1 already used this so it crash.

So how to fix it ? You have to use a threadsafe collection type to avoid this kind of error. Like a concurrent dictionary.

Ps this have been simplified that’s not totally what is happening but would be useless to explain in detail
0Lucifer0 is offline  
Old 02/04/2020, 22:38   #7
 
XV50's Avatar
 
elite*gold: 0
Join Date: Sep 2019
Posts: 368
Received Thanks: 166
Quote:
Originally Posted by 0Lucifer0 View Post
I haven’t said to remove this line. I suggested to remove code he doesn’t understand. That is maybe most of the project but still. It is a good way to learn part by part.

But as you seems to ask for the real answer to the question (that he will never understand) there it is. List in c# use array under the hood. Arrays are fixed size. When adding to the list c# vm is allocating new memory if needed to your array. In case of parallel it add based on previous value. (Size+1) unfortunately as it’s doing multiple thing it’s trying size + 1 multiple time. Doing it at the same time result in the value being wrong as the difference between the read and wrote value make that the original value changed.

Thread 1: what is the amount of slot => 0
Thread 2: what is the amount of slot => 0
Thread 1 : add 1 => 0+1 => 1
Thread 2 : add 1 => 0+1 => 1 Thread 1 already used this so it crash.

So how to fix it ? You have to use a threadsafe collection type to avoid this kind of error. Like a concurrent dictionary.

Ps this have been simplified that’s not totally what is happening but would be useless to explain in detail
Do you really expect someone (who can't even fix the parser to parse Act 7 content) would be able to do such things? Cmon.
Nothing more to say
XV50 is offline  
Old 02/04/2020, 22:47   #8
 
0Lucifer0's Avatar
 
elite*gold: 0
Join Date: May 2009
Posts: 1,005
Received Thanks: 1,019
Quote:
Originally Posted by XV50 View Post
Do you really expect someone (who can't even fix the parser to parse Act 7 content) would be able to do such things? Cmon.
Nothing more to say
No I don’t. That’s the reason for my first answer... you just wanted me to answer the real one so here it is. Obviously it’s too tricky. So my first answer of delete all the code you don’t understand and restore it step by step is the best one he will get...
0Lucifer0 is offline  
Old 02/06/2020, 00:10   #9
 
Beazel's Avatar
 
elite*gold: 0
Join Date: Apr 2018
Posts: 132
Received Thanks: 123
Quote:
Originally Posted by XV50 View Post
Stop posting useless **** comments just to farm some posts.
Quote:
Originally Posted by XV50 View Post
Do you really expect someone (who can't even fix the parser to parse Act 7 content) would be able to do such things? Cmon.
Nothing more to say
You are also increasing your point counter with these publications or ... are you answering the question of the creator of the thread? No.
Beazel is offline  
Reply


Similar Threads Similar Threads
Eastmile | Act 8.2: Bone Dragon's Lair
12/23/2024 - Nostale PServer Advertising - 422 Replies
https://imgur.com/hwVmNzt.jpg Our plataforms: Plataform|Link Web|https://eastmile.org Forum|https://board.eastmile.org/forum/ Discord|https://discord.gg/eastmile Wiki|https://wiki.eastmile.org/docs/Wiki/intro



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


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.