Timestamps are in GMT/BST.
| 03:37:56 | | sam686 Quit (Ping timeout: 245 seconds) |
| 03:40:16 | | Cracatoa has joined |
| 03:44:52 | | amgine_ has joined |
| 03:44:55 | amgine_ | hello is anyone here? |
| 03:45:16 | | amgine_ is now known as Guest35965 |
| 03:59:03 | | Cracatoa Quit (Ping timeout: 245 seconds) |
| 04:00:15 | | raptor has joined |
| 04:00:16 | | ChanServ sets mode +o raptor |
| 04:15:41 | | Guest35965 has left |
| 04:39:39 | | sam686 has joined |
| 04:39:39 | | ChanServ sets mode +v sam686 |
| 04:42:07 | | amginea428169 has joined |
| 04:42:11 | amginea428169 | hello |
| 04:42:23 | amginea428169 | ah finaly a mod is on |
| 04:42:36 | amginea428169 | i need help with my robot programing |
| 04:42:57 | raptor | hi |
| 04:43:11 | amginea428169 | i want to make a very basic simple line of code that basiscly does the following i and was wondering of you could help |
| 04:43:25 | raptor | tell me |
| 04:43:44 | amginea428169 | bascily the robot gets its health value and if its not full it gets the nearest health item |
| 04:43:57 | amginea428169 | its for my improved robot im owrking on |
| 04:44:06 | amginea428169 | for the site =) |
| 04:44:13 | raptor | i think i did something similar in sentinel bot |
| 04:44:43 | raptor | no wait, maybe it was RepairBot |
| 04:45:05 | amginea428169 | yes but this is for my modified bot which is a modification of s_bot its sligly stronger and i fixed a few of the bugs |
| 04:45:31 | amginea428169 | it doesnt get hung up on forcefields as often now |
| 04:45:52 | amginea428169 | ill give you a while to figure it out. |
| 04:47:36 | amginea428169 | idlely waits XD |
| 04:48:13 | raptor | well, i'm not going to write it for you... but i'm looking for something similar i may have written |
| 04:49:14 | amginea428169 | ok Its jsut i have zero exp with lua and c++ so i need alot of help if oyu woucld give me the full code i was going to make another edit of it for energy as well for my bot |
| 04:50:08 | | sam686 Quit (Read error: Connection reset by peer) |
| 04:51:02 | amginea428169 | the modifications that i made was only very simple edits of the old code i know nothing of c++ or lua i simpley edited the vlaues of the old code |
| 04:51:26 | amginea428169 | anyways ll wait |
| 04:51:34 | raptor | that's good - one thing you should know that we've changed the code a bit for the upcoming 018 release |
| 04:52:24 | amginea428169 | sim sorry im reapeating myslef alot its a disability thing i have i tend to do that alot |
| 04:53:24 | | sam686 has joined |
| 04:53:24 | | ChanServ sets mode +v sam686 |
| 04:55:08 | raptor | well, if you don't know much Lua, I suggest you start here: http://luatut.com/ |
| 04:55:19 | raptor | because you're going to need to know Lua if you want to write this... |
| 04:56:35 | amginea428169 | i would be greatfull if oyu just give me the code if not what was that simaler code you were talking about i could try editing that |
| 04:57:14 | amginea428169 | on a realted note you whould put that link on the wiki of the website |
| 04:57:18 | amginea428169 | hsould |
| 04:57:37 | raptor | well, i prefer to spend my time working on the new Bitfighter :) But I can write a little something quickly... |
| 04:59:34 | amginea428169 | cool cause when im done adding that editing it to include energy i will publish it on site as amy stronger bot 1.1 |
| 04:59:40 | amginea428169 | =) |
| 05:00:58 | raptor | hi sam686 |
| 05:01:38 | amginea428169 | hi sam |
| 05:01:43 | amginea428169 | just getting some help here |
| 05:01:44 | sam686 | hi |
| 05:02:18 | amginea428169 | repitition is anoyying... repitition is anoyying... repitition is anoyying... repitition is anoyying... XD |
| 05:02:37 | amginea428169 | sorry i oculdnt resist posting that XD |
| 05:03:34 | amginea428169 | well let me know if oyur ready raptor and thanks =) |
| 05:03:46 | raptor | ok amginea428169: here is some quick code: http://pastie.org/4803273 |
| 05:03:52 | amginea428169 | im reading the lua basics course |
| 05:04:02 | raptor | i may not work, but you'll get the basic idea |
| 05:04:09 | amginea428169 | so i wont bother you so much sorry for bothering you |
| 05:04:52 | raptor | what you want to do is put the function checkHealth() in the bot onTick() method, i think |
| 05:05:23 | raptor | but anyways - i'm going to bed... good night! |
| 05:06:03 | amginea428169 | good night |
| 05:06:12 | amginea428169 | and wow this look complicated XD |
| 05:06:22 | amginea428169 | better get reading XD |
| 05:06:34 | | raptor Quit () |
| 05:08:29 | amginea428169 | well sam want to come see if this works |
| 05:09:24 | sam686 | on yout bitfighter 017? |
| 05:09:37 | amginea428169 | im using 17b |
| 05:09:56 | amginea428169 | and i tried it it didnt work the computer is to fixed on targeting me |
| 05:24:02 | | amginea428169 Quit (Quit: Page closed) |
| 05:32:27 | sam686 | When I opened http://pastie.org/4803273 , I got "Application error Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html" |
| 05:32:39 | sam686 | but reload that, and it opens fine for me now.. |
| 05:41:24 | | sam686 Quit (Quit: good night) |
| 05:54:36 | | amginea428196405 has joined |
| 05:54:55 | amginea428196405 | alas |
| 05:56:48 | amginea428196405 | danr it wheres a owner when your programing goes wrong XD |
| 06:06:01 | | amginea428196405 Quit (Quit: Page closed) |
| 09:27:55 | | watusimoto has joined |
| 09:27:55 | | ChanServ sets mode +o watusimoto |
| 14:16:44 | | raptor has joined |
| 14:16:44 | | ChanServ sets mode +o raptor |
| 14:16:48 | raptor | morning' |
| 14:27:18 | | Little_Apple has joined |
| 14:27:35 | Little_Apple | helloo |
| 14:28:08 | raptor | good morning |
| 14:29:17 | Little_Apple | goooooood mornin' |
| 14:52:04 | watusimoto | hi |
| 14:52:11 | raptor | hi |
| 15:05:51 | Little_Apple | hi |
| 15:22:48 | | Little_Apple Quit (Ping timeout: 245 seconds) |
| 16:09:18 | raptor | ha! |
| 16:09:36 | raptor | bobdaduck was the one who added #34 to the running list: http://bitfighter.org/wiki/index.php/Running_Bug_List |
| 16:10:03 | watusimoto | hmmmm... this is a closed list, no?? |
| 16:10:15 | watusimoto | of course, he's right |
| 16:10:26 | raptor | well, the wiki requires you log in. so technically anyone with a forum's account can change it |
| 16:10:53 | watusimoto | can we play mods? |
| 16:10:59 | raptor | explain |
| 16:11:05 | watusimoto | .mod files |
| 16:11:23 | watusimoto | music format |
| 16:11:26 | raptor | no, but the idea has been brought up before |
| 16:11:33 | raptor | use .mod instead of vorbis |
| 16:11:44 | raptor | in fact, i even have a library picked out for it |
| 16:12:04 | watusimoto | well, I have a site full of goodish mods, maybe I can point bobdaduck there and have him do some selection |
| 16:12:26 | watusimoto | could convert to ogg in the short term |
| 16:12:45 | raptor | adding mod support wouldn't be too hard - the ALURE library I use to run vorbis does it seamlessly |
| 16:12:57 | raptor | the hard part would be compiling another library for all three platforms |
| 16:13:31 | raptor | might not be too hard... just windows and mac, i guess |
| 16:13:46 | watusimoto | no music on linux? |
| 16:13:54 | raptor | :) |
| 16:14:05 | raptor | no actually, all the libraries are already compiled on linux |
| 16:14:15 | raptor | i just add it as a dependency when buildign the packages |
| 16:14:31 | raptor | and link against the system library |
| 16:16:03 | raptor | looks like the module playing library may add 300-500K in size |
| 16:16:12 | raptor | for windows and mac |
| 16:16:19 | raptor | should we do this for 019? |
| 16:17:00 | watusimoto | if we have any mods |
| 16:17:21 | raptor | it supports like 22 mod formats including the compressed ones |
| 16:17:26 | raptor | like .mod.zip |
| 16:17:29 | watusimoto | great! |
| 16:17:36 | watusimoto | I'll get that url tonight |
| 16:17:41 | raptor | ? |
| 16:17:53 | watusimoto | this one: http://modarchive.org/ |
| 16:17:57 | watusimoto | just popped into my head |
| 16:18:04 | raptor | so, that's a 'yes' to adding module support? |
| 16:18:05 | watusimoto | maybe bobdaduck can pick out some music there |
| 16:18:14 | watusimoto | if we get any mods :-) |
| 16:18:36 | raptor | ha, ok - i guess i bettter start building the libs |
| 16:19:46 | raptor | this is still one of my favorites: http://sam6.25u.com/upload/Cutdry.mod |
| 16:19:52 | raptor | but doesn't go with bitfighter very well |
| 16:23:19 | raptor | found another mod site: http://www.mirsoft.info/gamemods.php |
| 16:23:23 | raptor | not sure about the licensing... |
| 16:25:06 | watusimoto | what about this one? |
| 16:25:07 | watusimoto | http://modarchive.org/index.php?request=view_by_moduleid&query=161402 |
| 16:25:15 | watusimoto | public domain |
| 16:25:38 | watusimoto | only 1:06 |
| 16:26:15 | raptor | sounds like the game ending music to a long RPG you just completed |
| 16:26:43 | watusimoto | would be good for a level like intermission |
| 16:27:08 | raptor | yes... then that means we're getting into the realm of tying tracks to level files |
| 16:27:27 | watusimoto | maybe we should do that |
| 16:27:35 | watusimoto | we could allow users to specify a track for a level |
| 16:27:46 | raptor | i had a discussion with _k on that |
| 16:27:49 | raptor | a long one |
| 16:27:53 | watusimoto | it might enocurage users to find new tracks for us |
| 16:28:11 | watusimoto | I'm thinking they can only pick from the music we've packaged with the game |
| 16:28:24 | raptor | he had loads of ideas on how to implement it - including auto downloading the track from somewhere before the level begins (if you don't have the track) |
| 16:28:36 | raptor | also music genre groups |
| 16:29:41 | raptor | and music packs based on genre - and you'd just choose a genre in the level file; it would then load whatever that genre is tied to in the music pack you have loaded |
| 16:32:33 | watusimoto | I've objected to tying music in the past for copyright reasons |
| 16:32:34 | watusimoto | but |
| 16:32:47 | watusimoto | we could let users only tie to packaged songs |
| 16:33:00 | watusimoto | with the possibility of downloading new tracks from the bf server |
| 16:33:13 | watusimoto | the only tracks that would be available are ones we've approved |
| 16:33:24 | watusimoto | that would encourage people to ferret out new tracks |
| 16:33:30 | raptor | yes |
| 16:33:37 | watusimoto | and we'd keep some control over what gets in |
| 16:33:38 | raptor | i'm just throwing out the idea _k had |
| 16:33:42 | watusimoto | I know |
| 16:33:56 | watusimoto | his idea is too complicated |
| 16:34:17 | watusimoto | we could maybe use get resource capability built into bitfighter |
| 16:34:28 | watusimoto | or maybe just spawn a wget or something |
| 16:35:02 | watusimoto | and we could have a web page showing available tracks, where you could download them if you wanted |
| 16:35:23 | watusimoto | or maybe you could run bf in some mode that downloaded all available tracks |
| 16:35:52 | watusimoto | actually, forget the resource downloader |
| 16:36:00 | watusimoto | all the resources would be on bf.org, not on the game server |
| 16:36:11 | raptor | yes |
| 16:36:19 | watusimoto | so that would mean that downloads wouldn't hammer the game server |
| 16:36:22 | raptor | libcurl! |
| 16:36:26 | watusimoto | sure |
| 16:37:00 | raptor | well, let me start with libmodplug first... |
| 16:37:07 | raptor | then we can add mods... |
| 16:37:53 | watusimoto | ok... next step would be to add a leveline that specified music |
| 16:38:02 | watusimoto | but... I'm heading home. |
| 16:38:04 | raptor | but first |
| 16:38:09 | raptor | 018 or 019? |
| 16:38:11 | raptor | :) |
| 16:38:12 | raptor | ok |
| 16:38:14 | raptor | see you later |
| 16:38:56 | watusimoto | good question... we can start now; I'm still behind on my lua work; though maybe we can start testing and do a release as-is |
| 16:39:27 | raptor | yeah, we should release - sam and I have been testing as we go |
| 16:39:29 | watusimoto | my thought was you could start now, and we would release with whatever we have when other things are ready. we don';t need to advertise the new features |
| 16:39:35 | watusimoto | lua testing, mostly |
| 16:39:44 | raptor | yeah, the lua stuff we haven't done much of |
| 16:39:45 | raptor | ok |
| 16:39:47 | raptor | sounds good |
| 16:39:51 | watusimoto | we need to create a lua script that runs through all the new methods |
| 16:40:02 | watusimoto | ok, well, see you! |
| 16:40:07 | raptor | later |
| 16:44:42 | | watusimoto Quit (Ping timeout: 256 seconds) |
| 17:36:39 | | Watusimoto has joined |
| 17:39:27 | Watusimoto | http://modarchive.org/index.php?request=view_by_moduleid&query=53213 |
| 17:39:32 | Watusimoto | this one is kind of nice |
| 17:39:49 | Watusimoto | public domain |
| 17:41:14 | Watusimoto | 1:24, sort of almost kind of not really loops |
| 17:42:15 | raptor | no tbad |
| 17:47:47 | | Watusimoto Quit (Ping timeout: 240 seconds) |
| 18:17:02 | raptor | IT BUILT |
| 18:17:12 | raptor | wow, i got the mod library to build on Mac |
| 18:26:13 | | Watusimoto has joined |
| 18:30:44 | | LordDVG has joined |
| 18:54:05 | Watusimoto | http://modarchive.org/index.php?request=view_by_moduleid&query=40503 |
| 18:55:55 | Watusimoto | there's 2 more in that "series" |
| 18:56:04 | raptor | i like it |
| 18:56:18 | Watusimoto | http://modarchive.org/index.php?request=view_by_moduleid&query=40515 |
| 18:56:21 | Watusimoto | pt 2 |
| 18:56:36 | Watusimoto | http://modarchive.org/index.php?request=view_by_moduleid&query=40518 |
| 18:56:42 | Watusimoto | attribution license |
| 18:57:18 | Watusimoto | same artist has 65 songs in modarchive |
| 18:59:08 | Watusimoto | they sound very polished |
| 18:59:46 | Watusimoto | http://modarchive.org/index.php?request=view_artist_modules&query=68766 |
| 19:00:01 | Watusimoto | list of all mods by the artist |
| 19:00:17 | raptor | yeah, they are a lot more polished than most |
| 19:00:28 | raptor | success! |
| 19:00:33 | raptor | libmodplug for Mac is done |
| 19:00:58 | Watusimoto | wow |
| 19:01:33 | Watusimoto | actually, a lot of these are pretty good |
| 19:01:47 | raptor | i guess i better start on windows... |
| 19:02:00 | raptor | oh man, i need to start a vc++ project from scratch... |
| 19:02:54 | Watusimoto | ouch |
| 19:04:35 | | BFLogBot - Commit 813724f46c7d | Author: buckyballreaction | Log: libmodplug for Mac! |
| 19:08:30 | raptor | i just found the old menu music from chromium-bsu: http://chromium-bsu.git.sourceforge.net/git/gitweb.cgi?p=chromium-bsu/chromium-bsu;a=tree;f=data/wav;h=383abed2ebee3c59feeeec06dc0b3fbd10a6bd06;hb=HEAD |
| 19:08:48 | raptor | music_menu.wav and music_game.wav |
| 19:11:09 | Watusimoto | do wee need sfx for seeker? |
| 19:11:16 | raptor | oh yeah... |
| 19:11:17 | raptor | ummm |
| 19:11:23 | raptor | probably would be good |
| 19:13:16 | raptor | this from hedgewars mortar weapon?: http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Sounds/mortar.ogg |
| 19:13:25 | raptor | (we'd have to convert to WAV) |
| 19:16:53 | Watusimoto | hhow about this for launch? |
| 19:16:54 | Watusimoto | http://www.bfxr.net/?s=5%2C0.5%2C0.5562%2C0.4662%2C0.0905%2C0.6736%2C0.2241%2C0.1311%2C%2C0.6314%2C%2C0.0041%2C0.3748%2C0.0292%2C0.6306%2C0.5705%2C0.8066%2C0.685%2C-0.1339%2C0.7312%2C0.4879%2C-0.9627%2C0.4204%2C-0.9999%2C0.369%2C0.9118%2C-0.4071%2C0.8852%2C0.0307%2C-0.7076%2C0.0014%2C-0.9932%2CmasterVolume |
| 19:17:46 | raptor | sigh, flash player crashed... |
| 19:19:06 | Watusimoto | or possibly this |
| 19:19:07 | Watusimoto | http://www.bfxr.net/?s=5%2C0.5%2C0.3353%2C0.4615%2C0.226%2C0.4637%2C0.1631%2C0.2769%2C%2C%2C-0.0004%2C0.7723%2C0.7575%2C0.3298%2C0.7121%2C0.443%2C0.3464%2C0.9473%2C0.5435%2C0.9481%2C0.6963%2C0.4086%2C0.7218%2C-0.6966%2C-0.9997%2C0.6954%2C-0.8277%2C0.0732%2C0.0604%2C-0.8532%2C0.1676%2C-0.9535%2CmasterVolume |
| 19:19:47 | Watusimoto | I'd like a the seeker to emit a sound continuously, getting louder as it gets closer; but probably a sublte one would be best |
| 19:20:37 | raptor | since the ship is always in the middle of the screen, making it louder the closer it gets is trivial with openAL |
| 19:20:50 | raptor | already built in |
| 19:23:21 | raptor | i sadly cannot listen to those, dumb flash player |
| 19:24:11 | Watusimoto | indeed it is |
| 19:25:12 | raptor | ha! got it to work |
| 19:25:27 | Watusimoto | tjhe player, or something else? |
| 19:25:42 | raptor | hmmm |
| 19:25:49 | Watusimoto | I'm exporting the sounds so you can hear them |
| 19:25:50 | raptor | the first one might get annoying |
| 19:25:54 | raptor | i got the player to work |
| 19:26:14 | Watusimoto | yeah, maybe |
| 19:32:17 | Watusimoto | something completely different |
| 19:32:18 | Watusimoto | http://www.pacdv.com/sounds/interface_sound_effects/sound21.mp3 |
| 19:32:54 | raptor | sounds like part of the sensor sound |
| 19:33:29 | raptor | lok at these: http://www.soundsnap.com/tags/sonar |
| 19:33:32 | raptor | look |
| 19:39:38 | Watusimoto | those are for-purchase sounds? |
| 19:39:39 | | BFLogBot - Commit f85169fece88 | Author: buckyballreaction | Log: Some libmodplug clean-up for mac - including a linking path fix (it had a newline in it) |
| 19:39:41 | | BFLogBot - Commit bd54b085ab27 | Author: buckyballreaction | Log: Mac OS X: Link ALURE and the Bitfighter executable against libmodplug |
| 19:40:02 | raptor | yeah, not so good that... but i thought they'd give ideas |
| 19:40:26 | raptor | http://www.youtube.com/watch?v=htUvUH9Uoi4 |
| 19:42:58 | raptor | ha! |
| 19:43:02 | raptor | i don't have to add any code |
| 19:43:17 | raptor | modules already play just by putting them in the music folder (for mac and linux) |
| 19:43:49 | Watusimoto | I'm not sure I'd go for pinging |
| 19:45:14 | raptor | ok |
| 19:45:27 | raptor | probably be too crazy for pinging... |
| 19:45:36 | raptor | 2 down 1 to go |
| 19:49:43 | | BFLogBot - Commit cb51c2e7b5db | Author: buckyballreaction | Log: libmodplug support for Linux, too. Note: libmodplug is now a dependency for packaging |
| 19:59:59 | | koda has joined |
| 20:44:53 | raptor | sadly libmodplug is starting to be difficult to compile in windows... |
| 20:58:38 | raptor | argh it requires several C99 methods that microsoft did not implement |
| 21:02:04 | | LordDVG Quit (Remote host closed the connection) |
| 21:06:41 | Watusimoto | sounds sucky... quick question |
| 21:07:09 | Watusimoto | I am reimplementing findClosestEnemy() in C++ -- think you should be able to specify a max radius? |
| 21:07:41 | Watusimoto | so enemy = bot:findClosestEnemy(1000) |
| 21:07:46 | Watusimoto | or would that not be useful? |
| 21:08:09 | raptor | i think its typically used for whole map searches |
| 21:08:17 | Watusimoto | currently, yes |
| 21:08:38 | raptor | maybe have two types of searches: in viewing distance, and entire-map |
| 21:08:56 | raptor | or 3: radius |
| 21:09:08 | raptor | radius would give more versatility |
| 21:09:17 | Watusimoto | you mean in visual range? |
| 21:09:24 | Watusimoto | like what a player would see? |
| 21:10:06 | raptor | yes |
| 21:28:57 | | koda waves at everybody |
| 21:29:23 | raptor | hi koda |
| 21:31:08 | koda | how are things here? :) |
| 21:31:26 | raptor | doing OK - trying to get module support working... |
| 21:31:45 | koda | if the osx compilation is sane i might try a run! |
| 21:32:34 | raptor | i just fixed it! |
| 21:32:48 | koda | yay |
| 21:32:55 | raptor | i got module playback working in OSX and Linux... Windows is another story... |
| 21:32:56 | | koda checks out the sources (again) |
| 21:34:14 | raptor | hey koda - one thing i've never been able to get working in OSX - the Xcode play button |
| 21:34:22 | raptor | i always have to start the app manually |
| 21:34:35 | koda | we have a xcode project? :| |
| 21:34:37 | raptor | i also created a rudimentary xcode4 project |
| 21:34:47 | raptor | yes - in the source under build/osx/xcode |
| 21:35:02 | koda | so it's just build & run, no dependencies? |
| 21:35:07 | raptor | there are two; the one suffixed with _xcode4 is Xcode4, the other Xcode 3.1 |
| 21:35:17 | raptor | yes |
| 21:35:26 | raptor | but the run part requires manually opening the .app |
| 21:35:52 | koda | wow |
| 21:35:53 | koda | congrats |
| 21:41:22 | koda | \o7 |
| 21:41:30 | raptor | success? |
| 21:41:36 | koda | yesssss |
| 21:41:41 | koda | it built correctly |
| 21:41:52 | raptor | yay |
| 21:43:14 | koda | umh where's the .app? |
| 21:43:29 | raptor | should be in build/osx/xcode/build/... |
| 21:43:46 | koda | ack |
| 21:43:48 | koda | Library not loaded: @executable_path/../Frameworks/libmodplug.framework/Versions/A/libmodplug |
| 21:43:56 | raptor | oops, forgot to fix that... |
| 21:44:10 | koda | the libmodplug are in red in the xcode project |
| 21:44:10 | raptor | i can fix! i promise |
| 21:44:28 | raptor | what? |
| 21:44:32 | raptor | hmmm |
| 21:45:28 | raptor | well, it's found in the lib/ folder |
| 21:46:37 | koda | the compiled version is, what about the source files? |
| 21:46:50 | raptor | ok, i fixed it |
| 21:46:54 | raptor | pull latest |
| 21:47:02 | raptor | yeah, those were the headers - they're not needed |
| 21:47:11 | raptor | i have a precompiled framework to use |
| 21:48:58 | koda | Command /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp failed with exit code 1 |
| 21:49:03 | koda | Users/geeko/temp/hg/bitfighter/lib: No such file or directory |
| 21:49:13 | raptor | what |
| 21:49:20 | raptor | weird |
| 21:49:36 | raptor | did it take teh absolute path?? |
| 21:49:41 | raptor | WHY |
| 21:49:42 | koda | so it seems |
| 21:49:57 | | BFLogBot - Commit 2b35b0b7220b | Author: buckyballreaction | Log: Fix libmodplug copy in Xcode |
| 21:50:26 | koda | it works |
| 21:50:37 | koda | (after fixing the path :p) |
| 21:50:52 | koda | and you're right that you cannot 'play' the app, umhhhh |
| 21:51:04 | raptor | manually open |
| 21:51:13 | raptor | i've lost too much life to trying to get that to work |
| 21:51:18 | raptor | in both xcode versions |
| 21:54:28 | koda | umh |
| 21:54:38 | koda | you do have a wrapper in between... |
| 21:54:48 | raptor | is that the problem? |
| 21:54:56 | raptor | i guess that would make sense... |
| 21:54:59 | | BFLogBot - Commit 904be8b44880 | Author: buckyballreaction | Log: No absolute paths please |
| 21:55:07 | raptor | a lot of sense actually... |
| 21:55:35 | koda | yes gdb is very finicky |
| 21:57:46 | raptor | hmmm that makes so much sense that i feel dumb now |
| 21:58:20 | koda | hey slow down, perhaps i'm on a completely wrong road |
| 22:05:15 | | amginea135246 has joined |
| 22:05:23 | amginea135246 | hi raptor |
| 22:05:28 | raptor | hi |
| 22:05:43 | amginea135246 | so there were a few errors in your code and i need a bit of help rouble shooting |
| 22:05:51 | amginea135246 | that you gave me last night |
| 22:07:05 | raptor | yes, i'm sure there were - i don't have the time to actually make it work though; it was meant to just give a rough idea. Sorry |
| 22:07:22 | amginea135246 | no its fine im just fixing the bugs but ineed help with one part |
| 22:07:48 | amginea135246 | hold on let me start bitfighter and the bot up so i cant tell you what the error log said |
| 22:08:47 | amginea135246 | when its finished and working im going to copy and paste it and chage the health tiems to engery items os it will get heals and engery packs =) |
| 22:09:23 | amginea135246 | btw do you still have the link to the lua teachintg site i forgot to save the link |
| 22:09:42 | raptor | http://luatut.com/ |
| 22:09:58 | amginea135246 | ty |
| 22:10:43 | amginea135246 | btw i bought a book on c++ so nowi mlearning bolth though most of the bot programming seems to be in lua |
| 22:10:46 | raptor | sooo... any Windows linker-knowledgeable people here? |
| 22:11:04 | amginea135246 | ?? explain |
| 22:11:28 | koda | not exactly knowledgeable, but.. |
| 22:11:34 | raptor | just a question to anyone in the channel if they have experience linking libraries on Windows... |
| 22:11:40 | amginea135246 | is the number in hte error the lione number exmaple 509 |
| 22:12:22 | raptor | koda: would you happen to know if statically compiling mcvcrt is good or bad practice into a DLL? |
| 22:12:31 | raptor | or Watusimoto? ^^ |
| 22:12:48 | raptor | sorry, statically linking |
| 22:12:58 | koda | afaik it's not possible to have mcvcrt statically linked |
| 22:13:32 | koda | and given the windows vulnerabilities it'd be very bad practice :P |
| 22:13:34 | amginea135246 | so the error was simple one alli had to to do is add a then to one line but when i did that i got like 5 errors back.... |
| 22:13:53 | raptor | well.. it is (or similar routines are) if you use the /MT switch in visual studio - however, i'm stuck with mingw on this library... |
| 22:14:23 | Watusimoto | hey ho... I don't understand the question... or even know what it is! |
| 22:14:35 | raptor | but you're the Windows developer! |
| 22:14:42 | Watusimoto | static vs. dlls? |
| 22:14:47 | Watusimoto | or error on 509? |
| 22:15:21 | raptor | amginea135246: i'm sorry i'm a bit too busy to help debug right now |
| 22:15:29 | Watusimoto | I'm not a windows dev, but I do develop on windows :-) |
| 22:16:15 | Watusimoto | I like static linking -- then I know what I've got. In theory, dlls are supposed to be shared, to reduce code duplication, but in practice this seems to be rare due to versioning issues and dll hell |
| 22:16:48 | raptor | well, the idea is to do shared linking to the libraries we have, then statically link the other junk (like msvcrt) |
| 22:17:07 | raptor | hey this page is informative!: http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.80%29.aspx |
| 22:17:33 | Watusimoto | this discusses the issue |
| 22:17:34 | Watusimoto | http://stackoverflow.com/questions/1993390/static-linking-vs-dynamic-linking |
| 22:17:42 | koda | though msvcrt is in the distributable c++ libs no? |
| 22:17:45 | Watusimoto | but none fo the reasons in the accepted answer really apply to us |
| 22:17:49 | raptor | but koda is probably right about msvcrt |
| 22:18:01 | Watusimoto | sure, but that is something that can be genuinely shared |
| 22:18:04 | raptor | i've statically linked that into every dll we have |
| 22:18:29 | Watusimoto | is it likely there will be 2 games at once sharing the same dll? |
| 22:18:42 | Watusimoto | (assuming we're talking sound here) |
| 22:20:28 | Watusimoto | it might make sense to dynamiclally link in the standard ms dlls |
| 22:20:45 | amginea135246 | so i added a then but then to line 509 where i had the error but then i got this error and im not sure what it means in the script "***roboterror*** in robot b.bot robot error handelling event tick in robot b.bot 472 atempted to assign undeclared varible findnearestfriendly in function. boy typing that whole thing is a pain wish we could copy and paste the ctrl+/ chatlog |
| 22:21:22 | amginea135246 | btw ctrl+/ is alot more helpfull then opening the error log manuly ^_^ |
| 22:21:42 | amginea135246 | i dont know if im supposed to know that i found it by accidnet |
| 22:22:04 | raptor | oh wow the CRT (C runtime) with windows is complicated |
| 22:22:14 | raptor | SxS assemblies |
| 22:22:17 | raptor | !! |
| 22:23:09 | amginea135246 | since raptro is busy maybe you oculd help wattisimo? unles your helping raptor of course then ill wait as long as it takes |
| 22:23:18 | Watusimoto | so amginea135246 what are you trying to do? |
| 22:24:10 | Watusimoto | you can keep the log file open in an editor; makes c/p easier |
| 22:24:21 | Watusimoto | don't open/close it each time you run |
| 22:24:21 | amginea135246 | well raptor gave me a basic script that makes the bot get health pick ups but it had a a error see above but fixing that error caused another error |
| 22:24:43 | Watusimoto | it's 450+ lines?!? |
| 22:24:48 | Watusimoto | doesn't sound too basic! |
| 22:25:07 | raptor | Watusimoto: he wants to make his modified s_bot have additional functionality, i wrote some quick code for him to give him an idea of what to do |
| 22:25:12 | Watusimoto | ah |
| 22:25:14 | Watusimoto | I see |
| 22:25:36 | amginea135246 | no the part is at the end in the on tick section the section itself is only say 43 klines |
| 22:25:46 | Watusimoto | can you put the entire function where the error occurred into a post at pastie.org? then tell me what line had the error and what it said? |
| 22:26:23 | amginea135246 | ok ill paste the sricpt on pastie .org the exact error can be found above with the function error |
| 22:26:52 | Watusimoto | ok |
| 22:29:57 | amginea135246 | watissimo here is the scirpt raptor gave me http://pastie.org/4811852 |
| 22:31:15 | Watusimoto | with your modifications |
| 22:31:41 | amginea135246 | yes with the added then that i was gettng before |
| 22:32:30 | Watusimoto | this one has no line 472! |
| 22:32:50 | Watusimoto | oh, I see |
| 22:33:01 | Watusimoto | capitilzation matters |
| 22:33:02 | amginea135246 | that wasnent the whole script only the edited part the error log countall lines |
| 22:33:24 | Watusimoto | The function is findNearestFriendly, and you may be calling it findnearestfriendly |
| 22:33:31 | Watusimoto | at least according to your error message |
| 22:33:42 | amginea135246 | let see |
| 22:34:11 | Watusimoto | it would be helpful to know which line of what you pasted is generating the error |
| 22:35:21 | amginea135246 | teh error that i was getting is above |
| 22:35:29 | amginea135246 | teh function error problem |
| 22:36:08 | raptor | amginea135246: i think he wants you to make a new pastie that has your full bot code in it |
| 22:36:42 | Watusimoto | either give me all the code, or translate line 472 into whatever numbers are shown in pastie |
| 22:37:17 | amginea135246 | here i will type what the error log says "***roboterror*** in robot b.bot robot error handelling event tick in robot b.bot 472 atempted to assign undeclared varible findnearestfriendly in function. all vars must be decalred local or global all blobal msut be defnined in main() thats what it said |
| 22:38:12 | amginea135246 | os it appears that the find nearest friednly objects line is the erroring line |
| 22:38:53 | amginea135246 | btw here is the pastie of the section of code the line in the error log corrasponds with the finnearest friendlyobjectesline |
| 22:39:07 | Watusimoto | ok. You are asking me to help debug a probelm in line 472. Which line in that pastie is line 472? |
| 22:39:48 | amginea135246 | corrapsonds to line 4 sorry i wasent being clear about that |
| 22:39:59 | amginea135246 | line 4 in the pasite code |
| 22:40:21 | Watusimoto | why oh why did lua use ~= instead of != ???? |
| 22:40:49 | raptor | because the squiggly is fun to say! |
| 22:41:00 | amginea135246 | its called a tilde |
| 22:41:50 | amginea135246 | lol supriusingly few people know which one the puound sybol is either ^_^ |
| 22:42:22 | amginea135246 | wattisimo? |
| 22:42:47 | Watusimoto | ok, this makes no sense. You are reporting a undeclared variable on line 472, which you say is pastie line 4, but there is no variable declaration on or around line 4 |
| 22:42:48 | Watusimoto | but |
| 22:43:04 | Watusimoto | what that error usually means is that to use a variable, you must first declare it with the word local |
| 22:43:17 | Watusimoto | (except in the main() function, but ignore that for the moment) |
| 22:43:24 | Watusimoto | x = 4 -- <== bad |
| 22:43:36 | Watusimoto | local x = 4 -- <= good |
| 22:44:05 | Watusimoto | so see if you can figure out which variable it is objecting to |
| 22:44:26 | Watusimoto | unless... there may be some monkey business just prior to line 4 |
| 22:44:33 | amginea135246 | so should i put local infront of the find or behind it then nearestfriednly objects |
| 22:44:55 | Watusimoto | that you didn;t include, and the parse may be getting confused, thinking your function definition is a variable definitinon |
| 22:45:02 | Watusimoto | what comes above? |
| 22:45:26 | amginea135246 | teh first part of the ontick() section same as it was before |
| 22:45:46 | Watusimoto | can you post the entire script? |
| 22:45:52 | raptor | amginea135246: please make a pastie of your entire bot script |
| 22:46:10 | amginea135246 | ok btw you will see on or two small chages |
| 22:46:21 | amginea135246 | here or there those were already tested and work |
| 22:46:46 | amginea135246 | the only part that was edited was the ontick() section |
| 22:47:52 | amginea135246 | here you go the entire script http://pastie.org/4811967 |
| 22:48:06 | amginea135246 | but im sure its only the on tick section |
| 22:48:27 | amginea135246 | of course you have more experince so.... |
| 22:49:42 | amginea135246 | but you will see some minor vlaue edits at the beggining that makes the bot stronger as far as aggresivness also I fixed the problem of bots getting stuck oin forcefeilds unless there is abot nearby then they target that or they dont if its to far |
| 22:50:24 | amginea135246 | thats was all done by me mostly by adding one owrd or changin a value |
| 22:50:26 | Watusimoto | ok, I see the problem |
| 22:50:35 | Watusimoto | onTick() is missing an end statement |
| 22:51:13 | amginea135246 | really all i have to do is put a end after the ontick^_^ |
| 22:51:16 | Watusimoto | so it is getting confused when it hits the next function delcaration |
| 22:51:24 | Watusimoto | on line 468, yes |
| 22:51:41 | amginea135246 | does it go on the same line or on the next one seperate |
| 22:52:16 | Watusimoto | either way, but a new line would be clearer. best to align it with the function delcaraion you are ending, to make the code easier to read |
| 22:53:05 | Watusimoto | and making the code easy to read is a VERY IMPORTANT part of coding. Pay attention to the way your code looks and reads. Repeat... VERY IMPORTANT even if it seems to be a trivial pain in the butt. |
| 22:53:09 | amginea135246 | jsut a question doesnt it already have a end after the pathtimer line? |
| 22:53:26 | Watusimoto | there is an end on line 467 |
| 22:53:30 | Watusimoto | what is that ending? |
| 22:53:42 | amginea135246 | yes |
| 22:53:49 | Watusimoto | what is that ending? |
| 22:54:24 | amginea135246 | what eof needed near end? |
| 22:54:29 | Watusimoto | here's a hint: look at how the file is formatted, and what lines up with what |
| 22:54:49 | Watusimoto | the end on line 467 ends the block started with the if on line 465 |
| 22:54:53 | Watusimoto | your function has no end |
| 22:56:23 | amginea135246 | umm 467 has a end? |
| 22:56:42 | Watusimoto | the end on line 467 ends the block started with the if on line 465 |
| 22:57:19 | Watusimoto | what editor are you using? |
| 22:57:27 | amginea135246 | notepad xd |
| 22:57:36 | Watusimoto | is that the same as notepad? |
| 22:57:45 | amginea135246 | yes |
| 22:58:21 | Watusimoto | download sublime text editor (it's a paid product, but the nag notices aren't so bad). load your file intot here, and set the syntax coloring to lua |
| 22:58:33 | Watusimoto | Everything will become MUCH clearer |
| 22:59:15 | amginea135246 | so if the 467 end lines 465 where does the end for 468 ( the function line go) |
| 22:59:39 | Watusimoto | that closes onTick() |
| 22:59:56 | amginea135246 | so it goes on the same line as the on tick or before it |
| 23:00:16 | amginea135246 | im sorry im so stupid im probably drvinging you crazy |
| 23:02:00 | Watusimoto | a little bit :-) |
| 23:02:31 | Watusimoto | the end needs to go at the end of the onTick() function |
| 23:02:40 | Watusimoto | that function must end before the next one is declared |
| 23:02:56 | amginea135246 | i think i got it but now the robot just sits there and does nothing |
| 23:03:02 | Watusimoto | so put an end on line 468 |
| 23:03:09 | Watusimoto | ok, well that;s progress! |
| 23:03:16 | Watusimoto | I'm serious about the editor |
| 23:03:34 | amginea135246 | i may look into it. |
| 23:03:44 | Watusimoto | it really is much easier to see what is going on if you have an editor that can color the bits of code differently |
| 23:04:08 | raptor | if you have to hammer a nail, don't use a spoon |
| 23:04:24 | Watusimoto | look at pastie for a (crude) example |
| 23:04:38 | Watusimoto | the code you pasted there is easier to understand than the same code in notepad, no? |
| 23:04:51 | Watusimoto | you can use the editor for free |
| 23:05:13 | amginea135246 | whats the link to it |
| 23:05:22 | raptor | ok heading home! laters! |
| 23:05:29 | Watusimoto | http://www.sublimetext.com/ |
| 23:05:31 | Watusimoto | laters |
| 23:05:36 | | raptor Quit () |
| 23:06:55 | amginea135246 | lol cant download sublime bocked from thedownload by my peer |
| 23:07:51 | amginea135246 | so i added the end to line 486 but now the bot jsut sits there and does nothing itm ust be havin a programming loop problem or a conflict |
| 23:09:04 | Watusimoto | now you have entered the fun stage of prgoramming... all th easy errors are fixed (i.e. the program runs) and yet it still doesn;t work |
| 23:09:36 | amginea135246 | hmm how what |
| 23:09:48 | Watusimoto | obviously something you changed made the bot sit there |
| 23:09:51 | Watusimoto | so |
| 23:09:59 | Watusimoto | you need to look at what you changed |
| 23:10:13 | amginea135246 | maybe i could just give it to you and you could see if i did indeed put the end in the right spot for me? |
| 23:10:28 | amginea135246 | cause clearly im do dumb to do this |
| 23:10:32 | Watusimoto | there are seveal ways to attack the problem; I usually try reverting a bit at a time until things start working again |
| 23:10:42 | Watusimoto | it's not a question of dumb |
| 23:10:50 | Watusimoto | just experience |
| 23:10:59 | koda | \o/\o/ |
| 23:11:02 | koda | i have success |
| 23:11:11 | Watusimoto | great!!! |
| 23:11:18 | amginea135246 | yes i am cause i cant do what you tell me to do anyways |
| 23:11:21 | Watusimoto | amginea135246: you can post your code again on pastie |
| 23:11:23 | koda | i got the play button to *play* the file from xcode |
| 23:11:32 | amginea135246 | right apperntly |
| 23:11:37 | koda | though i had to bypass the script |
| 23:11:41 | Watusimoto | but you almost certalin did do it right, because it did not crash |
| 23:11:44 | Watusimoto | koda: excellent |
| 23:11:51 | Watusimoto | so now it works in xcode? |
| 23:11:58 | koda | gotta tell raptor tomorrow |
| 23:12:04 | Watusimoto | he'll be happy! |
| 23:12:59 | amginea135246 | oops fish paste i accidenlt delet4ede the code |
| 23:13:07 | amginea135246 | well the file with the code |
| 23:14:11 | koda | indeed |
| 23:14:15 | koda | wooo also the script runs |
| 23:14:18 | Watusimoto | wow |
| 23:14:32 | Watusimoto | hit ctrl-Z! |
| 23:14:40 | koda | lol |
| 23:14:42 | Watusimoto | and don't save until you code is back! |
| 23:14:48 | | sam686 has joined |
| 23:14:48 | | ChanServ sets mode +v sam686 |
| 23:15:17 | koda | segfault on exit but that's unrelated :p |
| 23:15:47 | amginea135246 | luckily i pasted pated it in pasite Xd |
| 23:17:41 | amginea135246 | lol im back to errors XD |
| 23:17:49 | Watusimoto | segfault, schmegfault! |
| 23:17:54 | amginea135246 | scratch one for progress XD |
| 23:18:02 | Watusimoto | but now you know how to fix it |
| 23:18:06 | Watusimoto | that is progress |
| 23:18:35 | amginea135246 | and i htink i know why the bot idels as well i think its cause he made 2 main() fucntions() on accidnet |
| 23:18:55 | amginea135246 | theres a main() at the begging and towoards the end |
| 23:19:02 | amginea135246 | maybe its worth looking into |
| 23:19:06 | Watusimoto | that sounds bad |
| 23:19:39 | Watusimoto | yup, that's probably the problem |
| 23:19:42 | amginea135246 | well im sure i got a easy fix idea jsut put the one section of main in the other one then delete the second one |
| 23:19:46 | Watusimoto | the second one will overwrite the first |
| 23:20:02 | Watusimoto | yes, exactly |
| 23:20:07 | amginea135246 | is it me or am i learning =) |
| 23:20:15 | Watusimoto | maybe! |
| 23:21:21 | amginea135246 | guess not cause i m back to sqare one with the first error XD |
| 23:21:34 | amginea135246 | round one amgine vs end |
| 23:21:37 | amginea135246 | Xd |
| 23:21:57 | amginea135246 | sorry cant resist a little programmer humor. |
| 23:22:11 | Watusimoto | :-) |
| 23:23:32 | amginea135246 | umm where did that end go again i forget |
| 23:24:20 | amginea135246 | arg i just got a of programmer nerds im my keyboard ( more programming humor ask if you dont get it) |
| 23:24:31 | amginea135246 | ners as in food |
| 23:24:34 | Watusimoto | at the end of the function |
| 23:25:24 | amginea135246 | ugh |
| 23:25:35 | amginea135246 | eof expected near end |
| 23:26:44 | amginea135246 | hi sam still struggeling even iwth help cause im jsut not smart enoough to understand what people say |
| 23:27:13 | Watusimoto | your problem,I think, is that you are unfamilliar with lua |
| 23:27:16 | amginea135246 | just give me the line number and tell me where it goes lets try that |
| 23:27:59 | Watusimoto | 468 |
| 23:28:42 | Watusimoto | you might want to invest some time with luatut.com |
| 23:31:55 | Watusimoto | ok amginea135246: I live in Luxembourg, and it's 1:30 Am here, so to bed I go |
| 23:32:07 | Watusimoto | you are on your own for a while |
| 23:32:17 | sam686 | its 6:32 PM for me... |
| 23:32:25 | Watusimoto | oh hi sam |
| 23:32:33 | sam686 | hi |
| 23:32:55 | Watusimoto | I would recommend spending some time learning a bit about lua... it will make everything easier |
| 23:33:46 | Watusimoto | anyway, gentlemen... |
| 23:33:49 | Watusimoto | good night |
| 23:39:34 | amginea135246 | lol it says your still here wattisimo |
| 23:39:42 | amginea135246 | i htought you were laving Xd |
| 23:40:12 | | BFLogBot - Commit 1babc6f61a33 | Author: watusim...@bitfighter.org | Log: Potential music |
| 23:40:13 | | BFLogBot - Commit 1614cc39cae1 | Author: watusim...@bitfighter.org | Log: Whitespace |
| 23:40:15 | | BFLogBot - Commit 8b196f872a17 | Author: watusim...@bitfighter.org | Log: A couple of things: made isVisible take an argument to force consideration of sensor; made bots able to see cloaked enemies if they have sensor; implemented findNearestEnemy in C++ and updated s_bot accordingly. |
| 23:40:16 | | BFLogBot - Commit 0f0c8a7040cf | Author: watusim...@bitfighter.org | Log: Merge |
| 23:42:39 | | Watusimoto Quit (Ping timeout: 252 seconds) |
| 23:43:38 | | amginea135246 Quit (Quit: Page closed) |