Timestamps are in GMT/BST.
| 00:01:01 | raptor | well, there's 'bf' stuff all around |
| 00:01:10 | raptor | i didn't do a thorough check, though |
| 00:01:24 | kaen | oh, if that's the case then I might have updated the wrong directory :x |
| 00:01:30 | raptor | actuallly |
| 00:01:36 | raptor | it says 018 at the top.. |
| 00:02:02 | kaen | nope you're right |
| 00:02:09 | kaen | I overwrote it with 019 docs |
| 00:03:26 | raptor | well, i wrote an example for sky_lark: http://pastie.org/pastes/8455799/text |
| 00:03:47 | raptor | it (sadly) does most of what he wanted, but i wrote lots of notes |
| 00:03:57 | | thread_ Quit (Ping timeout: 250 seconds) |
| 00:04:15 | raptor | maybe something like that would be good to put in the 'Levelgen Overview' section in the Lua docs |
| 00:10:07 | raptor | ok, i'm heading home - back later! |
| 00:12:08 | amgine123 | there arent any builds to test?> |
| 00:14:47 | | raptor Quit () |
| 00:23:41 | | thread_ has joined |
| 00:23:52 | thread_ | raptor left? |
| 00:24:13 | YoshiSmb | yea |
| 00:24:19 | YoshiSmb | a few minutes ago |
| 00:27:44 | thread_ | hmm |
| 00:29:34 | kaen | but I can help you, as substitute raptor |
| 00:29:48 | | kaen is now known as kaentor |
| 00:31:19 | | kaentor is now known as kaen |
| 00:32:14 | kaen | thread_: you're trying to build from source? |
| 00:34:26 | thread_ | yea. still having issues with cmake |
| 00:34:34 | kaen | what's the issue? |
| 00:35:15 | thread_ | Following http://bitfighter.org/wiki/index.php/Building_Bitfighter#019_.28development.29_and_later, I get up to 'cmake -G "Visual Studio 10'" |
| 00:35:26 | thread_ | the output from the command is riddled with errors |
| 00:35:33 | kaen | can you pastie them for me? |
| 00:35:42 | kaen | oh, and that's not the right command |
| 00:35:53 | kaen | first, you need to be in bitfighter/build |
| 00:35:56 | kaen | then you need to run |
| 00:36:09 | kaen | cmake -G "Visual Studio 10" .. |
| 00:36:36 | kaen | the .. is absolutely critical |
| 00:36:49 | thread_ | I am |
| 00:36:50 | thread_ | I got that |
| 00:36:59 | kaen | ok, then pastie the errors |
| 00:37:04 | thread_ | (pastie is taking forever to load...) |
| 00:37:06 | kaen | oh |
| 00:37:07 | kaen | :x |
| 00:37:15 | thread_ | http://pastie.org/8455842 |
| 00:38:11 | thread_ | Crazyness ensues |
| 00:38:32 | thread_ | This is why I haven't been able to contribute to the code yet |
| 00:39:50 | kaen | I'm googling around for second, hold on |
| 00:39:54 | kaen | for a second* |
| 00:43:54 | kaen | hmmm |
| 00:43:58 | kaen | ok, try |
| 00:44:03 | kaen | del CMakeCache.txt |
| 00:44:09 | kaen | and then retry |
| 00:44:16 | kaen | (in the build directory) |
| 00:46:43 | kaen | and if that doesn't work either, then del CMakeCache.txt again and do |
| 00:46:44 | kaen | cmake .. |
| 00:46:51 | | amgine123 Quit (Ping timeout: 250 seconds) |
| 00:47:02 | thread_ | looks like I get the same error http://pastie.org/8455852 |
| 00:47:56 | thread_ | cmake .. is doing stuff |
| 00:48:07 | kaen | it might just be generating makefiles though |
| 00:48:22 | kaen | I'm not sure exactly what will happen here |
| 00:48:44 | kaen | if it works properly, there should be something like "bitfighter.sln" in the build directory |
| 00:49:16 | thread_ | there it is |
| 00:49:21 | kaen | whoa really? |
| 00:49:28 | kaen | does it open with VS2010? |
| 00:49:47 | thread_ | oops, I opened with VS2013 |
| 00:49:52 | kaen | if it does, all you should have to do is hit build and wait |
| 00:49:59 | kaen | did it work with 2013? |
| 00:50:08 | kaen | (just curious) |
| 00:50:08 | thread_ | I don't know. gimme a sec |
| 00:50:10 | kaen | ok |
| 00:51:57 | thread_ | how long does it normally take to build? |
| 00:52:53 | | koda Quit (Quit: koda) |
| 00:55:03 | kaen | about ten minutes on my machine |
| 00:55:25 | kaen | there's usually a rudimentary progress counter in the build output |
| 00:56:06 | thread_ | Just wondering if I'm slow |
| 00:58:11 | | kumool Quit (*.net *.split) |
| 00:58:51 | | raptor has joined |
| 00:59:22 | raptor | my 2-year-old just stuck a screwdriver down the throat of my 5-month-old |
| 00:59:24 | | ChanServ sets mode +o |
| 01:00:11 | | kumul has joined |
| 01:01:57 | thread_ | yay toddlers? |
| 01:04:09 | thread_ | aww, build errors |
| 01:04:12 | Watusimoto | good night |
| 01:04:18 | raptor | you could put it that way... |
| 01:04:19 | raptor | night |
| 01:04:25 | | BFLogBot Commit: 234df2c67811 | Author: watusimoto | Message: Fix yet-to-mainfest-itself sql error --> make sure the real data always comes first |
| 01:04:26 | | BFLogBot Commit: 5423e42bfc85 | Author: watusimoto | Message: Fix annoying bug where if you were panning/zooming when an error message was displayed, you could continue to do so after the message was dismissed, even if you were no longer holding the key |
| 01:04:28 | | BFLogBot Commit: 5da6576dc67a | Author: watusimoto | Message: Create a common function for activation and reactivation actions |
| 01:04:29 | | BFLogBot Commit: d7ebf5342e98 | Author: watusimoto | Message: Fix dedicated server |
| 01:04:31 | | BFLogBot Commit: bf6e7f942e59 | Author: watusimoto | Message: Merge |
| 01:07:35 | kaen | night wat |
| 01:07:40 | kaen | thread_: pastie? |
| 01:08:30 | | Watusimoto Quit (Ping timeout: 252 seconds) |
| 01:08:47 | thread_ | http://pastie.org/8455884 |
| 01:10:04 | kaen | hmm, it's building the test project |
| 01:10:07 | raptor | ah, build the 'bitfighter' part |
| 01:10:08 | kaen | that's definitely not right |
| 01:10:10 | raptor | not the 'test' part |
| 01:11:05 | thread_ | ok. win. It built |
| 01:11:25 | thread_ | how do I get an exe out of this to make sure it runs btw? |
| 01:12:51 | | YoshiSmb Quit (Ping timeout: 250 seconds) |
| 01:14:07 | raptor | check the exe folder |
| 01:14:12 | raptor | dinner time! |
| 01:15:15 | thread_ | ok, thanks guys. I should be going now |
| 01:15:37 | kaen | ok have fun! |
| 01:16:44 | | thread_ has left #bitfighter |
| 01:43:53 | | kumul Quit (Ping timeout: 245 seconds) |
| 01:47:48 | | raptor Quit (Ping timeout: 246 seconds) |
| 01:47:59 | | Nothing_Much has joined |
| 01:48:22 | | Nothing_Much Quit (Read error: Connection reset by peer) |
| 01:48:36 | | Nothing_Much has joined |
| 01:54:39 | | raptor has joined |
| 01:54:39 | | ChanServ sets mode +o |
| 01:57:20 | | amgine123 has joined |
| 01:57:48 | kaen | wb gents |
| 01:57:53 | raptor | hello |
| 01:58:08 | Nothing_Much | Hello guys |
| 01:59:07 | | Nothing_Much Quit (Quit: Leaving) |
| 01:59:22 | | Nothing_Much has joined |
| 01:59:24 | raptor | kaen: what should my last badge be to fulfill that issue? |
| 01:59:50 | kaen | hmmm |
| 02:00:01 | raptor | 10 in-a-row in bitmatch seems easy enough |
| 02:00:10 | kaen | what about X games completed? |
| 02:00:12 | raptor | and it oculd be 1 gold star |
| 02:00:32 | raptor | there's already that idea for the rank |
| 02:00:43 | raptor | watusimoto even coded 'level up!' stuff for it... |
| 02:00:57 | kaen | true, I guess I'm still a little sad about not shipping it |
| 02:01:03 | raptor | it's dormant, though - everything about rank needs polish |
| 02:01:06 | raptor | yeah... :( |
| 02:01:16 | kaen | that's ok, next time |
| 02:01:16 | | Nothing_Much Quit (Changing host) |
| 02:01:16 | | Nothing_Much has joined |
| 02:01:27 | raptor | I have a simple goal to get at least one achievement per gametype |
| 02:01:55 | raptor | we have ZC, RAB, SOC, NEX |
| 02:02:02 | kaen | ok, but X kills in a row seems like a good generic badge |
| 02:02:06 | kaen | rather than limiting it to BM |
| 02:02:37 | kaen | how about winning a FFA bitmatch without dying? |
| 02:02:42 | raptor | that leaves COR, BM, HTF, RET |
| 02:02:57 | kaen | or maybe only shooting a specific weapon :) |
| 02:03:18 | kaen | seeker comes to mind |
| 02:07:03 | | raptor Quit (Ping timeout: 246 seconds) |
| 02:09:24 | amgine123 | ugh i keep dcing |
| 02:09:33 | amgine123 | kaen raptorarethere any new builds to test |
| 02:09:46 | kaen | still no, amgine123 |
| 02:10:01 | amgine123 | sorry i keep dcing before i see the messag |
| 02:10:13 | amgine123 | this chat is buggy |
| 02:27:05 | | Nothing_Much Quit (Quit: Leaving) |
| 02:29:03 | | raptor has joined |
| 02:29:03 | | ChanServ sets mode +o |
| 02:29:11 | raptor | blargh - network is crazy |
| 02:30:14 | raptor | complete a match with only bouncer! |
| 02:31:10 | raptor | make 5 kills with seeker |
| 02:31:21 | raptor | you think a non-gametype one would be good? |
| 02:32:52 | | Nothing_Much has joined |
| 02:34:34 | | kaen Quit (Remote host closed the connection) |
| 02:34:50 | | kaen has joined |
| 02:41:18 | | sky_lark has joined |
| 02:52:09 | kaen | hi sky_lark |
| 02:52:14 | kaen | do you still need levelgen help? |
| 02:57:42 | | raptor Quit (Ping timeout: 240 seconds) |
| 03:04:49 | | Nothing_Much Quit (Changing host) |
| 03:04:49 | | Nothing_Much has joined |
| 03:07:33 | | raptor has joined |
| 03:07:33 | | ChanServ sets mode +o |
| 03:11:44 | raptor | sky_lark: this may prove useful: http://pastie.org/pastes/8455799/text |
| 03:15:29 | sky_lark | Thanks guys! Yeah, I might be getting ahead of myself with this lua stuff so I'll take a look at the guide you posted earlier... but I do appreciate the script |
| 03:18:46 | raptor | sure thing |
| 03:32:49 | | sky_lark Quit (Ping timeout: 250 seconds) |
| 03:44:25 | | Nothing_Much Quit (Remote host closed the connection) |
| 03:44:35 | amgine123 | raptor is there a lua command to move a object to location |
| 03:44:44 | amgine123 | in level editor |
| 03:48:02 | kaen | a lua command? |
| 03:48:12 | kaen | obj:setPos(p) |
| 03:48:18 | kaen | in 019, anyway |
| 03:48:50 | kaen | `obj` has to be a reference to the object you want to move |
| 03:50:32 | kaen | amgine123 ^ |
| 03:50:57 | amgine123 | ok im trying to atempt myfirst lua script nknowingn nothing about howit works |
| 03:51:11 | kaen | well, that's how I started too :) |
| 03:51:22 | kaen | my advice is to try editing one of my simple plugins |
| 03:52:18 | kaen | enumerate is a good skeleton |
| 03:55:36 | amgine123 | the script is is you choose object aand then input coordinetes and it movesit to that location |
| 03:55:45 | amgine123 | simmple easy |
| 03:56:09 | amgine123 | i think |
| 03:56:10 | kaen | easy if you already know how to write plugins ;) |
| 03:56:42 | amgine123 | i dont xd |
| 03:57:07 | kaen | lucky for you, there is no one in the whole world more qualified to teach you how to write plugins for bitfighter :) |
| 03:57:30 | kaen | since I am by far the world's leading bitfighter plugin expert |
| 03:57:35 | amgine123 | oh my this looks hard looking at make curves as the base |
| 03:57:44 | kaen | no, don't use that one |
| 03:57:49 | kaen | trust me just use enumerate |
| 03:57:59 | kaen | you'll only have to change like four lines |
| 03:58:14 | amgine123 | whats enumerate XD |
| 03:58:24 | amgine123 | i know 0% bout lua Xd |
| 03:58:32 | kaen | enumerate is one of the plugins you downloaded |
| 03:58:58 | kaen | it doesn't matter exactly what it does, just that it's a good template |
| 03:59:10 | kaen | because you're going to edit it to do something completely different :) |
| 03:59:30 | amgine123 | ok |
| 03:59:38 | amgine123 | but i feel like tis cheating |
| 03:59:46 | kaen | I guess it kind of is |
| 03:59:46 | amgine123 | maybe ill try it the hard way firt XD |
| 03:59:49 | kaen | ok |
| 04:01:06 | amgine123 | is spacingimportant ie tabbing |
| 04:01:21 | kaen | not really, but it's good to keep things lined up |
| 04:01:34 | kaen | it's only important to humans who need to read the script :) |
| 04:02:14 | amgine123 | is it cheating to copy and paste basic commands Xd |
| 04:03:26 | amgine123 | oh dear |
| 04:03:42 | kaen | it's generally considered "bad" |
| 04:03:53 | kaen | there's no such thing as cheating at programming |
| 04:03:53 | kaen | only cheating at learning |
| 04:04:08 | amgine123 | lets see return means display text |
| 04:04:20 | kaen | not quite |
| 04:04:20 | amgine123 | and get args menu is a basicmenu |
| 04:04:42 | kaen | getArgsMenu is "function" that bitfighter executes to get a list of menu items for a plugin |
| 04:05:13 | kaen | "return" controls what the function gives back to bifighter |
| 04:05:17 | amgine123 | hmm what would i use for the objets move to X and y coordintes in teh menu |
| 04:05:31 | kaen | you can start with CounterMenuItems |
| 04:05:40 | amgine123 | CounterMenuItem.new |
| 04:06:02 | | Nothing_Much has joined |
| 04:06:04 | kaen | you should read this: http://bitfighter.org/luadocs019/class_counter_menu_item.html |
| 04:06:06 | amgine123 | i see nin teh make curves plugin |
| 04:06:29 | kaen | it tells you what each of the numbers and strings in CounterMenuItem.new() mean |
| 04:06:48 | amgine123 | ty |
| 04:06:59 | amgine123 | do all feilds have to eb filled in |
| 04:07:08 | kaen | I believe so |
| 04:07:14 | amgine123 | ok |
| 04:07:15 | kaen | they have to be present, at aleast |
| 04:07:22 | kaen | they can be empty strings: "" |
| 04:07:27 | amgine123 | ok |
| 04:07:29 | kaen | where appropriate |
| 04:07:41 | amgine123 | lets see if i can mKE ONE ITEM OPEN UP FIRST |
| 04:07:45 | amgine123 | oops caps |
| 04:07:49 | amgine123 | new keyboard |
| 04:07:50 | kaen | that's a great start |
| 04:07:52 | kaen | np |
| 04:08:17 | amgine123 | ever get nw keybaord that is absoulutly terrible to use |
| 04:09:02 | kaen | oh yes |
| 04:09:10 | kaen | for example: my current keyboard |
| 04:09:49 | amgine123 | i have on of those super durable rubber flexy keybaords |
| 04:09:58 | | HylianSavior Quit (Read error: Connection reset by peer) |
| 04:10:09 | amgine123 | shift never seems towrok and space is half size |
| 04:10:18 | kaen | whoa |
| 04:10:35 | amgine123 | ?? |
| 04:11:19 | kaen | never heard of a flexy keyboard, and a half-sized spacebar sounds awful... |
| 04:12:18 | amgine123 | yep i could fold my keyboard like a taco |
| 04:12:50 | amgine123 | in haldf |
| 04:15:28 | amgine123 | uh whats teh max vdistance possible on a LE grid |
| 04:15:45 | amgine123 | x*x^X |
| 04:15:56 | amgine123 | X*10^X |
| 04:16:22 | amgine123 | uh does it support mathimaticL VALUES |
| 04:22:29 | amgine123 | why do you need to go afkwhen i need you Xd |
| 04:23:57 | kaen | because I'm programming too :) |
| 04:24:05 | kaen | if you need to get my attention just highlight me |
| 04:24:13 | kaen | anyway, there is technically no max |
| 04:24:27 | kaen | 16,000 should be big enough though |
| 04:26:39 | amgine123 | ok does it support mathimatical referenesfor f\uture note likepwoers of to 10 e ........ |
| 04:27:02 | amgine123 | logarithims |
| 04:29:48 | raptor | kaen: are you working on anything on the bug list? |
| 04:30:16 | kaen | amgine123: you can use math.log |
| 04:30:24 | kaen | and also it support 10^2 etc. |
| 04:30:29 | kaen | raptor: nope |
| 04:30:34 | kaen | I'm fixing the pleiades caching stuff |
| 04:30:36 | raptor | ok, thanks |
| 04:30:57 | raptor | yeah, i'm glad you're doing that instead of me! |
| 04:31:12 | amgine123 | kaen: what extension do you give a plugin on windows |
| 04:31:22 | kaen | .lua |
| 04:31:38 | amgine123 | oh duh XD |
| 04:32:03 | amgine123 | lets see if it worked it i sucesful created 1 menu item |
| 04:32:23 | amgine123 | oops saved it asa text |
| 04:34:46 | amgine123 | iT worKED! |
| 04:35:07 | amgine123 | 1 menu item on lua my first step :) |
| 04:36:45 | kaen | \o/ |
| 04:36:47 | amgine123 | uhoh you broke tehmaser |
| 04:36:58 | kaen | nah uh |
| 04:37:01 | amgine123 | unable toconnect to the master server |
| 04:37:01 | kaen | YOU broke the master |
| 04:37:18 | amgine123 | Maser Error#3 |
| 04:37:22 | amgine123 | #13 |
| 04:37:27 | kaen | oh wait, your build is outdated after all |
| 04:37:32 | kaen | are you using 019, amgine123 ? |
| 04:37:40 | amgine123 | a beta of 19 |
| 04:37:52 | amgine123 | yeah my build is like 4 weeks old |
| 04:37:54 | kaen | yeah, it's slightly out of date |
| 04:39:14 | amgine123 | so i have 2 menu items X input andY input now what |
| 04:39:54 | kaen | now you need to: |
| 04:39:58 | kaen | get the value of those items |
| 04:40:04 | kaen | make a point out of the x and y |
| 04:40:19 | kaen | set the position of the selected object(s) to that point |
| 04:40:24 | kaen | and then you'll be done :) |
| 04:40:34 | kaen | all of that will happen in main() |
| 04:40:50 | amgine123 | 1 baby step at a time kaen im only stupid. |
| 04:41:03 | kaen | no such thing as a stupid programmer |
| 04:41:16 | kaen | (you are now officially a programmer, btw) |
| 04:41:33 | kaen | so anyway, step 1: get the values of the menu items |
| 04:41:44 | amgine123 | oops neveer mind broken mrnu |
| 04:41:53 | amgine123 | broke it on Y value men |
| 04:42:10 | amgine123 | one typo breaks Lua xd |
| 04:42:15 | kaen | yeah ... |
| 04:42:37 | kaen | pastie.org your script if you get stuck |
| 04:42:57 | amgine123 | lol line 1 is adupe of line 2 sowheres the typo XD |
| 04:43:10 | kaen | pastie.org your script if you get stuck |
| 04:43:13 | kaen | :) |
| 04:43:21 | kaen | I can't read your screen from over here |
| 04:44:11 | amgine123 | hmm does there have to be more then one end |
| 04:44:37 | kaen | you need an end at the end of each function |
| 04:45:03 | kaen | function getArgsMenu() <stuff> end function main() <more stuff> end |
| 04:45:56 | kaen | my guess is that you're missing a comma |
| 04:46:05 | kaen | so you should really pastie your code |
| 04:46:07 | amgine123 | probably |
| 04:47:26 | amgine123 | did you see it kaen |
| 04:47:32 | amgine123 | http://pastie.org/8456207 jut in case |
| 04:47:34 | kaen | there's no reason to pm ... |
| 04:47:44 | kaen | so anyway you need a comma at the end of line eight |
| 04:47:51 | kaen | { } is called a table |
| 04:48:01 | amgine123 | ah commas XD |
| 04:48:03 | kaen | and things go in a table like this: { 1, 2 } |
| 04:48:18 | amgine123 | so example? |
| 04:48:28 | kaen | so you have right now { CounterMenuItem.new() CounterMenuItem.new() } |
| 04:48:38 | kaen | and you need { CounterMenuItem.new(), CounterMenuItem.new() } |
| 04:48:48 | amgine123 | oh ok |
| 04:48:57 | amgine123 | commas between coutner items |
| 04:49:15 | kaen | commas in between all elements of a table |
| 04:49:28 | kaen | this table happens to contain CounterMenuItems though, yes |
| 04:50:24 | amgine123 | ok its fixed now teh hard part |
| 04:50:35 | kaen | imo that last part was the hard part |
| 04:50:36 | kaen | ok so |
| 04:50:44 | amgine123 | btw is teh input values on menu hard |
| 04:50:44 | kaen | the rest of the work is done in main() |
| 04:50:57 | kaen | it's pretty easy from here on out |
| 04:51:02 | amgine123 | uh main()? |
| 04:51:08 | kaen | yes |
| 04:51:18 | amgine123 | let me find enumerate asa exmaple |
| 04:51:18 | kaen | right now you have function getArgsMenu() ... end |
| 04:51:25 | kaen | now you need to make |
| 04:51:29 | kaen | function main() ... end |
| 04:51:34 | amgine123 | and Main() would be the program right |
| 04:51:40 | kaen | (your code will go where the ... is) |
| 04:51:45 | kaen | not Main(), main() |
| 04:51:59 | kaen | and it goes in the same script file |
| 04:52:05 | kaen | just put it after the end of getArgsMenu |
| 04:52:15 | amgine123 | can i doa quick edittoalow value input on my x and Y values |
| 04:52:29 | kaen | "value input" ? |
| 04:52:30 | amgine123 | like with your scripts |
| 04:52:34 | kaen | you mean like typing it in? |
| 04:52:38 | amgine123 | you can input a vlaue on the menu |
| 04:52:40 | amgine123 | ys |
| 04:52:43 | kaen | it's not quick, but I'll show you how after we're done |
| 04:52:48 | amgine123 | ok |
| 04:52:54 | kaen | ok so anyway |
| 04:53:02 | kaen | add the main function |
| 04:53:16 | amgine123 | getfunctionmmain()? |
| 04:53:23 | kaen | function main() |
| 04:53:24 | kaen | end |
| 04:53:28 | amgine123 | ok |
| 04:53:31 | | Platskies has joined |
| 04:53:44 | kaen | a "function" is just a named group of code |
| 04:54:02 | kaen | and bitfighter looks for a function called getArgsMenu to figure out what menu items your plugin has |
| 04:54:19 | kaen | then it calls main() after you hit "run plugin" to do the rest of the work |
| 04:54:45 | kaen | and when it does that, it puts the values from your menu items into a table called 'arg' |
| 04:54:59 | kaen | in your case, arg[1] will be X and arg[2] will be Y |
| 04:55:19 | kaen | to test that out, put this in the main function: print(arg[1], arg[2]) |
| 04:55:31 | kaen | run your plugin and look in the console, you'll see the values you selected |
| 04:55:35 | amgine123 | after main before end |
| 04:55:39 | amgine123 | correct/ |
| 04:55:39 | kaen | correct |
| 04:56:22 | kaen | let me know if that works for you |
| 04:56:44 | amgine123 | uh no crah but no log in debug? |
| 04:56:56 | kaen | are you looking in the in-game console? |
| 04:57:02 | kaen | / in the editor |
| 04:57:04 | amgine123 | ih no |
| 04:57:15 | amgine123 | il ty it butbfcrashes every 10 seconds |
| 04:57:53 | amgine123 | 0 0 ? |
| 04:58:07 | kaen | try changing the values in the menu |
| 04:58:16 | kaen | and those numbers should be different |
| 04:58:23 | amgine123 | crash |
| 04:58:30 | amgine123 | i should time it its like15 seconds |
| 04:58:43 | kaen | you mean the whole program crashes for no reason? |
| 04:59:01 | amgine123 | no the master error |
| 04:59:10 | kaen | oh |
| 04:59:13 | amgine123 | keep breaking BF |
| 04:59:19 | kaen | breaks it? how? |
| 04:59:25 | amgine123 | -55 80 |
| 04:59:27 | kaen | that red boxy error thing is harmless |
| 04:59:39 | kaen | ok so anyway it's working :) |
| 04:59:55 | kaen | now, you need to use those numbers to move the selected object |
| 05:00:14 | amgine123 | well i need to first et teh objects coordintes |
| 05:00:33 | kaen | so wait |
| 05:01:00 | kaen | does this plugin move the object to the actualy position you specify, or does it add the x and y values to its old position? |
| 05:01:25 | kaen | actual* |
| 05:01:26 | amgine123 | if you put 0,0 it move teh object there regrldess of its posistion |
| 05:01:37 | kaen | ok, then you actually don't need the object's position |
| 05:01:43 | amgine123 | 5,7 moves it to 5,7 regardless of posision |
| 05:01:47 | kaen | you just need to tell it what it's new position is |
| 05:02:03 | amgine123 | easy |
| 05:02:05 | amgine123 | ?? |
| 05:02:10 | kaen | very |
| 05:02:13 | kaen | so first, you need to get the selected object |
| 05:02:46 | kaen | of course, you know that you can select more than one object at once, but for your first try we'll assume that the user only selects one object |
| 05:02:57 | amgine123 | and i do that how? |
| 05:03:27 | kaen | look here and see if you can guess: http://bitfighter.org/luadocs019/class_editor_plugin.html |
| 05:03:51 | amgine123 | get selected objects |
| 05:04:09 | amgine123 | get all objects moves verythig right |
| 05:04:15 | kaen | not quite |
| 05:04:23 | kaen | it gives you a *list* of everything |
| 05:04:32 | kaen | and you can do anything you want to items in that list |
| 05:04:38 | kaen | so, if you do: |
| 05:04:48 | kaen | objects = plugin:getSelectedObjects() |
| 05:05:00 | kaen | then the first selected object will be: objects[1] |
| 05:05:07 | kaen | and the second will be: objects[2] |
| 05:05:07 | kaen | etc. |
| 05:05:23 | amgine123 | ok so do Iremove that print log or put this beforeit |
| 05:05:32 | kaen | yeah, you can remove it |
| 05:05:41 | kaen | that was just to show you it was working a little :) |
| 05:06:22 | kaen | so now you're one line away from your plugin being done |
| 05:06:26 | amgine123 | is lua case sensitive |
| 05:06:28 | kaen | yes |
| 05:06:38 | amgine123 | so caps mattr/ |
| 05:06:40 | kaen | yes |
| 05:06:43 | amgine123 | ugh |
| 05:07:24 | amgine123 | ok now/ |
| 05:07:52 | kaen | make a guess, and I'll fill in the blanks for you |
| 05:07:53 | amgine123 | why does lua have to be case sensitive btw |
| 05:08:11 | amgine123 | is it on thesame page |
| 05:08:14 | kaen | that's a long story... pretty much all programming languages are case-sensitive |
| 05:08:17 | kaen | no, it's not |
| 05:08:31 | kaen | so, you want to set the position of the object |
| 05:08:41 | amgine123 | lets see if i canfindit |
| 05:08:47 | kaen | http://bitfighter.org/luadocs019/class_bf_object.html |
| 05:08:55 | kaen | it's on that page but you'll have to dig a bit |
| 05:10:01 | amgine123 | lol i was way of i was in geom xd |
| 05:10:53 | amgine123 | setloc() |
| 05:10:55 | kaen | that's ok, docs are hard to navigate |
| 05:11:01 | kaen | close, setLoc was renamed to setPos in 019 |
| 05:11:06 | kaen | but yes, that's right |
| 05:11:31 | kaen | ok, so do you know what an "argument" is in programming? |
| 05:11:41 | kaen | sometimes it's called a "parameter" |
| 05:11:53 | amgine123 | ithink i do im not sure |
| 05:11:58 | kaen | basically, it's what you "put in" to a function |
| 05:12:09 | kaen | (setPos is a function) |
| 05:12:28 | kaen | so, that page tells what kind of argument setPos takes |
| 05:12:38 | kaen | if you don't follow that rule, you will get an error |
| 05:13:03 | kaen | setPos ( Point pos ) |
| 05:13:08 | kaen | in those docs |
| 05:13:19 | amgine123 | but point pos is our X or y |
| 05:13:24 | kaen | means that it takes a point, which represents the new position |
| 05:13:26 | kaen | right, right |
| 05:13:31 | kaen | but if you do: |
| 05:13:40 | kaen | objects[1]:setPos(x, y) |
| 05:13:44 | kaen | you will get an error |
| 05:14:01 | kaen | because setPos only takes a single point, and you gave it two numbers instead |
| 05:14:01 | amgine123 | so how do i set it im kinda confused now |
| 05:14:11 | kaen | I'm about to make it all clear :) |
| 05:14:15 | amgine123 | so i dupe it twice onenfor X and 1 for y? |
| 05:14:19 | kaen | you need to make a new point |
| 05:14:20 | amgine123 | guessing |
| 05:14:28 | kaen | good guess, but not quite |
| 05:14:35 | kaen | (keep guessing, it's good for learning btw) |
| 05:14:41 | kaen | so you'll use point.new() |
| 05:14:51 | kaen | you use it like: point.new(x, y) |
| 05:14:58 | amgine123 | i need a exmple |
| 05:15:11 | kaen | ok, it gets little hairy here |
| 05:15:20 | amgine123 | cauuse im confused now |
| 05:15:24 | kaen | I'm about to make a new point and give it to setPos on the same line: |
| 05:15:34 | kaen | objects[1]:setPos(point.new(x, y)) |
| 05:15:38 | kaen | can you see how that works? |
| 05:15:40 | amgine123 | before that how would i set the first point |
| 05:16:08 | amgine123 | but there are up toinfinity objects a useerwould select and no Xd |
| 05:16:27 | amgine123 | are we assumming 1 fornow |
| 05:16:32 | kaen | yes, just for now |
| 05:16:40 | kaen | we're doing the really really simple version first :) |
| 05:16:54 | amgine123 | so im trying to understand that first part above |
| 05:16:59 | kaen | ok |
| 05:17:08 | amgine123 | so object is our object |
| 05:17:19 | kaen | objects[1] is our object, yes |
| 05:17:32 | amgine123 | then we say as a argument to set to pos |
| 05:17:42 | amgine123 | x,y |
| 05:17:52 | kaen | correct |
| 05:18:09 | kaen | we could write it as two lines instead like this: |
| 05:18:15 | kaen | p = point.new(x, y) |
| 05:18:16 | amgine123 | wait is thre a wy to test this se if i can gt it correct first |
| 05:18:28 | kaen | objects[1]:setPos(p) |
| 05:18:46 | kaen | test what exactly? |
| 05:18:59 | amgine123 | ^^ |
| 05:19:22 | kaen | yes, of course |
| 05:19:34 | kaen | so, the actual line you need in your script will probably be something like: |
| 05:19:38 | amgine123 | so i have getSelectedObjects() |
| 05:19:42 | kaen | oh |
| 05:19:45 | kaen | first you need |
| 05:19:51 | kaen | objects = plugin:getSelectedObjects() |
| 05:20:06 | amgine123 | the full line/ |
| 05:20:08 | amgine123 | ? |
| 05:20:11 | kaen | yes |
| 05:20:18 | amgine123 | what does that mean |
| 05:20:44 | kaen | it means "set `objects` to the list of currently selected items" |
| 05:20:45 | amgine123 | ok copy and pasted Xd |
| 05:20:59 | kaen | so `objects` is a table now |
| 05:21:05 | kaen | table basically means list in lua |
| 05:21:07 | amgine123 | cop and paste is bad for learning Xd |
| 05:21:13 | kaen | very bad for learning |
| 05:21:28 | kaen | but you choose your own level of engagement :) |
| 05:21:31 | amgine123 | if its broken break it more XD |
| 05:21:45 | kaen | ok, so you have your list of objects |
| 05:21:52 | amgine123 | yep |
| 05:21:52 | kaen | which you've named `objects` |
| 05:22:05 | kaen | so the first selected object is: objects[1] |
| 05:22:11 | amgine123 | can you name it osmthing esleor will that break it |
| 05:22:23 | kaen | you can name it almost anything you want |
| 05:22:31 | amgine123 | ok continue |
| 05:23:03 | kaen | ok, so now all you have to do is make a new point, and give it to object[1]:setPos() |
| 05:23:12 | amgine123 | next line is objects[1]? |
| 05:23:22 | kaen | it starts with that |
| 05:23:30 | kaen | so, piece by piece |
| 05:23:44 | kaen | objects[1] means "the first item in the list called objects" |
| 05:23:57 | kaen | :setPos means "set that item's position" |
| 05:24:07 | amgine123 | oh qyick question comma after get seectdd objecs? |
| 05:24:12 | kaen | no |
| 05:24:16 | amgine123 | oh |
| 05:24:46 | kaen | you only need commas in lists of arguments and table declarations |
| 05:24:52 | kaen | not between lines of normal code |
| 05:25:05 | amgine123 | objects = plugin:getSelectedObjects() objects[1] |
| 05:25:17 | kaen | put objects[1] on a new line |
| 05:25:18 | amgine123 | objets 1 is on a second line under it |
| 05:25:21 | kaen | ok |
| 05:25:27 | kaen | and that's not the whole line either |
| 05:25:30 | amgine123 | cand p doesnt keep formatting |
| 05:25:35 | kaen | right |
| 05:25:50 | kaen | so, we need to make a new point and give it to setPos now |
| 05:25:51 | amgine123 | it should have optonalkeep formatingwhen pasting |
| 05:25:58 | kaen | this is the very last step |
| 05:26:01 | amgine123 | ok |
| 05:26:13 | kaen | I actually showed you how to do this above |
| 05:26:22 | amgine123 | restate it im laz to scroll Xd |
| 05:26:24 | | raptor Quit (Ping timeout: 268 seconds) |
| 05:26:33 | kaen | you can make a new point right in the argument list of setPos |
| 05:27:03 | kaen | objects[1]:setPos(point.new(arg[1], arg[2])) |
| 05:27:25 | kaen | is there any part of that you don't fully understand? |
| 05:27:39 | amgine123 | arg 1 and arg 2 ? |
| 05:27:54 | kaen | so, remember that arg is a list of values from your menu items |
| 05:28:02 | kaen | so arg[1] means the value of the first menu item |
| 05:28:06 | amgine123 | and why double parthenhes at teh end |
| 05:28:08 | kaen | arg[2] is the value of the second |
| 05:28:19 | kaen | because you always have to balance parentheses and brackets |
| 05:28:45 | kaen | you see how we put point.new() inside of setPos() ? |
| 05:29:03 | amgine123 | yes |
| 05:29:11 | kaen | we're giving the new point we're making directly to setPos, without naming that point anything |
| 05:29:33 | amgine123 | after would be end rght or is it end end |
| 05:29:35 | kaen | so that we follow setPos's rule about only taking a single point |
| 05:29:40 | kaen | just one end |
| 05:29:45 | amgine123 | idont get that somtimes theres morethen one end |
| 05:29:50 | amgine123 | in la script |
| 05:30:08 | kaen | you need an end at the end of a function, and also at the end of control structures |
| 05:30:12 | kaen | for, while, if, etc. |
| 05:30:16 | kaen | all end with 'end' |
| 05:30:19 | kaen | and so does function |
| 05:30:23 | amgine123 | ok |
| 05:30:30 | amgine123 | s now i test it? |
| 05:30:31 | kaen | and you have to balance every for/while/if/function with a matching 'end' |
| 05:30:33 | kaen | yes |
| 05:30:35 | kaen | test it |
| 05:31:07 | amgine123 | btw wheni get temaster error 13 it locks on that screen i ant return to menu |
| 05:31:23 | kaen | you can't hit space or escape or anything? |
| 05:31:47 | amgine123 | no |
| 05:31:52 | amgine123 | is it a bug? |
| 05:31:53 | kaen | ok, that's a bug ... |
| 05:32:13 | amgine123 | btw it didnt work i made a error somewhere |
| 05:32:20 | kaen | pastie the error |
| 05:32:45 | amgine123 | er i dont get a error but i dont seeteh object move |
| 05:33:05 | kaen | well that's definitely not right ... |
| 05:33:09 | kaen | pastie your code then |
| 05:33:27 | Nothing_Much | hello everyone |
| 05:33:31 | kaen | hello Nothing_Much |
| 05:33:41 | Nothing_Much | what's going on? |
| 05:33:50 | kaen | helping amgine123 write his first lua plugin |
| 05:34:02 | Nothing_Much | whoa, cool! go amgine123 ! |
| 05:34:18 | kaen | are you still on vacation Nothing_Much ? |
| 05:34:31 | amgine123 | http://pastie.org/8456275 |
| 05:34:32 | Nothing_Much | yeah but this is most of what I do on vacation lol |
| 05:34:36 | kaen | haha |
| 05:34:38 | Nothing_Much | it's mostly a break from my house |
| 05:34:42 | Nothing_Much | or home |
| 05:34:50 | kaen | that's always good |
| 05:34:54 | Nothing_Much | yeah |
| 05:35:13 | kaen | so, amgine123 |
| 05:35:38 | kaen | is the object you're testing on already located at 0, 0 by chance? |
| 05:35:50 | amgine123 | no |
| 05:36:25 | kaen | ok, that means I made a mistake somewhere @_@ |
| 05:36:39 | kaen | let me debug it for a second |
| 05:36:45 | amgine123 | oh foudn a bug |
| 05:36:55 | amgine123 | try running it an you ll see teh bug |
| 05:37:12 | amgine123 | the object line appears therre but dontstay still you ove i |
| 05:37:57 | amgine123 | move it |
| 05:38:27 | kaen | I'm not sure what that means exactly |
| 05:38:30 | kaen | but the plugin does work |
| 05:38:59 | amgine123 | it doesnt on mine |
| 05:39:09 | kaen | are you selecting the object? |
| 05:39:14 | kaen | and is it the only object selected? |
| 05:39:16 | amgine123 | yes |
| 05:39:19 | amgine123 | and yes |
| 05:39:24 | amgine123 | haveyou everusedteam viwer |
| 05:39:31 | amgine123 | teamviewer |
| 05:39:31 | kaen | no |
| 05:39:42 | amgine123 | its a program that lets you remotlycontrol my computer |
| 05:39:49 | amgine123 | so you can see what i see |
| 05:39:51 | kaen | but I just copied/pasted the script |
| 05:40:01 | kaen | and it runs perfectly |
| 05:40:11 | kaen | and you get no errors in the console? |
| 05:40:21 | amgine123 | ys no errors but a bug |
| 05:40:39 | amgine123 | dowanload team viewer if you wantyou can see what i see :) |
| 05:40:52 | amgine123 | great for teamwork on BF :) |
| 05:41:12 | amgine123 | you and raptor nd wattisimo can gethelp fromanother ifneeded |
| 05:41:43 | amgine123 | lol i must goin 18 min |
| 05:42:36 | amgine123 | 16 |
| 05:43:16 | kaen | yeah I tried installing teamviewer but the linux packages don't play nice on my system |
| 05:43:38 | kaen | maybe an updated build will fix it, but that'd have to be tomorrow |
| 05:43:46 | kaen | but I promise you it worked :) |
| 05:44:04 | amgine123 | on my build teh object doesnt move till clicked nd it displausys a outline |
| 05:44:17 | kaen | what objecT? |
| 05:44:22 | kaen | what kind, I mean |
| 05:44:45 | amgine123 | m using a barrier |
| 05:45:03 | kaen | hmm.. really odd |
| 05:45:12 | kaen | I'm using a testitem and it's working |
| 05:45:38 | kaen | anyway, I'll try to get you a new build tomorrow |
| 05:45:43 | amgine123 | ok try a barrier |
| 05:46:21 | amgine123 | how for multuiple object now |
| 05:46:22 | kaen | ok, I see that too |
| 05:46:24 | kaen | weird |
| 05:46:33 | kaen | does a TestItem work for you? |
| 05:47:05 | amgine123 | yyep |
| 05:47:16 | amgine123 | so how about objects to infinity |
| 05:47:54 | kaen | well, here's the quick version |
| 05:47:57 | kaen | you need a for loop |
| 05:48:09 | amgine123 | oh dear |
| 05:48:15 | kaen | because you want to do it *for* each item in objects :) |
| 05:48:24 | kaen | in lua, that looks like: |
| 05:48:27 | amgine123 | where does teh for arugment go and now |
| 05:48:40 | amgine123 | how |
| 05:48:44 | kaen | for index,object in ipairs(objects) do |
| 05:48:47 | kaen | ... |
| 05:48:48 | kaen | end |
| 05:49:01 | amgine123 | where does that go |
| 05:49:05 | kaen | it's not really a quick concept ... |
| 05:49:15 | amgine123 | try me |
| 05:49:33 | kaen | but you would put that for loop around your setPos line |
| 05:49:40 | kaen | and instead of objects[1] you'd use object |
| 05:49:58 | amgine123 | example |
| 05:50:07 | kaen | you mean "write it for me" ? |
| 05:50:08 | kaen | :) |
| 05:50:15 | kaen | for index,object in ipairs(objects) do |
| 05:50:28 | kaen | object:setPos(point.new(arg[1], arg[2])) |
| 05:50:29 | amgine123 | er i mean where does that go |
| 05:50:30 | kaen | end |
| 05:50:44 | amgine123 | so it would go before the objects |
| 05:50:45 | kaen | where your old setPos line was |
| 05:50:50 | kaen | in the main function |
| 05:50:53 | kaen | no, it goes after |
| 05:51:00 | kaen | you get the object list, then you do stuff with it |
| 05:51:15 | amgine123 | imastupid programmer Xd |
| 05:51:25 | kaen | no, you're just trying to go too fast |
| 05:51:34 | kaen | learning to program is slooooooowww |
| 05:52:36 | amgine123 | nope i did it wrong Xd |
| 05:53:21 | kaen | that's ok, we can pick it up later |
| 05:53:26 | kaen | I've got to get off, too |
| 05:53:28 | kaen | night! |
| 05:53:33 | amgine123 | goodnight |
| 05:59:49 | amgine123 | bye |
| 06:04:03 | | amgine123 Quit (Ping timeout: 250 seconds) |
| 06:14:51 | | Platskies Quit (Quit: Leaving) |
| 06:44:18 | | Nothing_Much Quit (Quit: Leaving) |
| 06:50:17 | | Nothing_Much has joined |
| 06:50:19 | | Nothing_Much Quit (Changing host) |
| 06:50:19 | | Nothing_Much has joined |
| 06:50:41 | | Nothing_Much Quit (Read error: Connection reset by peer) |
| 06:54:09 | | Nothing_Much has joined |
| 07:07:12 | | Nothing_Much Quit (Remote host closed the connection) |
| 07:11:50 | | Nothing_Much has joined |
| 07:11:50 | | Nothing_Much Quit (Changing host) |
| 07:11:50 | | Nothing_Much has joined |
| 07:17:34 | | Nothing_Much Quit (Remote host closed the connection) |
| 07:22:33 | | Nothing_Much has joined |
| 07:25:14 | | Watusimoto has joined |
| 07:25:57 | Nothing_Much | can bf run on uh.. software rasterizer? |
| 07:30:13 | kaen | it is physically able to |
| 07:30:30 | kaen | is it playable on software? probably not. |
| 07:32:28 | | Watusimoto Quit (Ping timeout: 240 seconds) |
| 07:38:12 | Nothing_Much | what are you doing up mister? |
| 07:38:40 | Nothing_Much | and yeah that might be true |
| 07:38:47 | Nothing_Much | but this thing is a beast of an arm pc |
| 07:40:38 | kaen | I wrote a bug where if you edit someone's level as an administrator, the webapp gives you ownership of that level |
| 07:40:49 | Nothing_Much | oh my |
| 07:40:55 | kaen | I've stolen two of thread's maps that way ... |
| 07:41:01 | kaen | so now I'm fixing that bug :P |
| 07:41:31 | Nothing_Much | nice |
| 07:41:33 | Nothing_Much | hmm.. |
| 07:41:51 | Nothing_Much | if I could just get this partition mounted on my home partition |
| 07:42:06 | Nothing_Much | I'd have an easier time to get bitfighter and attempt to compile it |
| 07:42:08 | Nothing_Much | here |
| 07:42:46 | kaen | you could probably mount it *within* your home directory |
| 07:43:16 | Nothing_Much | yeah, because apparently this flashed device only gives me 1.5GB of space while leaving the other 57GB of space unallocated |
| 08:30:26 | | watusimoto has joined |
| 08:30:26 | | ChanServ sets mode +o |
| 09:01:05 | | destroyerimo has joined |
| 09:01:28 | destroyerimo | hi |
| 09:16:34 | destroyerimo | guys |
| 09:16:37 | destroyerimo | i need some help |
| 09:23:31 | Darrel | hi. standard IRC etiquette is to directly say what your question is, not asking "can I ask a question" or something like that ;) |
| 09:23:32 | | Darrel is now known as Darrel[AFK] |
| 09:35:02 | | Me has joined |
| 09:35:10 | Me | test |
| 09:35:25 | | Me has left #bitfighter |
| 09:36:45 | | Iamtaz has joined |
| 09:36:52 | Iamtaz | hello? |
| 09:37:12 | destroyerimo | sup |
| 09:38:08 | Iamtaz | yes, |
| 09:38:12 | destroyerimo | hey |
| 09:38:17 | destroyerimo | lemme test hosting |
| 09:38:47 | destroyerimo | join |
| 09:39:27 | Iamtaz | it looks like |
| 09:39:33 | destroyerimo | are u hosting? |
| 09:39:34 | Iamtaz | it looks like |
| 09:39:37 | Iamtaz | i timed out, |
| 09:39:39 | Iamtaz | no |
| 09:39:48 | Iamtaz | 9999 |
| 09:40:12 | destroyerimo | every server shows 999? |
| 09:40:29 | | koda has joined |
| 09:40:29 | Iamtaz | jus yours |
| 09:58:59 | | Iamtaz Quit (Quit: Page closed) |
| 09:59:00 | destroyerimo | what happened |
| 09:59:03 | destroyerimo | i cant see any server |
| 10:28:13 | watusimoto | hmmm... bitfighter.org does not seem to be responding |
| 10:28:19 | watusimoto | that's why there are no servers |
| 10:28:30 | watusimoto | you probably can't connect to the master |
| 10:30:01 | watusimoto | very odd... I can connect via ssh |
| 10:30:14 | watusimoto | ok, the website is back up |
| 10:30:18 | watusimoto | the master is running |
| 10:30:26 | watusimoto | and now I see two servers should be available |
| 10:30:58 | watusimoto | looks like the bittown and ghost servers are running |
| 10:31:05 | watusimoto | so try again, and you should see them |
| 10:56:03 | destroyerimo | yea its cool |
| 10:56:56 | destroyerimo | btw in the bittown server...if the astroids are broken down it lags like hell |
| 10:58:01 | destroyerimo | also what is the name of this chat network? |
| 11:40:29 | destroyerimo | played with a guy called tanker |
| 11:51:35 | | destroyerimo Quit (Ping timeout: 250 seconds) |
| 12:49:11 | | Darrel[AFK] Quit (Ping timeout: 245 seconds) |
| 12:55:24 | | Darriel has joined |
| 13:06:56 | | Darrel has joined |
| 13:09:41 | | Darriel Quit (Ping timeout: 240 seconds) |
| 13:10:24 | | Darriel has joined |
| 13:11:27 | | Watusimoto_ has joined |
| 13:12:12 | | Darrel Quit (Ping timeout: 260 seconds) |
| 13:18:29 | | Invisible has joined |
| 13:28:43 | | destroyerimo has joined |
| 13:32:57 | | Invisible Quit (Ping timeout: 268 seconds) |
| 13:41:27 | | Watusimoto_ Quit (Ping timeout: 252 seconds) |
| 13:50:59 | | Watusimoto_ has joined |
| 14:26:25 | | Invisible has joined |
| 14:42:13 | kaen | destroyerimo: we made some changes to the master server (which keeps track of info about all the game servers) |
| 14:42:29 | kaen | and based on reports from users, we broke it somehow very subtly |
| 14:43:01 | kaen | and this chat network is called freenode, address irc.freenode.net |
| 14:44:08 | destroyerimo | alright keep it up guys :D |
| 14:44:09 | destroyerimo | thx |
| 14:44:25 | kaen | you bet :) |
| 14:47:10 | | destroyerimo_ has joined |
| 14:47:19 | destroyerimo_ | sup me :D |
| 14:47:27 | destroyerimo | sup clone |
| 14:49:11 | | Watusimoto_ Quit (Ping timeout: 245 seconds) |
| 14:51:51 | | destroyerimo Quit (Ping timeout: 250 seconds) |
| 14:52:11 | | destroyerimo_ is now known as destroyerimo |
| 15:01:15 | Nothing_Much | holy crap |
| 15:01:22 | Nothing_Much | it works, but without sound |
| 15:02:37 | kaen | weird |
| 15:02:49 | Nothing_Much | on this odroid |
| 15:02:51 | Nothing_Much | :D |
| 15:04:26 | Nothing_Much | and it looks like the settings are glitchy too |
| 15:33:36 | | HylianSavior has joined |
| 15:38:03 | | destroyerimo Quit (Ping timeout: 245 seconds) |
| 15:40:05 | | destroyerimo has joined |
| 15:45:10 | | Nothing_Much Quit (Remote host closed the connection) |
| 15:53:11 | | raptor has joined |
| 15:53:11 | | ChanServ sets mode +o |
| 15:54:28 | | Invisible Quit (Ping timeout: 240 seconds) |
| 15:57:17 | | Nothing_Much has joined |
| 15:59:29 | kaen | "Perl users were unable to write programs more accurately than those using a language designed by chance." <-- excerpt from a 2011 study by Victoria University |
| 15:59:58 | kaen | The randomly generated a placebo language from the ASCII table, and compared first time programmers' performance using the placebo and using perl |
| 16:00:31 | kaen | there was no statistically significant difference. |
| 16:13:35 | raptor | hahaha |
| 16:26:56 | | LordDVG has joined |
| 16:42:45 | | watusimoto Quit (Ping timeout: 246 seconds) |
| 16:57:52 | | kumul has joined |
| 17:10:09 | | koda Quit (Ping timeout: 240 seconds) |
| 17:17:07 | | koda has joined |
| 17:18:51 | Nothing_Much | How did fordcars build on the raspberry pi? |
| 17:30:52 | kaen | not very well, last I heard |
| 17:31:05 | Nothing_Much | kaen? |
| 17:31:05 | Nothing_Much | or anybody for that matter |
| 17:31:10 | Nothing_Much | I got the 018a this time |
| 17:31:11 | Nothing_Much | it runs but it has no sound and can't connect to master |
| 17:31:33 | kaen | can't connect to master is probably because we introduced a bug in our last master changes |
| 17:31:46 | kaen | no sound usually means that it can't find the sound directory |
| 17:32:07 | kaen | if you're in the exe directory, try running it as |
| 17:32:15 | kaen | ./bitfighter -rootdatadir ../resource |
| 17:33:14 | Nothing_Much | nice |
| 17:33:15 | Nothing_Much | it's playable |
| 17:33:18 | Nothing_Much | a little laggy |
| 17:33:20 | Nothing_Much | but playable |
| 17:33:48 | Nothing_Much | what's the sound directory called? |
| 17:35:53 | Nothing_Much | oh dear |
| 17:35:53 | Nothing_Much | there's no bitfighter.ini |
| 17:43:26 | | destroyerimo Quit (Ping timeout: 264 seconds) |
| 17:48:26 | | LordDVG Quit (Remote host closed the connection) |
| 17:51:05 | kaen | it's called sfx |
| 17:52:04 | Nothing_Much | in the exe directory? |
| 17:53:48 | kaen | in the resource directory |
| 17:54:23 | Nothing_Much | oh interesting |
| 17:54:32 | Nothing_Much | completely forgot about that folder lol |
| 18:01:48 | Nothing_Much | Failure (1) loading sound file '/usr/share/bitfighter/sfx/phaser.wav': Game will proceed without sound. |
| 18:09:14 | Nothing_Much | brb |
| 18:09:19 | | Nothing_Much Quit (Quit: Leaving) |
| 18:15:42 | | Nothing_Much has joined |
| 18:15:42 | | Nothing_Much Quit (Changing host) |
| 18:15:42 | | Nothing_Much has joined |
| 18:47:04 | | LordDVG has joined |
| 18:55:48 | | Watusimoto has joined |
| 19:01:00 | | Darriel Quit (Ping timeout: 252 seconds) |
| 19:01:32 | | Darriel has joined |
| 19:17:24 | | koda Quit (Quit: koda) |
| 19:27:09 | | kaen Quit (Remote host closed the connection) |
| 19:39:51 | | Watusimoto Quit (Ping timeout: 246 seconds) |
| 20:07:28 | | raptor Quit () |
| 20:07:43 | | LordDVG Quit (Remote host closed the connection) |
| 20:21:44 | | kaen has joined |
| 20:26:52 | | kaen Quit (Remote host closed the connection) |
| 20:33:58 | Nothing_Much | well, at least sdl2 works :D |
| 20:41:48 | | Watusimoto has joined |
| 20:42:46 | | BFLogBot Commit: 3bb67a440d08 | Author: watusimoto | Message: Improved warning message |
| 20:50:06 | | kaen has joined |
| 20:52:21 | | Canseco has joined |
| 21:00:41 | | kumool has joined |
| 21:04:26 | | kumul Quit (Ping timeout: 264 seconds) |
| 21:18:05 | | Canseco Quit (Quit: Leaving) |
| 21:27:43 | | koda has joined |
| 21:27:50 | Nothing_Much | kaen, does fordcars come online at specific times or at random? I gotta know how to enable sound unless he doesn't get sound |
| 21:30:45 | | Invisible has joined |
| 21:36:27 | | kumul has joined |
| 21:38:07 | | kumool Quit (Ping timeout: 260 seconds) |
| 21:39:09 | | raptor has joined |
| 21:39:11 | | kumul Quit (Read error: Connection reset by peer) |
| 21:39:16 | | ChanServ sets mode +o |
| 21:40:06 | raptor | Watusimoto: when in /idle, press esc and quickly choose quit |
| 21:40:11 | | kumul has joined |
| 21:40:44 | Watusimoto | got it -- you have to be nearly instantaeous |
| 21:41:11 | Watusimoto | well, actually, the way I did it was different, but got the same result |
| 21:41:57 | Watusimoto | I can't actually do it your way... but no matter |
| 21:43:29 | Watusimoto | and good morning |
| 21:43:40 | Watusimoto | or good whatever |
| 21:43:47 | Nothing_Much | Hello |
| 21:44:06 | Nothing_Much | I'm wondering if sound is an issue on armhf |
| 21:44:14 | Nothing_Much | when compiling |
| 21:44:52 | | kumul Quit (Ping timeout: 264 seconds) |
| 21:45:47 | raptor | good hello |
| 21:46:14 | raptor | Nothing_Much: it may very well be an issue - although we use openal |
| 21:46:28 | raptor | so you'd have to install the development headers for it |
| 21:46:47 | Nothing_Much | libopenal-dev? |
| 21:47:01 | raptor | sounds right |
| 21:47:11 | Nothing_Much | seems to be installed |
| 21:47:27 | raptor | I guess I don't knwo the nature of your error, then |
| 21:47:37 | Nothing_Much | lemme try it again |
| 21:48:00 | raptor | did you compile from source? |
| 21:48:05 | Nothing_Much | yeah |
| 21:48:06 | Nothing_Much | Failure (1) loading sound file '/usr/share/bitfighter/sfx/phaser.wav': Game will proceed without sound. |
| 21:48:06 | Watusimoto | Nothing_Much: if you are building, and are having trouble with sound, make sure the sfx files are where the game is looking for them; you can verify the location on one of the F7 screens |
| 21:48:13 | Watusimoto | that's it |
| 21:48:20 | Watusimoto | the sound file is not in that location |
| 21:48:22 | raptor | oh, that's not an ARM issue - you don't have your resources set up right |
| 21:48:32 | Nothing_Much | ohh |
| 21:48:33 | raptor | Nothing_Much: are you running from the 'exe' folder? |
| 21:48:53 | Nothing_Much | I had to use a command kaen sent me, because it wouldn't connect to master |
| 21:48:58 | Watusimoto | either tell the game where your sounds are (INI file, cmd option, etc.) or put your sounds where the game is looking |
| 21:49:10 | raptor | after compiling do the following: |
| 21:49:22 | raptor | 1. in the 'exe' folder run this: for file in `ls -1 ../resource` ; do ln -s ../resource/$file ; done |
| 21:49:38 | Watusimoto | can we construct a more helpful message for that situation? |
| 21:49:52 | raptor | 2. then make it standalone by running in the exe folder: touch standalone.txt |
| 21:50:00 | raptor | 3. run bitfighter: ./bitfighter |
| 21:52:49 | Nothing_Much | uh |
| 21:53:08 | Nothing_Much | those commands aren't very coherent to me >.> |
| 21:53:24 | Nothing_Much | ls -1 ..resource ; ln -s ../resource/$file ? |
| 21:53:36 | raptor | Nothing_Much: copy and past in the terminal - you know how to navigate in the terminal? |
| 21:53:47 | Nothing_Much | yes yes, I'm in the exe dir |
| 21:53:56 | raptor | ok, copy and past this: |
| 21:54:02 | raptor | for file in `ls -1 ../resource` ; do ln -s ../resource/$file ; done |
| 21:54:33 | Nothing_Much | oh hey it worked |
| 21:54:57 | Nothing_Much | woo! |
| 21:55:00 | raptor | sound? |
| 21:55:04 | Nothing_Much | yes!\ |
| 21:55:08 | raptor | oh goodie |
| 21:55:18 | | kumool has joined |
| 21:55:53 | Nothing_Much | oh, I gotta use the command kaen sent |
| 21:56:37 | kaen | you shouldn't if you used raptor's |
| 21:56:46 | Nothing_Much | oh really? |
| 21:56:54 | Nothing_Much | well it connected to master with your command |
| 21:56:56 | Nothing_Much | not raptors |
| 21:57:48 | raptor | you didn't set up the standalone file? |
| 21:58:17 | Nothing_Much | after the ln command, I did "touch standalone.txt" |
| 21:58:26 | Nothing_Much | or that whole copy and paste command |
| 21:59:30 | raptor | as long as there is a 'standalone.txt' file in the 'exe' folder, you should be good |
| 21:59:38 | raptor | it should connect to master just fine, though.. |
| 21:59:48 | Nothing_Much | it's not though :( |
| 21:59:55 | Nothing_Much | standalone is in the exe |
| 22:00:12 | raptor | huh |
| 22:00:28 | raptor | try removing the bitfighter.ini in the exe folder, and try again |
| 22:00:53 | Nothing_Much | nope |
| 22:01:11 | Nothing_Much | didn't work |
| 22:01:16 | raptor | the game must be shut down when you remove it |
| 22:01:23 | raptor | what happens? |
| 22:01:43 | Nothing_Much | it's shut down |
| 22:01:48 | Nothing_Much | removed the bitfighter.ini file |
| 22:01:53 | Nothing_Much | now to relaunch it |
| 22:02:01 | Nothing_Much | sending challenge request |
| 22:02:19 | Nothing_Much | nope |
| 22:02:38 | Nothing_Much | oh hey |
| 22:03:49 | Nothing_Much | it's quite a little laggy |
| 22:03:52 | Nothing_Much | erm |
| 22:03:54 | Nothing_Much | a little |
| 22:03:55 | Nothing_Much | but playable |
| 22:04:38 | Nothing_Much | oh, and rename the BitTown server "Advanced Server" or something |
| 22:05:02 | Nothing_Much | if ya can |
| 22:23:35 | | Invisible Quit (Ping timeout: 272 seconds) |
| 22:23:54 | kaen | Watusimoto: did you see my message yesterday about pleiades delivering proper error messages now? |
| 22:27:05 | Watusimoto | I did not, but noticed that it did |
| 22:27:11 | Watusimoto | so it works! |
| 22:27:35 | kaen | \o/ |
| 22:28:42 | | noneofmynickswor has joined |
| 22:29:28 | | Nothing_Much Quit (Read error: Connection reset by peer) |
| 22:30:57 | | Nothing_Much has joined |
| 22:30:58 | Watusimoto | it's much nicer now when something falls over |
| 22:32:27 | | kumool Quit (Ping timeout: 272 seconds) |
| 22:32:31 | | BFLogBot Commit: 9bcde9d07aa3 | Author: watusimoto | Message: Add some notes to the cmd line options that would have been helpful to me earlier tonight |
| 22:32:32 | | BFLogBot Commit: 653f7e9eee85 | Author: watusimoto | Message: Fix case 261, I think |
| 22:33:12 | Watusimoto | raptor: when you get a chance, see if you can still reproduce the weird laggy frame case |
| 22:33:29 | Watusimoto | it seems to be fixed for my way of reproducing it |
| 22:33:37 | Watusimoto | and probably is for yours |
| 22:33:42 | Watusimoto | but I'm not sure |
| 22:34:21 | raptor | ok |
| 22:34:43 | raptor | did you look at the fade-out thingy in the reset-help menu? |
| 22:35:54 | | Nothing_Much Quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
| 22:36:38 | | Nothing_Much has joined |
| 22:37:30 | raptor | lingering fram is still there |
| 22:37:36 | raptor | let me do full recompile |
| 22:38:23 | raptor | maybe it's not that big a deal... |
| 22:38:48 | Watusimoto | not sure how it can be there... |
| 22:39:06 | Watusimoto | do you also see the "Press any key to spawn" message? |
| 22:40:38 | raptor | checking.. |
| 22:41:22 | raptor | no, the spawn message is gone, but the frame from the last server is still there |
| 23:03:01 | | YoshiSmb has joined |
| 23:20:23 | | fordcars has joined |
| 23:20:58 | fordcars | Uh, how do you change the compiler for cmake on Windows? |
| 23:21:25 | raptor | use a different generator |
| 23:21:58 | fordcars | Wait, where is cmakelists? |
| 23:22:12 | fordcars | A different generator? |
| 23:23:03 | raptor | http://www.bitfighter.org/wiki/index.php/Building_Bitfighter#019_.28development.29_and_later |
| 23:23:06 | raptor | step 3 |
| 23:23:53 | fordcars | Oh nice! Thanks! |
| 23:24:54 | Watusimoto | raptor: do we want to show the warning about gridsize? |
| 23:25:18 | Watusimoto | I'm not sure it matters, as there is no harm keeping the parameter |
| 23:25:26 | Watusimoto | and no real benefit to getting rid of it |
| 23:25:34 | Watusimoto | on an existing level |
| 23:25:50 | raptor | the warning is never seen |
| 23:25:58 | Watusimoto | I see it in my log |
| 23:26:07 | Watusimoto | or on my console |
| 23:26:15 | raptor | except that, yes |
| 23:26:22 | raptor | is it that bad? |
| 23:26:45 | Watusimoto | it seems neither bad nor good, but it's asking people to fix something that's not really a problem |
| 23:27:15 | raptor | it is? |
| 23:27:35 | Watusimoto | isn't it? if not, what's the point of showing the warning? |
| 23:27:35 | raptor | ok, you can remove it if you want |
| 23:27:46 | raptor | i didn't know i asked the user to do osmething |
| 23:27:51 | raptor | it may have been late... |
| 23:28:25 | | BFLogBot Commit: de9ed33e52ad | Author: watusimoto | Message: Fix case 261 mark II |
| 23:28:37 | Watusimoto | well, you didn't explicitly, but by displaying a warning about gridsize, there was an implicit suggestion that the users fix it |
| 23:29:05 | Watusimoto | I think I'm going to remove it. In the mean time, if this latest fix doesn't fix your issue, nothing will! |
| 23:29:14 | raptor | ok |
| 23:29:21 | Watusimoto | this is the industrial strength fix |
| 23:29:28 | Watusimoto | the pure, heavy duty stuff |
| 23:29:31 | Watusimoto | direct from acme |
| 23:29:44 | raptor | testing... |
| 23:30:25 | raptor | heh |
| 23:30:40 | raptor | nice fix |
| 23:30:47 | raptor | still compiling... |
| 23:32:01 | fordcars | oh wait |
| 23:32:20 | fordcars | I meant how do i change from gcc to emcc? |
| 23:33:07 | raptor | Watusimoto: still present... :( |
| 23:33:11 | fordcars | emcc can supposedly a replacement of gcc |
| 23:33:13 | Watusimoto | what??? |
| 23:33:40 | Watusimoto | you are seeing the remnants of the previous level, right? |
| 23:33:46 | raptor | yes |
| 23:34:18 | Watusimoto | and you see it while you are connecting to the server, or once you have connected? |
| 23:34:19 | raptor | before the bug, it would just be black |
| 23:34:45 | raptor | while connecting |
| 23:35:52 | Watusimoto | so the fix I made should render nothing if you are not connected to the server, except for some text |
| 23:36:00 | Watusimoto | do you see the text and the remnants? |
| 23:36:17 | Watusimoto | or only the remnants? |
| 23:37:10 | raptor | it seems to go away much faster now... |
| 23:37:18 | raptor | i need a slow server to connect to... |
| 23:37:56 | raptor | ok |
| 23:38:02 | Watusimoto | actually, if you give me the pw to your server, I can test from here |
| 23:38:11 | Watusimoto | that should be slower |
| 23:38:19 | raptor | i see text, then a frame from the last server, then the new server |
| 23:38:25 | raptor | i did lag |
| 23:38:33 | raptor | it's 'f' |
| 23:38:36 | Watusimoto | lag didn't help me reproducing this |
| 23:38:37 | raptor | i think |
| 23:39:16 | Watusimoto | so it's after you connect, but before the level resets somehow |
| 23:39:25 | raptor | yes |
| 23:40:28 | Watusimoto | ok, this should do it |
| 23:40:36 | | BFLogBot Commit: 175bad79428b | Author: watusimoto | Message: Don't show gridsize warning |
| 23:40:37 | Watusimoto | for real |
| 23:40:38 | | BFLogBot Commit: 7b0ec617ae64 | Author: watusimoto | Message: Fix case 261 mark III |
| 23:41:34 | | Darriel is now known as Darrel |
| 23:41:41 | raptor | dangerous? |
| 23:43:56 | Watusimoto | ?? |
| 23:44:32 | raptor | heh... still see a frame |
| 23:44:42 | Watusimoto | how!!!!!???? |
| 23:45:01 | raptor | maybe opengl has something in it's back buffer? |
| 23:45:11 | raptor | i found the revision that added it... |
| 23:45:27 | raptor | i think it has to do with clientgame not getting reset or something, when it's suspended |
| 23:45:35 | Watusimoto | well if it were in the buffer, you'd see it before you connected |
| 23:46:08 | raptor | true |
| 23:46:09 | Watusimoto | if the database is empty, there should be nothing to draw, no? |
| 23:46:29 | Watusimoto | when you quit, you go back to the main menu? |
| 23:46:34 | raptor | b\i think the suspend is getting in th way.. |
| 23:46:36 | Watusimoto | and then host/join again |
| 23:46:58 | raptor | yes |
| 23:48:19 | | fordcars Quit (Ping timeout: 250 seconds) |
| 23:48:27 | Watusimoto | ok. this latest will either 1) prove soemthing weird is happening; or 2) prove you are lying |
| 23:48:35 | raptor | i'm sorry - i have to take care of kids... |
| 23:48:36 | raptor | ok |
| 23:48:41 | Watusimoto | ok, whenever |
| 23:49:03 | Watusimoto | see if it still happens, and see if, when it does, if the "hi raptor" is printed at the console |
| 23:49:14 | raptor | ha ok |
| 23:49:42 | Watusimoto | it is possible that you are somehow bypassing the ClientGame::onGameUIActivated() function I created to fix this |
| 23:49:59 | Watusimoto | (should have said, if it does!) |
| 23:50:04 | raptor | not sure - it was introduced a *long* time ago and in a changeset I don't understand |
| 23:50:11 | raptor | even though I made it... |
| 23:50:18 | Watusimoto | I'll look at that... deal with your kids |
| 23:50:32 | raptor | thanks! |
| 23:56:41 | | noneofmynickswor Quit (Ping timeout: 272 seconds) |