CSREmu

05/16/2010 12:50 kasparas1997#2161
Did that but i copy everything and then when i load loadsremu.exe it pop ups obout the nucretor i press ok than it shows gameguard and then crashes
05/16/2010 14:44 bazmeganyad#2162
Quote:
Originally Posted by kasparas1997 View Post
Did that but i copy everything and then when i load loadsremu.exe it pop ups obout the nucretor i press ok than it shows gameguard and then crashes
are u running gameserver and loginserver?
05/16/2010 19:30 kasparas1997#2163
Quote:
Originally Posted by bazmeganyad View Post
are u running gameserver and loginserver?
Yes(but i will wait till new version will come till that day i will play my Iris server ;)
05/17/2010 06:48 Manyac#2164
I have a new problem, when I do alt + shift then shift + ^, the GM console doesnt pop up, my guy stops moving, and then i cant load the server back up unless i delete him and my account, any ideas, oh it also creates a duplicate of my carater making him impossible to log onto again. and when i set his lvl in navicat it doesnt work or show in game

I figured out and fix all other issues, besides this one, everything else works perfectly, no more remote server showing up, can log onto main server now, create characters but thats about it.
05/17/2010 08:21 xryckaxx#2165
i create acc. log in create char then log out close gameserver and login server then trying open gameserver and i get dont send. how do i fix?
05/17/2010 17:48 papapajo#2166
at wich time will come new CSREMU Patch??
05/17/2010 18:20 jM3#2167
LOL...

Really, 30+ queries just to get the data returned in 1 query?

Fail. Just... Fail.
05/17/2010 18:38 Davincibg#2168
jMerliN why are you dealing at all with the other projects? I respect you and your work and I believe that you are the only one that can create a Server-like emu, but I don't see what's the point of arguing with child about other stuff. If I were you I would've assemble a team and really work on an emu that can be as good as the original files. I don't think that working alone is perfect for you.
05/17/2010 18:45 Shadowz75#2169
Quote:
Originally Posted by jM3 View Post
LOL...

Really, 30+ queries just to get the data returned in 1 query?

Fail. Just... Fail.
those are the old version. dont you look at your vb emu , too and then you think its bad?so i dont see the point in insulting me

edit: 30+ queries?
Quote:
DataSet tmpDataSet = Database.GetDataSet("SELECT * FROM user");
i only see 1 query
05/17/2010 20:08 jM3#2170
Quote:
Originally Posted by Davincibg View Post
jMerliN why are you dealing at all with the other projects? I respect you and your work and I believe that you are the only one that can create a Server-like emu, but I don't see what's the point of arguing with child about other stuff. If I were you I would've assemble a team and really work on an emu that can be as good as the original files. I don't think that working alone is perfect for you.
All I need is packets. Get someone to give them to me and I'll be done.

Quote:
Originally Posted by Shadowz75 View Post
those are the old version. dont you look at your vb emu , too and then you think its bad?so i dont see the point in insulting me

edit: 30+ queries?

i only see 1 query
Lol, that's not the code I saw on page 1. And you're using a DataSet object? That's a behemoth of a class and is quite slow on instantiation and requires you to index like 4 arrays to get what you need, each one kills performance.

Further, you're making much more rudimentary mistakes. While caching accounts is a GOOD thing in general, you have implemented it in an abhorrent manner. The array resizes and constant indexing is a bad thing, you're keeping track of many parallel and related arrays rather than creating a class or structure of some kind and keeping a simple array of them, using OOP. This would allow you to grab just the object needed and resize just 1 array, all around a large performance boost. Also, what you're doing really prevents you from multi-threading...

In what you're currently doing, I guarantee you a SQL db running locally would do inserts/selects on a DB of under 100,000 rows faster than the rest of your code executes, so while you still insert on char creation (rather than queueing those up for batch processing), you're destroying any performance caching could possibly provide. And the idea of caching isn't "mirror the database in the local application." It's "mirror the most active entries of the database in local memory." The database has that entire table loaded into memory already, in all likelihood, so you're being redundant, and a local connection would have 0 latency probably implemented with a pipe rather than a socket, so it's not much of an overhead. You should probably load the most recently used ~700 accounts into memory, then you have the concept of a cache hit and miss, if it's a miss, you have to go to the DB to get the info, then you might add it into your cache and every 20 minutes trim off the older entries, depending on how you manage memory (you might not worry about it, which is 1 approach but that lends itself to a need for maintenance, you might look at how much memory you have free and try to clear it up from places where you have cached objects, but this can also cause fragmentation of your heap(s), so it's a lot more complex a subject than just black/white).

You won't notice these issues with fewer than 100 players joining your server but when you try hosting 5000, you'll notice them, or if someone tries to attack your server, which would be easy because I could cause just 1 bit of bad code like that to become very busy starving the system of CPU (and/or memory) which could crash the server or time out users. Think big when you design something, look @ the guys working on betamax, they tried spawning and tracking millions of mobs, I suggested using a quadtree for locale and it made millions of mobs which took a lot of power to process and a long time to compute locality take almost nothing to process. Stress testing is the key to stability and efficiency; if you code like only 20 people will ever use your emulator, then in all likelihood, only 20 people will be able to use your server with any semblance of stability or speed.
05/17/2010 20:27 EgyCheETah#2171
shadow i can see something right there

just keep it up man i like it

we need more hard job to make it the first perfect emu
05/18/2010 01:02 PortalDark#2172
shadow, maybe I can help a bit, im on msn
05/18/2010 09:26 xryckaxx#2173
Quote:
Originally Posted by xryckaxx View Post
i create acc. log in create char then log out close gameserver and login server then trying open gameserver and i get dont send. how do i fix?
any 1 can help? :|
05/18/2010 12:18 crazyneo6#2174
what SRO version works with this emulator ?
05/18/2010 12:33 xvaidasxx#2175
READ