[Dev] DragonFlyFF Server

thats sad if you dont know that error yet... it means you need to go to item.h and find void item as you look around you will notice its not there as for where you place it i wont say it requires mjnjscule knoledge to figure out please learn the language b4 you come and bug us it's antiRTF's job to spoon feed newbies not us....
 
Okay in revision 16 I get and error compiling the LoginServer, here's what I get.

any idea how to fix this?


I'm sorry I'm still in the process of learning.. No need to be an obnoxious person and get mad.. So please let me be..
I'm here to learn and to share knowledge.. I'm not here to spam.. >__<
Fixed it in revision 20 removed Item's inheritance from Mover so the compile error is gone. Also don't mind other people you're trying to learn which is an improvement over others, I've implemented the start of the bank packets, still need to think up an actual load/save system for it probably going to just use a simple vector in the bank class to store ids. As of revision 20 you can pick up items, also fixed a minor bug in buying items.
Edit: just added in the functions for the basic bank class and updated the bank to allow removing of items from the bank a minor bug which I noted on the revision history, which I'll fix tomorrow, if no one else fixes. Also Glaph can you save the bank pass in the character table, just got to lazy to deal with saving data. Also could you make a bank item table for later.
 
Last edited:
wow your realy in to this Akitasha o.o wish I could be this creative but by the timme I figure stuff out you guys have changed somthing are did it already :< so kinda pointless I guess.... oh well .....

I guesss thats what happens when your grownded (schools computer bombed and lost all my am history and a good 3 weeks of work in my other classes)

so my grade bombed...... <- the schools server crashes apoximately every 1 hour its on and take about 2 hours to restart <- yeah its a peice of junk
 
wow your realy in to this Akitasha o.o wish I could be this creative but by the timme I figure stuff out you guys have changed somthing are did it already :< so kinda pointless I guess.... oh well .....

I guesss thats what happens when your grownded (schools computer bombed and lost all my am history and a good 3 weeks of work in my other classes)

so my grade bombed...... <- the schools server crashes apoximately every 1 hour its on and take about 2 hours to restart <- yeah its a peice of junk

Yeah i know the feeling of having school work, thats why I originally stopped working on the src, anyways good luck with that. I'd wish the community would use the bug tracker, it would help us out alot.
 
why not have compiler version?i lazy install c++ =(
can post compiler version? thanks~

Sorry there is no plan for that right now, but once we get some of the basic features going and bugs fixed, I will look into it, by compiler i'd assume gcc, seeing how it's the only other compiler i'm accustom to. Though other than missing a make file theres only a couple of things that might be dependant on the VC compiler.
 
hey akijta has the shop loading glitch that makes all shops load the same shop been fixed? oh and if you havnt finished b4 im done im currently working on the base of quests i was thinking of makeing it run from a txt but so far ive only thought out the format please feal free to work ahead but in the event i get the basic layout done perhaps itd help idea wise i cant transfer t it right now though what i have im on my ps3... and cant get on until ive done chores and earn time but even at that i have to navigate backdoors of my moms paretal blocks on her computer (my 7 year old sister uses the computer alot
 
hey akijta has the shop loading glitch that makes all shops load the same shop been fixed? oh and if you havnt finished b4 im done im currently working on the base of quests i was thinking of makeing it run from a txt but so far ive only thought out the format please feal free to work ahead but in the event i get the basic layout done perhaps itd help idea wise i cant transfer t it right now though what i have im on my ps3... and cant get on until ive done chores and earn time but even at that i have to navigate backdoors of my moms paretal blocks on her computer (my 7 year old sister uses the computer alot
Oh that wasn't a bug, that was cause i forced the server to load only one shop for all npcs, yeah thats been changed now if they don't have data in the shops.txt the server will just give an error msg in the console and not load a shop. I myself thought about quests, but still no real lead on how they are implemented, the only lead I had was related to one the npc quest packets in which the server sends the quest id and quest state.
 
first of all, the quest "?" 's appear on the client side at the first level required. When you click on the desired NPC it should check to see what level the char is on. Then it should check the quest data looking for the NPC id and the req level. after which should send the text in the window and a button to accept the quest.

At that point is when the user accepts it thereby sending the addQuest packet back to the client. This updates the quest log.

When the player returns to the npc quest requester :), it should check whether the desired criteria is met, if it is then it completes the quest and flags it in the journal as done. After which, items, gold, and penya are awarded.

It all follows the same pattern. However, more sniffing is going to be needed to get all the packets for each action.
 
first of all, the quest "?" 's appear on the client side at the first level required. When you click on the desired NPC it should check to see what level the char is on. Then it should check the quest data looking for the NPC id and the req level. after which should send the text in the window and a button to accept the quest.

At that point is when the user accepts it thereby sending the addQuest packet back to the client. This updates the quest log.

When the player returns to the npc quest requester :), it should check whether the desired criteria is met, if it is then it completes the quest and flags it in the journal as done. After which, items, gold, and penya are awarded.

It all follows the same pattern. However, more sniffing is going to be needed to get all the packets for each action.
Lol I'll leave it you since you seem to have a better understanding of it. :P.
 
first of all, the quest "?" 's appear on the client side at the first level required. When you click on the desired NPC it should check to see what level the char is on. Then it should check the quest data looking for the NPC id and the req level. after which should send the text in the window and a button to accept the quest.

At that point is when the user accepts it thereby sending the addQuest packet back to the client. This updates the quest log.

When the player returns to the npc quest requester :), it should check whether the desired criteria is met, if it is then it completes the quest and flags it in the journal as done. After which, items, gold, and penya are awarded.

It all follows the same pattern. However, more sniffing is going to be needed to get all the packets for each action.

dont forget job change :P
 
Hey guys, Im a little away from dFlyFF, I will be back to it but I would like if you have somewhere that is like:
Akitasha: Im working at this
GK: Im working at that
etc.
So I wont make something that is already being made :\

BTW, I've made a code that loads things faster from sql(just one query instead of tons), but I see that was already an update that loads it from a txt file(its slower, like 4 seconds then sql), so I would like to know if you want it or stick to .txt :x
 
Hey guys, Im a little away from dFlyFF, I will be back to it but I would like if you have somewhere that is like:
Akitasha: Im working at this
GK: Im working at that
etc.
So I wont make something that is already being made :\

BTW, I've made a code that loads things faster from sql(just one query instead of tons), but I see that was already an update that loads it from a txt file(its slower, like 4 seconds then sql), so I would like to know if you want it or stick to .txt :x

Awesome, I was wondering where you were at :P.
Anyways I'd like the same to, it would be easier to make a file of what we're working on and throw it on the svn.
Currently i'm working with using items (aka consumables), implementing actual uses of the item, I have healing items working, just need to broaden the concept, though i'm thinking about reworking the item class structure was looking at Adi's implementation, also thinking about how to make it more optimized cause right now, i don't think i'm thinking on a larger scale if lets see 20 users were using an item at the same, how much cpu/memory usage would that be.
 
I will be testing out the new mob spawn today and if it works like I think it will, the new version will have all the mob spawns in every world with the exception of the party bosses (i.e. muscle, krr, etc). CW Arena will be the last one on the list so don't get your hopes up seeing it anytime soon.

plus I will be researching why the mobs move so slow after a "hit and run".

Notice: we are moving most of the core loading data off the database for various reasons, one of them being loading time and the other being saving memory. While this is not set in stone, it is promising to be the final product unless BBim's idea works better in which case we will go with that.
 
I must say that I enjoy looking at your source code.
Here's a small contribution:

Code:
void PlayerPacket::UnknownPacket1(Player* player){
	Packet pak = Packet();
	pak.addBytes("5E0C000000EA00FF000400000054657374");
	//pak.completePacket();
	pak.packetSend();
}
Notice packet.

Code:
void PlayerPacket::Channel(Player* player){
	Packet pak = Packet();
	pak.setPlayer(player);
	pak.addBytes("FFFFFFFF4101430000000400000074657374000101001100000001000000");
	pak.completePacket();
	pak.packetSend();
}
Same as:
Code:
                Friend friend = (Friend)c_data.friends[i];
                pak.StartNewMergedPacket(-1, PAK_ADD_FRIENDDATA); // PAK_ADD_FRIENDDATA: 0x141
                pak.Addint(friend.dwCharacterID);
                pak.Addstring(friend.strPlayerName);
                pak.Addbyte(friend.dwClass);
                pak.Addbyte(friend.dwLevel);
                pak.Addbyte(friend.dwGender);
                pak.Addbyte(0x00); //??
                if (friend.bOnline)
                    pak.Addint(friend.dwNetworkStatus);
                else
                    pak.Addint(0x00000001);
                pak.Addint(0x00000000);

Code:
void PlayerPacket::newMP(Player* player, Player* sender){
	Packet pak = Packet();
	pak.setPlayer(sender);
	pak.addHeader(player,0x1e);
	pak.addInt(0x27);
	pak.addInt(player->getMP());
	pak.completePacket();
	pak.packetSend();
}

You got it on newMP, newHP, newFP, penya and more.
Suggestion: delete those functions and use SetAttribute instead.
(This applies to all 0x1E packets)

0xE0 command is melee attack. There's ranged attack which is 0xE1/2 and magic attack which is 0xE2/1 - remember that.

Looks like you used my source as a packets reference, eh? :P
 
well some, yea. I noticed some of your code is the same as mine but mine were missing some things you already implemented.

a LOT of packet codes were done by Kiki and at the time I was more worried about adding new packets and testing them rather than redoing code (which is going to happen soon).

I'm glad you notice some things like that. If there is one thing I absolutely hate, its redundant code.

Thanks for pointing those out. Its on the list for future revisions.
 
You got it on newMP, newHP, newFP, penya and more.
Suggestion: delete those functions and use SetAttribute instead.
(This applies to all 0x1E packets)

0xE0 command is melee attack. There's ranged attack which is 0xE1/2 and magic attack which is 0xE2/1 - remember that.

Looks like you used my source as a packets reference, eh? :P
Yeah already took your suggestion of setAttribute 0x1E and raiseAttribute 0x1C. 0xe1 and 0xe2 i'll look into.
 
Notice: we are moving most of the core loading data off the database for various reasons, one of them being loading time and the other being saving memory. While this is not set in stone, it is promising to be the final product unless BBim's idea works better in which case we will go with that.

At my first tests, from database with just one query, loaded 5 seconds faster then txt
(70 seconds with lots of querys, 10 seconds from db with 1 query, 15 seconds from txt).
Note: results arent accurate, I rounded them and didnt make like (test 1 + test 2 + test 3) divided by 3, I made like:
69.29
71.30
70.50
(fantasy numbers), and took 70 as time loading.
Taking out npc's loading query, it might go to like 5 seconds or less.

At other times I loaded the .txt for items, it loaded at around 10 seconds too, it was pretty much the same but in my opnion, db is better to edit something, unless we make an application that helps editing it(pretty easy to do).
So it would be almost the same :P
 
Back