Win32 client
Forum rules
This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.
Its current use is for the continued development of the server and game it has always served: TMW Classic.
- ElvenProgrammer
- Founder
- Posts: 2526
- Joined: 13 Apr 2004, 19:11
- Location: Italy
- Contact:
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
Well talk to you all later
.
just aplied yur patch to my source,yur delete char work fine but he always delete the wrong char,
never the one selected
never the one selected
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:
Current Project:Character Creation Gui
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
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
go onto the irc channel, there are details on the webpage, http://themanaworld.sourceforge.net
-=-=- The Mana World Graphics Designer -=-=-
ah and theres another problem with character-slot-IDs when you select your char, same as char-deletion (by genis ). 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.
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.
:> poor english i know ^^ hope you understood a half.. <:
________________________
asdf?!
come, lets talk with swords! omfg!
________________________
asdf?!
come, lets talk with swords! omfg!
Me and jui-feng seem to have got it working. Try using this revised fix
http://themanaworld.sourceforge.net/php ... ?p=468#468
http://themanaworld.sourceforge.net/php ... ?p=468#468
Sorry...I only speak English