00:00.13 | wereHamster | it will print a error reportt if something's wrong |
00:03.16 | wereHamster | the hooked __index function of the metatable checks if the user requests "spellInfo" from the table |
00:03.46 | wereHamster | if yes and the table doesn't contain "spellInfoReal" it means something has gone wrong because spellInfoReal should be set |
00:04.12 | wereHamster | if spellInfoReal exists, return that |
00:04.45 | wereHamster | the OnShow() function requests the table value for the key "spellInfo" |
00:05.07 | wereHamster | and all goes well there, means the frame was initialized correctly |
00:06.00 | Miravlix_ | I can't see how it works because half the code is missing. :) |
00:06.14 | wereHamster | what more do you need to see? |
00:06.40 | Kirov | if I have a mod with a local variable, getglobal will see it if it's in scope, right? |
00:06.52 | Iriel | getglobal doesn't know anything about locals |
00:06.55 | Iriel | getglobal will get the global |
00:07.05 | Kirov | is there a getlocal? |
00:07.08 | hyperChipmunk | gee, what a concept |
00:07.20 | Iriel | No, locals dont exist by name |
00:07.21 | Miravlix_ | Locals doesn't have a name after being compiled |
00:07.22 | hyperChipmunk | isn't that just calling it plainly? |
00:07.34 | Kirov | hmm |
00:07.37 | Kirov | annoying |
00:08.14 | Iriel | if you want 'addressable locals' then you dont want locals, you want a table |
00:08.47 | Kirov | aye, but that makes things so much more complex. =) |
00:35.45 | Miravlix_ | Someone tested CreateFramed tooltip's in 1.10.2 and they are still broken? |
00:37.25 | wereHamster | In the spellbook, if I'm in a shapeshift form, the icon has a shiny yellow border. what function is used to find out whether it needs the border or not? |
00:41.29 | Kremonte | GetShapeshiftFormInfo() i think? |
00:42.31 | wereHamster | there is no reference to shapeshift functions in SpellBookFrame.lua |
00:47.19 | Cide | argh.. I want to rip my hair out right now :) |
00:47.41 | MentalPower | why? |
00:47.48 | not_here | plans to tak eover the world not goign so well? |
00:48.05 | Cide | http://www.wowwiki.com/SetTexCoord_Transformations |
00:48.22 | Iriel | Hurting your haid? |
00:48.27 | Iriel | head, even |
00:48.30 | Cide | I understand most of it |
00:48.53 | Cide | but then I confuse them and it all turns out very wrong :P |
00:49.48 | Kirov | http://cyberartist.shackspace.com/wow/SimpleCompass.0.7.zip - more better animated! |
00:50.00 | Kirov | (and you can turn OFF animated) |
00:50.13 | Cide | bah. compasses can't have their animation turned off! |
00:50.17 | not_here | is it sloshy liek a real compass? |
00:50.23 | Kirov | yeah |
00:50.27 | not_here | :) |
00:50.52 | not_here | got some sin loving going on? |
00:51.07 | not_here | sine* |
00:51.17 | Kirov | nope |
00:51.32 | Kirov | some psuedo physics |
00:51.52 | Kirov | velocity, accelleration, and dampeners |
00:52.06 | not_here | ya, got some of that in ChatBar, was fun |
00:52.17 | Kirov | since it can be constantly moving, I can't use a sine animation to go from point A to point B |
00:52.35 | not_here | right, i ran into the same problem |
00:52.45 | not_here | not even a fixed end point |
00:54.11 | MentalPower | Cide: I got lost as soon as the analogy ended... |
00:54.11 | Cide | I know the feeling :) |
00:54.11 | Cide | I think I need to multiply the x and y coordinates with my rotation matrix to rotate it, but after that it gets messy |
00:54.36 | Iriel | Cide: For your pie charts? |
00:55.00 | Cide | yep |
00:55.12 | Iriel | I dont think you need to do rotation in SetTexCoord at all |
00:55.22 | Cide | hm, maybe just x and y scaling? |
00:55.46 | Cide | I guess it would be a rather useful lesson, regardless |
00:56.04 | Iriel | You need to use trig to figure out your coordinates in screenspace, then use transformation (Still complex, just not rotation) in texture space for the stretches |
00:56.46 | Cide | the trig part is easy |
00:57.10 | Cide | comparatively speaking, I guess :) |
00:58.29 | Cide | I think I'm starting to confuse stuff when it comes to getting the inverse matrix |
01:02.04 | Iriel | Since you dont need any rotation, you can simplify your math greatly |
01:02.44 | Cide | well, I'll probably want to learn to rotate it sooner or later, but you're right |
01:12.28 | Cairenn | yo? |
01:12.35 | Kirov | woot! |
01:12.55 | Kirov | Can you approve SimpleCompass? |
01:13.00 | Cairenn | nevah! |
01:13.08 | Cide | don't do it; it's a trap |
01:13.10 | Kirov | cires? |
01:13.56 | Kirov | *glee* |
01:14.53 | Kirov | yay for mostly pointless and overly graphical addons |
01:18.43 | wereHamster | calling :Show() on a frame winn make all its parent visible, too, right? |
01:19.06 | Iriel | they'll become visible if they were previously shown, yes |
01:19.52 | Tain | Ah damn, a friend of mine is trying to get me sucked into yet another life-devourer, Eve Online. |
01:20.17 | Iriel | heh |
01:20.21 | Iriel | eve is a cruel mistress too |
01:20.22 | Iriel | BUT |
01:20.27 | Iriel | Offline training FTW |
01:21.07 | wereHamster | Iriel, and when one of its parents is hidden it will remain hidden? |
01:21.46 | Iriel | right |
01:24.03 | wereHamster | Iriel, suppose I have 3 frames, A (visible, parent:UIParent), B (hidden, parwbt:UIParent), C (hidden, parent: B), now I call C:Show(), it remains hidden (because B is hidden), if I now reparent C to A it sill remain hidden, too, even if its new parent is visible now. Working as intended? |
01:25.03 | Iriel | That sounds broken |
01:25.26 | Iriel | Can you check /dump C:IsShown() /dump C:IsVisible() and /dump A:IsShown() and /dump A:IsVisible() ? |
01:37.57 | wereHamster | dum command used: /dump A:IsShown(),A:IsVisible(),B:IsShown(),B:IsVisible(),C:IsShown(),C:IsVisible() |
01:39.02 | wereHamster | after C:Show(): [1]=1,[2]=1,[5]=1 |
01:39.18 | wereHamster | after C:SetParent(A): [1]=1,[2]=1,[5]=1 |
01:39.32 | wereHamster | after another C:Show(): [1]=1,[2]=1,[5]=1,[6]=1 |
01:40.03 | Iriel | That's a bug then, can you make a tiny addon that demonstrates it and post to the forum? |
01:40.24 | Iriel | or if you cant/dont want to post, just email it to me and i'll make sure the pirate sees it |
01:40.38 | Cairenn | or me :p |
01:55.02 | wereHamster | http://dbservice.com/ftpdir/tom/BlizzardBugs.zip -- feel free to post it to the forums |
01:55.21 | Iriel | on it |
01:56.39 | Tem | I can't post for some reason |
01:56.45 | Tem | get a login failure |
01:56.53 | Iriel | Billing day? |
01:56.55 | Cairenn | Tem - renewal day? |
01:56.57 | Cairenn | lol |
01:57.08 | Tem | that's what I think |
01:57.12 | Tem | but I can't login to test |
01:57.27 | Tem | I get "service unavailable" when I try to see my account info |
01:57.37 | Iriel | Damn test server transfers |
01:58.04 | Tem | Service Temporarily Unavailable |
01:58.04 | Tem | The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. |
02:02.51 | Iriel | http://forums.worldofwarcraft.com/thread.aspx?ForumName=wow-interface-customization&ThreadID=365544 |
02:06.51 | wereHamster | Thanks Iriel |
02:13.22 | wereHamster | Iriel, are you 100% sure that OnUpdate() is called only between OnShow() and OnHide() ? |
02:13.48 | Iriel | OnUpdate is called whenever the screen is repainted |
02:14.06 | wereHamster | but only on visible frames |
02:14.10 | Iriel | Yes |
02:17.31 | Codayus | Hmm. |
02:17.39 | Codayus | Awesome: http://www.myspace.com/cthun |
02:33.54 | Tem | Kirov: I'm noticing that the arroys on the compass are changing color as they rotate, why? |
02:34.59 | Tem | Kirov: nevermind, they aren't changing color; they are passing under semi-transparent portions of the "art" |
02:50.39 | *** join/#wowi-lounge Maldivia (i=the_real@85.24.45.144) |
02:51.33 | Maldivia | Anyone here, who can confirm an editbox display bug for me ? |
02:52.58 | Miravlix_ | What does it involve triggering it? |
02:53.37 | Maldivia | <PROTECTED> |
02:53.52 | Maldivia | text is centered, but the cursor is stil left justified |
02:54.02 | Miravlix_ | Waiting for a reload |
02:54.08 | Miravlix_ | Takes 5 min for me. :P |
02:54.17 | Maldivia | ehh, JustifyH :) |
02:54.53 | Miravlix_ | You prolly have to SetCursor or something |
02:55.10 | Miravlix_ | FauxScrollFrame has to be set multiple places |
02:55.22 | Miravlix_ | To get them all centered |
02:55.25 | Miravlix_ | or moved |
02:55.44 | Maldivia | EditBox is a widget, not a template, like Faux* |
02:56.01 | Maldivia | And we have no control over the cursor at all |
02:56.07 | Miravlix_ | I just meant ScrollBars is really horrible working with them |
02:56.17 | Maldivia | (besides controlling it with the arrow keys, when the editbox is in focus) |
02:56.29 | Miravlix_ | Since you have to set there size, then set the scrollbars location ont he scrollbar and then set the windows location |
02:56.47 | Maldivia | Yeah, I know... but not really compareable |
02:57.07 | Miravlix_ | The cursor is clearly working independently of the text |
02:57.14 | Miravlix_ | So looks like the same to me |
02:57.29 | Maldivia | OK, thanks |
04:13.16 | Tem | Kirov: the compass is badass when you're in flight |
04:13.51 | Miravlix_ | Funny... |
04:14.02 | Miravlix_ | Someone mentioned wanting to use getglobal on locals |
04:14.10 | Miravlix_ | Now I want to do it too. :p |
04:18.42 | Miravlix_ | Hmm, does table = { VARIABLE = { something = true } } make table[VARIABLE].something? |
04:19.08 | Iriel | No |
04:19.15 | Iriel | table["VARIABLE"].something |
04:19.30 | Miravlix_ | Baah |
04:20.51 | Miravlix_ | This is going to be a huge mess to localize. |
04:22.28 | Miravlix_ | Spellbook scanning localized and I need to have my translators write pattern/functions to reconice the values |
04:23.13 | Miravlix_ | English "Rank 2" Koran "2 <KoreanForRank>" |
04:23.49 | Miravlix_ | How do I simplyfy this. hmm. |
04:24.05 | Iriel | Make your loading table use |
04:24.18 | Iriel | keys and values the opposite way aray |
04:24.26 | Iriel | and then flip them in code once you load one |
04:24.53 | Miravlix_ | How do you explain codeing to someone that can just translate Rank to another language |
04:25.16 | Miravlix_ | They can't 'code' the translation |
04:26.27 | Miravlix_ | Hmm, I have to make 'template' functions, they should be able to deal with: func = function(var1, var2) |
04:26.31 | Miravlix_ | ugh |
04:26.35 | Miravlix_ | Can't do that |
04:27.19 | Miravlix_ | func = function(var1, var2) templateFunc1(var1, var2) end |
04:27.34 | Miravlix_ | I'm scarred of the number of function calls though |
04:32.00 | Miravlix_ | And I'm not even sure the code will work in another language. |
04:32.53 | Miravlix_ | Naah, that should be fine, the tooltip will still have the same information where my English tooltip has it |
04:33.51 | Miravlix_ | if SEASPELLBOOK_INSTANT.func( SEASPELLBOOK_INSTANT.name, tooltipText ) then |
04:33.57 | Miravlix_ | It aint pretty |
05:19.00 | *** part/#wowi-lounge cladhaire (n=jnwhiteh@cpe-24-59-191-241.twcny.res.rr.com) |
06:04.56 | Miravlix | local var1, var2, var3 = tonumber() = function() return "a", "bbb", 3 end |
06:05.27 | Miravlix | There isn't really a way for me to tonumber var3 at run time? |
06:05.35 | *** join/#wowi-lounge Wobin_ (n=Wobin@221.221.22.172) |
06:10.29 | Miravlix | I would kill for if ( _, _, temp = string.find( text, pattern ) |
06:12.21 | Wobin_ | They're all psuedo-psuedo values anyway =) |
06:12.43 | Wobin_ | I'd like it if _, actually discarded the value |
06:22.02 | Miravlix | I just want the ability to assing in an if |
06:22.34 | Miravlix | I've just written the worst code ever or the best code. |
06:24.11 | Miravlix | Hmm, must be worse, wow locked up. |
06:26.20 | Miravlix | Disconnected from server. Thats not the expected result! |
06:34.29 | *** join/#wowi-lounge dukeku (i=dukeku@c-67-160-162-146.hsd1.or.comcast.net) |
06:37.44 | MentalPower | gnight folks |
06:41.23 | *** join/#wowi-lounge Miravlix_ (i=dragon@0x3e42aafc.adsl.cybercity.dk) |
07:21.51 | Miravlix_ | Whats the difference between a spellbook ability that says Instant and Instant cast? |
07:22.03 | Miravlix_ | Is Instant the ones without global cooldown? |
07:22.44 | Codayus | Example? |
07:25.32 | *** join/#wowi-lounge [MoonWolf] (n=moonwolf@f176182.upc-f.chello.nl) |
07:26.00 | Miravlix_ | Nature's Swiftness Instant |
07:26.42 | Miravlix_ | Tigers Fury - Instant |
07:27.12 | Miravlix_ | Dash Instant |
07:27.31 | Miravlix_ | Shadowmeld - Instant |
07:27.47 | Codayus | Hmm |
07:29.16 | Miravlix_ | Ravage - Instant |
07:30.52 | Elviso | is UIDropDownMenu_SetSelectedID an API function? |
07:31.00 | Kirov | no |
07:31.31 | Kirov | it's in UIDropDownTemplate.lua (I think that's the file) |
07:32.07 | Elviso | err that's what I meant....so it is a Blizz func() then? |
07:33.37 | Kirov | yeah |
07:43.33 | Kirov | I wonder if SetTexCoords works on the minimap ... |
07:43.52 | Iriel | It doesn't |
07:43.57 | Iriel | since it's not a Texture object |
07:43.57 | *** join/#wowi-lounge Shouryuu (n=Shouryuu@147.11.103-84.rev.gaoland.net) |
07:43.58 | Shouryuu | rawr |
07:44.04 | Kirov | allo |
07:45.55 | Codayus | Miravlix_: That does seem to be the case. |
07:46.15 | Codayus | Inner Focus is instant = no global cooldown. |
07:46.58 | Codayus | Miravlix_: No, that's not the case. |
07:47.08 | Codayus | Find Minerals is instant, but does cause a global cooldown. |
07:47.35 | Shouryuu | inner focus has no global cooldown, I'm sure of that |
07:48.13 | Codayus | That's what I said. |
07:48.17 | Codayus | :-) |
07:48.26 | Miravlix_ | Some abilities has a casting time of "Instant", some is "Instant cast", we where wrondering if the information made any sense |
07:48.42 | Miravlix_ | Doesn't seem like it |
07:48.52 | Codayus | And both Find Minerals and Inner Focus are "Instant" (not "Instant Cast"). |
07:49.02 | Codayus | Uh....do Instants not take mana/rage/energy? |
07:49.08 | Codayus | Where Instant Cast does? |
07:49.11 | Shouryuu | IF doesn't |
07:49.19 | Codayus | Neither does Find Minerals. |
07:49.39 | Shouryuu | Well focused casting was instant cast and costed 90 mana |
07:49.48 | Shouryuu | but focused casting is gone sooo |
07:52.21 | Miravlix_ | Nicely spotted |
07:52.31 | Miravlix_ | Instant means no mana cost |
07:53.03 | Miravlix_ | It does not mean no cost |
07:53.20 | Miravlix_ | Rage/Energy abilities is Instant, so is spells with no mana cost |
07:58.23 | *** join/#wowi-lounge Tem (n=Tem@ip70-177-40-169.br.br.cox.net) |
08:01.46 | Elviso | is there a way to disable a drop-down box? I tried :Disable() and UIDropDownMenu_DisableButton() but neither seem to have any effect |
08:02.32 | Kirov | getglobal(this:GetName().."Button"):Disable() |
08:02.48 | Iriel | OptionsFrame_DisableDropDown |
08:02.50 | Iriel | rey that |
08:02.58 | Iriel | try that, even |
08:03.19 | Kirov | zomg |
08:03.24 | Elviso | yeah I'm going to do it programatically so this: won't be good...but I have more stuff to play with now thx :) |
08:03.39 | Elviso | can't spell.. |
08:03.40 | Kirov | they added that recently, those bums |
08:04.14 | Kirov | Iriel - I'm trying to figure out if the minimap background is anything we can play with. |
08:04.36 | Kirov | but it doesn't appear to be any of the children |
08:04.39 | Iriel | Kirov : So far my guess is 'no' |
08:04.49 | Iriel | Have you tried :GetRegions on the Minimap? |
08:05.25 | Kirov | nil |
08:05.44 | Iriel | That's as I imagined it would be |
08:06.09 | Kirov | Do you know how the game deals with frame backgrounds? |
08:06.16 | Wobin_ | hehe I was just thinking... |
08:06.24 | Wobin_ | You could rotate the background rather than the 'arrow' |
08:06.46 | Iriel | Kirov : Not really, other than we can set but not query them at the moment |
08:08.02 | Kirov | Wobin - that's what I'm trying to see if we can do |
08:09.24 | Kirov | Need a "RotateFrame()" |
08:09.26 | Kirov | >.< |
08:09.43 | Kirov | That'll happen in about never. |
08:10.09 | Iriel | Heh |
08:10.15 | Iriel | I jokingly asked for that once |
08:10.33 | Iriel | I think all I got was a "Slouken grins." |
08:13.52 | Kirov | It'd be nice to be able to get the camera rotation too |
08:14.09 | Kirov | though I'm thinking that's along the same lines as frame rotation as far as when we'll see it |
08:44.36 | *** join/#wowi-lounge Miravlix_ (i=dragon@0x3e42aafc.adsl.cybercity.dk) |
08:58.12 | Elviso | ok, can editboxes be disabled? |
08:58.30 | Kirov | heh |
08:58.33 | Kirov | :Hide() |
08:58.38 | Elviso | damn |
08:59.06 | Kirov | or :EnableMouse() EnableKeyboard() |
08:59.46 | Elviso | could I set maxChars = 0? |
09:00.25 | Kirov | probably |
09:00.32 | Elviso | disabling mouse/kb sounds best tho |
09:00.46 | Kirov | And ClearFocus() |
09:01.16 | Iriel | Hiding them and replacing them with a fontstring seems sanest |
09:01.23 | *** join/#wowi-lounge Elkano (n=elkano@ip-213-135-2-172.handshake.de) |
09:01.32 | Elkano | good (whatever) :) |
09:01.41 | Kirov | So, it appears the minimap texture does replace the background of the minimap |
09:01.51 | Kirov | I can't set a background texture, or the color |
09:02.13 | Elviso | Kirov, you mean similiar to King's UI's? |
09:03.05 | Kirov | Elviso - no |
09:03.16 | Kirov | there he's just adding stuff on top |
09:03.20 | Elviso | ah |
09:03.27 | Kirov | and replacing the existing border |
09:03.49 | Kirov | I'm trying to see if I can get access to the minimap itself, and rotate it! |
09:04.22 | Kirov | but, sadly, no |
09:15.40 | not_here | just rotate the border, so the N goes in circles |
09:16.34 | Kirov | heh |
09:16.40 | Kirov | but the entire MAP will be wrong |
09:17.08 | not_here | minor problems |
09:18.00 | Kirov | I'll just hook on to yatlas and rotate those textures |
09:18.03 | Kirov | that shouldn't be slow or anything |
09:19.00 | Miravlix_ | A working localizeable spellbook scanner. |
09:20.12 | Miravlix_ | Just need to wade through level 60 chars list to verify that they are all handled |
09:20.44 | Miravlix_ | And then I need to make the database local independent perhaps. |
09:21.08 | zenzelezz | <Miravlix_> Rage/Energy abilities is Instant <--- there are a few abilities that require rage and aren't instant, Heroic Strike and Cleave ("next melee" attacks) |
09:21.26 | Miravlix_ | I know |
09:21.40 | Elkano | but no cast time |
09:21.41 | Miravlix_ | It's just that Instant doesn't mean no cost |
09:21.57 | Miravlix_ | Just no mana cost and no cast time |
09:22.02 | zenzelezz | ah, I must have missed what you said before that then :) |
09:22.35 | Elkano | the shamans shocks have no cast time but use mana |
09:23.00 | Elkano | or did I miss an important part of the discussion? |
09:23.02 | Shouryuu | but they aren't instant casts? |
09:23.05 | Miravlix_ | Yes, and they are Instant cast |
09:23.12 | Miravlix_ | Not Instant |
09:23.23 | Kirov | FROST SHOCK! |
09:23.25 | Elkano | what's your definition of 'instant'? |
09:23.54 | Shouryuu | instant is instant, instant cast is that it does not set a global CD |
09:24.05 | Elkano | ah, k |
09:24.36 | Miravlix_ | I'm a bit worried though, I seem to get a lot of disconnects. |
09:24.53 | Miravlix_ | Why would scanning a spellbook cause disconnects? |
09:25.01 | Shouryuu | w00t my guild just downed rag |
09:25.10 | Iriel | Are you causing a lot of messages to be sent to the server all-at-once ? |
09:25.43 | Miravlix_ | Define lot of messages |
09:26.09 | Iriel | Enough that might trigger the flood prevention disconnection |
09:26.22 | Miravlix_ | What is lot of messages? |
09:26.31 | not_here | that's the question |
09:26.31 | Iriel | I think it's in the 1-2K/second range, but maybe 3-5k/second |
09:26.39 | Miravlix_ | It's a spellbook scanner it does API calls |
09:26.42 | not_here | 1-2k characters |
09:26.48 | Iriel | Yes, but how many calls and how fast |
09:26.57 | Iriel | Could it get 'stuck' and issue thousands of calls? |
09:27.25 | Miravlix_ | Is an API call a message? |
09:27.37 | not_here | sometimes |
09:29.45 | Miravlix_ | I've optimized the code to do the minimum possible number of API calls and hopefully in the shortest amount of time. |
09:30.15 | Miravlix_ | GetNumSpellTabs, GetSpelLTabInfo, GetSpellName, GetSpellTexture, SetSpellInof |
09:30.50 | Iriel | Well, i'd say put in some code to count how many GetSpellInfo's you do and abort after say, 100 |
09:30.55 | Iriel | and see if you're abortng |
09:31.04 | Iriel | then vary the abort up and down and see if it's out of control or not |
09:31.19 | Miravlix_ | I do 1 pr. spell in the spellbook |
09:31.45 | not_here | that the only addons you're running? |
09:31.54 | Miravlix_ | So thats something like 60 or so for this char |
09:32.47 | Iriel | You THINK you do 1 pr spell, that's really my question, have you counted it to make sure it really stops |
09:32.55 | Miravlix_ | That + 170 other addons |
09:33.21 | Miravlix_ | No I don't think, I know |
09:33.58 | Miravlix_ | I just created the code to hook API's to check how many times they where called, remember... |
09:34.12 | Iriel | But you're getting disconnected |
09:34.33 | Iriel | So did you get a running count duringt he run-up to the DC? |
09:36.07 | not_here | mira, there's not much point in debugging with 170 addons running |
09:36.38 | Miravlix_ | Yes, there is, because thats the real world scenario |
09:36.59 | not_here | there's a new Sky in the trunk that will warn you if you are exceeding the message bandwidth, but it wont could api calls |
09:37.00 | Iriel | His point is, once it breaks, you should disable the 170 and see if it's still broken |
09:37.04 | Miravlix_ | Debuging speed issues with just your own addon running is pointless and show nothing |
09:37.18 | not_here | stop just being argumentative |
09:37.57 | not_here | if it disconnects with lots of addons your first step should be to dissable them until it starts working |
09:38.20 | Miravlix_ | Well, it start working if I login, instead of doing a /reload |
09:38.32 | Miravlix_ | While my system is very busy doing other stuff |
09:38.39 | not_here | are you in a party? |
09:38.44 | Miravlix_ | no |
09:39.22 | not_here | I'm not gonna walk you through debugging. You should be fully capible by now and you've heard me recite the spiel a thousand times |
09:39.44 | Miravlix_ | I'm standing in Stormwind at a busy corner, so not sure about nutty events, but I've fixed most of the 170 addons to not react to other peoples events |
09:40.37 | Miravlix_ | But I've used GetSpellName in 100K for loops |
09:40.41 | Miravlix_ | With no problems |
09:40.48 | Miravlix_ | You sure GetSpellName can overload? |
09:41.00 | Iriel | I wouldn't imagine GetSpellName can overload, no |
09:41.27 | Iriel | Not sure about GameTooltip:SetSpell though |
09:41.35 | Iriel | How do your disconnects feel? |
09:41.44 | Iriel | Is everything okay and then D/C |
09:41.47 | Kirov | Seems odd that Setx could get overloaded |
09:41.50 | Miravlix_ | It's very messy since it's during a /reload |
09:41.51 | Iriel | or does the game lock up for a while then D/C |
09:42.07 | Kirov | I've done over 40,000 sethyperlinks in one shot with out a problem |
09:42.32 | Miravlix_ | So the game is locked up, while it handles saving the 100+ MB savedvariables I have |
09:43.04 | Miravlix_ | I get a few addons we are loading spam, then it just goes to login |
09:43.12 | Kirov | I've noticed the game will lock if it takes too long to load the UI |
09:43.36 | Kirov | Like, it doesn't know how to proceed if it finally finishes loading the UI and you're already disconnected |
09:43.40 | Miravlix_ | Not the normal you can run around for a minute, then we DC |
09:45.02 | Miravlix_ | Must be Sky/FlagRSP that overloads |
09:46.01 | Miravlix_ | Maybe even packetloss because my computer is loaded |
09:46.16 | Kirov | woot! |
09:46.21 | Kirov | Found a new way to crash the game |
09:46.24 | Miravlix_ | Hate not having propper error messages |
09:46.27 | Kirov | CreateFrame("Minimap") |
09:47.04 | sarf|stuff | Kirov> the "if it takes too long to load we d/c" is probably caused by UNIT_HEALTH / BAG_UPDATE / other event spamming |
09:47.06 | not_here | is it possible to reshape square frames/textures to parralellagrams? |
09:47.22 | sarf|stuff | If your addons are modified to hook events only on PLAYER_ENTERING_WORLD it may work better |
09:47.30 | sarf|stuff | (essentially applying tigerhearts patch) |
09:47.31 | Kirov | textures? yes |
09:47.32 | Iriel | Textures, yes, as long as they have a transparent border on all 4 sides |
09:48.07 | Miravlix_ | sarf|stuff: We know how it works Sarf, we are talking login here. |
09:48.11 | sarf|stuff | One addon which causes me to d/c is CT_RA *if* I login to a raid "in progress" (i.e. a lot of events firing off) |
09:48.56 | Elviso | player_entering_world should fire before any addon_loaded, no? |
09:49.04 | Miravlix_ | No |
09:49.11 | Elviso | damn |
09:49.13 | Miravlix_ | It's the last event in a login (almost) |
09:49.59 | Miravlix_ | You get ADDON_LOADED for every addon that loads, then VARIABLES_LOADED, then PeW |
09:50.21 | sarf|stuff | Miravlix_> Do you know if it would be worthwhile to extend Catalyst to actually store one instance of each event fired and "refire" them after the entering event is done? |
09:50.29 | not_here | so i've decided to start a new crusader to rid the world of idiots who make web pages with embedded videos and music files set to auto-play. violent murdering after public flogging. Who's with me? |
09:50.39 | sarf|stuff | I am! |
09:50.44 | Miravlix_ | sarf|stuff: Totally poitnless, all zoning events has no use. |
09:50.47 | Elviso | ok, do you know if PARTY_MEMBERS_CHANGED or RAID_ROSTER_UPDATE fire before PEW? |
09:50.48 | sarf|stuff | Force them to use IE 3.0 unpatched! |
09:50.56 | Elviso | or, can they |
09:51.03 | Miravlix_ | Except for a few chat ones |
09:51.14 | sarf|stuff | Miravlix_> Catalyst only stops a few events AFAIK |
09:51.30 | Miravlix_ | Yeah I use ntfsfixloading |
09:51.32 | sarf|stuff | Miravlix_> The ones that causes the spam UNIT_HEALTH, BAG_UPDATE, ACTIONBAR_... |
09:51.37 | Miravlix_ | It kills everything except a small white list |
09:51.43 | Miravlix_ | Gives me 2-3s zoning times |
09:51.47 | sarf|stuff | Hmm |
09:51.50 | Miravlix_ | Kills Thottbot offcourse |
09:51.55 | sarf|stuff | Linkie? |
09:52.07 | sarf|stuff | Or just curse? |
09:53.44 | Miravlix_ | http://ui.worldofwar.net/ui.php?id=2419 |
09:53.56 | sarf|stuff | The thing is, unless the events are spammed "beyond" entering world, it would be "considerate" to let addons know that the events fired... I mean, you wouldn't have to re-spam all times but you could condense the events down to the minimum list |
09:54.00 | Miravlix_ | Couldn't find it on wowi, didn't check curse |
09:54.24 | Miravlix_ | Slouken has promised to clean up zone events |
09:55.15 | sarf|stuff | BTW, in my SarfFix addon (personal) I hide the UIParent during zoning - would that improve zone times in any way beyond what loadingfix/addons do? |
09:55.21 | Miravlix_ | Because nothing changed during zoning, so none of the events that fire has any real meaning and can be 'safely' ignored |
09:55.32 | Iriel | I wouldn't think hiding UIparent would help much |
09:55.40 | Iriel | since events are received regardless of visibility |
09:55.51 | not_here | might stop rendering.. |
09:56.01 | Miravlix_ | But hiding there would kill all OnUpdates? |
09:56.07 | sarf|stuff | Yes... |
09:56.12 | sarf|stuff | I unhide on entering |
09:56.25 | sarf|stuff | Aha |
09:57.11 | Miravlix_ | Hmm, disabling onupdate while zoning is an interesting feature, that needs future investigation |
09:57.12 | sarf|stuff | I thought they were relevant but just not "useful" since they just caused more processing - hence condensing them down to one event-instance (more than one with differing args if needed) would be good |
09:57.20 | Miravlix_ | But since my 170 addon system can get down to 2-3s |
09:57.31 | Miravlix_ | I don't think we can get any more speed |
09:57.32 | sarf|stuff | Would be easy to add to Catalyst y'know |
09:58.07 | sarf|stuff | However, disabling UIParent-related OnUpdates would be best since other onupdates may be relevant |
09:58.15 | sarf|stuff | and the UI should not update during zoning anyhow... |
09:58.38 | Miravlix_ | Well, it's Blizzard that generates the 23K event calls during zoning |
09:59.01 | sarf|stuff | How much GC does ntmys cause? |
09:59.07 | Miravlix_ | 23K event calls is what fixload ignores on my system |
09:59.17 | Miravlix_ | 0 I think |
09:59.36 | sarf|stuff | f:SetScript("OnEvent", function() |
09:59.36 | sarf|stuff | if(event == "PLAYER_ENTERING_WORLD" or |
09:59.36 | sarf|stuff | event == "PLAYER_TARGET_CHANGED" or |
09:59.36 | sarf|stuff | event == "PLAYER_LOGOUT" or |
09:59.36 | sarf|stuff | string.sub(event,0,4) == "CHAT") then |
09:59.37 | sarf|stuff | this.ntmysFLT_OnEvent(); |
09:59.39 | sarf|stuff | ntmysFLT_PassedEvents = ntmysFLT_PassedEvents +1; |
09:59.41 | sarf|stuff | end |
09:59.44 | sarf|stuff | That seems like it should create a function |
09:59.50 | sarf|stuff | or lots of them |
10:00.07 | Iriel | Well, it creates lots of closures |
10:00.09 | Iriel | just one prototype |
10:00.24 | sarf|stuff | It should be possible to rewrite |
10:00.32 | sarf|stuff | so it's a static function |
10:00.37 | sarf|stuff | Ah, right |
10:00.42 | sarf|stuff | Never could keep those apart :/ |
10:00.56 | not_here | is there any way for a file system or os to detect another file being read? |
10:01.08 | sarf|stuff | ? |
10:01.17 | sarf|stuff | You can hook the API for opening files, yes. |
10:01.35 | sarf|stuff | Most FS:s have "exclusive read access" thingies too |
10:01.44 | sarf|stuff | Which would give you an error if you tried to read the file |
10:01.49 | not_here | like can i have an app running in the bg that detects when a certain file is accesses? |
10:01.58 | sarf|stuff | Yes |
10:01.59 | zenzelezz | Windows can let you monitor specific files; lots of programs do this |
10:02.08 | sarf|stuff | 3rd party thingie tho, my friend ^^ |
10:02.10 | zenzelezz | can't remember what the functions for it are called |
10:02.21 | not_here | is there an easy way to do this on unix? |
10:02.24 | sarf|stuff | check filemon |
10:02.28 | sarf|stuff | Uh |
10:02.31 | sarf|stuff | Probably |
10:02.35 | sarf|stuff | :) |
10:03.01 | Miravlix_ | Even my horrible lagged system is still just 6.4s to zone |
10:03.07 | Iriel | Different unixes have different versions of filemon-like things |
10:03.18 | not_here | what's filemon? |
10:03.30 | sarf|stuff | sysinternals.com |
10:03.39 | sarf|stuff | Win32 API hooking program with sourcecode |
10:03.45 | sarf|stuff | allows you to see what files are being accessed |
10:03.52 | sarf|stuff | but since you wanted unix... |
10:04.31 | Miravlix_ | filemonitor |
10:04.31 | sarf|stuff | Time to go level my Hunter to 48 so I can get to use my Hurricane! |
10:05.53 | Miravlix_ | Why do you want to monitor if the file has changed? |
10:06.17 | not_here | because wow can read music files not present on reload |
10:07.09 | not_here | i'm wondering if I can use PlayMusic to access numbered files in order to read out information in semi-real time |
10:07.52 | not_here | or maybe even remove certain files to cause errors that can be used for input |
10:08.57 | Iriel | Gah, writing XSL's to create XSL's is making my head hurt |
10:09.09 | Miravlix_ | Sounds dirty |
10:09.40 | not_here | maybe change file permissions |
10:09.43 | Elkano | wow, there's havy movement in the embedded libs area :) |
10:10.05 | Miravlix_ | Anyone else noticed how the tram spams WORLDMAP_UPDATES? |
10:11.48 | Miravlix_ | Oh crap, 30 min until I'm going out the door. |
10:19.33 | *** join/#wowi-lounge Shouryuu (n=Shouryuu@147.11.103-84.rev.gaoland.net) |
10:20.15 | Elviso | Miravlix_, you think it's b/c you're travelling through diff zones on the way? |
10:20.46 | Miravlix_ | It happends when I stand still after just entering |
10:21.31 | Elviso | oh, lol |
10:21.34 | not_here | so.. iriel, you would know... can we make non-rectangle shaped textures? |
10:22.08 | Iriel | No |
10:22.22 | Iriel | But you can make a rectangular image with non-rectangular content using alpha |
10:22.39 | not_here | right, not quite what i need, but thx |
10:22.56 | *** join/#wowi-lounge Elkano (n=elkano@ip-213-135-2-172.handshake.de) |
10:23.14 | Shouryuu | if I do setglobal(a .. b,{}) how would I set the first value of that table to 10? |
10:23.36 | Iriel | Shouryuu getglobal(a ..b)[1] = 10; |
10:24.03 | Shouryuu | ah ok thanks |
10:24.13 | not_here | mmm, if i strech a square texture to a rectangle and then rotate it will it still be the orig geometry? |
10:25.03 | Kirov | Yes |
10:25.09 | not_here | as in, will the picture distort or will it rotate as a whole rectangle |
10:25.36 | Iriel | not_here ; it depends what you tell it to do 8-) |
10:26.00 | Shouryuu | will getglobal(a ..b)={10,20} set the two first values to 10 and 20? |
10:26.22 | not_here | ok, well you know the sellection circle for units? |
10:27.07 | not_here | say i make a circle with and stretch it to look like the selection circle/oval |
10:27.40 | not_here | now say i have an arrow on the edge |
10:28.06 | not_here | think i can rotate it around the circle or will the oval rotate? |
10:28.37 | Iriel | You can do it either way |
10:28.45 | not_here | marvy |
10:29.03 | Iriel | Though if you want to rotate the arrow around your oval and not have it stretch oddly then you'll need to do the 2 independently |
10:29.42 | not_here | well you know how the oval looks liek it's extending foraward |
10:29.53 | not_here | i want it to distort liek that |
10:30.21 | Iriel | I'm not sure I do actually, which circle are you talking about? |
10:30.38 | Kirov | he's trying to do perspective |
10:30.44 | not_here | when you select a unit, the circle on the ground that glows |
10:30.46 | not_here | right |
10:30.52 | Iriel | Ah.. you can't do that then, not properly |
10:30.59 | Iriel | you'll have to cheat or do something fiddly |
10:31.01 | not_here | i'm wondering if i can manufature perspective |
10:31.03 | Iriel | that's a non-affine transformation |
10:31.16 | not_here | ? |
10:31.36 | Iriel | The perspective transformation doesn't preserve linearity |
10:31.56 | not_here | ? |
10:31.58 | Iriel | i.e. if you have a line A-B, with midpoint M |
10:32.09 | Iriel | Then the distance from A-M and M-B must remain equal |
10:32.22 | Iriel | The perspective transformation doesn't obey that rule |
10:32.30 | not_here | right |
10:33.04 | Iriel | SetTexCoord doesn't let you do transformations that dont preserve linearity |
10:33.11 | Iriel | there aren't enough variables to represent them |
10:33.19 | not_here | you would have to have a parralellagram with sides sloping in |
10:33.24 | Iriel | Yes |
10:33.39 | Iriel | Which would have the right 'edges' but the innards wouldn't distort the way you want them to |
10:34.45 | not_here | ok, so scrap the cirle, i can make that static. is there a way to make some arrow circle around it with some semblance of relative perspective? |
10:35.15 | Kirov | You can do that with the set tex coords |
10:35.20 | Iriel | If your arrow is a flat triangle, then absolutely |
10:35.30 | Iriel | And even if it's got shading etc, it'll probably not be large enough you'd notice |
10:35.42 | Kirov | Assuming it's fairly small, or really simple, the lack of proper distortion won't be noticed |
10:35.58 | not_here | mmk |
10:36.18 | not_here | worse comes to worse i can make it a dot on a track |
10:38.56 | not_here | ok so what all can we get the direction of in game.. friendly players... gatherer markers... |
10:40.00 | Kirov | gravestones |
10:40.03 | not_here | did that dragging the minimap under the mouse ever come to anything useful? |
10:40.34 | not_here | can we get the direction of flags on the map? |
10:40.50 | Iriel | Define 'useful' 8-) |
10:40.57 | Iriel | It works, but it's a very slow system |
10:41.25 | Kirov | You can get the direction of anything that's outside of the range of the minimap that would otherwise show up on the minimap ... assuming you know what that thing is. |
10:41.43 | Kirov | But that's not terribly useful |
10:43.54 | not_here | anyone made a map mod liek Alphamap that uses the battle map? i seem to remember something liek that |
10:46.00 | not_here | don't spose there's a way to detect the vertical camera angle.. |
10:46.13 | Shouryuu | nope |
10:46.39 | Kirov | no way to know any of the camera's positional information |
10:50.31 | not_here | mmm, how does the location names on the map work? |
10:50.37 | not_here | when you mouse over them |
10:50.42 | not_here | the names shows up |
10:50.59 | zenzelezz | world or minimap? |
10:51.03 | not_here | world |
10:51.04 | Kirov | world |
10:51.27 | not_here | are those mouseover frames or areas or something in the ui? |
10:51.30 | Iriel | There's an API function to query the poitns of interest |
10:51.52 | not_here | by position? |
10:51.58 | not_here | or by point? |
10:53.00 | Kirov | night all |
10:53.50 | not_here | oo... |
10:53.53 | not_here | GetMapLandmarkInfo |
10:54.09 | not_here | so i could get the x,y of say a city |
10:54.21 | not_here | and get the direction in comparison to me.. |
10:54.38 | not_here | that sounds useful |
10:56.58 | not_here | hmmm, map ntoes already does that.. meh |
10:57.32 | Shouryuu | not_here what are you trying to do? A compass mod? |
11:00.20 | not_here | nothing any more. was just brain storming |
11:02.19 | Shouryuu | lol |
11:02.43 | not_here | funny? |
11:06.25 | Shouryuu | amusing |
11:06.52 | not_here | i get random inspiration to make pretty things. The logistics didn't pan out into something useful enough to make it worth my time. |
11:09.06 | not_here | and i don't have enough determination to follow through with my uiframe dock |
11:09.46 | not_here | i have a few pages of ideas documented here on my desktop, with not enough time to do any of it |
11:13.11 | wereHamster | morning |
11:13.12 | sarf|stuff | Model/Skinning idea : make replacements for all "flight taxi beasts" to be pigs with wings. |
11:13.19 | sarf|stuff | Morning wereHamster! |
11:17.11 | sarf|stuff | ... |
11:17.16 | sarf|stuff | Did I just kill this channel? |
11:17.34 | not_here | it's late sarf, every one's tired |
11:17.51 | wereHamster | it's morning :) |
11:20.27 | Elkano | it's time for America to vanish and Europe to rise ;) |
11:20.44 | Shouryuu | feeed me! |
11:20.46 | sarf|stuff | 13:17 here |
11:21.07 | sarf|stuff | Anyhow! Does anyone know a 3D gfx artist with too much time and a love for crazy ideas? |
11:21.21 | sarf|stuff | I really feel up to implementing the TaxiPigs addon |
11:21.50 | sarf|stuff | Would be sweet if we could get them to go "OINK! OINK!" when they pass by people. |
11:22.19 | Shouryuu | lol |
11:22.50 | not_here | if you could detect if a target was flying... you could play it when you click on them.. |
11:23.57 | sarf|stuff | UnitOnTaxi... |
11:24.03 | sarf|stuff | Might work for target? |
11:24.11 | not_here | sure |
11:24.11 | sarf|stuff | or mouseover! |
11:24.38 | not_here | that too |
11:25.48 | Shouryuu | man this getglobal and setglobal thing is going to pose problems |
11:25.56 | sarf|stuff | How so? |
11:29.41 | *** join/#wowi-lounge krka (i=krka@c80-216-103-22.cm-upc.chello.se) |
11:34.05 | Shouryuu | I'm doing my chess add on, and I want tables called things like BlackChessPiecesRook |
11:34.19 | not_here | you know there's already a chess addon |
11:34.23 | Shouryuu | There is? |
11:34.25 | Shouryuu | Gosh! |
11:34.41 | Shouryuu | a donde? |
11:34.52 | not_here | MiniGames in Cosmos |
11:35.41 | not_here | was made back in wow beta, I recently ressurected it to use Sky |
11:35.42 | Shouryuu | awwww |
11:35.48 | Shouryuu | that sucks |
11:36.04 | not_here | *tear* |
11:36.53 | Shouryuu | yeah |
11:37.01 | not_here | how logn have yu been working on it? |
11:42.46 | not_here | doh.. wish i know i could set grouploot threshold to poor b4.lol |
11:50.07 | Shouryuu | not long, more like writting down some code while bored in class |
11:50.17 | Shouryuu | I'm quite sure I would've never managed |
11:50.34 | Shouryuu | but ones who tries nothing, can never gain anything :p |
11:51.16 | not_here | well if you want to try we need it set up so you can play minesweeper single palyer. currently it's only multiplayer |
11:51.54 | not_here | or you could write ai's for the other games |
11:52.02 | Shouryuu | AI will be very hard |
11:52.07 | Shouryuu | if not impossible |
11:52.11 | Shouryuu | I'm a harrible coder |
11:52.14 | Shouryuu | *horrible |
11:52.23 | Shouryuu | you don't even remotly want me to try AI |
11:52.28 | not_here | could look up an existing ai and convert it to lua |
11:53.31 | Shouryuu | I think that solo minesweeper should be more doable |
11:53.44 | Shouryuu | although the algorithm for placing the mines will be 0.o |
11:53.56 | not_here | that's already done |
11:54.06 | Shouryuu | then what's missing? |
11:54.07 | not_here | just need it soloable |
11:54.25 | not_here | a little gui setup and some rearanging to make it work |
11:54.55 | Shouryuu | Meh, out of my league =( |
11:55.12 | not_here | just need a static popup that asks if you want to play single player or wait for a team mate |
11:55.34 | Elviso | ah-ha! it just dawned on me who not_here is, rofl |
11:55.44 | Shouryuu | lol |
11:55.45 | Elviso | why're you hiding anyways? |
11:56.12 | not_here | the gui's already written, static popups are easy. just need to rearrange the names on the game window and dissable the player changing part |
11:56.16 | over_there | Is not_here over_there? |
11:56.26 | over_where | where? |
11:56.29 | not_here | actually's i'm right_here |
11:56.41 | over_there | lol |
11:56.44 | over_there | this is weak |
11:56.49 | over_there | I;m going out for lunch |
11:56.52 | over_where | lol |
11:57.23 | over_where | you undercover not_here? |
11:57.34 | Shouryuu | shhhh |
11:57.38 | Shouryuu | *they* are listening |
11:57.58 | not_here | Not really. My name doesn't seem mean very much, so I just decided to change it a couple times for temporary amusement |
11:58.13 | over_where | well, actually it does |
11:58.24 | Shouryuu | lol |
11:58.35 | over_where | you had established yourself to me as someone who knew their shit |
11:58.44 | over_where | s/knew/knows/ |
11:59.34 | not_here | besides, if people have to discover who I am then they spend more time thinking about me, even if they don't know it. And my goal in life is to have everyone either working for me, worshiping me or thinking about me.. |
12:00.29 | Shouryuu | I wish I were not_here... |
12:00.39 | over_where | I wish I knew how to program Perl to emulate :P |
12:01.18 | not_here | besides, I go through my emo periods like most everyone else and sometimes wish I were somone else or not here.. |
12:01.39 | not_here | today I am not_here |
12:01.41 | Elviso | <-- has ducked out on guild raids all week |
12:01.45 | Elviso | I know the feeling |
12:06.29 | not_here | let me know if you get anywhere with minigames shouryuu |
12:07.17 | not_here | sleepy time for now |
12:09.32 | Elviso | lol cyas |
12:34.01 | Shouryuu | I've just been told the most humiliating thing |
12:34.17 | Shouryuu | "You're in Leviathans, I know you have better gear than that" |
12:34.40 | Shouryuu | "Thanks, I know I'm in a good guild but f*** you too!" |
13:03.12 | *** join/#wowi-lounge Cide (i=Cide@81-226-233-5-no60.tbcn.telia.com) |
13:08.59 | Shouryuu | ohh cide |
13:09.10 | Cide | hiu |
13:09.12 | Cide | hi* |
13:10.07 | Shouryuu | there's a bug I wanted to report about CTRA, nothing important, but in AQ 20man, there's an anubisian guard that throws a plague around, CTRA sends a tell to the player who has the plague and warns him. Buut, if a hunter's pet gets the plague, well CTRA tries to send a tell to the pet and not the hunter |
13:10.28 | Cide | not much I can do about it :) |
13:11.03 | Shouryuu | lol ok :P |
13:11.10 | Cide | well, there's some stuff I could do about it, but I'd rather not as it would hurt performance |
13:11.23 | zenzelezz | if the pet has the same name as a player, will the player get the tell? |
13:11.29 | Cide | yes |
13:11.38 | Cide | a hunter in our raid named his pet after another guild member |
13:11.38 | zenzelezz | must be fun |
13:11.42 | Cide | poor druid |
13:11.56 | Shouryuu | lol |
13:13.16 | Shouryuu | hummm which movie should I watch... Totoro, Princess Mononoke or Howl's moving castle |
13:13.17 | Iriel | Only players get tells |
13:13.43 | Shouryuu | decisions decisions |
13:14.19 | Tain | You should watch Time Bandits. |
13:14.35 | Iriel | a classic |
13:15.30 | Elviso | lol Cide, I did that in my guild |
13:15.35 | Elviso | now all the hunters followed suit |
13:15.44 | Elviso | we named our pets after warlocks, and they love it... |
13:15.59 | Elviso | if someone does /tar Aphon in a BG, they get my pet alot of the time |
13:16.47 | Shouryuu | but, but, I don't have Time bandits.. |
13:18.26 | *** join/#wowi-lounge ComicSansMS (n=der_weih@p5497E2BD.dip.t-dialin.net) |
13:18.32 | ComicSansMS | greetings everyone! |
13:18.51 | zenzelezz | heya |
13:27.38 | Tain | You need to fix that then, Shouryuu |
13:31.06 | Shouryuu | It |
13:31.08 | Shouryuu | 's sunday |
13:31.17 | Shouryuu | sunday in france = *Everything* closed |
13:35.52 | sarf|stuff | Cide> just keep a "raidpet list" with name => unitname and then you a) keep owner there too or b) reverse owner unitname from petunitname |
13:36.08 | sarf|stuff | That won't hurt performance that much, just mem size |
13:37.41 | Tain | Even the rioters in France take Sunday off |
13:37.54 | Shouryuu | lol |
13:42.56 | *** join/#wowi-lounge wereHamster (n=tomc@gw.ptr-62-65-141-13.customer.ch.netstream.com) |
14:12.28 | Iriel | VFX = VF:Instantiate("ActionBarButtonTemplate", "VFX", UIParent); |
14:12.39 | Iriel | Finally I got something that looks like an action bar button |
14:12.41 | Iriel | I can sleep now |
14:13.17 | krka | O_o |
14:13.19 | krka | what have you done? |
14:13.25 | krka | and can i have it? :) |
14:13.34 | Iriel | Heh, it's not quite done yet |
14:13.37 | Iriel | but once it is, sure |
14:14.03 | krka | can i ask a quicky btw? |
14:14.06 | krka | about metatables |
14:14.10 | Iriel | It's some scripts which take blxxard XML and spit out lua code |
14:14.11 | *** join/#wowi-lounge Kirkburn (n=George@151.56.226.114) |
14:14.18 | Kirkburn | Morning! |
14:14.19 | krka | omg |
14:14.21 | krka | cool Iriel |
14:14.23 | Iriel | And then a lua driver to turn the code into frames |
14:14.31 | krka | that's complete ownage |
14:14.47 | Iriel | As long as you avoid any missing methods it works pretty well |
14:14.57 | Kirkburn | Btw, does anyone know a good ftp client? Both IE and FF refuse to work for me |
14:15.01 | krka | as in, stuff you haven't implemented? |
14:15.04 | krka | Kirkburn, filezilla |
14:15.22 | Kirkburn | Ta |
14:15.23 | Iriel | As in stuff slouken hasn't implemented |
14:15.38 | krka | if i have a table frame -> string |
14:15.44 | krka | and make that be week valued |
14:15.46 | krka | and the gc runs |
14:15.52 | krka | what happens to it? |
14:15.57 | krka | will frame -> nil? |
14:16.12 | Iriel | weak VALUED ? |
14:16.20 | Iriel | so the string is the value, and that's weak? |
14:16.52 | Iriel | if the string is collected (and that means nobody else has a reference to it) then the table entry will be nilled |
14:16.52 | krka | yes |
14:17.00 | krka | cool, thanks |
14:17.11 | krka | i was thinking maybe that table itself counted as a reference |
14:17.15 | krka | since they key isn't weak |
14:17.51 | Iriel | the "weakness" means whether the table entry counts as a reference on the thing |
14:18.13 | Iriel | not the other way around |
14:18.34 | Iriel | with the side effect (sort of) that if the weakly held object is collected the table entry is nil'ed |
14:18.43 | krka | i see |
14:19.07 | krka | so i can store all sorts of stuff in weak tables, without any memory penalty |
14:19.08 | krka | sweet |
14:19.15 | krka | much smarter caches this way |
14:19.34 | Iriel | Just be careful about weakly held strings |
14:19.47 | Iriel | i.e. dont count on them being collected |
14:20.10 | krka | nope, i won't |
14:20.20 | krka | i don't really need them to be collected |
14:20.22 | Kirkburn | Grah, why is it sourceforge goes down the moment I visit |
14:20.30 | krka | it's just stuff that _might_ never be used again |
14:20.36 | Iriel | http://wow.pastebin.com/676891 |
14:20.51 | Iriel | Some fun (machine generated) code |
14:22.26 | Iriel | And http://wow.pastebin.com/676894 |
14:22.29 | Iriel | for good measure |
14:22.41 | wereHamster | NormalTexture = "NormalTexture"; is that correct? |
14:23.02 | Iriel | yes, it's a deferred reference into the regions subtable |
14:23.11 | Iriel | My loader knows what to do with it |
14:23.25 | krka | cool iriel |
14:23.31 | wereHamster | ah I see :) |
14:24.06 | *** join/#wowi-lounge cladhaire (n=jnwhiteh@cpe-24-59-191-241.twcny.res.rr.com) |
14:24.07 | *** join/#wowi-lounge Maldivia (i=the_real@85.24.45.144) |
14:24.40 | Iriel | Anyway, I have some less frequently used XML items to finish encoding |
14:24.46 | Iriel | But not a whole lot |
14:24.56 | krka | you do all the cool stuff Iriel |
14:24.59 | Iriel | and then some of the more fiddly lua bits to hook in |
14:25.05 | Maldivia | morning |
14:25.12 | Iriel | and then I get to clean up all my code |
14:26.47 | Maldivia | Iriel: about the numbers you posted in the how much memory it uses thread, how sure are you about those ? |
14:27.21 | Iriel | Maldivia : For x86 wow on windows, i'm very sure |
14:27.36 | Iriel | Maldivia : All tests were repeated many times with many thousands of iterations for each data point |
14:27.54 | Kirkburn | krka, thanks for the suggestion, it worked :) |
14:28.23 | Maldivia | How large should an array with 234 entries, each of those entries is an array with 81 numbers, be? |
14:28.59 | krka | cool |
14:29.00 | wereHamster | numbers in lua are doubles, right? |
14:29.17 | Maldivia | from what I read it should be (128 * 16 + 32) * 234 + 32 |
14:29.18 | Iriel | wereHamster : right |
14:30.11 | Iriel | 490848 |
14:30.14 | Iriel | bytes |
14:30.32 | Maldivia | gcinfo() before an after the init of that structores gives 305 kb |
14:30.37 | Maldivia | the difference, that is |
14:31.10 | Iriel | did a gc run happen while it was being built? |
14:31.13 | Maldivia | 304kb |
14:31.38 | Iriel | return PackedArrayTableSize(81) * 234 + PackedArrayTableSize(234) |
14:31.56 | Iriel | Assuming none of the tables existed before you started |
14:32.02 | Iriel | function PackedArrayTableSize(entries) |
14:32.02 | Iriel | <PROTECTED> |
14:32.02 | Iriel | end |
14:32.06 | Iriel | for reference 8-) |
14:33.23 | Maldivia | the script is: collectgarbage(); local mem = (gcinfo()); t = {....}; print((gcinfo()-mem) |
14:33.32 | Maldivia | prints out 304 every time |
14:33.43 | Iriel | what is ... tho ? |
14:34.18 | Maldivia | 234 sudoko puzzles, listed as arrays with 81 one-digit numbers :) |
14:34.28 | krka | you may want to do this instead: |
14:34.32 | Iriel | Does the result change if you call collectgarbage() twice before the run? |
14:34.34 | krka | hmm... no wait, never mind |
14:34.53 | Maldivia | Iriel: I highly doubt it, just ran it from lua commandline tool, same number |
14:35.06 | Maldivia | and there should be no garbage at start up |
14:35.59 | Iriel | hang on, you're testing outside of wow? |
14:36.11 | Maldivia | tested inside and outside |
14:36.16 | Maldivia | I'm getting the same number |
14:36.17 | Iriel | command line lua uses less memory than wow lua |
14:36.21 | Iriel | interestig |
14:36.55 | Iriel | send me your test script sometime 8-) |
14:38.53 | Maldivia | just a sec... just notice a bug in my puzzle list, not that it should change anything though |
14:40.03 | Maldivia | Iriel: http://nerdheaven.dk/~the_real/wow/puzzles.lua -- it's only 80 numbers, have to find my missing number :) |
14:40.25 | *** join/#wowi-lounge Eraphine (n=Eraphine@cpe-24-59-107-221.twcny.res.rr.com) |
14:43.40 | wereHamster | Isn't the table size calculation purely lua related? or did Blizzard change anything in the table implementation? |
14:43.41 | krka | how about this: |
14:43.49 | krka | color coding on text changed - indenting on tab / enter? |
14:43.57 | Iriel | It's pretty much lua related, the variable is how big the lua objects are |
14:44.21 | Iriel | Blizzard dont appear to have done anything structurally radical beyond the tainting flag |
14:44.36 | Iriel | but memory alignment and suchlike mean different lua implementions exhibit different sizes |
14:45.40 | Maldivia | Iriel: going from 80 numbers in each array to 81 changes the memory from 304 to 362 |
14:46.09 | Iriel | Maldivia : My standalone lua environment has '12' instead of '16' bytes per array entry |
14:46.31 | Maldivia | 5.0 or 5.1? |
14:46.34 | wereHamster | Iriel, wasn't tainting added to 5.0.2 ? or was it there before? |
14:46.51 | krka | what was the syntax for making a table weakly valued? |
14:46.57 | krka | __mode == "v" or somrhing? |
14:47.04 | Iriel | krka __mode = "v" in the metatable |
14:47.04 | krka | __weak = "v"? |
14:47.07 | krka | thanks |
14:47.14 | Iriel | 5.0 |
14:47.59 | Iriel | Maldivia : And it's 56 instead of 80 bytes per hash entry |
14:48.05 | Maldivia | Ok |
14:48.28 | Maldivia | But still, I'm getting the same memory reading from within WoW as with lua commandline (5.0.2) |
14:51.22 | Maldivia | Is there a difference in allocation, when initializing with {a,b,c,...} and with table.insert(t,a) table.insert(t,b) ... ? |
14:52.37 | Iriel | Aha |
14:52.45 | Iriel | Yes, there is |
14:53.01 | Iriel | lua optimizes the {} format constructor to allocate only as many entries as it needs |
14:54.56 | Iriel | If I rebuild your table on the fly then I get the number i'd expect |
14:55.04 | Maldivia | OK |
14:56.11 | Maldivia | Well, I changed my table in the meantime, to be 234 81-char long strings instead, lowering the memory usage by 95% :) |
14:57.43 | krka | hmm... i should probably test my stuff in lua before testing in wow |
14:58.05 | Maldivia | Now I just have to wait for 1.11, so I can use EditBox:SetNumeric and EditBox:SetAutoFocus :) |
15:00.28 | Maldivia | ... and the fix for EditBox:SetJustifyH |
15:00.58 | krka | and EditBox:SetMultiLine |
15:01.53 | Maldivia | well, right now I don't have the need for SetMultiLine :) |
15:02.34 | krka | i do :P |
15:02.36 | Maldivia | :) |
15:03.23 | Maldivia | having an editbox on the screen that's auto-focus is really annoying, since you can't really do anything :) |
15:05.59 | Maldivia | *smirk* Just noticed the item "The Jaw Breaker"... it has the tag-line: "Not edible" :) |
15:06.25 | Elviso | I like Blizz's sense of humor |
15:06.38 | Maldivia | yeah |
15:06.39 | Elviso | the whole "Broken I.W.I.N." button, et all |
15:07.48 | Elviso | I also love it when I set out to add a couple insignificant features to my addon |
15:08.11 | Elviso | and I notice I don't like a way part of it is coded, so I redo it and can't get it fixed right now |
15:08.13 | Maldivia | and insignificant becomes 300 lines of code? |
15:08.20 | Elviso | pretty much, at least |
15:10.21 | Maldivia | hmm... I logged on to a paladin alt I have, by mistake... and I noticed that I've gotten a free talent respec... guess how long it's been since I last logged on to this char :) |
15:10.45 | Elviso | same thing happened with my priest, although that wasn't as long ago |
15:11.22 | Elviso | I love it the most the minute I complain about broken code, I fix it....after an hour of tinkering |
15:12.21 | Tain | I just complain and hope the code elves will come in the middle of the night and fix it while I sleep. |
15:14.58 | Elviso | damn, those elves rule. my elves just make messes everywhere and hide things |
15:29.39 | Kirkburn | Friendly friends, what do you think of this? http://chig.georgepribul.eu/ ... it's my first attempt at a fully CSS website (starting PHP when my book comes) |
15:30.45 | zenzelezz | pretty good. The colors aren't quite my taste, but the layout itself is nice |
15:31.17 | Cide | the latest updates/results & photos are quite far down the page |
15:31.40 | Kirkburn | It's def gonna be more colourful when it's done (lots of photos around), and good point Cide |
15:32.18 | Kirkburn | The Lorem Ipsum isn't final btw ;) |
15:32.30 | Cide | oh? too bad. |
15:32.33 | zenzelezz | Cide makes a good point about content positions |
15:33.23 | Kirkburn | Most of the sections would be shorter when they've got the stuff in, but I should do something about that |
15:33.49 | zenzelezz | for such a site I would sort of expect the "intro" and the news to be separate pages |
15:34.33 | Kirkburn | Oh that's not the main news page, it will only ever have the last three things on, there's gonna be a proper news page |
15:34.37 | Cide | the menu up top is pretty invisible too |
15:34.48 | Cide | I didn't notice it before browising a while |
15:35.04 | Cide | might be because the logo catches attention pretty swiftly :) |
15:35.07 | Kirkburn | Okay I'll change that ... it works, though? |
15:35.22 | zenzelezz | the layout itself is very nice, knowing it's pure CSS |
15:35.35 | Kirkburn | Absolutely no tables whatsoever :) |
15:35.39 | Elviso | I'd crunh the top together |
15:35.43 | zenzelezz | I never managed to make the language understand how I wanted my page to look ;p |
15:35.47 | Elviso | s/crunh/crunch/ |
15:36.03 | Elviso | if you stick the nav directly under the banner, then ppl can't help but notice it |
15:36.04 | Cide | I like it though |
15:36.22 | zenzelezz | yeah, pretty clean |
15:36.50 | Elviso | and there's too much space between the nav & body, IMO |
15:37.21 | Kirkburn | Elviso, that's for the 'drop down' navigation stuff |
15:37.35 | Elviso | yeah, but the top is still too spacious for me :) |
15:37.57 | Kirkburn | (the left nav bar isn't the main navigation stuff, it's only for within sections despite what it shows :) |
15:38.15 | Kirkburn | Heh |
15:38.37 | Kirkburn | It's much better than the garish blue default theme Dreamweaver gave me originally |
15:38.39 | Elviso | other than the spacing, I really like it though |
15:39.11 | Kirkburn | I'll do more on it later, thanks for all the advice! |
15:43.32 | Elviso | ugh, I thought Firefox 1.5 would be better with VM constantly growing |
15:44.58 | Maldivia | I have that annoying bug sometimes |
15:45.26 | Elviso | 140mb footprint / 225mb VM.....restart w/same tabs open (<3 session saver), and now 43mb / 34mb |
15:45.45 | Elviso | lost almost 300mb.... |
15:45.56 | Wobin_ | Garh |
15:46.03 | Wobin_ | I wish I could call gc on Firefox sometimes |
15:46.15 | Elviso | it's not a bug I don't think....just the way it was made |
15:46.27 | Wobin_ | It's horrible =( |
15:46.27 | wereHamster | Elviso, how much ram do you have? |
15:46.32 | Elviso | 1gb |
15:46.40 | wereHamster | and any other applications running? |
15:46.55 | Wobin_ | I sometimes thing Roboform is leaky |
15:46.57 | Elviso | you could say that....WoW, WoW UI Designer.. |
15:47.35 | wereHamster | because.. every byte of ram that is unused is a wasted.. |
15:48.39 | Elviso | I'm right at 600mb used currently |
15:48.43 | Elviso | was closer to 900 |
15:48.55 | Elviso | was taking 25s + to switch task to Firefox |
15:49.09 | Elviso | instant now |
15:50.08 | zenzelezz | I remember I once made a chat log parser for AO that wrote out each line as a <font> tag... the .html file was around 4 or 5 mb, Firefox used somewhere around 400 mb memory when I opened it :-o |
15:51.58 | Elviso | well FFox definitely uses less RAM than IE with an equal amt of pages open....but that doesn't necessarily mean it's a low amount, unfortunately |
15:52.31 | Elviso | and it continues to build, it never does a GC of sorts (you invent that Wobin_ and I'll be your best friend!) |
15:54.42 | zenzelezz | Windows does a fair job is clearing the memory if you minimize and restore Firefox |
15:54.58 | zenzelezz | is = of... |
15:55.15 | Kirkburn | When IE7 is minimised it takes about 3meg of ram :P |
15:55.23 | Kirkburn | (no matter how many tabs were open) |
15:56.36 | zenzelezz | one problem still remains about that though |
15:57.28 | Elviso | I don't think there's any correlation between minimizing FFox and it's memory usage |
15:58.20 | zenzelezz | Windows (XP at least) does some memory stuff with programs when you minimize them; at least I've seen this with Firefox (don't check much for other programs) |
15:58.46 | zenzelezz | could be it has to remain inactive for a while before it does |
15:59.08 | Wobin_ | woohoo! 2k downloads! |
16:00.23 | Shouryuu | w00t |
16:04.39 | Shouryuu | how much are Twilight encrypted texts on your servers? |
16:05.01 | Shouryuu | I got 40g for a stack =P |
16:05.11 | zenzelezz | I don't know what they *sell* for, but I seem to see a bunch of people *trying* to sell for 1g per text |
16:05.19 | Shouryuu | haha |
16:05.22 | Shouryuu | weaksauce |
16:05.32 | Shouryuu | 1g per text is a friend's price on my server |
16:06.20 | Shouryuu | too bad I don't have the game anymore or I'd have an epic mount by now |
16:07.01 | Shouryuu | 640g for an epic FW mount is very reasonable |
16:13.27 | *** join/#wowi-lounge ComicSansMS (n=der_weih@p5497F522.dip.t-dialin.net) |
16:29.27 | ckknight | okay, I need a name for FuBarTooltip, only embedded, and not dependant on FuBar at all |
16:29.51 | krka | what does it do? |
16:30.04 | ckknight | it displays info, like how a tooltip would |
16:30.15 | ckknight | but it can also detach, be clicked on if need be |
16:30.16 | ckknight | etc. |
16:30.27 | krka | CoolTip? |
16:30.32 | ckknight | basically everything that FuBar's tooltips can do |
16:31.26 | ckknight | don't think I'm gonna go with CoolTip |
16:31.51 | krka | fine :P |
16:31.55 | krka | DroolTip |
16:33.04 | krka | damn it, something is broken |
16:33.24 | krka | everytime i run recoloring, the output string is twice as long as the source |
16:33.31 | krka | which is kinda a problem |
16:37.15 | Elviso | hrmm, is Frame:SetScale(this.value) valid? |
16:37.32 | Elviso | no thats javascript |
16:37.49 | Maldivia | should be valid |
16:38.04 | Elviso | I must be doing something else wrong then |
16:38.24 | krka | check what this.value contains |
16:38.39 | Maldivia | ofcourse, depends on what this refereced at the time you call it, and if it actually has a value entry |
16:38.50 | Elviso | Trying to use it on a slider.. |
16:39.09 | Elviso | with Frame being the name of the parent that I want to resize |
16:39.17 | Elviso | so ok, i think i see now |
16:39.36 | Maldivia | this:GetValue() |
16:39.39 | Maldivia | if this is a slider |
16:41.17 | Elviso | hrmmmm.... |
16:41.23 | Elviso | OnDragStop should suffice, no? |
16:41.58 | Maldivia | You want to find out when a slider changes value ? |
16:42.39 | Maldivia | If so, OnValueChanged is probably the what you want |
16:42.45 | Elviso | well, I dont want to resize it immediately...I find that's annoying |
16:42.55 | Elviso | I'd rather let the user finish adjusting, then resize |
16:43.09 | Elviso | I'll try that though |
16:43.49 | Maldivia | well then in your OnValueChanged start a 1 second timer... if the value doesn't change within 1 second, change the size ? |
16:44.34 | Maldivia | or some other form for check |
16:47.14 | Elviso | well, I first need to get it to work period :p |
16:47.20 | Elviso | I'm tired, that may be the problem |
16:52.40 | Shouryuu | did any of you have news from the Joystick guy, the french magazine? |
16:55.30 | Elviso | I think Kirkburn would know if anyone |
16:55.49 | Kirkburn | I've only just got back, so nope :) |
16:56.22 | Kirkburn | We'll just have to keep a look out for Cafeine |
16:56.50 | Shouryuu | who wrote mini-games? |
16:56.54 | Shouryuu | I know he's french |
16:57.08 | Shouryuu | or at least the chess part was written by someone's who's french |
16:57.20 | Shouryuu | Who's french and works on the cosmos team? |
17:00.15 | *** join/#wowi-lounge SP|InterSlayer (n=InterSla@cpe-24-92-241-221.twcny.res.rr.com) |
17:07.01 | Shouryuu | lol philiphs just invented something that prevents you from changing channel during a commercial |
17:08.42 | Kirkburn | Wow, I'd _love_ that |
17:08.45 | Maldivia | well, they are trying to patent it at the moment ? |
17:09.14 | Maldivia | Yes, let the other companies pay royalies to phillips for a feature the consumers don't want |
17:26.19 | Shouryuu | there are a lot of things I don't want and yet companies still pay to have them |
17:26.43 | zenzelezz | MP3 vs. Ogg Vorbis |
17:26.59 | Shouryuu | lol |
17:27.05 | krka | hmm.... if I use OnTextChanged then i don't receive OnEnterPressed and OnTabPressed |
17:27.06 | krka | what giveS? |
17:30.11 | zenzelezz | maybe they consider OnTextChanging to encompass the other two? Don't really know though |
17:30.21 | zenzelezz | er... *Changed |
17:30.32 | krka | hmm... that wasn't the problem i tihnk |
17:30.42 | krka | my OnTextChanged must somehow disable the other two |
17:33.24 | krka | hmm |
17:33.39 | krka | is OnEnterPressed only for single line editboxes? |
17:35.08 | zenzelezz | could be |
17:35.26 | zenzelezz | /greet |
17:36.42 | Cairenn | hey |
17:57.06 | krka | http://kristofer.no-ip.info:8080/tmp/luaslinger1.png |
17:59.33 | krka | you know you want to click it |
18:00.06 | *** join/#wowi-lounge Osagasu (n=Kronus@208.104.133.240) |
18:01.37 | *** join/#wowi-lounge Kemayo (n=David@pool-71-103-166-178.lsanca.dsl-w.verizon.net) |
18:02.11 | Cairenn | SP|InterSlayer: forwarded |
18:02.19 | SP|InterSlayer | ty! |
18:02.25 | Cairenn | you're welcome :) |
18:05.50 | krka | is GoodIndentions a good name or a lame name? |
18:06.30 | wereHamster | krka, gimme luaslinger :-P |
18:06.53 | krka | huh? |
18:07.06 | wereHamster | whwre can I download it? |
18:07.18 | krka | the original should be easy to find |
18:07.54 | Wobin_ | krka: And now I have the Beach Boys stuck in my head |
18:07.55 | krka | grr, can't conncet |
18:08.04 | krka | why? |
18:08.09 | Wobin_ | nanananana, nananna |
18:08.15 | Wobin_ | Good goood goood good vibrations! |
18:08.25 | Wobin_ | Good good good good vibrations! |
18:08.39 | krka | stupid wow, let me in already |
18:09.00 | krka | is it just me, or is luaslinger bad at handling stuff that's longer than one page? |
18:09.16 | Wobin_ | You could be even more obscure and call it "PavingPathToHell" |
18:10.07 | krka | ForAllIndentsAndPurposes |
18:10.19 | krka | IndentToKill |
18:12.05 | wereHamster | krka, seems line luaslinger 1.1.4 trues to loadstring() the formated string.. gives me the error [string "fori=1,|c0033f..."] unexpected symbol near | |
18:12.34 | krka | yeah |
18:12.43 | krka | i have hooked (i know, evil!) RunScript now in my addon |
18:12.49 | krka | so it strips colors before running |
18:14.29 | wereHamster | wouldn't it be easier to save the unformated string, only format it for siaplying and loadstring() the original? |
18:15.53 | wereHamster | I can't see that you've hooked RunScript() in 1.1.4 :( |
18:15.57 | krka | format it for siaplying? |
18:16.01 | krka | nope |
18:16.07 | krka | you have an ancient version |
18:16.19 | wereHamster | the one from worldofwar.net |
18:17.03 | krka | that's not my version, i didn't make LuaSlinger |
18:20.59 | krka | hmm... my addon messes up some stuff |
18:23.12 | krka | local function hookHandler(frame, handler, newFun) |
18:23.12 | krka | <PROTECTED> |
18:23.12 | krka | <PROTECTED> |
18:23.12 | krka | <PROTECTED> |
18:23.12 | krka | <PROTECTED> |
18:23.13 | krka | <PROTECTED> |
18:23.17 | krka | <PROTECTED> |
18:23.19 | krka | <PROTECTED> |
18:23.25 | krka | <PROTECTED> |
18:23.25 | krka | <PROTECTED> |
18:23.25 | krka | end |
18:23.27 | krka | what's wrong with that? |
18:23.33 | Maldivia | *cough* PasteBin *cough* |
18:24.13 | krka | too lazy :P |
18:24.18 | Cairenn | don't be :p |
18:24.37 | Maldivia | it's very spammy any annoying |
18:24.44 | Maldivia | and* |
18:24.45 | krka | ... never mind, i find the bug |
18:24.48 | krka | so stupid |
18:25.09 | krka | sorry, looked like less text when i copied it |
18:25.17 | Cairenn | s'okay :) |
18:26.01 | krka | ok, now i just need a name for this |
18:26.08 | Maldivia | krka: btw, why do you have parameters on it? SetScripts functions use global vars, not function-paramaters |
18:26.19 | krka | hm... good point! |
18:26.24 | krka | <-- stupid |
18:28.01 | *** join/#wowi-lounge Ktron (i=khamer@student2a-64.unh.edu) |
18:28.50 | krka | hmm... is is getting stable |
18:28.54 | krka | name suggestions now please |
18:29.05 | krka | preferably something punny |
18:34.04 | *** join/#wowi-lounge MentalPower_ (n=chatzill@host-70-45-84-10.onelinkpr.net) |
18:35.00 | krka | no help eh |
18:35.10 | krka | i'll have come up with a boring and descriptive name then |
18:35.18 | Wobin_ | I like ForAllIndentsAndPurposes |
18:36.17 | Ktron | this toc http://wow.pastebin.com/677309 should load indent.lua, right? |
18:36.21 | *** join/#wowi-lounge Legorol (i=legorol@cpc4-cmbg6-0-0-cust310.cmbg.cable.ntl.com) |
18:36.39 | Cide | yes |
18:36.46 | krka | hmm... can someone up with a list of proverbs or similar that contains intent |
18:37.28 | krka | yup Ktron |
18:37.29 | Ktron | krka, did you do something sneaky and rename your functions in indent.lua? |
18:37.35 | krka | probably |
18:37.48 | Ktron | so that stripColors is like lib:stripColors or something like that now? |
18:38.02 | Cide | hm... according to wowwiki: obj:SetTexCoord(ULx,ULy,LLx,LLy,URx,URy,LRx,LRy); |
18:38.02 | krka | yeah |
18:38.15 | Cide | according to iriel's LineDrawTest: T:SetTexCoord(TLx, TLy, BLx, BLy, TRx, TRy, BRx, BRy); |
18:38.20 | Ktron | Alright, so I should only need to change the references in Luaslinger to make it work |
18:38.23 | Cide | so, which is it? :) |
18:40.14 | Ktron | Eraphine, krka, should I be referencing the functions as IndentationLib:stripColors and IndentationLib:indentCode from the LuaSlinger.lua now? |
18:40.25 | Ktron | instead of just stripColors and just indentCode? |
18:40.36 | Ktron | s/Eraphine/er/ |
18:40.37 | krka | can you give me half an hour and i'll give you the newest version |
18:40.48 | Ktron | of ident.lua, or the whole thing? |
18:41.38 | krka | that is the whole thing :) |
18:41.45 | Maldivia | Cide: isn't that the same ? |
18:41.48 | Ktron | okay:) |
18:41.50 | Ktron | well... alright |
18:41.52 | Ktron | sounds good |
18:42.10 | Cide | hm, yes it is. damn, I must be tired |
18:42.29 | Maldivia | hehe |
18:42.35 | Shouryuu | wow rize is quite a good movie |
18:42.57 | Cide | though, I don't get how to use it still |
18:43.11 | Cide | I saw "V for Vendetta" today, it's great |
18:43.20 | Shouryuu | yeah it's nice |
18:43.35 | Cide | I was hoping :SetTexCoord(0, 1, 0, 0, 1, 1, 1, 0) would be "default" |
18:43.51 | Shouryuu | It lacked a bit of philosiphical *humph* but I liked it =P |
18:43.57 | Shouryuu | I still have the poem stuck in my head |
18:45.41 | *** join/#wowi-lounge Miravlix (n=dragon@0x3e42aafc.adsl.cybercity.dk) |
18:48.22 | Cide | oh.. nevermind |
18:48.30 | krka | hmm... i can make this both a standalone and an embedded |
18:54.51 | Cairenn | ckknight: nice catch on the fact he's using a crack |
18:58.40 | Ktron | be back in a little bit |
18:59.17 | id` | anyone ever made a slash command? |
18:59.35 | id` | :P |
18:59.44 | zenzelezz | I did the other day |
18:59.48 | id` | good |
18:59.58 | id` | SlashCmdList['IDCHAT_SLASH_TELLTARGET'] = self:tellTarget |
18:59.58 | id` | SLASH_IDCHAT_SLASH_TELLTARGET1 = '/tt' |
19:00.01 | id` | is what i have |
19:00.13 | id` | oops i mean self.tellTarget |
19:00.40 | id` | this function, wich is in the same object does things with self (access other functions) |
19:00.51 | id` | but when the slash command is executed, self isnt passed |
19:01.07 | id` | :\ |
19:02.04 | krka | wrap it in a closure |
19:02.23 | krka | SlashCmdList['IDCHAT_SLASH_TELLTARGET'] = function() self:tellTarget() end |
19:02.46 | id` | ah |
19:02.50 | id` | cool :P |
19:03.11 | id` | i can use arg1-9 there for the other arguments? |
19:03.18 | krka | yeah |
19:03.20 | krka | those are global |
19:03.42 | wereHamster | there are no global arguments in the slash-command handler |
19:03.47 | Shouryuu | lol there's a whole forum on the French site dedicated to translations |
19:03.56 | krka | ah, true |
19:04.06 | krka | do this instead: |
19:04.11 | id` | so how do i pass 'the rest' :P |
19:04.13 | krka | SlashCmdList['IDCHAT_SLASH_TELLTARGET'] = function(message) self:tellTarget(message) end |
19:04.17 | id` | right |
19:04.26 | wereHamster | function(msg) self:tellTarget(msg) end |
19:04.37 | wereHamster | :-/ .. too late |
19:08.18 | id` | arse, when i send a chat message ill need to do so in a language |
19:08.34 | krka | so? |
19:08.35 | id` | GetLanguageByIndex(2) is Common |
19:08.55 | id` | how do i know 2 is the right language for other races? ;) |
19:09.02 | id` | (e.g. horde) |
19:09.02 | wereHamster | or UIParent.language |
19:09.25 | Cide | do you want to send in the default language? |
19:09.50 | wereHamster | ah.. that doesn't exist |
19:09.51 | id` | yes |
19:09.55 | krka | GetDefaultLanguage("unit") |
19:09.56 | id` | wereHamster: yeah |
19:10.00 | id` | cool |
19:10.01 | Cide | or just pass nil |
19:10.23 | Cide | passing nil as language to SendChatMessage uses default, as far as I know |
19:10.26 | wereHamster | does anyone have experience with multiline edit boxes? |
19:10.48 | krka | ok... think i'm done now |
19:10.53 | krka | who wants to test this bad boy? :) |
19:11.07 | krka | wereHamster, i am working a bit with those atm |
19:11.36 | wereHamster | It writes/displays letters beyond the frame |
19:12.14 | krka | you need to put it in a scrollframe and scroll it |
19:12.58 | wereHamster | but why does it display the letters outside of the frame? |
19:13.39 | krka | http://kristofer.no-ip.info:8080/ForAllIndentsAndPurposes.zip |
19:13.40 | krka | go test it |
19:13.45 | krka | instructions in the code |
19:14.04 | krka | is the width of the editbox set? |
19:14.15 | krka | hm |
19:14.35 | id` | Error: Interface\AddOns\idChat\idChat.lua:462: Usage: SendChatMessage(text [,type] [,language] [,targetPlayer]) |
19:14.38 | id` | :| |
19:15.05 | id` | http://pastebin.com/677360 |
19:15.35 | id` | hah im an idiot |
19:15.45 | id` | im sending txt not str |
19:16.23 | id` | ok, telltarget implemented |
19:16.26 | id` | :) |
19:17.03 | Shouryuu | man translating WoW to french must not have been an easy job.. |
19:18.11 | id` | localisation ftl |
19:18.23 | krka | no one wants to test my tool? |
19:18.45 | id` | what tool |
19:19.41 | krka | http://kristofer.no-ip.info:8080/ForAllIndentsAndPurposes.zip |
19:20.22 | *** join/#wowi-lounge kaiden (n=kaiden@63.251.174.3) |
19:20.50 | Cide | hmm. |
19:21.06 | kaiden | Hey guys, got a quick question, what are the negatives to having a for loop 1-20 checking for IsQuestWatched. I don't foresee any possible performance issues, it's performed in an OnUpdate inside of DART |
19:21.28 | Cide | I was like "cool, I got it to rotate using SetTexCoord transformations.. and then I realized it rotated 90 degrees when I input 45 :/ |
19:21.44 | id` | "it's performed in an OnUpdate inside of DART" |
19:21.52 | Cide | kaiden: if you're having it run every frame, then it's probably bad |
19:21.52 | id` | he.. hehe... hehehehe. whahahaha :D |
19:22.21 | krka | depending on how slow IsQuestWatched is, it may be an issue |
19:22.37 | kaiden | it seems blazing fast i haven't noticed a degrade in performance yet |
19:22.41 | kaiden | then again i haven't been to IF |
19:22.58 | Cide | well |
19:22.59 | kaiden | are there any events i can register for that fire when a quest becomes watched? |
19:23.06 | Cide | "fast" in that sense won't be very noticable :) |
19:23.43 | Cide | if DART limits the OnUpdate calls to run X times per second then you're fine |
19:23.51 | krka | watched is when it's checked? |
19:24.05 | kaiden | i'm using it to put a nice charcoal looking background behind the quest watch frame that auto attaches it's points somewhere and resizes itself |
19:24.09 | kaiden | krka, yes |
19:24.13 | kaiden | when you shift click it |
19:24.25 | krka | right |
19:24.42 | kaiden | discordart can set how many times to limit it |
19:25.10 | kaiden | i have it set to 30 times per second |
19:25.17 | krka | whoa |
19:25.27 | krka | you won't do worse than the questlog anyway |
19:25.33 | krka | questlog also uses OnUpdate |
19:25.36 | krka | and does a lot more than you do |
19:26.25 | krka | here's what you could do |
19:26.37 | kaiden | i mean i can lower it to 10 per second it's not necessary to be higher |
19:26.43 | krka | hook RemoveQuestWatch(questIndex) and AddQuestWatch(questIndex) |
19:26.47 | krka | and use those to update |
19:26.59 | *** join/#wowi-lounge Kaso (i=usr25959@80.193.211.68) |
19:27.16 | Ktron | krka, how's it coming? |
19:27.17 | krka | though i am guessing this is a non-issue |
19:27.21 | krka | it's done Ktron |
19:27.24 | krka | http://kristofer.no-ip.info:8080/ForAllIndentsAndPurposes.zip |
19:27.34 | krka | instructions inside indent.lua |
19:27.37 | zenzelezz | hehe, cool name |
19:28.39 | krka | thanks |
19:28.39 | Ktron | Let's see if I can follow the instructions |
19:28.44 | krka | that's the most important thing |
19:28.47 | krka | i have no doubt that you can :) |
19:29.14 | Cairenn | oh noes! you're aren't actually going to rtfm are you?! |
19:30.00 | Cairenn | le gasp! |
19:30.01 | krka | should i maybe have my addon automatically hook known frameS? |
19:30.08 | Shouryuu | Le gosh! |
19:30.15 | krka | such as the TinyPad frame and luaslinger frame |
19:31.30 | krka | hmm... for once i can actually take some screenshots for my addon |
19:31.30 | Cide | manuals.. on the internet? noo.. |
19:31.41 | Ktron | krka, is stripWowColors the new stripColors? |
19:31.44 | krka | yes |
19:31.54 | krka | and now it's: IndentationLib.stripWowColors |
19:31.55 | Ktron | okay... and stripWowColorsWithPos does what then? |
19:32.26 | krka | if you have a position inside the text, it returns the new equivalent position after the stripping |
19:32.34 | Ktron | ah |
19:32.43 | krka | kind of useful |
19:32.54 | Ktron | not for what I just needed it for |
19:33.02 | krka | the instructions are at the top, you shouldn't need to read this far down :P |
19:33.05 | Ktron | uhoh, I did something wrong |
19:33.28 | krka | really? |
19:34.06 | Ktron | yep, give me a second to doublecheck |
19:34.16 | krka | sure |
19:34.29 | krka | btw, if you can come up with speedups and improvements, let me know |
19:34.36 | krka | it creates a lot of garbage atm |
19:36.40 | Ktron | getting Interface\AddOns\LuaSlinger\indent.lua:29:attempt to index global `indentationLib' (a nil value) |
19:36.49 | Ktron | on loading the interface |
19:37.02 | krka | hm |
19:37.15 | krka | oh right, my fault |
19:37.21 | Ktron | I tried embedded, btw |
19:37.39 | krka | redownload |
19:37.51 | krka | _or_ change indentationLib to IndentationLib |
19:37.55 | krka | that's all i changed |
19:39.11 | Ktron | that got rid of the onload error, on another... let's see... |
19:40.52 | Shouryuu | w00t character transfer from account to account should come soon! |
19:41.05 | Ktron | woot ebay!!! |
19:41.07 | Shouryuu | soon, as in the blizzard soon, but still |
19:41.09 | Shouryuu | yeah |
19:41.16 | Shouryuu | that's going to B00st e-bay |
19:41.33 | Shouryuu | but since you're going to have to actually pay to transfer, I'm guessing it'll deter a bit |
19:41.35 | krka | cool |
19:41.38 | Cairenn | Shouryuu: what makes you say that? |
19:41.41 | krka | that would actually make me buy an account |
19:41.49 | Shouryuu | http://forums-fr.wow-europe.com/thread.aspx?fn=wow-general-fr&t=254534&p=1&tmp=1#post254534 |
19:42.05 | Shouryuu | " cela sera bientôt possible moyennant le paiement d'une somme qui reste à déterminer" |
19:42.08 | Cairenn | en Francais |
19:42.13 | Shouryuu | oui =( |
19:42.14 | krka | it's all greek to me |
19:42.17 | Ktron | Interface\AddOns\LuaSlinger\indent.lua:947: attempt to index local `frame' (a string value) |
19:42.18 | Shouryuu | lol |
19:42.21 | Cairenn | je ne parle pas en francais |
19:42.30 | Shouryuu | ask purl to translate |
19:42.39 | krka | your usage code is wrong Ktron |
19:42.44 | Shouryuu | with the weird ~xfdjaf;df jfda things I don't understand |
19:42.45 | krka | you sent a string instead of an editbox |
19:42.47 | Maldivia | Shouryuu: they said soon 12 months ago aswell :) |
19:43.02 | Ktron | krka, could be heh heh, let's see if I can make the proper adjustment |
19:43.04 | Shouryuu | That's why I added Blizzard soon :P |
19:44.05 | krka | anyone wants to build me pretty default color settings btw? |
19:45.01 | Kaso | would it be ok for a noob to ask a question here? |
19:45.26 | krka | depends on what for |
19:45.30 | Maldivia | Krka: just don't ask me... my colors aren't exactly "default" :) |
19:45.34 | Kaso | On what for? |
19:45.36 | Maldivia | Kaso, what do you have on your mind ? |
19:45.49 | Ktron | krka, got colors working, having trouble with the stripping now |
19:45.55 | Kaso | Its about grabbing bits of strings, i cant for the life of be work it out |
19:46.14 | Ktron | I would assume I still need to stripcolors from the text before executing... let's see what I have |
19:46.16 | Maldivia | kaso: string.sub(str, start_index, stop_index) ? |
19:46.27 | Ktron | does IndentationLib:StripWowColors() work on a string? |
19:46.28 | krka | yes Ktron, unless you run it with RunScript, then i strip it for you |
19:46.47 | krka | norganna, use local s = IndentationLib.stripWowColors(s) |
19:46.49 | Ktron | krka, so I probably don't need that part... alright, tryign without that |
19:46.50 | krka | oops |
19:46.54 | krka | sorry norganna |
19:47.00 | krka | i just meant to write "no" |
19:47.04 | Kaso | i want 3 bits of info from the string, isnt there an easier way than running 3 string.finds on it |
19:47.19 | krka | can you give an example kaso? |
19:47.23 | Maldivia | Kaso, what do you want ? |
19:47.28 | krka | how does the string look, and what do you want from it+ |
19:47.42 | Ktron | LuaSlinger does use runscript btw |
19:47.58 | Kaso | "This part is static varible more static stuff anothervar, more static stuff." |
19:48.10 | Kaso | and i want to get varible and anothervar from it |
19:49.01 | *** join/#wowi-lounge MentalPower_ (n=chatzill@host-70-45-83-177.onelinkpr.net) |
19:49.06 | Maldivia | _,_,var, anothervar = string.find(str, "This part is static (.-) more static stuff (.-), more static stuff") |
19:49.27 | krka | what he said |
19:49.46 | krka | for further info on the lua language: http://www.lua.org/manual/5.0/ |
19:49.48 | Kaso | oooh |
19:50.19 | Ktron | krka, I'm getting another error... |
19:50.30 | krka | cool, what is it? |
19:50.43 | Ktron | Interface\AddOns\LuaSlinger\indent.lua:860: bad argument #1 to `gsub' (string expected, got nil) |
19:51.12 | Ktron | that's, as far as I can tell, without any meddling with what the execute button should do |
19:51.21 | Ktron | but is thrown when I try to click it |
19:51.55 | krka | hm |
19:52.16 | krka | exactly how are you using this? |
19:52.26 | Ktron | I'll send you my lua |
19:52.30 | Ktron | for LuaSlinger |
19:52.33 | Ktron | Eraphine, pastebin it |
19:52.46 | Kaso | -_- i can never understand tecnical manuals, i never saw a part that said that strind.find did that, thanks anyway Maldivia and Krka |
19:53.10 | Ktron | http://wow.pastebin.com/677451 |
19:53.15 | Maldivia | Kaso: http://lua-users.org/wiki/PatternsTutorial might be more helpful :) |
19:53.24 | Ktron | 62-64 should be the only usage |
19:53.30 | krka | LuaSlingerScriptBox:SetScript("OnTabPressed", function() IndentationLib.addSmartCode(this) end |
19:53.32 | krka | get rid of that |
19:53.35 | krka | do this onload instead: |
19:53.45 | Maldivia | Kaso: and http://lua-users.org/wiki/StringLibraryTutorial |
19:53.46 | krka | IndentationLib.addSmartCode(LuaSlingerScriptBox) |
19:55.43 | Ktron | if you meant just replace that line with the new line, this is what I get Interface\AddOns\LuaSlinger\LuaSlinger.lua:62: attempt to index global `IndentationLib' (a nil value) |
19:56.34 | krka | is indent.lua in your toc? |
19:57.23 | Ktron | yep, last line in the toc, right under LuaSlinger.xml |
19:57.31 | Ktron | should I move it about LuaSlinger.xml? |
19:57.34 | krka | try moving it before it |
19:59.55 | Ktron | no onload error, still getting the gsub error |
20:00.31 | wereHamster | this is really bad.. ScrollFrame *needs* the <Size> property, you can't crate a scrollframe that has a dynamoc size, eg two anchors, TOPLEFT and BOTTOMRIGHT |
20:01.20 | krka | what does the code look like now? |
20:01.48 | krka | huh wereHamster? |
20:02.10 | krka | have you placed the scrollchild correctly? |
20:02.13 | krka | that should be enough |
20:02.16 | Ktron | hm |
20:02.31 | Shouryuu | night folks |
20:02.45 | krka | night |
20:02.49 | Ktron | http://wow.pastebin.com/677473 |
20:03.55 | krka | hm |
20:04.44 | Ktron | only when I try to execute, of course |
20:05.17 | krka | execute what? |
20:05.23 | krka | script box? |
20:05.40 | Ktron | yep |
20:05.45 | wereHamster | this works.. http://wow.pastebin.com/677477 es. specify the size in XML and change it in OnLoad |
20:06.10 | krka | works for me |
20:06.11 | wereHamster | If I remove the size change in OnLoad, no text appears in the editbox |
20:08.31 | krka | don't you need to set it directly on the scrollchild? |
20:09.23 | Maldivia | wereHamster: tried setallpoints ? |
20:09.31 | wereHamster | no.. |
20:09.47 | wereHamster | on what, the scroll frame or edit box? |
20:09.55 | krka | or scroll child? |
20:10.09 | wereHamster | what scrollchild? |
20:10.59 | Ktron | wereHamster, is that related to LuaSlinger, or just FAIAP? |
20:11.26 | wereHamster | not related t oLuaSlinger.. |
20:11.41 | krka | not everyone is talking about my stuff Ktron :P |
20:11.59 | krka | wereHamster, the scrollchild is between the scrollframe and the editbox, afaik |
20:12.11 | Ktron | I was just checking? |
20:12.17 | Ktron | s/?// |
20:12.26 | wereHamster | no, I don't have a scrollchild |
20:12.32 | wereHamster | and I don't need to. |
20:12.56 | wereHamster | AFAICS, ScrollChildFrame in only used in FauxScrollFrame_Update |
20:13.30 | krka | Ktron, not sure why you get that error |
20:15.02 | Ktron | well... I'll get a clean copy of both and try once more |
20:15.56 | krka | maybe RunScript is being run on a nil value |
20:16.17 | krka | not sure how the default RunScript handles that |
20:16.51 | krka | i can send a new version if you want |
20:17.12 | krka | redownload it, same address |
20:20.11 | Ktron | I'll try not embeddded to |
20:20.12 | Ktron | *too |
20:20.41 | krka | ok |
20:22.36 | Ktron | okay, so fresh LuaSlinger, the newest FAIAP, and I've added the one line to LuaSlinger.lua, and added ForAllIndentsAndPurposes to the requireddeps in LuaSlinger's toc |
20:23.11 | krka | good luck! |
20:24.57 | Ktron | krka, 321 YOU WIN! |
20:25.30 | Ktron | which roughly translates to I didn't get any errors and its working |
20:25.34 | krka | cool :) |
20:26.03 | krka | test it a bit to see if highlights and indentation works properly |
20:31.37 | wereHamster | http://img459.imageshack.us/img459/2562/ls3se.jpg |
20:41.44 | Tem | how easy is it to add support for it krka ? |
20:43.49 | *** join/#wowi-lounge Iriel (n=daniel@adsl-71-158-244-138.dsl.pltn13.sbcglobal.net) |
20:45.06 | Ktron | Tem, I had to add one line to a lua file and one field in the toc of LuaSlinger |
20:45.55 | Tem | awesome |
20:46.59 | not_awake | what about luapad? |
20:47.20 | Ktron | I haven't tried, never even tried regular luapad, I just stuck with LuaSlinger |
20:48.59 | Cide | hey Iriel: I managed to get rotations to work (yay? :P), but they're rotated around the lower left corner.. I'm guessing that's the origin? |
20:49.48 | Iriel | it is, yes |
20:50.26 | Cide | figured.. got me confused when the values for SetTexCoord were from the top left |
20:52.39 | Cide | I read that I have to move the figure to the center and then move it back (to rotate it around itself), is that just multiplying by the rotation matrix offset by <value>? |
20:53.48 | Iriel | If you've done it all matrix-wise then it's a matter of applying a translation matrix before and likely after the rotation |
20:54.23 | Iriel | the first to move the object so that 0,0 is the center, and the 2nd to move it back afterwards if you need to |
20:54.53 | Iriel | though you can just adjust your other numbers and limit it to one new translatop |
20:54.53 | ckknight | hey all |
20:54.56 | Iriel | translation, even |
20:56.57 | Cide | that's rather confusing |
20:57.02 | krka | wereHamster, what are you building? |
20:57.11 | *** join/#wowi-lounge Kirkburn (n=George@151.56.195.89) |
20:57.14 | Cide | 0,0 is the origin, yet SetTexCoord acts as if 0,0 is topleft? |
20:57.18 | krka | Tem, as Ktron says, it should be extremely easy |
20:57.30 | Iriel | Cide: The problem is that there's 2 coordinate spaces involved |
20:57.34 | not_awake | what's that streaming engine called.. streamcast? |
20:57.59 | Elkano | oh no... translation matrices... I can't hear it any more... had a lecture on computer graphics ast semester... :/ |
20:58.10 | krka | no more bugs found in FAIAP? almost ready for release then i guess |
20:58.31 | krka | note to self: fix stripWoWColors |
20:58.43 | Iriel | Cide: I suspect you may have found out why my document has: (Aside: Must verify I have these the right way around - Flickering 12:13, 13 Jan 2006 (EST)) |
20:59.47 | Cide | like I need more problems in my already confused head! |
21:00.09 | Iriel | I'll fix the document, sorry |
21:00.15 | Iriel | I wrote it on a day I didn't have wow access |
21:00.56 | Cide | hehe :) |
21:01.48 | Cide | no need for apologies, you help more than enough as it is :) |
21:02.30 | krka | hmm... if i have a bunch of strings that i want to merge, i should place them in a working table and then concat that? |
21:02.37 | krka | for least amount of garbage)( |
21:02.55 | Iriel | krka: It depends how big the strings are |
21:03.15 | krka | many small strings |
21:03.33 | krka | context: a bunch of tokens in lua source dode |
21:03.34 | krka | code |
21:04.02 | Iriel | krka: can you re-use your concat table? |
21:04.19 | Iriel | krka: And do you expect to be doing this concatenation a lot? |
21:05.33 | Iriel | Cide: I fixed the document |
21:05.51 | krka | yes, resuing that |
21:05.56 | krka | yes, doing it a lot |
21:06.05 | krka | once every keypress inside a lua editbox :P |
21:06.07 | Iriel | then yes, use the table and concat. |
21:06.30 | krka | ok |
21:07.04 | krka | here's my code: http://wow.pastebin.com/677608 |
21:07.36 | krka | i realized that gsub-deleting all "|r" may be a bad idea |
21:09.35 | *** join/#wowi-lounge MentalPower (n=chatzill@host-70-45-84-10.onelinkpr.net) |
21:11.20 | wereHamster | how can I use string.format to print x spaces? |
21:11.50 | krka | use string.rep |
21:11.55 | wereHamster | ay.. |
21:12.14 | Ktron | Is there a way to get the actual item level of an item? |
21:12.21 | Ktron | (in lua) |
21:13.02 | krka | no |
21:13.33 | Elkano | don't think so. iirc this question was on the forums and has been answered by slouken |
21:13.35 | Ktron | ah..... too bad |
21:15.16 | Codayus | Ktron: Yeah, slouken just said we could guess it for most items by adding 5 to the item req |
21:15.45 | Elviso | Ktron, have you seen the item formulas thread? |
21:15.53 | Codayus | Which is...true. Except the only reasons I suspect anyone would care involve lvl 60 req items, so that's completely pointless. |
21:16.23 | Maldivia | why do people keep claiming there's a buff limit of 16 buffs, when there clearly isn't |
21:16.32 | Codayus | They get confused easily? |
21:16.33 | Elviso | You can reliably predict the item level for most items, unless they give a set bonus or a proc. |
21:16.45 | Codayus | Or have a really weird bonus. |
21:16.45 | zenzelezz | Maldivia: "if you can't see it, it isn't there" |
21:16.54 | Elkano | well, but this doesn't hold for lvl 60 item or items from quests |
21:17.07 | Codayus | Or if there's an error in the formula, of course. |
21:17.16 | Elviso | what doesn't, Elkano? |
21:17.27 | Codayus | (In Bliz's application of the formula, I mean) |
21:17.36 | Elkano | I should be typing faster... was related to the +5 |
21:17.37 | Maldivia | zenzelezz: well, then they should go install an addon that supports showing more than 16 buffs :) |
21:17.43 | Codayus | Elkano: Exactly. |
21:17.46 | Elviso | the formula works on pretty much every piece of MC/BWL/AQ gear out there |
21:17.56 | Elviso | oh |
21:18.25 | Maldivia | what is this obsession about getting the item-level ? |
21:18.28 | Codayus | I wanted to make a mod that would compare ilvls to calculated ilvls using the reverse engineered formulas, and then add the info to the tooltip |
21:18.59 | Codayus | It'd be nifty for flagging items that were "off" from where they should be. But without access to the ilvl in lua, you can't do it. Oh well, just as well. |
21:20.40 | MentalPower | we're working on adding iLevel information to Informant |
21:21.06 | MentalPower | (informant is part of the Auctioneer AddOns family) |
21:22.08 | MentalPower | it takes care of showing static item information, like stack size, profession and quest use, vendor pricing and inventory icon |
21:22.16 | Codayus | Oh? Getting it from itemcaches? |
21:22.24 | MentalPower | yeppers |
21:22.25 | Maldivia | I just don't see what all the fus about iLevels are... if the stats on an items doesn't fit my play style, I dont care if it's 10 item levels higher than what I'm using... |
21:22.42 | MentalPower | iLevel is commonly used in DKP calculators |
21:23.44 | Codayus | Maldivia: Well, it can be interesting to find where Bliz messed up. :-) |
21:24.36 | Maldivia | Codayus: not really... |
21:24.46 | Codayus | No? I find it interesting. :-P |
21:24.48 | Maldivia | not to me anyway :) |
21:25.41 | Codayus | I'm kind of a math geek. I enjoy Theorycraft almost as much as I do playing the actual game. :-D |
21:26.20 | Maldivia | Because, Blizzard haven't "messed up", they control how they want the items to be, it might be too strong or too weak compared to other items of the same level, but frankly, if it's too weak, it'll just be sharded, and if it's too strong, well - then you'll have an item everyone wants |
21:27.04 | Codayus | Maldivia: Ah, no. |
21:27.14 | Codayus | They have...and when pointed out, they've fixed it in more than one case. |
21:27.50 | Codayus | Bliz uses a very static formula for assigning stats to items, but they don't always apply it correctly. When this is pointed out to them, they'll double check, and fix if appropriate. |
21:28.33 | krka | yay, huge performance boost |
21:28.39 | krka | append = add to table |
21:28.52 | MentalPower | krka: huh? |
21:28.57 | Maldivia | But still, it's their decission, they don't have to change stats on an item, just because there are whiners on forums |
21:29.05 | krka | got rid of a lot of .. and used a table instead |
21:29.07 | Iriel | I suspect much of the performance boost is that you're avoiding a lot of abuse of the string table |
21:29.26 | krka | yes, most likely |
21:29.36 | krka | btw, mostly a gc boost, not so much a speedup boost |
21:30.25 | Codayus | Maldivia: No. If they misitemized an item, it's a bug, same as any other, and Bliz will fix it...eventually. It's got nothing to do with "whiners". |
21:33.31 | Codayus | Drape of Benediction is one example - it dropped off Azuregos, but seemed horribly unerpowered. Crunch the math, and it was fine...for a blue. A purple with the stats of a blue is a bug, and it was fixed when pointed out. |
21:34.11 | Maldivia | Codayus: yes, but it could just aswell have been the iLevel on the item that was set too high... |
21:34.43 | Maldivia | Codayus: and don't say you haven't seen "horribly underpowered" items drop from raid bosses... |
21:34.47 | Codayus | Well, that would ALSO be a bug. :-) But the ilvl was in line with the other epics Azuregos dropped. |
21:34.54 | krka | oh crap, how do i fix this |
21:35.14 | Codayus | Maldivia: Ah, but looking at ilvls lets you know if it's underpowered because Bliz was on crack and handing out agility to priests again, or if its underpowered because its a bug. |
21:35.25 | Codayus | Which is why people want ilvl access in Lua. :-) |
21:36.15 | zeeg | <PROTECTED> |
21:36.17 | zeeg | from the US |
21:36.43 | Codayus | zeeg: Not recently, no. |
21:37.20 | zeeg | how long ago did you get yours? |
21:37.33 | Maldivia | Codayus: I know why people want the item-level accessable from lua, and I don't know why Blizzard hasn't removed the ilvl entry from the wdc files, since they on some level don't want us to know... |
21:37.50 | Codayus | Eh, couple of years |
21:37.56 | Codayus | I put mine through the washing machine. |
21:37.59 | zeeg | hrm |
21:38.02 | zeeg | how much did it cost? |
21:38.03 | Codayus | Had to get it replaced. |
21:38.08 | Codayus | I'll be honest - no idea. |
21:38.19 | Iriel | zeeg: That information's online |
21:38.45 | zeeg | i couldnt find it |
21:38.49 | Maldivia | http://travel.state.gov/passport/get/fees/fees_837.html |
21:38.51 | zeeg | all i ofund was $60 for expiditing |
21:38.54 | zeeg | ty |
21:39.00 | zeeg | Maldivia, where do you live at? |
21:39.06 | Maldivia | Denmark :) |
21:39.18 | Maldivia | google: us passport cost |
21:39.20 | Maldivia | first link :) |
21:39.44 | MentalPower | lol |
21:40.07 | *** join/#wowi-lounge jb55 (i=jb55@Toronto-HSE-ppp3692539.sympatico.ca) |
21:40.18 | Corrodias | "i live in googleton" |
21:40.41 | zeeg | how far is denmark from Germany |
21:40.42 | *** join/#wowi-lounge Kemayo_ (n=David@pool-71-103-166-178.lsanca.dsl-w.verizon.net) |
21:40.49 | zeeg | I'm going to be living there for a few months, would be cool to meet a few of you if you're close |
21:41.02 | zenzelezz | they share a border |
21:41.09 | zeeg | ah! |
21:41.10 | Maldivia | hehe, yeah :) |
21:41.12 | zeeg | you must come to germany! |
21:41.15 | Maldivia | zenzelezz: shh! |
21:41.17 | Maldivia | heh |
21:41.18 | zeeg | ill be in ummm |
21:41.21 | zeeg | heildesomething |
21:41.25 | Miravlix | But Germany is kinda big |
21:41.51 | krka | code = stringgsub(code, "([^|])|c%x%x%x%x%x%x%x%x", "%1") |
21:41.53 | krka | is this correct? |
21:41.58 | Miravlix | They could be living by Italiy and be half a contient away from Denmark |
21:42.00 | Maldivia | zeeg: Heidleberg ? |
21:42.01 | krka | if i want to keep || but strip |r |
21:42.03 | zeeg | ya |
21:42.03 | zeeg | that |
21:42.18 | krka | err, strip |c..... in this case |
21:42.27 | Maldivia | in Baden-Württemberg ? |
21:42.39 | Miravlix | krka: Depends are you trying to scan goatcx urls? |
21:43.06 | krka | no |
21:43.35 | zeeg | Maldivia, no clue, whats that |
21:43.36 | zeeg | lol |
21:44.02 | Elkano | hmm.. Heidelberg... not that far from me but still some way :/ |
21:44.02 | wereHamster | zeeg, come to switzerland, too, it's much nicer than germany :-P |
21:44.09 | Maldivia | zeeg: Heidelberg, as in the city between Frankfurt Am Main and Stuttgart? |
21:44.33 | Miravlix | why not |c%w+? |
21:44.49 | Elkano | wereHamster, first you took our gold and now you're trying to take our visitors? bad :( |
21:45.15 | krka | because it may match ||casdas which would be wrong |
21:45.52 | zeeg | lol |
21:45.55 | zeeg | Maldivia, no idea, probably |
21:45.59 | zeeg | its like 9miles from M something |
21:46.02 | zeeg | (where the airport is) |
21:46.07 | Maldivia | Mannheim? |
21:46.13 | Miravlix | Naah |
21:46.27 | Miravlix | The text is |c<stuff><text>|r |
21:46.49 | Miravlix | Detect both the beginning and end and strip out as needed |
21:47.34 | Miravlix | And %x%x make no sense |
21:47.39 | Miravlix | Just do %x# |
21:48.04 | Miravlix | %x8 |
21:48.06 | zeeg | ya that one |
21:48.33 | Elkano | @zeeg: Mannheim fits -> http://www.gesundheit-u-a.de/gif/karte%20deutschland.jpg |
21:48.40 | krka | didn't know you could do that |
21:48.41 | Iriel | %x8 isn't lua syntax |
21:48.50 | Iriel | that'll match a hex character followed by 8 |
21:49.09 | Elkano | (area 172) |
21:49.26 | Cide | you'd have to do %x{8} which lua doesn't support |
21:49.37 | Miravlix | I don't care if it's lua syntax it works for me. :) |
21:50.38 | krka | it works for you in lua? |
21:51.01 | Cide | it doesn't work in lua, no :) |
21:51.04 | Maldivia | And area 6+10 = Danish border :) |
21:51.31 | Maldivia | %x%x%x%x%x%x%x%x :) |
21:52.05 | krka | damn it... i have to count number of | |
21:52.14 | krka | ||| = 1 plain | and one special character | |
21:52.20 | Elkano | I'm living in 202 (west of Mannheim) |
21:52.25 | Maldivia | krka: just like \ :) |
21:52.36 | krka | yeah |
21:53.23 | krka | i'm getting too tired to write a color escaper |
21:54.04 | zeeg | Anyways Maldivia, how far is that from you |
21:54.06 | zeeg | you all |
21:54.08 | zeeg | should come visit me |
21:54.10 | zeeg | and we can sit down |
21:54.12 | zeeg | and talk about uhh |
21:54.14 | zeeg | crap |
21:54.14 | zeeg | ! |
21:56.49 | Maldivia | well, I live around 1000km from where you are going :) |
21:57.32 | zeeg | ouch |
21:58.42 | Maldivia | :) |
22:04.00 | krka | note to self: when "while true do", make sure you have some way of breaking the loop |
22:04.30 | Maldivia | krka: why... WoW is nice enough to kill it for you :) |
22:06.50 | wereHamster | Maldivia, no, WoW won't kill it |
22:08.13 | Kirkburn | It's such a pacifist |
22:08.43 | Maldivia | ahh yeah, it's endless recursive loops it kills :) |
22:09.09 | Kirkburn | Is that legal? |
22:09.20 | Miravlix | [|?%x?%x?%x?%x?%w+|?r?] |
22:09.51 | Corrodias | the WoW police will bust down your door, man |
22:10.10 | Iriel | Miravlix : That's not very useful either |
22:10.18 | Miravlix | Why not? |
22:10.19 | Iriel | Since [ ] is a character class |
22:10.33 | Iriel | It's the same as [|?%x%w+r] |
22:10.54 | Maldivia | it's the same as [%w+] aswell |
22:11.27 | Maldivia | it matches quite a lot of things :) |
22:12.55 | Miravlix | Oh yeah it only matches one char. |
22:14.36 | Miravlix | Have to do |c%x%x%x%x%w+|r and check ireturn value |
22:15.03 | krka | norganna, have to write a custom parser for it :( |
22:15.07 | krka | damn it, stupid xchat |
22:15.18 | krka | or maybe i hit tab there |
22:15.39 | Miravlix | Xchat autocompletes on <chars> comma |
22:16.12 | Miravlix | Hmm? |
22:16.36 | krka | yay, fixed it |
22:16.37 | Miravlix | Don't see why you need a custom parser. if it has |cXXXXXXX |
22:16.39 | krka | norganna, testing no again |
22:16.45 | krka | yeah, it autocompletes on comma |
22:16.52 | krka | except it doesn't show it until you hit enter |
22:17.00 | Miravlix | Yeah, |
22:17.07 | Miravlix | I changed mine ti k: |
22:17.13 | krka | time for me to sleep, someone else has to explain why that pattern won't work |
22:17.37 | Miravlix | I'm just about to strip out the colors in Flint and Tinder |
22:17.43 | krka | here's my code anyway: http://wow.pastebin.com/677738 |
22:17.52 | Maldivia | that's one of the first things I disabled in xchat... that and auto word replacement |
22:18.54 | krka | done! |
22:19.03 | Miravlix | Ugh, no I'm not, I need to deal with the pattern being localized |
22:19.18 | Miravlix | Can't do a double check to remove the color. |
22:19.20 | krka | think i will publish FAIAP tomorrow |
22:19.28 | krka | good night people |
22:20.00 | Miravlix | string = "Tools: (.+)", |
22:20.15 | Miravlix | Thats how I reconice tools. :) |
22:22.48 | Miravlix | I'm leaving requires, tools, reagents and description alone, because they aren't localized. |
22:27.01 | Maldivia | Miravlix: you using the strings defined in GlobalString.lua to catch them ? |
22:28.31 | Miravlix | Is globalstring.lua localized? |
22:28.35 | Maldivia | yes |
22:28.41 | Miravlix | And no, I'm not using it at all |
22:30.19 | jb55 | question, is any event fired when someone trys to invite you when you're already in a group? |
22:31.06 | Maldivia | dont think so |
22:31.09 | jb55 | :( |
22:31.29 | Iriel | Well, the someone gets an event |
22:31.30 | Iriel | you dont |
22:32.24 | jb55 | trying to find a way to detect whoever uses the party griefing exploit |
22:32.40 | Maldivia | party griefing exploit ? |
22:33.05 | jb55 | ./invite playername /kick playername |
22:33.07 | jb55 | in a macro |
22:33.16 | jb55 | kicks the person from the group they're in |
22:33.18 | *** part/#wowi-lounge wereHamster (n=tomc@gw.ptr-62-65-141-13.customer.ch.netstream.com) |
22:34.02 | Kirkburn | That's mean |
22:34.11 | Miravlix | But I'm definately going to use the 4 ones I've found so far in it |
22:34.14 | Kirkburn | also, odd |
22:34.24 | Miravlix | No need for my localizers to have more problems than needed |
22:34.27 | jb55 | guess it's some server-side bug? |
22:35.36 | *** join/#wowi-lounge MentalPower (n=chatzill@host-70-45-84-10.onelinkpr.net) |
22:35.51 | Kirkburn | Not sure how you could exploit it though |
22:36.01 | Kirkburn | Other than to be an ass |
22:36.21 | Corrodias | smirk |
22:36.24 | Maldivia | Kirkburn: if you're inviting a person that's already in another group, you kick that person from the group |
22:36.28 | Maldivia | apparently |
22:36.36 | Iriel | jb55 : has that been acknowledged by blizzard? |
22:36.37 | Corrodias | if you're in a raid... can you kick someone from your own group that way? |
22:36.56 | jb55 | dont think so |
22:36.58 | Corrodias | from your group and/or from another group in the raid? |
22:37.07 | jb55 | you have to be out of a group to do it to someone |
22:37.20 | jb55 | iriel: not sure |
22:38.22 | *** join/#wowi-lounge krka (i=krka@c80-216-103-22.cm-upc.chello.se) |
22:44.18 | MentalPower | wait a sec, am I extrapolating this right? if you're not grouped and you invite a grouped person, you remove that person from their group? |
22:44.38 | Corrodias | invite + kick at the same time, but i believe so |
22:45.18 | MentalPower | whatcha mean invite+kick? |
22:45.22 | Iriel | Anyone know what CreateFrame("Frame"):GetName() would return ? |
22:45.54 | Maldivia | it returns nil |
22:46.06 | Iriel | So I see |
22:46.09 | Iriel | Thanks |
22:46.49 | Corrodias | he said "/invite playername /kick playername, in a macro" |
22:48.25 | Maldivia | anyone confirmed it ? |
22:48.33 | Eraphine | I confirmed it |
22:48.48 | Eraphine | I'm having all my guildees make LeaveParty(); macros now |
22:49.08 | Eraphine | so that if we get griefed we can get back into the group asap |
22:50.44 | jb55 | yup |
22:54.48 | jb55 | you know it worked when it says: "You have invited playername to your group" and you dont have a party up |
22:56.11 | Eraphine | it can be used to grief rather easily for someone is not expecting it |
22:56.20 | Eraphine | if someone is an instance, you can kick them from their group |
22:56.23 | Eraphine | then they will get ported |
22:56.41 | Eraphine | it also bugs them so that they have to type /script LeaveParty(); before they can be reinvited |
22:56.54 | Eraphine | if you are unaware of how to do this, then you would get ported to your hearth |
22:57.52 | Corrodias | how devious! |
23:16.23 | Ktron | There's an 'item formulas thread'? |
23:17.54 | Codayus | http://forums.worldofwarcraft.com/thread.aspx?fn=wow-dungeons&t=143561&p=1&tmp=1#post143561 |
23:29.16 | Iriel | Whee, a moment of truth, can I create a FloatingChatFrame from scratch |
23:29.38 | Maldivia | Should I take bets ? |
23:34.25 | Iriel | Hm, I wouldn't |
23:37.24 | Maldivia | is that the sound of success or failure ? |
23:40.56 | Iriel | The test didn't quite work no |
23:41.33 | cladhaire | New screenshots up, putting out a new version later tonight |
23:41.33 | cladhaire | http://www.wowinterface.com/downloads/fileinfo.php?id=4673 |
23:42.02 | ckknight | how do I tell if "player" is mind controlled? |
23:42.42 | Maldivia | UnitCharmed("player") |
23:43.10 | Maldivia | UnitIsCharmed("player") |
23:43.11 | Maldivia | :) |
23:44.18 | ckknight | thanks |
23:47.40 | *** join/#wowi-lounge ScytheBlade1 (n=Death@about/pxe/ScytheBlade1) |
23:54.25 | ckknight | anyone know how to show the on-screen framerate thing? |
23:55.22 | Iriel | Ctrl-R |
23:55.52 | ckknight | thx |
23:57.10 | Iriel | Aha! It's not my fault it's not working |