Timestamps are in GMT/BST.
| 00:14:00 | | iKoda Quit (Quit: K thx bai) |
| 00:24:00 | | BFLogBot - Commit ada61a054551 | Author: sam8641 | Log: Fix some joystick problem, PredefinedJoystickList was rewritten. |
| 00:27:00 | watusimoto | I'll be around for a few minutes if anyone has anything they want to discuss |
| 00:30:00 | watusimoto | that video wasn't in English, btw |
| 00:49:00 | | BFLogBot - Commit 9d2da8b0b97a | Author: sam8641 | Log: Remove gClientGame from GameObject::onGhostAdd and fix Projectile::unpackUpdate |
| 00:50:00 | sam686 | Can't use getGame() inside unpackUpdate, as TNL likes to call unpackUpdate first, then onGhostAdd(GhostConnection *theConnection) |
| 00:51:00 | sam686 | but with unpackUpdate(GhostConnection *connection, BitStream ) it is possible to use GameConnection *gc = (GameConnection *)connection->mClientGame; |
| 00:51:00 | raptor | watusimoto: still here? |
| 00:53:00 | sam686 | now to fix broken goalZone rendering... |
| 00:59:00 | raptor | sadly, i missed watusimoto again... |
| 01:09:00 | watusimoto | hi |
| 01:10:00 | raptor | hi |
| 01:10:00 | raptor | still around? |
| 01:10:00 | raptor | and can take a question? |
| 01:10:00 | watusimoto | @sam -- maybe we can assign the game when the object is created, rather than waiting until it has been added to the game |
| 01:10:00 | watusimoto | that would fix the timing issue you just described |
| 01:11:00 | watusimoto | @r yes |
| 01:11:00 | raptor | yes! |
| 01:11:00 | raptor | ok |
| 01:11:00 | raptor | what was your idea about handling CommandMapVisType |
| 01:11:00 | watusimoto | two methods |
| 01:12:00 | watusimoto | isVisibleOnCmdrsMap |
| 01:12:00 | watusimoto | and |
| 01:12:00 | raptor | because we need to do a search for objects in that category, as well as change what objects go in the category |
| 01:12:00 | watusimoto | isVisibleOnCmdrsMapWithSensor |
| 01:12:00 | sam686 | This is how TNL does it for clients: it creates object, then call unpackUpdate, then calls onGhostAdd |
| 01:12:00 | watusimoto | @s we could change the order, or we could assign game at creation time |
| 01:12:00 | watusimoto | that second might be my pref., then we know getGame will never return null |
| 01:13:00 | raptor | you mean like a grouping method like these?: http://pastie.org/2336941 |
| 01:13:00 | raptor | (which i already wrote) |
| 01:13:00 | raptor | but we just pass in the correct one when needed? |
| 01:13:00 | watusimoto | yes, create two more |
| 01:13:00 | watusimoto | yes |
| 01:13:00 | watusimoto | then pass the one we need |
| 01:14:00 | raptor | okey doke |
| 01:14:00 | watusimoto | make sense? |
| 01:14:00 | raptor | yep |
| 01:15:00 | raptor | didn't think your idea was that simple for some reason.. |
| 01:16:00 | watusimoto | @s -- do you see any drawback to assiging mgame at creation time? |
| 01:18:00 | sam686 | i don't really see any problems, but i will test for any problem running unpackUpdate after onGhostAdd |
| 01:19:00 | watusimoto | ah, I see your fix now |
| 01:19:00 | | BFLogBot - Commit 05f042d4a4b2 | Author: sam8641 | Log: Fix renderGoalZone |
| 01:19:00 | watusimoto | I like it |
| 01:20:00 | | Flynnn has joined |
| 01:22:00 | sam686 | i ran into null ClientGame in GrenadeProjectile::idle - getGame() can be ServerGame... |
| 01:22:00 | watusimoto | ok; if it was gClientGame before then that was wrong |
| 01:23:00 | sam686 | GrenadeProjectile::idle is unrelated to if onGhostAdd is before or after unpackUpdate |
| 01:25:00 | watusimoto | Yes -- I see how to fix that; |
| 01:25:00 | watusimoto | I'll do it if you haven't |
| 01:26:00 | sam686 | it is only for clients, to attempt to fix lag and burst teleporting behind making it look worse without the fix.. |
| 01:26:00 | watusimoto | yes; just need to check if we're client and do the client-only stuff if we are |
| 01:28:00 | raptor | dinner time! |
| 01:34:00 | watusimoto | Proposed fix comitted |
| 01:34:00 | watusimoto | back in a bit |
| 01:34:00 | | BFLogBot - Commit 2ad63ec8f655 | Author: watusim...@bitfighter.org | Log: Fix GrenadeProjectile::idle |
| 01:34:00 | | BFLogBot - Commit 2ae734f17810 | Author: watusim...@bitfighter.org | Log: Merge |
| 01:36:00 | sam686 | having unpackUpdate after onGhostAdd have a speedZone problem (calls onGhostAdd then onAddedToGame then preparePoints) if it didn't get the coords information first (unpackUpdate first) then it ends up at (0,0) at client side |
| 01:37:00 | sam686 | also having having unpackUpdate after onGhostAdd can worsen the client's performance due to adding to database then having to move them, for all goalZone and LoadoutZone, and others.. |
| 01:51:00 | watusimoto | yes. Let's just assign game at creation. All these issues will dissapear |
| 01:51:00 | watusimoto | gotta go. |
| 01:53:00 | | [1]watusimoto has joined |
| 01:54:00 | raptor | he forked! |
| 01:56:00 | | watusimoto Quit (Ping timeout: 240 seconds) |
| 01:56:00 | | [1]watusimoto is now known as watusimoto |
| 02:05:00 | sam686 | probably best to have a onGhostAddBeforeUpdate, just to set mGame, then add to gridDatabase after update.. |
| 02:05:00 | sam686 | update as in running unpackUpdate |
| 02:16:00 | raptor | phoew, merge still good... |
| 02:18:00 | | zoomber_laptop has joined |
| 02:18:00 | zoomber_laptop | raptor! |
| 02:18:00 | zoomber_laptop | help |
| 02:18:00 | raptor | hi |
| 02:18:00 | zoomber_laptop | i am standing in a |
| 02:18:00 | zoomber_laptop | field tryin to get |
| 02:18:00 | zoomber_laptop | wifi signal frm a tower |
| 02:28:00 | | zoomber_laptop Quit (Ping timeout: 255 seconds) |
| 02:34:00 | | BFLogBot - Commit f7b2bc5b4e9c | Author: sam8641 | Log: Added onGhostAddBeforeUpdate, for allowing setting something like mGame |
| 02:54:00 | | zoomber_laptop has joined |
| 02:54:00 | zoomber_laptop | ok |
| 02:54:00 | zoomber_laptop | udp working better with low range though |
| 02:55:00 | zoomber_laptop | tnl especially |
| 02:57:00 | | zoomber_laptop_ has joined |
| 02:57:00 | | zoomber_laptop Quit (Read error: Connection reset by peer) |
| 02:57:00 | | zoomber_laptop_ is now known as zoomber_laptop |
| 03:00:00 | zoomber_laptop | ok = |
| 03:02:00 | zoomber_laptop | speed test w/ POOR internet wifi strength |
| 03:02:00 | zoomber_laptop | http://www.speedtest.net/result/1422290224.png |
| 03:03:00 | zoomber_laptop | cant hold comp 4 muvh longer |
| 03:03:00 | zoomber_laptop | bye |
| 03:03:00 | raptor | bye |
| 03:03:00 | | zoomber_laptop Quit (Quit: zoomber_laptop) |
| 03:16:00 | raptor | are all things that are Items visible on commander's map? |
| 03:19:00 | raptor | looks like yes |
| 03:20:00 | sam686 | enemy FlagItem is not visible in CTF if dropped.. |
| 03:20:00 | sam686 | but it is commandMapvisible, but sometimes not scoped |
| 03:20:00 | raptor | ah ok |
| 04:16:00 | raptor | what is burst? minetype? |
| 04:16:00 | sam686 | GrenadeProjectile |
| 04:17:00 | raptor | which is BulletType |
| 04:18:00 | raptor | should that be renamed? |
| 04:19:00 | raptor | no i guess not, that is a generic one |
| 04:19:00 | sam686 | not sure, if changing BulletType, that could mean existing robots needs a small change.. |
| 04:20:00 | raptor | yeah, i won't do it... |
| 04:21:00 | sam686 | although existing robots like quickbot and s_bot only use BulletType to determine if it should shield self.. |
| 04:24:00 | raptor | anything other than BulletType and MineType is extra on commander's map with sensor? |
| 04:25:00 | sam686 | probably now, it is only projectiles.. |
| 04:25:00 | raptor | ok |
| 04:25:00 | sam686 | probably not |
| 04:25:00 | raptor | now time for clean-up... |
| 04:33:00 | karamazovapy | I guess bobdaduck is 17. question answered. |
| 04:41:00 | raptor | is it interesting to see long standing zap/bitfighter citizens age? |
| 04:45:00 | karamazovapy | well I was a college student when I started playing, so my status hasn't changed all that much |
| 04:45:00 | sam686 | it still says Ags: 16 in bobdaduck in my view.. |
| 04:45:00 | karamazovapy | but with a lot of the others, they seemed like kids when they first started |
| 04:45:00 | sam686 | probably isn't 12:00 yet.. |
| 04:46:00 | karamazovapy | and at some point, they started to seem more like adults |
| 04:46:00 | karamazovapy | but I'm not sure when it happened |
| 04:46:00 | karamazovapy | zoomber was like little apple when he started! |
| 04:47:00 | raptor | hahaha |
| 04:48:00 | raptor | So something stranged happened today... I played a game with a girl |
| 04:48:00 | raptor | bitfighter game |
| 04:48:00 | karamazovapy | random insanity and footloose are both girls |
| 04:48:00 | raptor | wait, footloose is? |
| 04:48:00 | karamazovapy | yep |
| 04:48:00 | raptor | i knew RI was |
| 04:48:00 | raptor | what |
| 04:48:00 | raptor | no |
| 04:48:00 | raptor | what |
| 04:48:00 | raptor | no |
| 04:48:00 | karamazovapy | yeah |
| 04:48:00 | karamazovapy | lol |
| 04:49:00 | raptor | that means i was playing with TWO girls |
| 04:49:00 | karamazovapy | I mean...they're twelve, but it's neat that there are a couple girls who play |
| 04:49:00 | raptor | paradigm shifted, brain broken |
| 04:50:00 | sam686 | ok, do you call this a phpbb bug? changing "My timezone" to [UTC-8] make bobdaduck age show up at 17, but changing "My Timezone" to [UTC-4] make bobdaduck age go back down to 16 |
| 04:50:00 | raptor | hahaha |
| 04:50:00 | karamazovapy | yeeeah...that seems weird. |
| 04:50:00 | karamazovapy | but I don't know how UTC actually works |
| 04:51:00 | karamazovapy | I mean, if it's different than GMT, does the day shift? |
| 04:51:00 | raptor | it's not different |
| 04:51:00 | raptor | computer nerds just say UTC |
| 04:51:00 | karamazovapy | oh, then it's no error |
| 04:51:00 | raptor | the only that makes a difference is the international date line |
| 04:51:00 | karamazovapy | UTC-8 is further west than UTC-4 |
| 04:52:00 | karamazovapy | oh wait |
| 04:52:00 | sam686 | my clock's date is still August 7, as it has not hit midnight yet (11:52 PM for me) |
| 04:52:00 | karamazovapy | then that is wrong |
| 04:52:00 | raptor | hehe |
| 04:52:00 | karamazovapy | dunno negro. |
| 04:52:00 | sam686 | oh i got the [UTC-8] [UTC-4} switched around.. |
| 04:52:00 | karamazovapy | jackpot |
| 04:53:00 | karamazovapy | gonna go watch falling skies and get my nerd on - see y'all later. |
| 04:53:00 | raptor | bye |
| 04:53:00 | | kodax has joined |
| 04:58:00 | sam686 | i will go bye until tomorrow morning.. |
| 05:15:00 | raptor | night |
| 05:15:00 | kodax | tomorrow morning... of which timezone? |
| 05:16:00 | raptor | UTC - 6, i think |
| 05:16:00 | raptor | or maybe that's me |
| 05:16:00 | raptor | he is close to me |
| 05:39:00 | raptor | anyone awake that knows lua? |
| 06:15:00 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 07:09:00 | | raptor Quit (Remote host closed the connection) |
| 07:15:00 | | kodax Quit (Quit: Sto andando via) |
| 08:27:00 | | watusimoto Quit (Ping timeout: 255 seconds) |
| 11:11:00 | | LordDVG has joined |
| 11:11:00 | | LordDVG Quit (Changing host) |
| 11:11:00 | | LordDVG has joined |
| 11:20:00 | | LordDVG Quit (Ping timeout: 276 seconds) |
| 11:23:00 | | LordDVG has joined |
| 11:23:00 | | LordDVG Quit (Changing host) |
| 11:23:00 | | LordDVG has joined |
| 11:40:00 | | LordDVG Quit (Remote host closed the connection) |
| 14:50:00 | | sam686 Quit (Ping timeout: 250 seconds) |
| 14:51:00 | | zoomber_laptop has joined |
| 14:52:00 | | raptor has joined |
| 14:52:00 | | ChanServ sets mode +o raptor |
| 14:52:00 | zoomber_laptop | i see only karamazovapy and BFlogbot |
| 14:52:00 | zoomber_laptop | oh, hi raptor |
| 14:52:00 | raptor | good day |
| 14:53:00 | zoomber_laptop | wierd, i get this when i open a new terminal window now |
| 14:53:00 | zoomber_laptop | optiplexgx150:~ hushahn$ |
| 14:53:00 | zoomber_laptop | isnt optiplex gx150 an old computer brand? |
| 14:53:00 | raptor | oh yes |
| 14:53:00 | zoomber_laptop | or model by dell? |
| 14:53:00 | raptor | both |
| 14:53:00 | zoomber_laptop | ok |
| 14:54:00 | zoomber_laptop | i wonder why in the name of names is it displaying that on my macbook terminal window |
| 14:54:00 | raptor | is it a hackintosh? |
| 14:54:00 | zoomber_laptop | nope, a macbook |
| 14:54:00 | raptor | then that is weird, unless you are SSH'd into another box.. |
| 14:54:00 | zoomber_laptop | but i am connected to a hotspot cell tower a guy i know built |
| 14:54:00 | zoomber_laptop | i can see it from here, its Faaaaar away |
| 14:55:00 | zoomber_laptop | but i would have no idea what that has to do with anything... |
| 14:55:00 | zoomber_laptop | wow, i should show you a picture, its cool |
| 14:55:00 | zoomber_laptop | hang on |
| 14:56:00 | | sam686 has joined |
| 14:56:00 | | ChanServ sets mode +v sam686 |
| 14:59:00 | zoomber_laptop | ok, uploading the picture now |
| 15:00:00 | zoomber_laptop | it is taking a while to upload it to imageshack, maybe i should upload it to sam's |
| 15:06:00 | | Pointblank has joined |
| 15:06:00 | zoomber_laptop | http://img585.imageshack.us/img585/3005/viewp.png |
| 15:07:00 | zoomber_laptop | thats where im getting internet |
| 15:07:00 | zoomber_laptop | maybe i can photoshop a tower in.. |
| 15:07:00 | raptor | oh wow |
| 15:07:00 | raptor | are you on vacation somewhere? |
| 15:09:00 | zoomber_laptop | yes |
| 15:09:00 | zoomber_laptop | wisconsion |
| 15:09:00 | zoomber_laptop | possible for me to take a boat over of lake Michigan, and go on a search to find _k |
| 15:09:00 | raptor | haha |
| 15:10:00 | zoomber_laptop | is karamazovapy around? |
| 15:11:00 | zoomber_laptop | agh, i still have to figure out how to use cron. i tried reading some pages on it, how it can have commands to startup weekly, daily, or hourly, but didnt see how it could check for instance of bitfighterd |
| 15:11:00 | raptor | so cron just runs any script when ever you want |
| 15:11:00 | raptor | that's it |
| 15:11:00 | zoomber_laptop | ok |
| 15:11:00 | raptor | you have to come up with a smart script |
| 15:11:00 | raptor | that's the hard part |
| 15:11:00 | zoomber_laptop | oooooh |
| 15:12:00 | zoomber_laptop | so i have cron run this smart script every hour or day? |
| 15:12:00 | raptor | exactly |
| 15:12:00 | zoomber_laptop | is that just root$ cron smartscript.extension? |
| 15:12:00 | zoomber_laptop | i should answer that for myself |
| 15:13:00 | raptor | so here is a smart script that checks if a particular TNL based game server is running: http://code.google.com/p/bitfighter/source/browse/tnlping/check_bitfighter_server_status.sh |
| 15:13:00 | raptor | that i checked into hg a while back |
| 15:14:00 | raptor | what you'd have to do is if it fails to detect the server, try to kill the server first (just to be safe), then restart the server |
| 15:14:00 | zoomber_laptop | ok |
| 15:15:00 | zoomber_laptop | got it |
| 15:15:00 | | watusimoto has joined |
| 15:15:00 | raptor | that script sends an e-mail message - you'd probably want to remove that piece |
| 15:15:00 | zoomber_laptop | ok |
| 15:16:00 | raptor | watusimoto: are you available for a question? |
| 15:16:00 | zoomber_laptop | ok |
| 15:16:00 | zoomber_laptop | lets see |
| 15:17:00 | zoomber_laptop | could instead of doing tnlping = ..filepath |
| 15:17:00 | raptor | you'd have to compile 'tnlping' first, if you want to ping the server |
| 15:17:00 | zoomber_laptop | can i do bitfighterd="/root/sam/exe/bitfighterd"? |
| 15:17:00 | zoomber_laptop | and then specify that? |
| 15:17:00 | zoomber_laptop | oh oh ok |
| 15:17:00 | zoomber_laptop | nevermind |
| 15:17:00 | raptor | well, it depends on how you want to check if it is running... |
| 15:17:00 | zoomber_laptop | can it check if an application name or pid is down? |
| 15:18:00 | raptor | yes, you can check PID or try to ping it |
| 15:18:00 | raptor | i figure those are two good options |
| 15:18:00 | zoomber_laptop | ok |
| 15:18:00 | zoomber_laptop | reason being, is how will this work if i have multible servers on |
| 15:18:00 | zoomber_laptop | one might go down, but others might stay up |
| 15:18:00 | raptor | you have to be very specific on your PID search |
| 15:18:00 | raptor | PID is probably better for that |
| 15:19:00 | raptor | do you launch your servers with command line options, like server name? |
| 15:19:00 | zoomber_laptop | no command line args, but |
| 15:19:00 | zoomber_laptop | oops, i think a bug got into my fan.. |
| 15:20:00 | zoomber_laptop | it started vibrating oddly for a few seconds like something was being chopped and then stoped |
| 15:20:00 | zoomber_laptop | ok, back to the topic. i use arguments from ini file |
| 15:20:00 | zoomber_laptop | and if something is wrong in the server, i change it with /setcommands |
| 15:20:00 | raptor | the reason I ask is because you need a way to differentiate them from the command line |
| 15:20:00 | raptor | differentiate the PIDs, i mean |
| 15:21:00 | raptor | and if one PID says: bitfighterd -name "Bifighter Main()" |
| 15:21:00 | raptor | you have a solution |
| 15:21:00 | zoomber_laptop | ok |
| 15:21:00 | zoomber_laptop | i can do that |
| 15:22:00 | zoomber_laptop | so ill do that |
| 15:22:00 | zoomber_laptop | but now i must modify the script to accomidate that too |
| 15:24:00 | raptor | i do exactly what you want with the logbot. here I try to explain the logic: http://pastie.org/2339803 |
| 15:24:00 | raptor | in searchign for the right PID |
| 15:25:00 | zoomber_laptop | ok |
| 15:26:00 | zoomber_laptop | #Die! |
| 15:26:00 | zoomber_laptop | ah, so i use ps ax too |
| 15:26:00 | raptor | oh ooops, that is supposed to be 'kill -9' |
| 15:26:00 | raptor | not 'kill =9' |
| 15:27:00 | zoomber_laptop | ok |
| 15:27:00 | zoomber_laptop | i can ust put that right into check.sh? |
| 15:27:00 | zoomber_laptop | of course must rename |
| 15:27:00 | raptor | sure, but you'd have to use different 'grep' filters |
| 15:27:00 | zoomber_laptop | grep bitfighterd |
| 15:28:00 | raptor | yep |
| 15:28:00 | zoomber_laptop | what about grep java? |
| 15:28:00 | zoomber_laptop | just delete completley? |
| 15:28:00 | raptor | the more greps you add, the further you filter |
| 15:28:00 | zoomber_laptop | i se |
| 15:28:00 | zoomber_laptop | see |
| 15:28:00 | raptor | so you first grep of 'bitfighterd' might return two or three servers |
| 15:28:00 | raptor | then you have to add another grep to filter the specific one |
| 15:29:00 | zoomber_laptop | so if i do screen ./bitfighterd -name "server1" |
| 15:29:00 | zoomber_laptop | i could do |
| 15:29:00 | zoomber_laptop | my_pid=$( ps ax |grep bitfighterd | grep server1 | sed 's/^[ ]*//' | cut -d' ' -f1 ) ? |
| 15:29:00 | raptor | yep, looks good |
| 15:30:00 | zoomber_laptop | ok |
| 15:30:00 | raptor | you can test: ps ax |grep bitfighterd | grep server1 | sed 's/^[ ]*//' | cut -d' ' -f1 |
| 15:30:00 | zoomber_laptop | ok |
| 15:30:00 | raptor | right in the command line to make sure it gives you what you want |
| 15:32:00 | zoomber_laptop | heres what i get without grep server1. i cant restart servers yet because some clients connected to server |
| 15:33:00 | zoomber_laptop | 8016 |
| 15:33:00 | zoomber_laptop | 8017 |
| 15:33:00 | zoomber_laptop | 13926 |
| 15:33:00 | zoomber_laptop | 13927 |
| 15:33:00 | zoomber_laptop | 13931 |
| 15:33:00 | zoomber_laptop | 13932 |
| 15:33:00 | zoomber_laptop | 13994 |
| 15:33:00 | zoomber_laptop | i suppose thats because one of them is screen and one is just ./ ? |
| 15:33:00 | zoomber_laptop | ah, one is screen ./bitfighterd and one i sjust ./bitfighterd |
| 15:34:00 | raptor | so add a third grep, with 'screen' |
| 15:36:00 | raptor | oh |
| 15:36:00 | raptor | wait |
| 15:36:00 | zoomber_laptop | it does nothing |
| 15:36:00 | raptor | yes, add 'screen' or 'SCREEN' |
| 15:36:00 | zoomber_laptop | oh |
| 15:36:00 | raptor | remember everything is case sensitive |
| 15:37:00 | zoomber_laptop | perfecto |
| 15:37:00 | zoomber_laptop | now i get my three servers |
| 15:37:00 | zoomber_laptop | 8016 |
| 15:37:00 | zoomber_laptop | 13926 |
| 15:37:00 | zoomber_laptop | 13931 |
| 15:37:00 | raptor | great! |
| 15:37:00 | raptor | you'll probably have have a specific command for each server with the appropriate grep filter on the name |
| 15:37:00 | zoomber_laptop | i wonder why each server has screen ./bitfighterd and ./bitfighterd for processes shown? |
| 15:37:00 | raptor | that's just how screen works... |
| 15:37:00 | zoomber_laptop | ok |
| 15:38:00 | zoomber_laptop | so now i have that |
| 15:38:00 | raptor | it launches a process called SCREEN, then forks into a subprocess to do the actual command |
| 15:38:00 | raptor | you just have to kill the parent SCREEN process and all should be well in the world.. |
| 15:38:00 | zoomber_laptop | ok |
| 15:42:00 | | watusimoto Quit (Ping timeout: 240 seconds) |
| 15:42:00 | zoomber_laptop | ok, i have created a new .sh file |
| 15:43:00 | zoomber_laptop | and will try to follow the .tnlping one |
| 15:43:00 | zoomber_laptop | wait |
| 15:43:00 | zoomber_laptop | oh |
| 15:43:00 | zoomber_laptop | actually |
| 15:43:00 | zoomber_laptop | flash of light good idea |
| 15:43:00 | zoomber_laptop | this could make my life easier |
| 15:43:00 | zoomber_laptop | raptor: in the ini file i can specify a port correct? |
| 15:44:00 | sam686 | will have to be done in command line, not ini. -dedicated "IP:any:28003" |
| 15:44:00 | raptor | i actually don't know |
| 15:44:00 | zoomber_laptop | ok |
| 15:44:00 | raptor | hi sam686 |
| 15:45:00 | zoomber_laptop | so ill just use -dedicated "IP:any:28003 |
| 15:45:00 | zoomber_laptop | on the sh file |
| 15:45:00 | raptor | did you get a good sleep at normal hours? :) |
| 15:45:00 | zoomber_laptop | i can use server="IP:67.18.11.66:25955" |
| 15:45:00 | sam686 | yes, for each server, it should have their own port number. |
| 15:45:00 | zoomber_laptop | and change that to |
| 15:45:00 | zoomber_laptop | server="IP:myIPgoesHERE:28003" |
| 15:46:00 | sam686 | IP:any:28003 is good enough.. |
| 15:46:00 | zoomber_laptop | @raptor, does your check sh file also restart serers automatically or just email you? |
| 15:46:00 | sam686 | dedicated don't need to know what IP it is.. |
| 15:46:00 | zoomber_laptop | ok |
| 15:46:00 | raptor | you add your own restart command after you kill the old server |
| 15:46:00 | zoomber_laptop | ok |
| 15:47:00 | zoomber_laptop | so i see the # do the ping |
| 15:47:00 | zoomber_laptop | must i put the command there |
| 15:47:00 | raptor | you don't need tnlping if you do it the PID way |
| 15:47:00 | zoomber_laptop | say i do use the tnlping way |
| 15:47:00 | zoomber_laptop | as, i can just specify the port on launch |
| 15:47:00 | raptor | you'll have to compile it first |
| 15:47:00 | zoomber_laptop | ok |
| 15:47:00 | raptor | yes |
| 15:48:00 | raptor | use the Makefile in the same directory as that script |
| 15:48:00 | zoomber_laptop | now, is it possible to detect wether tnlping was successfull or not? |
| 15:48:00 | raptor | i'll be back in a bit - have to focus on some work.. |
| 15:48:00 | zoomber_laptop | ok |
| 15:48:00 | raptor | zoomber_laptop: yes, that is what the script does |
| 15:48:00 | raptor | if [ $? == 1 ]; then |
| 15:49:00 | zoomber_laptop | if [ $? == 1 ]; |
| 15:49:00 | zoomber_laptop | aaah you beat me! |
| 15:49:00 | zoomber_laptop | and i can just put screen after that? |
| 15:49:00 | raptor | sure |
| 15:49:00 | zoomber_laptop | ok; i will do that |
| 15:49:00 | zoomber_laptop | thanks! |
| 15:49:00 | raptor | welcome |
| 15:49:00 | raptor | be back in a bit... |
| 15:49:00 | zoomber_laptop | bye |
| 15:58:00 | | zoomber_laptop Quit (Quit: zoomber_laptop) |
| 16:19:00 | raptor | sam686: still around? |
| 16:19:00 | sam686 | yes |
| 16:19:00 | raptor | robot.cpp:~805 |
| 16:19:00 | raptor | while(lua_isnumber(L, index)) |
| 16:19:00 | raptor | i don't understand why there is a while loop there |
| 16:20:00 | raptor | (my line numbers might be slightly off..) |
| 16:20:00 | sam686 | LuaBot can do findItems(ShipType, RobotType, BulletType) |
| 16:20:00 | raptor | oh great |
| 16:20:00 | sam686 | you can take off if(number < sizeof(BITMASK) * 8) and objectMask if you want |
| 16:21:00 | raptor | so why is there a second if(objectMask) at about line 823? |
| 16:21:00 | | Flynnn has joined |
| 16:21:00 | sam686 | it is first ObjectMask = 0 |
| 16:22:00 | sam686 | then, if ObjectMask is not zero, it finds items |
| 16:22:00 | sam686 | it is useless to do findObjects with objectMask of zero |
| 16:22:00 | raptor | ok, but why is there a findObjects inside the loop, and outside the loop? |
| 16:22:00 | sam686 | in case of TypeNumber is not part of a mask |
| 16:23:00 | raptor | ok, but now typeNumber is all we have - so we only use the find in the loop? |
| 16:23:00 | sam686 | yes |
| 16:23:00 | raptor | ok thanks |
| 16:23:00 | raptor | for clearing that up |
| 16:25:00 | | watusimoto has joined |
| 16:26:00 | raptor | next question |
| 16:26:00 | raptor | game.cpp: 2452 |
| 16:26:00 | raptor | void ClientGame::setVolume |
| 16:26:00 | raptor | why is this here? |
| 16:27:00 | raptor | why not just call GameUserInterface::setVolume directly? |
| 16:27:00 | raptor | instead of through the game object? |
| 16:27:00 | sam686 | not sure why.. |
| 16:28:00 | | [1]watusimoto has joined |
| 16:28:00 | raptor | my patch set is aroun 100KB so far... |
| 16:29:00 | raptor | mayeb watusimoto can answer... |
| 16:29:00 | sam686 | there was a similar ClientGame::enterMode, that i got rid of.. |
| 16:29:00 | raptor | YES! |
| 16:29:00 | sam686 | it was doing getUIManager()->getGameUserInterface()->enterMode(mode); |
| 16:29:00 | raptor | EXACTLY |
| 16:29:00 | | watusimoto Quit (Ping timeout: 258 seconds) |
| 16:29:00 | | [1]watusimoto is now known as watusimoto |
| 16:29:00 | raptor | there are still two like that now |
| 16:30:00 | raptor | setVolume |
| 16:30:00 | raptor | and enterMode |
| 16:30:00 | raptor | oh wait, |
| 16:30:00 | raptor | that is what you got rid of - but it's back |
| 16:31:00 | sam686 | looking at which commit brought it back.. |
| 16:31:00 | raptor | probably one of the merges |
| 16:32:00 | sam686 | (watusimoto) Mucking around a bit - fewer globals brought it back.. |
| 16:38:00 | raptor | yep |
| 16:38:00 | sam686 | even the helperMenu got changed back, as thats was the only one used in HelperMenu::exitHelper |
| 16:38:00 | raptor | hmmm |
| 16:38:00 | raptor | well now I need to know why before I remove it again... |
| 16:38:00 | sam686 | it is one ommit after merge.. |
| 16:38:00 | raptor | yeah, so it looks deliberate |
| 16:38:00 | raptor | problem is that it creates an include loop between game.h and UIGame.h with those enums |
| 16:38:00 | sam686 | and look, it undid your fix: extern enum UIMode; |
| 16:38:00 | raptor | yeah |
| 16:38:00 | raptor | watusimoto: we have questions for you when you can |
| 16:39:00 | raptor | seems to me that those things should just be in client game... |
| 16:43:00 | sam686 | maybe there should be a ClientGame.cpp ClientGame.h as dedicated server don't use ClientGame |
| 16:44:00 | | Flynnn Quit (Quit: Leaving) |
| 16:45:00 | raptor | i think we are already slowly moving there.. |
| 17:09:00 | | Flynnn has joined |
| 17:24:00 | | Zoomber has joined |
| 17:25:00 | | zoomber_laptop has joined |
| 17:25:00 | zoomber_laptop | i am back |
| 17:25:00 | zoomber_laptop | and it seems alot of people are here now |
| 17:26:00 | zoomber_laptop | two hours ago was only karamazovapy and BFLogBot |
| 17:26:00 | | ChanServ sets mode +v Zoomber |
| 17:39:00 | zoomber_laptop | sam686 there? |
| 17:39:00 | sam686 | hi |
| 17:40:00 | zoomber_laptop | do you ever have server crashes? |
| 17:40:00 | sam686 | yes, a few times, but i fix them when it does crash.. |
| 17:41:00 | zoomber_laptop | mine all keep crashing and dont seem to stay up over two days |
| 17:44:00 | sam686 | it is probably due to levels having "Ship" line and adding clone bot crashing server.. |
| 17:45:00 | sam686 | i have just fixed in my 015a clone.. |
| 17:49:00 | zoomber_laptop | oh |
| 17:49:00 | zoomber_laptop | like Ship 0 0 and adding a clone? |
| 17:49:00 | sam686 | yes |
| 17:49:00 | zoomber_laptop | ok |
| 17:50:00 | zoomber_laptop | check my mashzone server though. it crashed too but does not have any ship level |
| 17:51:00 | zoomber_laptop | ok, well i just crasehd Bitfighter Main(); with the bug you found.. so i should pull your changes |
| 17:51:00 | raptor | if you can duplicate the crash, then load the server in gdb and get a backtrace |
| 17:51:00 | zoomber_laptop | ok i have a conflict |
| 17:51:00 | zoomber_laptop | in |
| 17:52:00 | zoomber_laptop | voicecodec.h, #ifdef USE_Speex and #include "speex/speex.h |
| 17:53:00 | sam686 | did you update discarding changes? |
| 17:53:00 | sam686 | that is, update and get rid of modified files.. |
| 17:53:00 | zoomber_laptop | i can use --clean maybe? |
| 17:53:00 | zoomber_laptop | ok |
| 17:53:00 | zoomber_laptop | thats better |
| 17:55:00 | zoomber_laptop | raptor: may buy a new macbook or imac. I am really jelous of this iMac i built bitfighter on a week ago |
| 17:56:00 | raptor | i find that buying a new computer means that it'll just be outdated in 6 months |
| 17:56:00 | zoomber_laptop | sadly |
| 17:56:00 | raptor | yeah... |
| 17:57:00 | zoomber_laptop | i would get a not-mac too, but i need mac for my music |
| 17:57:00 | sam686 | my desktop computer is extremely outdated (2003) |
| 17:57:00 | zoomber_laptop | i have logic there |
| 17:57:00 | zoomber_laptop | my old ibm desktop around the same date as sam's |
| 17:57:00 | zoomber_laptop | it came installed with ubuntu and i foolishly put xp on it |
| 17:57:00 | zoomber_laptop | ooh there was something wrong with the display thats why I did that |
| 17:58:00 | zoomber_laptop | now it runs Mac Os X |
| 17:58:00 | raptor | once I determine not to buy things because they are 'nice, new and shiny', I am more content with what I buy for longer time |
| 17:58:00 | sam686 | desktop computers by average last longer then laptops, i believe.. |
| 17:58:00 | zoomber_laptop | im afraid thats what happened with this old macbook i have right now |
| 17:59:00 | zoomber_laptop | seems to run fine, but i'm worried about its graphic card |
| 17:59:00 | raptor | it's really hard to fight the gotta-have-new-gadget urge when your interested in technology... |
| 17:59:00 | sam686 | laptops could break in seconds, as if you dropped them.. |
| 17:59:00 | raptor | i never give laptops more than a year |
| 17:59:00 | raptor | before something is borken |
| 18:00:00 | zoomber_laptop | my old ibook still works |
| 18:00:00 | zoomber_laptop | but it needs an external hard drive; failed hard drive about 5 years ago |
| 18:00:00 | raptor | haha |
| 18:00:00 | zoomber_laptop | can still use like 5 mbs of it though |
| 18:00:00 | sam686 | if a laptop's keyboard break, you are screwed... if lcd breaks that is also mean you screwed.. |
| 18:01:00 | zoomber_laptop | i put chess.app on it once an dplayed off it |
| 18:01:00 | zoomber_laptop | if laptop keyboard breaks, can use flexible usb keyboard and place over keys : ] |
| 18:02:00 | zoomber_laptop | usually hard drive goes out first on laptops unless solid state |
| 18:02:00 | sam686 | well keyboards are often cheap anyways.. |
| 18:03:00 | sam686 | it the laptops LCD that could break, then you are screwed... |
| 18:03:00 | zoomber_laptop | but apple has a great 1 year warranty, and those "genius" bars |
| 18:03:00 | raptor | 1 year <-- the magic number |
| 18:03:00 | raptor | for laptops |
| 18:04:00 | zoomber_laptop | but they will get you a whole new device for broken stuff |
| 18:04:00 | zoomber_laptop | i had 1 spec of cotton fall into my ipod screen, and they gave me a whole new ipod |
| 18:04:00 | sam686 | 8 years (for my desktop), though i got the computer 2 years ago from someone who don't want it no more.. |
| 18:05:00 | zoomber_laptop | interesting how sam686's desktop story is very similar to my desktop story |
| 18:05:00 | zoomber_laptop | i bought my ibm from someone else too a few years ago |
| 18:05:00 | zoomber_laptop | ok i am Reeeeeely distracted and i only have 25 minutetes! |
| 18:05:00 | zoomber_laptop | i gotta compile tnlping now |
| 18:06:00 | sam686 | I also have another desktop at year 1998 that had windows 98, but can easily be converted to windows XP for old 520 Mhz AMD K6-2 with 160 MB ram |
| 18:06:00 | zoomber_laptop | raptor: is tnlping it's own excutable or do i have to build it in bitfighter? |
| 18:07:00 | zoomber_laptop | downloaded soruce code but only got tnlping.cpp |
| 18:07:00 | raptor | it's its own |
| 18:07:00 | raptor | go into the tnlping directory and just run 'make' |
| 18:07:00 | raptor | should build... (I hope) |
| 18:07:00 | zoomber_laptop | no makefile there? |
| 18:07:00 | zoomber_laptop | maybe i have outdated version? |
| 18:07:00 | raptor | could be i did it after 015a |
| 18:07:00 | raptor | get make file from here: http://code.google.com/p/bitfighter/source/browse/#hg%2Ftnlping |
| 18:08:00 | raptor | and .cpp file to compile |
| 18:08:00 | zoomber_laptop | ok |
| 18:10:00 | zoomber_laptop | i suppose i also need the tnl framework to make it? |
| 18:11:00 | zoomber_laptop | or just copy a few .h files over? |
| 18:11:00 | raptor | yes, if you create a folder called tnlpng in your bitfighter clone, and put those two files there - it should build fine |
| 18:11:00 | zoomber_laptop | i see |
| 18:11:00 | zoomber_laptop | oh |
| 18:11:00 | zoomber_laptop | i already haev tnlping |
| 18:11:00 | zoomber_laptop | hmm, should have looked at that first |
| 18:12:00 | zoomber_laptop | ok, thats built now |
| 18:12:00 | zoomber_laptop | now i have tnlping, and cron, and have to set-up a cron to run script hourly |
| 18:13:00 | raptor | how come you are using tnlping? |
| 18:13:00 | raptor | i thought you were going to do it by PID |
| 18:13:00 | zoomber_laptop | found out it may be easier this way as i can specify port at launch.. |
| 18:13:00 | raptor | ah ok |
| 18:14:00 | zoomber_laptop | must i do if [ $? == 1 ]; then |
| 18:14:00 | zoomber_laptop | # only mail if i haven't already |
| 18:14:00 | zoomber_laptop | command screen /root/sam/exe/bitfighterd |
| 18:14:00 | zoomber_laptop | if [ ! -f "$sendoncefile" ]; then |
| 18:15:00 | raptor | that first if [ $? == 1 ]; then |
| 18:15:00 | raptor | i snecessary |
| 18:15:00 | raptor | you don't need the inner 'if' if you don't care about e-mail |
| 18:15:00 | zoomber_laptop | ok |
| 18:15:00 | zoomber_laptop | ill do it just to keep track |
| 18:15:00 | zoomber_laptop | of when my server crashes |
| 18:16:00 | zoomber_laptop | will the third line work just like that? |
| 18:16:00 | sam686 | can you do this in a script? while(true) { ./bitfighterd; } so if bitfighter segfault, does the script continue and instantly restart bitfighter? |
| 18:17:00 | raptor | yes, but that is bad |
| 18:17:00 | raptor | because the script never ends |
| 18:17:00 | raptor | that is what cron is for |
| 18:17:00 | raptor | well, the syntax is wrong |
| 18:17:00 | zoomber_laptop | cron can run only once a day or every 3 hours |
| 18:17:00 | raptor | but logically, your idea can work... |
| 18:17:00 | raptor | cron can run once a minute |
| 18:18:00 | zoomber_laptop | hey raptor, i am in /temp/crontab.fhxzbs/cron.tab |
| 18:18:00 | zoomber_laptop | is this what i should modify? |
| 18:18:00 | raptor | no |
| 18:18:00 | zoomber_laptop | ok |
| 18:18:00 | raptor | just type 'crontab -e' |
| 18:18:00 | zoomber_laptop | i did that |
| 18:18:00 | raptor | ok |
| 18:18:00 | zoomber_laptop | and it said there was blank |
| 18:18:00 | zoomber_laptop | so i could select one of three something |
| 18:18:00 | raptor | then you are in the right place, but ignore the filename |
| 18:18:00 | zoomber_laptop | and <--- easiest was pointing at 2 |
| 18:18:00 | raptor | cron fielnames are always temporary |
| 18:19:00 | zoomber_laptop | so 3 * * * * SCREEN ./bitfighterd -IP:ANY:2800 would work here? |
| 18:19:00 | raptor | that would run on the third minute of every hour :) |
| 18:19:00 | zoomber_laptop | oh |
| 18:19:00 | zoomber_laptop | oops |
| 18:19:00 | raptor | do */3 |
| 18:20:00 | raptor | */3 * * * * |
| 18:20:00 | raptor | means every three minutes |
| 18:20:00 | zoomber_laptop | how about * 3 * * * * command |
| 18:20:00 | zoomber_laptop | every three hours? |
| 18:20:00 | zoomber_laptop | or on the third hour? |
| 18:20:00 | zoomber_laptop | oh |
| 18:20:00 | zoomber_laptop | i see |
| 18:20:00 | raptor | that would be 3am in the morning |
| 18:20:00 | raptor | hehe |
| 18:20:00 | zoomber_laptop | maybe * */8 * * * command? |
| 18:20:00 | raptor | that is every 8 hours |
| 18:21:00 | | LordDVG has joined |
| 18:21:00 | | LordDVG Quit (Changing host) |
| 18:21:00 | | LordDVG has joined |
| 18:21:00 | zoomber_laptop | ok |
| 18:21:00 | zoomber_laptop | perfect. ill do */3 for every three hours |
| 18:21:00 | zoomber_laptop | oops |
| 18:21:00 | zoomber_laptop | except i dont want to start up a server every 3 hours, i want to run the script! |
| 18:22:00 | raptor | haha |
| 18:22:00 | zoomber_laptop | so ./root/sam/tnlping/tnlping |
| 18:22:00 | zoomber_laptop | i set it to two minutes right now |
| 18:22:00 | zoomber_laptop | see if it works |
| 18:23:00 | zoomber_laptop | killed my servers already |
| 18:23:00 | raptor | remove the starting . |
| 18:23:00 | zoomber_laptop | oh |
| 18:23:00 | raptor | so it is a full path |
| 18:23:00 | zoomber_laptop | thanks |
| 18:23:00 | raptor | and test the script before adding it to cron.. cron is very silent |
| 18:23:00 | zoomber_laptop | using crontab -l gives me 2 * * * * /root/sam/tnlping/tnlping |
| 18:24:00 | raptor | on the second minute |
| 18:24:00 | raptor | :) |
| 18:24:00 | zoomber_laptop | note /sam/ is sam's editor clone directory, i named it sam to help me remember that |
| 18:24:00 | raptor | */2 |
| 18:24:00 | zoomber_laptop | oh |
| 18:24:00 | zoomber_laptop | errr |
| 18:25:00 | zoomber_laptop | done |
| 18:25:00 | raptor | also, make sure you are only killing the servers if the ping fails |
| 18:25:00 | raptor | not every time the script runs... |
| 18:25:00 | zoomber_laptop | oh, it looks like i have to fix permissions to my shell file |
| 18:25:00 | raptor | chmod +x |
| 18:26:00 | zoomber_laptop | hmm |
| 18:26:00 | zoomber_laptop | didnt work, i can try going through filezilla.. |
| 18:27:00 | zoomber_laptop | oh it did work, but still permission denied |
| 18:27:00 | zoomber_laptop | ah |
| 18:27:00 | zoomber_laptop | now |
| 18:28:00 | zoomber_laptop | tnlping not found, must i move this somewhere? it is in the same folder as check.sh |
| 18:29:00 | zoomber_laptop | oh, i see you have tnlping ' /root/bin/tnlping |
| 18:30:00 | | Pointblank Quit (Ping timeout: 252 seconds) |
| 18:30:00 | zoomber_laptop | odd |
| 18:30:00 | zoomber_laptop | pointblank left again? |
| 18:31:00 | zoomber_laptop | i wonder if my bot stops pinging to the server after a while |
| 18:31:00 | zoomber_laptop | ok, im a step closer |
| 18:32:00 | raptor | i set tnlping at the start as a variable, then call it later with $tnlping |
| 18:32:00 | | Pointblank has joined |
| 18:33:00 | raptor | that way you have the changeable parts of the code at the top of script where they are easy to find |
| 18:33:00 | sam686 | i9 think zoomber is distracted with trying to get pointblank to work.. |
| 18:34:00 | zoomber_laptop | ok i set the tnlping dir |
| 18:34:00 | zoomber_laptop | and i changed a output text file |
| 18:34:00 | zoomber_laptop | right now im at TNL Service is DOWN../check.sh: line 50: unexpected EOF while looking for matching `"' |
| 18:34:00 | zoomber_laptop | ./check.sh: line 53: syntax error: unexpected end of file |
| 18:34:00 | zoomber_laptop | but i must go |
| 18:34:00 | zoomber_laptop | almost 2 a cloock |
| 18:34:00 | zoomber_laptop | see you later |
| 18:34:00 | raptor | later |
| 18:34:00 | | Zoomber Quit (Quit: Zoomber) |
| 18:34:00 | | zoomber_laptop Quit (Quit: zoomber_laptop) |
| 18:34:00 | | LordDVG Quit (Ping timeout: 260 seconds) |
| 18:44:00 | | Flynnn Quit (Quit: This computer has gone to sleep) |
| 19:04:00 | | [1]watusimoto has joined |
| 19:07:00 | | watusimoto Quit (Ping timeout: 260 seconds) |
| 19:07:00 | | [1]watusimoto is now known as watusimoto |
| 19:16:00 | | [1]watusimoto has joined |
| 19:18:00 | | watusimoto Quit (Ping timeout: 240 seconds) |
| 19:18:00 | | [1]watusimoto is now known as watusimoto |
| 19:20:00 | | LordDVG has joined |
| 19:57:00 | | Flynnn has joined |
| 20:38:00 | | watusimoto Quit (Ping timeout: 258 seconds) |
| 20:43:00 | | watusimoto has joined |
| 20:48:00 | raptor | hello |
| 20:58:00 | | sam686 Quit (Read error: Connection reset by peer) |
| 21:01:00 | | sam686 has joined |
| 21:01:00 | | ChanServ sets mode +v sam686 |
| 21:12:00 | | watusimoto Quit (Ping timeout: 263 seconds) |
| 21:30:00 | raptor | karamazovapy: did you ever get around to testing that bitfighterd binary i gave you? |
| 21:33:00 | karamazovapy | I never "got" it |
| 21:33:00 | raptor | oh, did i forget to paste the link? |
| 21:34:00 | raptor | i know at the time you didn't want to mess with it because the contest serv was going up - if you still don't, then I won't ask again |
| 21:34:00 | karamazovapy | I never saw it |
| 21:34:00 | raptor | ok here it is: http://96.2.123.136/upload/bitfighterd.gz |
| 21:45:00 | | LordDVG Quit (Remote host closed the connection) |
| 22:19:00 | | watusimoto has joined |
| 22:42:00 | raptor | been listening to Doctor Who soundtracks all day... |
| 22:47:00 | karamazovapy | http://www.youtube.com/watch?v=WOoUVeyaY_8 |
| 22:50:00 | raptor | wow |
| 22:51:00 | karamazovapy | he's a professional russian |
| 22:51:00 | raptor | very |
| 22:53:00 | karamazovapy | he's like the guy selling out of his trunk in a crime movie |
| 22:57:00 | karamazovapy | I didn't know "dragons breath" rounds existed |
| 22:57:00 | karamazovapy | http://www.youtube.com/watch?v=RP4FjODPDFA |
| 22:57:00 | raptor | "there is no more deadly system in the world, than a russion with two AA12s" |
| 22:57:00 | raptor | russian |
| 23:00:00 | karamazovapy | hah! a civillian can own this gun - http://www.youtube.com/watch?v=dSp7CipN1pw |
| 23:05:00 | raptor | i'm amazed at the recoil system of the aa12 |
| 23:05:00 | karamazovapy | yeah, fully automatic shotgun that you can wield single handedly without bracing...that's pretty incredible |
| 23:09:00 | raptor | i wonder how much each round fo the 40mm costs... |
| 23:11:00 | karamazovapy | I wonder what this guy actually "does" |
| 23:31:00 | | raptor Quit (Remote host closed the connection) |
| 23:40:00 | watusimoto | hello |
| 23:41:00 | watusimoto | best way to reach me in the coming days is via email |