#bitfighter IRC Log

Index Search ←Prev date Next date→

IRC Log for 2012-09-26

Timestamps are in GMT/BST.

03:37:56sam686 Quit (Ping timeout: 245 seconds)
03:40:16Cracatoa has joined
03:44:52amgine_ has joined
03:44:55amgine_hello is anyone here?
03:45:16amgine_ is now known as Guest35965
03:59:03Cracatoa Quit (Ping timeout: 245 seconds)
04:00:15raptor has joined
04:00:16ChanServ sets mode +o raptor
04:15:41Guest35965 has left
04:39:39sam686 has joined
04:39:39ChanServ sets mode +v sam686
04:42:07amginea428169 has joined
04:42:11amginea428169hello
04:42:23amginea428169ah finaly a mod is on
04:42:36amginea428169 i need help with my robot programing
04:42:57raptorhi
04:43:11amginea428169 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:25raptortell me
04:43:44amginea428169 bascily the robot gets its health value and if its not full it gets the nearest health item
04:43:57amginea428169 its for my improved robot im owrking on
04:44:06amginea428169 for the site =)
04:44:13raptori think i did something similar in sentinel bot
04:44:43raptorno wait, maybe it was RepairBot
04:45:05amginea428169 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:31amginea428169 it doesnt get hung up on forcefields as often now
04:45:52amginea428169 ill give you a while to figure it out.
04:47:36amginea428169idlely waits XD
04:48:13raptorwell, i'm not going to write it for you... but i'm looking for something similar i may have written
04:49:14amginea428169 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:08sam686 Quit (Read error: Connection reset by peer)
04:51:02amginea428169the 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:26amginea428169anyways ll wait
04:51:34raptorthat's good - one thing you should know that we've changed the code a bit for the upcoming 018 release
04:52:24amginea428169 sim sorry im reapeating myslef alot its a disability thing i have i tend to do that alot
04:53:24sam686 has joined
04:53:24ChanServ sets mode +v sam686
04:55:08raptorwell, if you don't know much Lua, I suggest you start here: http://luatut.com/
04:55:19raptorbecause you're going to need to know Lua if you want to write this...
04:56:35amginea428169i 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:14amginea428169on a realted note you whould put that link on the wiki of the website
04:57:18amginea428169hsould
04:57:37raptorwell, i prefer to spend my time working on the new Bitfighter :) But I can write a little something quickly...
04:59:34amginea428169cool 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:40amginea428169 =)
05:00:58raptorhi sam686
05:01:38amginea428169hi sam
05:01:43amginea428169 just getting some help here
05:01:44sam686hi
05:02:18amginea428169repitition is anoyying... repitition is anoyying... repitition is anoyying... repitition is anoyying... XD
05:02:37amginea428169sorry i oculdnt resist posting that XD
05:03:34amginea428169well let me know if oyur ready raptor and thanks =)
05:03:46raptorok amginea428169: here is some quick code: http://pastie.org/4803273
05:03:52amginea428169 im reading the lua basics course
05:04:02raptori may not work, but you'll get the basic idea
05:04:09amginea428169 so i wont bother you so much sorry for bothering you
05:04:52raptorwhat you want to do is put the function checkHealth() in the bot onTick() method, i think
05:05:23raptorbut anyways - i'm going to bed... good night!
05:06:03amginea428169good night
05:06:12amginea428169 and wow this look complicated XD
05:06:22amginea428169 better get reading XD
05:06:34raptor Quit ()
05:08:29amginea428169well sam want to come see if this works
05:09:24sam686on yout bitfighter 017?
05:09:37amginea428169 im using 17b
05:09:56amginea428169and i tried it it didnt work the computer is to fixed on targeting me
05:24:02amginea428169 Quit (Quit: Page closed)
05:32:27sam686When 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:39sam686but reload that, and it opens fine for me now..
05:41:24sam686 Quit (Quit: good night)
05:54:36amginea428196405 has joined
05:54:55amginea428196405alas
05:56:48amginea428196405danr it wheres a owner when your programing goes wrong XD
06:06:01amginea428196405 Quit (Quit: Page closed)
09:27:55watusimoto has joined
09:27:55ChanServ sets mode +o watusimoto
14:16:44raptor has joined
14:16:44ChanServ sets mode +o raptor
14:16:48raptormorning'
14:27:18Little_Apple has joined
14:27:35Little_Applehelloo
14:28:08raptorgood morning
14:29:17Little_Applegoooooood mornin'
14:52:04watusimotohi
14:52:11raptorhi
15:05:51Little_Applehi
15:22:48Little_Apple Quit (Ping timeout: 245 seconds)
16:09:18raptorha!
16:09:36raptorbobdaduck was the one who added #34 to the running list: http://bitfighter.org/wiki/index.php/Running_Bug_List
16:10:03watusimotohmmmm... this is a closed list, no??
16:10:15watusimotoof course, he's right
16:10:26raptorwell, the wiki requires you log in. so technically anyone with a forum's account can change it
16:10:53watusimotocan we play mods?
16:10:59raptorexplain
16:11:05watusimoto.mod files
16:11:23watusimotomusic format
16:11:26raptorno, but the idea has been brought up before
16:11:33raptoruse .mod instead of vorbis
16:11:44raptorin fact, i even have a library picked out for it
16:12:04watusimotowell, I have a site full of goodish mods, maybe I can point bobdaduck there and have him do some selection
16:12:26watusimotocould convert to ogg in the short term
16:12:45raptoradding mod support wouldn't be too hard - the ALURE library I use to run vorbis does it seamlessly
16:12:57raptorthe hard part would be compiling another library for all three platforms
16:13:31raptormight not be too hard... just windows and mac, i guess
16:13:46watusimotono music on linux?
16:13:54raptor:)
16:14:05raptorno actually, all the libraries are already compiled on linux
16:14:15raptori just add it as a dependency when buildign the packages
16:14:31raptorand link against the system library
16:16:03raptorlooks like the module playing library may add 300-500K in size
16:16:12raptorfor windows and mac
16:16:19raptorshould we do this for 019?
16:17:00watusimotoif we have any mods
16:17:21raptorit supports like 22 mod formats including the compressed ones
16:17:26raptorlike .mod.zip
16:17:29watusimotogreat!
16:17:36watusimotoI'll get that url tonight
16:17:41raptor?
16:17:53watusimotothis one: http://modarchive.org/
16:17:57watusimotojust popped into my head
16:18:04raptorso, that's a 'yes' to adding module support?
16:18:05watusimotomaybe bobdaduck can pick out some music there
16:18:14watusimotoif we get any mods :-)
16:18:36raptorha, ok - i guess i bettter start building the libs
16:19:46raptorthis is still one of my favorites: http://sam6.25u.com/upload/Cutdry.mod
16:19:52raptorbut doesn't go with bitfighter very well
16:23:19raptorfound another mod site: http://www.mirsoft.info/gamemods.php
16:23:23raptornot sure about the licensing...
16:25:06watusimotowhat about this one?
16:25:07watusimotohttp://modarchive.org/index.php?request=view_by_moduleid&query=161402
16:25:15watusimotopublic domain
16:25:38watusimotoonly 1:06
16:26:15raptorsounds like the game ending music to a long RPG you just completed
16:26:43watusimotowould be good for a level like intermission
16:27:08raptoryes... then that means we're getting into the realm of tying tracks to level files
16:27:27watusimotomaybe we should do that
16:27:35watusimotowe could allow users to specify a track for a level
16:27:46raptori had a discussion with _k on that
16:27:49raptora long one
16:27:53watusimotoit might enocurage users to find new tracks for us
16:28:11watusimotoI'm thinking they can only pick from the music we've packaged with the game
16:28:24raptorhe 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:36raptoralso music genre groups
16:29:41raptorand 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:33watusimotoI've objected to tying music in the past for copyright reasons
16:32:34watusimotobut
16:32:47watusimotowe could let users only tie to packaged songs
16:33:00watusimotowith the possibility of downloading new tracks from the bf server
16:33:13watusimotothe only tracks that would be available are ones we've approved
16:33:24watusimotothat would encourage people to ferret out new tracks
16:33:30raptoryes
16:33:37watusimotoand we'd keep some control over what gets in
16:33:38raptori'm just throwing out the idea _k had
16:33:42watusimotoI know
16:33:56watusimotohis idea is too complicated
16:34:17watusimotowe could maybe use get resource capability built into bitfighter
16:34:28watusimotoor maybe just spawn a wget or something
16:35:02watusimotoand we could have a web page showing available tracks, where you could download them if you wanted
16:35:23watusimotoor maybe you could run bf in some mode that downloaded all available tracks
16:35:52watusimotoactually, forget the resource downloader
16:36:00watusimotoall the resources would be on bf.org, not on the game server
16:36:11raptoryes
16:36:19watusimotoso that would mean that downloads wouldn't hammer the game server
16:36:22raptorlibcurl!
16:36:26watusimotosure
16:37:00raptorwell, let me start with libmodplug first...
16:37:07raptorthen we can add mods...
16:37:53watusimotook... next step would be to add a leveline that specified music
16:38:02watusimotobut... I'm heading home.
16:38:04raptorbut first
16:38:09raptor018 or 019?
16:38:11raptor:)
16:38:12raptorok
16:38:14raptorsee you later
16:38:56watusimotogood 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:27raptoryeah, we should release - sam and I have been testing as we go
16:39:29watusimotomy 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:35watusimotolua testing, mostly
16:39:44raptoryeah, the lua stuff we haven't done much of
16:39:45raptorok
16:39:47raptorsounds good
16:39:51watusimotowe need to create a lua script that runs through all the new methods
16:40:02watusimotook, well, see you!
16:40:07raptorlater
16:44:42watusimoto Quit (Ping timeout: 256 seconds)
17:36:39Watusimoto has joined
17:39:27Watusimotohttp://modarchive.org/index.php?request=view_by_moduleid&query=53213
17:39:32Watusimotothis one is kind of nice
17:39:49Watusimotopublic domain
17:41:14Watusimoto1:24, sort of almost kind of not really loops
17:42:15raptorno tbad
17:47:47Watusimoto Quit (Ping timeout: 240 seconds)
18:17:02raptorIT BUILT
18:17:12raptorwow, i got the mod library to build on Mac
18:26:13Watusimoto has joined
18:30:44LordDVG has joined
18:54:05Watusimotohttp://modarchive.org/index.php?request=view_by_moduleid&query=40503
18:55:55Watusimotothere's 2 more in that "series"
18:56:04raptori like it
18:56:18Watusimotohttp://modarchive.org/index.php?request=view_by_moduleid&query=40515
18:56:21Watusimotopt 2
18:56:36Watusimotohttp://modarchive.org/index.php?request=view_by_moduleid&query=40518
18:56:42Watusimotoattribution license
18:57:18Watusimotosame artist has 65 songs in modarchive
18:59:08Watusimotothey sound very polished
18:59:46Watusimotohttp://modarchive.org/index.php?request=view_artist_modules&query=68766
19:00:01Watusimotolist of all mods by the artist
19:00:17raptoryeah, they are a lot more polished than most
19:00:28raptorsuccess!
19:00:33raptorlibmodplug for Mac is done
19:00:58Watusimotowow
19:01:33Watusimotoactually, a lot of these are pretty good
19:01:47raptori guess i better start on windows...
19:02:00raptoroh man, i need to start a vc++ project from scratch...
19:02:54Watusimotoouch
19:04:35BFLogBot - Commit 813724f46c7d | Author: buckyballreaction | Log: libmodplug for Mac!
19:08:30raptori 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:48raptormusic_menu.wav and music_game.wav
19:11:09Watusimotodo wee need sfx for seeker?
19:11:16raptoroh yeah...
19:11:17raptorummm
19:11:23raptorprobably would be good
19:13:16raptorthis from hedgewars mortar weapon?: http://hedgewars.googlecode.com/hg/share/hedgewars/Data/Sounds/mortar.ogg
19:13:25raptor(we'd have to convert to WAV)
19:16:53Watusimotohhow about this for launch?
19:16:54Watusimotohttp://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:46raptorsigh, flash player crashed...
19:19:06Watusimotoor possibly this
19:19:07Watusimotohttp://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:47WatusimotoI'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:37raptorsince the ship is always in the middle of the screen, making it louder the closer it gets is trivial with openAL
19:20:50raptoralready built in
19:23:21raptori sadly cannot listen to those, dumb flash player
19:24:11Watusimotoindeed it is
19:25:12raptorha! got it to work
19:25:27Watusimototjhe player, or something else?
19:25:42raptorhmmm
19:25:49WatusimotoI'm exporting the sounds so you can hear them
19:25:50raptorthe first one might get annoying
19:25:54raptori got the player to work
19:26:14Watusimotoyeah, maybe
19:32:17Watusimotosomething completely different
19:32:18Watusimotohttp://www.pacdv.com/sounds/interface_sound_effects/sound21.mp3
19:32:54raptorsounds like part of the sensor sound
19:33:29raptorlok at these: http://www.soundsnap.com/tags/sonar
19:33:32raptorlook
19:39:38Watusimotothose are for-purchase sounds?
19:39:39BFLogBot - Commit f85169fece88 | Author: buckyballreaction | Log: Some libmodplug clean-up for mac - including a linking path fix (it had a newline in it)
19:39:41BFLogBot - Commit bd54b085ab27 | Author: buckyballreaction | Log: Mac OS X: Link ALURE and the Bitfighter executable against libmodplug
19:40:02raptoryeah, not so good that... but i thought they'd give ideas
19:40:26raptorhttp://www.youtube.com/watch?v=htUvUH9Uoi4
19:42:58raptorha!
19:43:02raptori don't have to add any code
19:43:17raptormodules already play just by putting them in the music folder (for mac and linux)
19:43:49WatusimotoI'm not sure I'd go for pinging
19:45:14raptorok
19:45:27raptorprobably be too crazy for pinging...
19:45:36raptor2 down 1 to go
19:49:43BFLogBot - Commit cb51c2e7b5db | Author: buckyballreaction | Log: libmodplug support for Linux, too. Note: libmodplug is now a dependency for packaging
19:59:59koda has joined
20:44:53raptorsadly libmodplug is starting to be difficult to compile in windows...
20:58:38raptorargh it requires several C99 methods that microsoft did not implement
21:02:04LordDVG Quit (Remote host closed the connection)
21:06:41Watusimotosounds sucky... quick question
21:07:09WatusimotoI am reimplementing findClosestEnemy() in C++ -- think you should be able to specify a max radius?
21:07:41Watusimotoso enemy = bot:findClosestEnemy(1000)
21:07:46Watusimotoor would that not be useful?
21:08:09raptori think its typically used for whole map searches
21:08:17Watusimotocurrently, yes
21:08:38raptormaybe have two types of searches: in viewing distance, and entire-map
21:08:56raptoror 3: radius
21:09:08raptorradius would give more versatility
21:09:17Watusimotoyou mean in visual range?
21:09:24Watusimotolike what a player would see?
21:10:06raptoryes
21:28:57koda waves at everybody
21:29:23raptorhi koda
21:31:08kodahow are things here? :)
21:31:26raptordoing OK - trying to get module support working...
21:31:45kodaif the osx compilation is sane i might try a run!
21:32:34raptori just fixed it!
21:32:48kodayay
21:32:55raptori got module playback working in OSX and Linux... Windows is another story...
21:32:56koda checks out the sources (again)
21:34:14raptorhey koda - one thing i've never been able to get working in OSX - the Xcode play button
21:34:22raptori always have to start the app manually
21:34:35kodawe have a xcode project? :|
21:34:37raptori also created a rudimentary xcode4 project
21:34:47raptoryes - in the source under build/osx/xcode
21:35:02kodaso it's just build & run, no dependencies?
21:35:07raptorthere are two; the one suffixed with _xcode4 is Xcode4, the other Xcode 3.1
21:35:17raptoryes
21:35:26raptorbut the run part requires manually opening the .app
21:35:52kodawow
21:35:53kodacongrats
21:41:22koda\o7
21:41:30raptorsuccess?
21:41:36kodayesssss
21:41:41kodait built correctly
21:41:52raptoryay
21:43:14kodaumh where's the .app?
21:43:29raptorshould be in build/osx/xcode/build/...
21:43:46kodaack
21:43:48koda Library not loaded: @executable_path/../Frameworks/libmodplug.framework/Versions/A/libmodplug
21:43:56raptoroops, forgot to fix that...
21:44:10kodathe libmodplug are in red in the xcode project
21:44:10raptori can fix! i promise
21:44:28raptorwhat?
21:44:32raptorhmmm
21:45:28raptorwell, it's found in the lib/ folder
21:46:37kodathe compiled version is, what about the source files?
21:46:50raptorok, i fixed it
21:46:54raptorpull latest
21:47:02raptoryeah, those were the headers - they're not needed
21:47:11raptori have a precompiled framework to use
21:48:58kodaCommand /Developer/Library/PrivateFrameworks/DevToolsCore.framework/Resources/pbxcp failed with exit code 1
21:49:03kodaUsers/geeko/temp/hg/bitfighter/lib: No such file or directory
21:49:13raptorwhat
21:49:20raptorweird
21:49:36raptordid it take teh absolute path??
21:49:41raptorWHY
21:49:42kodaso it seems
21:49:57BFLogBot - Commit 2b35b0b7220b | Author: buckyballreaction | Log: Fix libmodplug copy in Xcode
21:50:26kodait works
21:50:37koda(after fixing the path :p)
21:50:52kodaand you're right that you cannot 'play' the app, umhhhh
21:51:04raptormanually open
21:51:13raptori've lost too much life to trying to get that to work
21:51:18raptorin both xcode versions
21:54:28kodaumh
21:54:38kodayou do have a wrapper in between...
21:54:48raptoris that the problem?
21:54:56raptori guess that would make sense...
21:54:59BFLogBot - Commit 904be8b44880 | Author: buckyballreaction | Log: No absolute paths please
21:55:07raptora lot of sense actually...
21:55:35kodayes gdb is very finicky
21:57:46raptorhmmm that makes so much sense that i feel dumb now
21:58:20kodahey slow down, perhaps i'm on a completely wrong road
22:05:15amginea135246 has joined
22:05:23amginea135246 hi raptor
22:05:28raptorhi
22:05:43amginea135246 so there were a few errors in your code and i need a bit of help rouble shooting
22:05:51amginea135246 that you gave me last night
22:07:05raptoryes, 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:22amginea135246 no its fine im just fixing the bugs but ineed help with one part
22:07:48amginea135246 hold on let me start bitfighter and the bot up so i cant tell you what the error log said
22:08:47amginea135246when 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:23amginea135246 btw do you still have the link to the lua teachintg site i forgot to save the link
22:09:42raptorhttp://luatut.com/
22:09:58amginea135246ty
22:10:43amginea135246btw i bought a book on c++ so nowi mlearning bolth though most of the bot programming seems to be in lua
22:10:46raptorsooo... any Windows linker-knowledgeable people here?
22:11:04amginea135246?? explain
22:11:28kodanot exactly knowledgeable, but..
22:11:34raptorjust a question to anyone in the channel if they have experience linking libraries on Windows...
22:11:40amginea135246is the number in hte error the lione number exmaple 509
22:12:22raptorkoda: would you happen to know if statically compiling mcvcrt is good or bad practice into a DLL?
22:12:31raptoror Watusimoto? ^^
22:12:48raptorsorry, statically linking
22:12:58kodaafaik it's not possible to have mcvcrt statically linked
22:13:32kodaand given the windows vulnerabilities it'd be very bad practice :P
22:13:34amginea135246so 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:53raptorwell.. 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:23Watusimotohey ho... I don't understand the question... or even know what it is!
22:14:35raptorbut you're the Windows developer!
22:14:42Watusimotostatic vs. dlls?
22:14:47Watusimotoor error on 509?
22:15:21raptoramginea135246: i'm sorry i'm a bit too busy to help debug right now
22:15:29WatusimotoI'm not a windows dev, but I do develop on windows :-)
22:16:15WatusimotoI 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:48raptorwell, the idea is to do shared linking to the libraries we have, then statically link the other junk (like msvcrt)
22:17:07raptorhey this page is informative!: http://msdn.microsoft.com/en-us/library/abx4dbyh%28v=vs.80%29.aspx
22:17:33Watusimotothis discusses the issue
22:17:34Watusimotohttp://stackoverflow.com/questions/1993390/static-linking-vs-dynamic-linking
22:17:42kodathough msvcrt is in the distributable c++ libs no?
22:17:45Watusimotobut none fo the reasons in the accepted answer really apply to us
22:17:49raptorbut koda is probably right about msvcrt
22:18:01Watusimotosure, but that is something that can be genuinely shared
22:18:04raptori've statically linked that into every dll we have
22:18:29Watusimotois it likely there will be 2 games at once sharing the same dll?
22:18:42Watusimoto(assuming we're talking sound here)
22:20:28Watusimotoit might make sense to dynamiclally link in the standard ms dlls
22:20:45amginea135246 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:22amginea135246btw ctrl+/ is alot more helpfull then opening the error log manuly ^_^
22:21:42amginea135246 i dont know if im supposed to know that i found it by accidnet
22:22:04raptoroh wow the CRT (C runtime) with windows is complicated
22:22:14raptorSxS assemblies
22:22:17raptor!!
22:23:09amginea135246since raptro is busy maybe you oculd help wattisimo? unles your helping raptor of course then ill wait as long as it takes
22:23:18Watusimotoso amginea135246 what are you trying to do?
22:24:10Watusimotoyou can keep the log file open in an editor; makes c/p easier
22:24:21Watusimotodon't open/close it each time you run
22:24:21amginea135246 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:43Watusimotoit's 450+ lines?!?
22:24:48Watusimotodoesn't sound too basic!
22:25:07raptorWatusimoto: 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:12Watusimotoah
22:25:14WatusimotoI see
22:25:36amginea135246 no the part is at the end in the on tick section the section itself is only say 43 klines
22:25:46Watusimotocan 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:23amginea135246ok ill paste the sricpt on pastie .org the exact error can be found above with the function error
22:26:52Watusimotook
22:29:57amginea135246watissimo here is the scirpt raptor gave me http://pastie.org/4811852
22:31:15Watusimotowith your modifications
22:31:41amginea135246 yes with the added then that i was gettng before
22:32:30Watusimotothis one has no line 472!
22:32:50Watusimotooh, I see
22:33:01Watusimotocapitilzation matters
22:33:02amginea135246 that wasnent the whole script only the edited part the error log countall lines
22:33:24WatusimotoThe function is findNearestFriendly, and you may be calling it findnearestfriendly
22:33:31Watusimotoat least according to your error message
22:33:42amginea135246let see
22:34:11Watusimotoit would be helpful to know which line of what you pasted is generating the error
22:35:21amginea135246teh error that i was getting is above
22:35:29amginea135246teh function error problem
22:36:08raptoramginea135246: i think he wants you to make a new pastie that has your full bot code in it
22:36:42Watusimotoeither give me all the code, or translate line 472 into whatever numbers are shown in pastie
22:37:17amginea135246here 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:12amginea135246 os it appears that the find nearest friednly objects line is the erroring line
22:38:53amginea135246 btw here is the pastie of the section of code the line in the error log corrasponds with the finnearest friendlyobjectesline
22:39:07Watusimotook. You are asking me to help debug a probelm in line 472. Which line in that pastie is line 472?
22:39:48amginea135246corrapsonds to line 4 sorry i wasent being clear about that
22:39:59amginea135246 line 4 in the pasite code
22:40:21Watusimotowhy oh why did lua use ~= instead of != ????
22:40:49raptorbecause the squiggly is fun to say!
22:41:00amginea135246 its called a tilde
22:41:50amginea135246 lol supriusingly few people know which one the puound sybol is either ^_^
22:42:22amginea135246 wattisimo?
22:42:47Watusimotook, 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:48Watusimotobut
22:43:04Watusimotowhat that error usually means is that to use a variable, you must first declare it with the word local
22:43:17Watusimoto(except in the main() function, but ignore that for the moment)
22:43:24Watusimotox = 4 -- <== bad
22:43:36Watusimotolocal x = 4 -- <= good
22:44:05Watusimotoso see if you can figure out which variable it is objecting to
22:44:26Watusimotounless... there may be some monkey business just prior to line 4
22:44:33amginea135246 so should i put local infront of the find or behind it then nearestfriednly objects
22:44:55Watusimotothat you didn;t include, and the parse may be getting confused, thinking your function definition is a variable definitinon
22:45:02Watusimotowhat comes above?
22:45:26amginea135246 teh first part of the ontick() section same as it was before
22:45:46Watusimotocan you post the entire script?
22:45:52raptoramginea135246: please make a pastie of your entire bot script
22:46:10amginea135246 ok btw you will see on or two small chages
22:46:21amginea135246 here or there those were already tested and work
22:46:46amginea135246the only part that was edited was the ontick() section
22:47:52amginea135246 here you go the entire script http://pastie.org/4811967
22:48:06amginea135246 but im sure its only the on tick section
22:48:27amginea135246of course you have more experince so....
22:49:42amginea135246 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:24amginea135246thats was all done by me mostly by adding one owrd or changin a value
22:50:26Watusimotook, I see the problem
22:50:35WatusimotoonTick() is missing an end statement
22:51:13amginea135246really all i have to do is put a end after the ontick^_^
22:51:16Watusimotoso it is getting confused when it hits the next function delcaration
22:51:24Watusimotoon line 468, yes
22:51:41amginea135246 does it go on the same line or on the next one seperate
22:52:16Watusimotoeither 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:05Watusimotoand 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:09amginea135246jsut a question doesnt it already have a end after the pathtimer line?
22:53:26Watusimotothere is an end on line 467
22:53:30Watusimotowhat is that ending?
22:53:42amginea135246yes
22:53:49Watusimotowhat is that ending?
22:54:24amginea135246what eof needed near end?
22:54:29Watusimotohere's a hint: look at how the file is formatted, and what lines up with what
22:54:49Watusimotothe end on line 467 ends the block started with the if on line 465
22:54:53Watusimotoyour function has no end
22:56:23amginea135246 umm 467 has a end?
22:56:42Watusimotothe end on line 467 ends the block started with the if on line 465
22:57:19Watusimotowhat editor are you using?
22:57:27amginea135246notepad xd
22:57:36Watusimotois that the same as notepad?
22:57:45amginea135246yes
22:58:21Watusimotodownload 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:33WatusimotoEverything will become MUCH clearer
22:59:15amginea135246so if the 467 end lines 465 where does the end for 468 ( the function line go)
22:59:39Watusimotothat closes onTick()
22:59:56amginea135246 so it goes on the same line as the on tick or before it
23:00:16amginea135246 im sorry im so stupid im probably drvinging you crazy
23:02:00Watusimotoa little bit :-)
23:02:31Watusimotothe end needs to go at the end of the onTick() function
23:02:40Watusimotothat function must end before the next one is declared
23:02:56amginea135246 i think i got it but now the robot just sits there and does nothing
23:03:02Watusimotoso put an end on line 468
23:03:09Watusimotook, well that;s progress!
23:03:16WatusimotoI'm serious about the editor
23:03:34amginea135246i may look into it.
23:03:44Watusimotoit 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:08raptorif you have to hammer a nail, don't use a spoon
23:04:24Watusimotolook at pastie for a (crude) example
23:04:38Watusimotothe code you pasted there is easier to understand than the same code in notepad, no?
23:04:51Watusimotoyou can use the editor for free
23:05:13amginea135246whats the link to it
23:05:22raptorok heading home! laters!
23:05:29Watusimotohttp://www.sublimetext.com/
23:05:31Watusimotolaters
23:05:36raptor Quit ()
23:06:55amginea135246lol cant download sublime bocked from thedownload by my peer
23:07:51amginea135246so 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:04Watusimotonow 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:36amginea135246hmm how what
23:09:48Watusimotoobviously something you changed made the bot sit there
23:09:51Watusimotoso
23:09:59Watusimotoyou need to look at what you changed
23:10:13amginea135246 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:28amginea135246 cause clearly im do dumb to do this
23:10:32Watusimotothere are seveal ways to attack the problem; I usually try reverting a bit at a time until things start working again
23:10:42Watusimotoit's not a question of dumb
23:10:50Watusimotojust experience
23:10:59koda\o/\o/
23:11:02kodai have success
23:11:11Watusimotogreat!!!
23:11:18amginea135246yes i am cause i cant do what you tell me to do anyways
23:11:21Watusimotoamginea135246: you can post your code again on pastie
23:11:23kodai got the play button to *play* the file from xcode
23:11:32amginea135246 right apperntly
23:11:37kodathough i had to bypass the script
23:11:41Watusimotobut you almost certalin did do it right, because it did not crash
23:11:44Watusimotokoda: excellent
23:11:51Watusimotoso now it works in xcode?
23:11:58kodagotta tell raptor tomorrow
23:12:04Watusimotohe'll be happy!
23:12:59amginea135246oops fish paste i accidenlt delet4ede the code
23:13:07amginea135246 well the file with the code
23:14:11kodaindeed
23:14:15kodawooo also the script runs
23:14:18Watusimotowow
23:14:32Watusimotohit ctrl-Z!
23:14:40kodalol
23:14:42Watusimotoand don't save until you code is back!
23:14:48sam686 has joined
23:14:48ChanServ sets mode +v sam686
23:15:17kodasegfault on exit but that's unrelated :p
23:15:47amginea135246luckily i pasted pated it in pasite Xd
23:17:41amginea135246lol im back to errors XD
23:17:49Watusimotosegfault, schmegfault!
23:17:54amginea135246 scratch one for progress XD
23:18:02Watusimotobut now you know how to fix it
23:18:06Watusimotothat is progress
23:18:35amginea135246 and i htink i know why the bot idels as well i think its cause he made 2 main() fucntions() on accidnet
23:18:55amginea135246theres a main() at the begging and towoards the end
23:19:02amginea135246 maybe its worth looking into
23:19:06Watusimotothat sounds bad
23:19:39Watusimotoyup, that's probably the problem
23:19:42amginea135246well 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:46Watusimotothe second one will overwrite the first
23:20:02Watusimotoyes, exactly
23:20:07amginea135246 is it me or am i learning =)
23:20:15Watusimotomaybe!
23:21:21amginea135246guess not cause i m back to sqare one with the first error XD
23:21:34amginea135246 round one amgine vs end
23:21:37amginea135246Xd
23:21:57amginea135246 sorry cant resist a little programmer humor.
23:22:11Watusimoto:-)
23:23:32amginea135246umm where did that end go again i forget
23:24:20amginea135246 arg i just got a of programmer nerds im my keyboard ( more programming humor ask if you dont get it)
23:24:31amginea135246 ners as in food
23:24:34Watusimotoat the end of the function
23:25:24amginea135246 ugh
23:25:35amginea135246 eof expected near end
23:26:44amginea135246hi sam still struggeling even iwth help cause im jsut not smart enoough to understand what people say
23:27:13Watusimotoyour problem,I think, is that you are unfamilliar with lua
23:27:16amginea135246 just give me the line number and tell me where it goes lets try that
23:27:59Watusimoto468
23:28:42Watusimotoyou might want to invest some time with luatut.com
23:31:55Watusimotook amginea135246: I live in Luxembourg, and it's 1:30 Am here, so to bed I go
23:32:07Watusimotoyou are on your own for a while
23:32:17sam686its 6:32 PM for me...
23:32:25Watusimotooh hi sam
23:32:33sam686hi
23:32:55WatusimotoI would recommend spending some time learning a bit about lua... it will make everything easier
23:33:46Watusimotoanyway, gentlemen...
23:33:49Watusimotogood night
23:39:34amginea135246 lol it says your still here wattisimo
23:39:42amginea135246 i htought you were laving Xd
23:40:12BFLogBot - Commit 1babc6f61a33 | Author: watusim...@bitfighter.org | Log: Potential music
23:40:13BFLogBot - Commit 1614cc39cae1 | Author: watusim...@bitfighter.org | Log: Whitespace
23:40:15BFLogBot - 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:16BFLogBot - Commit 0f0c8a7040cf | Author: watusim...@bitfighter.org | Log: Merge
23:42:39Watusimoto Quit (Ping timeout: 252 seconds)
23:43:38amginea135246 Quit (Quit: Page closed)

Index Search ←Prev date Next date→

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