Mirage Source http://www.miragesource.net/forums/ |
|
Couple of features http://www.miragesource.net/forums/viewtopic.php?f=207&t=3637 |
Page 1 of 1 |
Author: | Xlithan [ Fri Apr 25, 2008 6:17 am ] |
Post subject: | Couple of features |
Couple of features I have tried to add to the Konfuze engine, but I must be using the wrong methods since they didn't quite work properly after a few attempts. - Hunger/Thirst. - Mail system. For hunger, my initial method was to add 2 timers to the client, one for hunger, one for thirst. Each minute, these timers would send a message to the server, and reduce the players hunger/thirst bars by 1. When reaching 50% it would tell the player that they were either hungry, thirsty, or both. When the bars reached 0, they would die. The only way to put them back up was to use a food item type, or a drink item type. However, the method I used didn't seem to work properly. For the mail system, I had the server create an ini file each time a character was made. So, if this file existed, data could be written into it. If you sent a message to the player, it would send the data to the server, look for the file name (Which was the character name), and save the message into an empty block. For some reason, when trying to send the data, the client closed without any notification of errors which I couldn't figure out. Anyway, if anybody is interested in helping me to add these 2 features (I also have some more things I'd like to add too), please contact me. |
Author: | Joost [ Fri Apr 25, 2008 8:21 am ] |
Post subject: | Re: Couple of features |
Stuff like hunger shit should be server-side, everything client-side can be messed with. |
Author: | Coke [ Fri Apr 25, 2008 8:32 am ] |
Post subject: | Re: Couple of features |
For hunger/ thirst you want to use tickcount (not a timer.. >_>) server side. If you don't let the server handle it and send packets to the client, all kinds of evil stuff will happen when a player with half a brain logs on O: |
Author: | Xlithan [ Sat Apr 26, 2008 9:47 am ] |
Post subject: | Re: Couple of features |
Yeah, after thinking about it I knew I probably should have done everything server-side. I'll try and do it again that way, but I'm still unsure why I couldn't get my mail system working so will need help doing that. |
Author: | Joost [ Sat Apr 26, 2008 4:59 pm ] |
Post subject: | Re: Couple of features |
By clickng on the side of your VB thing, the entire line turns grey I think. When the line is being called, the program pauses, and shows you where it is. Add those little things everywhere, and see which point it reaches, and which it doesn't. The line in between those two points is the problem. |
Author: | Lea [ Sat Apr 26, 2008 7:29 pm ] |
Post subject: | Re: Couple of features |
When it stops, it stops BEFORE that line is executed, not after. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |