CO Community Project

04/07/2010 16:55 ChingChong23#91
Quote:
Originally Posted by Korvacs View Post
This one is one that i wrote, in an old source of mine around 5100, works 100%
yeah i'm sure its a problem i have overlooked on my side, thanks.
04/07/2010 17:02 Kiyono#92
Quote:
Originally Posted by Nullable View Post
NetBeans was quite amusing :)
[Only registered and activated users can see links. Click Here To Register...]
I'll try that then.
04/07/2010 17:55 ChingChong23#93
so i did a little bit of testing

Code:
CPU Usage (all players were in the same area)

0.14% CPU - 1 player (CoEmu)
0.00% CPU - 1 player (Jonquer)

0.6% - 0.20% CPU - 2 players (CoEmu)
0.00% - 0.01% CPU - 2 player (Jonquer)

0.11% - 0.30% CPU - 6 players (CoEmu)
0.2% - 0.4% CPU - 6 players (Jonquer)

Memory:

CoEmu 68mb
Jonquer 95mb
I honestly expected results like that, i'm using memory very well and caching a lot of data on initialization of the server and putting it into appropriate collections, instead of putting everything in an array and looping through it at runtime.

Of course, these results mean little until a proper test of at least 50-100 users are online.
04/07/2010 19:34 ~Yuki~#94
looks promising tho^^
04/07/2010 21:35 ChingChong23#95
[Only registered and activated users can see links. Click Here To Register...]

i have all area-of-effect skills properly set up, includes weapon skills (can buy from pedlar's, can use) and killing monsters/players with it will increase skill exp/skill level.

got quite a bit of progress today, fixed a bunch of bugs and other things. Tomorrow ill work on the base for other skill types (line attack, aoe heal, single target attack, single target heal, variable aoe attack (direction & width/depth (scatter, FoH etc))

Code:
// Rage
StaticData.getSkills().put(7020, new AreaOfEffectAttack(SkillType.WEAPON_SKILL));
// Snow
StaticData.getSkills().put(5010, new AreaOfEffectAttack(SkillType.WEAPON_SKILL));
That's how easy it is to implement a skill

Code:
if(i.getWeaponType() == Formula.CLUB) // clubs use rage.
	i.setWeaponSpellID(7020);
if(i.getWeaponType() == Formula.WAND) // wands use snow.
	i.setWeaponSpellID(5010);
this is how to bind a weapon to initiate a weapon skill (7020 / 5010 being rage and snow)

if anyone knows of any other skills (normal skills or weapon skills) that have area of effect attacks, but are not limited to direction (fire circle, rage, snow) hit all targets around you. scatter and fire of hell don't, they hit in a direction.

gah now i just remembered somewhere in the INI files each spell does have it's own 'group type' so i don't even need to add the first part manually.
04/07/2010 21:44 Kiyono#96
So which compiler do you use since NetBeans completely failed here.
04/07/2010 22:16 ChingChong23#97
Quote:
Originally Posted by Kiyono View Post
So which compiler do you use since NetBeans completely failed here.
ugh, i use eclipse however you won't need an IDE if you just wanna run it.

get an SVN client (tortoise svn will do) figure out how to download the source package. once you got it, go into the base folder (where you have bin, lib, src etc) make a new text file, name it run.bat, edit it and put this text in there.

If you want an easier way, ill upload a distribution (including source) this is the latest one from my pc. just extract it somewhere and run the 'launch' file. If you get an error, google 'set java environmental variables' and make sure you have java installed.

[Only registered and activated users can see links. Click Here To Register...]

you will need a 5017 client.
04/07/2010 22:32 PeTe Ninja#98
Quote:
Originally Posted by ChingChong23 View Post
ugh, i use eclipse however you won't need an IDE if you just wanna run it.

get an SVN client (tortoise svn will do) figure out how to download the source package. once you got it, go into the base folder (where you have bin, lib, src etc) make a new text file, name it run.bat, edit it and put this text in there.

If you want an easier way, ill upload a distribution (including source) this is the latest one from my pc. just extract it somewhere and run the 'launch' file. If you get an error, google 'set java environmental variables' and make sure you have java installed.

[Only registered and activated users can see links. Click Here To Register...]

you will need a 5017 client.
Here..This is a fast mirror..

Link should work in a few minutes.

1MB/S = Atleast it was for me..
[Only registered and activated users can see links. Click Here To Register...]

500KB/S = Atleast it was for me..
[Only registered and activated users can see links. Click Here To Register...]
04/08/2010 00:58 pro4never#99
Is there a reason you are going with 5017 for your java project? Why not go with 5095, 5165 or even better, 5180++?

5017 is kinda.. dead... especially seeing as there is hybrids if someone realllyy wanted to go with a 5017 server (not that hybrids can't be updated to a newer patch)

I dunno... just personal view but I'd say if you are gonna put that much work into a custom source... why not make it something that people will actually care about (cause as I've seen with coemu... no one cares about anything except the newest patch regardless of stability and horrible coding (</3 lotf so much)
04/08/2010 07:22 ChingChong23#100
I use 5017 because i like it being CO 2.0, without the ninja and other stupid things at the later versions (i may even downgrade it just to before the client has potency, don't know what patch that is though)

plus the newer the version, the more content you need to add. each time TQ added content after around the 5000 number it was usually bad.
04/08/2010 07:34 pro4never#101
Yah makes sense. If I was taking that route I'd prob do it EARLY 2.0 (either before cps were added or just after)

back before lotto/pot/2nd reb/db lvling/mall/etc yet still into 2.0 so you don't have the rather.... basic... 1.0 graphics and UI.
04/08/2010 07:49 Nullable#102
Go for 4351, CPs was implemented about that patch and i don't think potency was implemented yet
04/08/2010 08:02 © Haydz#103
Quote:
Originally Posted by Nullable View Post
Go for 4351, CPs was implemented about that patch and i don't think potency was implemented yet
Yeah, 4351 is the optimum version in my opinion, no potency but an alternate currency to money is extremely useful :D
04/08/2010 08:04 pro4never#104
Quote:
Originally Posted by Nullable View Post
Go for 4351, CPs was implemented about that patch and i don't think potency was implemented yet
pot was AGES after cp came out.... like a lonngg time cause I know lotto was out for probably 6+ months before pot came out and lotto wasn't that long ago (ok so I'm using my own skewed memory here... but w/e)
04/08/2010 08:12 ChingChong23#105
4351 sounds good.. is there much difference in the packet structures between 5017 and that?