Page 2 of 2

Posted: 31 May 2004, 06:36
by ElvenProgrammer
yes is the next point the npcs.
probably the packet about the npc in the current source is not working
if you want to manage npcs I'll leave them to you and move on something else. Use red rects to represent nps

Posted: 31 May 2004, 19:38
by natsuki
found some packets from the japanese one^^

ok i try to represent those npcs

Posted: 09 Jun 2004, 03:39
by Genis
ok, im real sorry, im still kind of out of it. Got my last final on friday, and then nothing, so expect some actual coding from me to get done soon:)

Posted: 10 Jun 2004, 00:56
by Genis
This is probably already done, seeing as the newest source had it basically working. But in case it wasnt finished, I got character deleting working and uploaded the updated sources to the ftp server. All my changes were documented in the proper format. I am now working on implementing your character creation code with a gui interface. I will keep you posted, and sorry I couldnt get going on this project sooner...gotta hate school:)(Java Final Project)

Well talk to you all later

.

Posted: 10 Jun 2004, 02:52
by Sull
just aplied yur patch to my source,yur delete char work fine but he always delete the wrong char,
never the one selected

Posted: 10 Jun 2004, 02:57
by Genis
hmm, ill check that out, I didnt seem to have that problem, ill let you know

.

Posted: 10 Jun 2004, 04:01
by Sull
ok thx yu =)

Posted: 10 Jun 2004, 04:27
by Genis
yea, I found the problem, shouldnt be hard to fix. Its just not sending the right character ID. I will try fixing it tommorow, I tried tonight, but I need to go to bed. Ill post the fix tommorow.
Later

Update
added a message box to display what character it is selecting.

EXAMPLE
char1
char2
char3
If I select char 1-It selects char 3
If I select char 3-It selects char 1
If I select char 2- it selects char 2
I currently cant explain why, but Ill figure it out

Fixed
I fixed the problem, It was an easy fix after I found the pattern that it messed up in(as shown above)
however I am not sure why it is working like it is, so if anyone knows thatd be great. The code on the ftp is now updated, otherwise just use this:

Code: Select all

	// Genis .5a 06-10-04 
					// Gets the email text entered by user, The Selection needs to be subtracted from the total in order to get the proper character ID.
					// If any one knows why, let me know, because I looked through the rest of the code, and Ive never seen anyone have to do this subtraction
					CHAR_DELETE_REQUEST *char_delete_request = create_char_delete_request(char_success->character_info[(char_success->n_characters-1)-lChars.Selection()].character_ID,char_del_dialog->email.get_text());
					char_success->n_characters-=1;//set the # of characters to the proper value, otherwise if the player tries to delete multiple characters at once, the math will be off and it wont work
					//End
Current Project:Character Creation Gui

Posted: 15 Jun 2004, 01:45
by SquallX7
Hmmm... I'm good With Sockets... If you want I could code a server in Perl, so it could work on all OS's? or if you want something a bit more strict I played with Sockets for VC++ as well. If you want me to help email me at rbtaylor@kingston.net

Posted: 15 Jun 2004, 03:48
by RRC
go onto the irc channel, there are details on the webpage, http://themanaworld.sourceforge.net

Posted: 15 Jun 2004, 11:00
by jui-feng
ah and theres another problem with character-slot-IDs when you select your char, same as char-deletion (by genis :D). If the first slot is unused, it seems like the wrong char-id is sent. (maybe because the index of the selection-list is 0 for the 2nd slot, since there is no first slot entry displayed)

Genis posted a fix in IRC yesterday, i tried it, and now the client doesn't hangup when i select the char and click OK. (edit: it sends a wrong number, too!) (edit: forget this paragraph ;D ) But the only thing i see is green grass. most likely because the client says i'm prontera.gat.. ah, maybe i forgot to change some things back in the code after playing around with it.

and maybe it's eAthena-related.

Only wanted to point at the problem with char-selection. (And eAthena? Or is it because 1st slot unused? ^^)


edit: ah.. i figured it out (hopefully)! :)
it's because the first slot is unused. with the original .0.6a code and all slots up to the chosen char are used, it's no problem. maybe this should be checked, and the number of free slots up to the chosen character-slot should be added to the selection-index, or the slot-number sent by the server should be saved with each char-name.

now i have the prob that the client crashes when executing the line:
clear_bitmap(screen);
in game.cpp - but this is something different. Maybe sull knows more about it.

i don't think this is eAthena related (?), so it could be linux related.

Posted: 15 Jun 2004, 15:44
by Genis
Me and jui-feng seem to have got it working. Try using this revised fix
http://themanaworld.sourceforge.net/php ... ?p=468#468