#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2014-08-27

Timestamps are in GMT/BST.

01:29:59raptor Quit ()
01:54:07Akien has joined
02:03:09Nothing_Much Quit (Ping timeout: 260 seconds)
02:08:40fordcars Quit (Quit: Page closed)
02:51:31LordDVG has joined
03:08:35Akien Quit (Remote host closed the connection)
04:51:52Darrel has joined
04:55:31LordDVG Quit (Ping timeout: 250 seconds)
05:05:12Darrel Quit (Read error: No route to host)
05:05:29Darrel has joined
05:07:07Darrel Quit (Read error: Connection reset by peer)
05:07:21LordDVG has joined
05:07:44Darrel has joined
05:39:41Darrel Quit (Ping timeout: 260 seconds)
05:39:53Darrel has joined
06:35:20LordDVG Quit (Remote host closed the connection)
07:44:40Nothing_Much has joined
09:11:55Darrel Quit (Ping timeout: 240 seconds)
09:12:12Darrel has joined
10:49:20Watusimoto has joined
11:17:44raptor has joined
11:17:44ChanServ sets mode +o
11:17:55raptorgood morning!
11:17:55raptorso last night, I realized that we code in c++...
11:17:56raptorthen I asked myself: self, why are we passing in 'const char *' as UI method parameters everywhere if we're using c++?
11:17:57raptorand my self was silent. He could not think of an answer.
11:17:57kodayou don’t want to answer “we should move to plain c"
11:18:12raptorno, i sure don't want to answer like that... :)
11:18:48kodabut why
11:18:48koda loves C
11:19:51raptorthink of the work involved migrating such a complex c++ app like bitfighter to C!
11:20:02starseeker winces
11:21:32Nothing_Muchis it that complex to migrate from one language to another?
11:21:33Nothing_Mucho.o
11:22:03raptorsometimes no... almost always 'yes'
11:22:39kodac++ to c is very easy
11:23:56Nothing_Muchohh, okay
11:24:17raptori'm not sure I believe that, koda :)
11:24:27raptorwhat with c++ templates
11:24:49kodayou don’t know until you try
11:24:50raptorhaha, true
11:42:22-barjavel.freenode.net- *** Looking up your hostname...
11:42:22-barjavel.freenode.net- *** Checking Ident
11:42:22-barjavel.freenode.net- *** No Ident response
11:42:22-barjavel.freenode.net- *** Couldn't look up your hostname
11:42:28BFLogBot_ has joined
11:42:28-ChanServ- [#bitfighter] Welcome to #bitfighter. This is an IRC channel, many or all of the users may not be paying attention. Please have patience when waiting for a response.
11:43:11starseekertemplates, STL, classes...
11:43:42starseekerC++ must be written in a very "C-like" fashion to be easily translated
11:44:19starseekerwhich is possible, true enough - usually though, folks like to go the other way - take some C code and build it as C++ for strings or maps or whatnot
11:45:46BFLogBot Quit (Ping timeout: 240 seconds)
11:45:50raptorBFLogBot_: you forked!?
11:45:51BFLogBotIt's psychosomatic. You need a lobotomy. I'll get a saw.
11:46:30-morgan.freenode.net- *** Looking up your hostname...
11:46:30-morgan.freenode.net- *** Checking Ident
11:46:30-morgan.freenode.net- *** No Ident response
11:46:30-morgan.freenode.net- *** Couldn't look up your hostname
11:46:36BFLogBot has joined
11:46:36-ChanServ- [#bitfighter] Welcome to #bitfighter. This is an IRC channel, many or all of the users may not be paying attention. Please have patience when waiting for a response.
13:45:26HylianSavior has joined
14:00:43Watusimotokoda raptor and me on all at once!
14:00:51raptorwhoa!
14:00:54kodawoot
14:01:11Watusimotoraptor: re const char *
14:01:21Watusimotowe do it mostly because we've always done it
14:01:43Watusimotoalso I think const char * is much safer in C++ than C -- we don't have to do the memory management
14:02:01raptorI was specifically thinking of safety
14:02:01WatusimotoI have been slowly switching stuff to string
14:02:29Watusimotobut then for constants and things that are just passed around and we never need to do stringy things with, I keep asking myself why incur the (minimal) overhead?
14:02:41WatusimotoI don't think there are (many) safety issues
14:02:53Watusimotoonly things like returning a local.c_str() and such
14:03:06raptorwell... is const char * really unmodifiable? i think just the pointer is unmodifiable
14:03:17Watusimotoyes, that's correct
14:03:26Watusimotoconst char * const is unmodifiable, I think
14:04:13raptorok... I was just remembering all the time spent on really weird string-y type errors in the past
14:04:38raptorbut really, there probably isn't overhead using the const string &
14:05:09raptorbecause we're constantly using strings more and more and it seems I frequently have to do string(charPointer) in more methods
14:05:17raptorok, not really frequently
14:05:22raptorbut i did it in the last week!
14:27:21Watusimoto Quit (Ping timeout: 260 seconds)
14:40:22Watusimoto has joined
15:05:58HylianSavior Quit (Disconnected by services)
15:06:16HylianSavior has joined
15:06:39HylianSavior Quit (Disconnected by services)
15:06:55hylian has joined
15:07:20hylian is now known as Guest24323
16:07:50Watusimoto Quit (Ping timeout: 260 seconds)
16:16:32Watusimoto has joined
17:27:35Watusimotosorry, got dragged away suddenly earlier... if you feel motivated to migrate to a full on string anywhere you find things annoying, I wouldn't object!
17:27:49Watusimotook, gotta run again... movers are here and things are crazy
17:29:02koda+1
17:34:24Watusimoto Quit (Ping timeout: 260 seconds)
18:12:29destroyerimo has joined
18:24:46Watusimoto has joined
18:29:17Nothing_Much Quit (Read error: Connection reset by peer)
18:29:20destroyerimo_clo has joined
18:29:43destroyerimo Quit (Ping timeout: 260 seconds)
18:29:47Nothing_Much has joined
18:41:22Watusimoto Quit (Ping timeout: 250 seconds)
18:56:14Akien Quit (Quit: Quitte)
19:19:38raptor Quit ()
19:19:55damndisconnect has joined
19:23:26destroyerimo_clo Quit (Ping timeout: 244 seconds)
19:53:07damndisconnect Quit (Ping timeout: 255 seconds)
20:10:54Watusimoto has joined
20:42:19destroyerimo has joined
21:01:25destroyerimo Quit (Ping timeout: 245 seconds)
21:11:43raptor has joined
21:11:43ChanServ sets mode +o
21:38:15Guest24323 Quit (Ping timeout: 264 seconds)
22:13:25Watusimoto Quit (Ping timeout: 244 seconds)
23:06:42amgine1234 has joined
23:06:47amgine1234hello
23:06:50amgine1234aything new to test ?
23:11:33amgine1234#bitfighter
23:11:39raptorhi
23:11:41raptornope
23:11:44raptorbeen a slooooow summer
23:12:47amgine1234raptor had a thought
23:12:56amgine1234after the BF.org crash
23:13:40amgine1234is it possible to have a system where like bitfighter.org will create a savestate like every 4 hours and if bitfighter .org crashes after 5m bf.org will laod te last state ?
23:13:55amgine1234if that makes sensae
23:14:18raptoryes, we could backup to another server every 4 hours
23:14:43amgine1234would be kinda hard i think
23:14:47raptorthen switch the dns to the backup
23:14:55raptoror actually
23:15:03raptorhave the dns point to a load-balancer
23:15:13raptorthat would be easier
23:15:15amgine1234anyways it was a thought i dont know how doable it is
23:15:30raptorit's very doable... but not really for such a small group as us
23:15:43amgine1234easier does not always
23:15:46amgine1234mean better Xd
23:15:56amgine1234well if bf.org catches on
23:16:02amgine1234then it will be nice
23:16:11amgine1234i htink we have a user population of maybe 20
23:17:12amgine1234hmm
23:17:50amgine1234maybe every 1 hour would be more accurate
23:17:56amgine1234problem is data space
23:18:17amgine1234we would have to knoick of X number of backups after X are already created
23:18:19raptoractually space is not a problem, we just need double (e.g. another server)
23:18:39amgine1234hmm ill think about it
23:18:51amgine1234btw i wrote the basic exp system for leveling in Bf raptor ;)
23:19:15amgine1234problem is im stuck on trying to figure out on how to distribute the Exp you get for exh game mode to be balanced
23:19:26amgine1234if you have any ideas let me know
23:19:55amgine1234basic exp to level is Y=X(X+10)
23:20:13amgine1234100k for level 100
23:20:19amgine1234to infinity
23:21:54amgine1234level 1000 ( never would happen) would be 10000000 exp! xd
23:25:43amgine1234umm the integral for Y=X(X+10) is ∫f(x)dx= x3+15x23
23:27:34amgine1234ok correction its f(x)dx=((x^3)+(15x^2)/3)
23:28:37amgine1234so cumiltive exp for level 100 would be umm
23:30:15amgine1234arg bad math bad!
23:30:22amgine1234been way to long Xd
23:30:59fordcars has joined
23:31:29fordcarsHello people of irc
23:31:37raptorhello
23:32:53raptorthe real question of the night... is it time to move to win64 ?
23:33:17fordcarsraptor, just out of curiosity, you were wondering why bf was using "const char*" instead of strings from the string.h?
23:33:26amgine1234win64 raptor ?
23:33:30raptorno, not the string.h
23:34:01raptorit's just we're passing in const char* in a lot of methods and it would be simpler to just uset const string& in many of the cases
23:34:10fordcarsOh ok
23:34:35fordcarsI have no idea haha, I still need to learn what & does
23:34:46fordcarsApart from "get the adress of"
23:35:10raptoryes, it basically just passes the address
23:35:22raptorinstead of copying the entire object
23:35:31raptorso it's very useful for keeping code fast
23:36:03amgine1234raptor had a thought
23:36:06fordcarsOhh, but wouldn't it be const &string?
23:36:14amgine1234can we kill lua and go to pure C++ ?
23:36:21raptorlike this: const string &someString
23:36:22amgine1234more flexibility
23:36:24fordcarsamgine, no more DnD :(
23:36:29fordcarsOh ookokokok
23:36:31amgine1234why ford ?
23:36:31fordcarsNice!
23:36:45fordcarsLevelgens and bots are written in Lua
23:37:17amgine1234well we could convert them to C++
23:37:18raptorhaving some scripting language is very good - allowing game manipulation without having to recompile
23:37:34amgine1234problem is lua is a little inflexible
23:37:38fordcarsThe Lua API rocks
23:37:41raptorlet's people create without having to redistribute their compiled code
23:37:49amgine1234might make bot and level scripting easier in the long run
23:37:58raptorit is inflexible... sort of, you just need to make it flexible :)
23:38:01amgine1234cause frankl;y S_bot is DUMB!
23:38:09amgine1234Xd
23:38:09fordcarsBitfighter's API is the best I have ever seen for sure (well, I have only seen a few)
23:38:23raptoroh definitely not - it would make it harder in the longrun without it
23:38:44fordcarss_bot is dumb because it has been the same for ages and it needs an update
23:38:44raptorbecause right now, anyone can go in and fix s_bot (or create him anew!)
23:38:57fordcarsBut working on s_bot is boring
23:38:59raptorwithout needing to redistribute the code
23:39:03raptorit is a slog, yes
23:39:47fordcarss_bot is a mystical and mysterious monster to tame
23:41:36raptorbut he is our beloved monster
23:41:43amgine1234not really
23:42:17raptoralways there when you need him... to keep you company, fill in the gaps
23:44:01fordcarss_bot vs one player in an open map is really tough to beat
23:44:31Watusimoto has joined
23:44:33fordcarsYet it can't figure out how to shoot a player behind a force field
23:44:37raptoryeah, s_bot is relentless in that situation
23:45:21amgine1234it aslo cant figure out hoe to go around teles and speedbosts xd
23:45:21amgine1234or use teles
23:46:13raptorwe need to redo our ugly windows icon
23:46:34amgine1234could it be possible to write a code somthing like if this tele gets me closer to my target take it if not dont take it ?
23:46:51amgine1234for S_bot
23:46:57raptors_bot uses teleporter, but for some reason it's not very efficient
23:47:15raptorit's a path-finding issue
23:47:18amgine1234umm not it doesnt it only uses it bascily if its in its target path
23:47:40amgine1234for example camp behind a tel in CTf the robot will get sruck running into it over and over
23:47:48amgine1234althought it will shot
23:47:52amgine1234you but nevr get teh flag
23:48:42fordcarsReally? That is fairly easy to repair
23:48:51amgine1234btw i had a idea
23:49:00fordcarsJust make it evoid teles that it doesn't want
23:49:01amgine1234instead of making people redownload bitfighter over and over
23:49:05fordcars*avoid
23:49:49amgine1234what if a message popped up saying bF is now out of date would you like to update it ?
23:50:03amgine1234and if you clicked yes it would auto udate any new files
23:50:07fordcarsIt does that since 17 I think
23:50:13amgine1234otherwsie you owuld keep a old version
23:50:16amgine1234no not quite
23:50:24amgine1234it jsut tells you you have to update it
23:50:33amgine1234so you still ahve to go to BF.org
23:50:42fordcarsI get a window showing up at startup asking me to update automatically
23:50:51amgine1234uh no ?
23:50:53fordcarsDownloads automatically too
23:50:59amgine1234umm no ?
23:51:03fordcarsMust be your anti virus or something
23:51:06fordcarsFirewall
23:52:07amgine1234its bitfighter! XD https://www.youtube.com/watch?v=jiJIhrLadVI
23:52:50amgine1234norton anti virus is sh** but my dad wont remove it

Index Search ←Prev date Next date→

These logs were automatically created by BFLogBot on irc.freenode.net.