You are not logged in.

Applications: [GameMaster: OPEN] | [Volunteer Testers: OPEN]


This forum will be permanently shut down on Friday 13.07.2018
Please copy or save all important information from old forum before they will be deactivated
We have moved to new board. https://forum.runesofmagic.gameforge.com/Come join us.

1

Wednesday, June 13th 2012, 2:07am

Gridcliqueit

So, anyone have a solution to warlocks not getting recognized with gci?

suprra

Professional

Posts: 932

Location: New Zealand

Occupation: Mechanic

Mood: Cursing

  • Send private message

2

Thursday, June 14th 2012, 9:01am

Yes pleaseeeeeeeeeeeee, can anyone fix GCI?

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

3

Thursday, June 14th 2012, 6:35pm

Can't guarantee that this will work, but a quick perusal of the code suggests the following changes may work:

in GridCliqueIt_Variables.lua


- Find GridCliqueIt.ClassColors and add this to each section:
You'll likely need to add a comma at the end of the previous line to continue the list (the KNIGHT line)
The colors given aren't correct, just tossing in something to get it to work.
Edit:
Changed the colors to reflect the values camagic posted later in this thread.


in WoW section:

Source code

1
2
      ['PSYRON']      = { r = 0.00 , g = 1.00 , b = 0.50 }, -- Champion
      ['HARPSYN']     = { r = 0.49 , g = 0.99 , b = 0.00 }, -- Warlock



in RoM section:

Source code

1
2
      ['PSYRON'] = { r = 0.000 , g = 1.00 , b = 0.498 }, -- Champion
      ['HARPSYN'] = { r = 0.486 , g = 0.988 , b = 0.000 }, -- Warlock



in White section:

Source code

1
2
      ['PSYRON']      = { r = 1.000 , g = 1.000 , b = 1.000 }, -- Champion
      ['HARPSYN']     = { r = 1.000 , g = 1.000 , b = 1.000 }, -- Warlock



Now in GridCliqueIt_Bar.lua:


- Find if GridCliqueIt.GetSettingsValue("SortByClass") (it is near the top of the file, in the first function) and add the two new classes to the two weightList lists:
(I did not actually sort them in the two lists, just added them a the end/beginning)
First List:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
     weightList = {
        "AUGUR",
        "DRUID",
        "MAGE",
        "RANGER",
        "WARDEN",
        "THIEF",
        "WARRIOR",
        "KNIGHT",
        "PSYRON", -- Champion
        "HARPSYN", -- Warlock
     }

Second list:

Source code

1
2
3
4
5
6
7
8
9
10
11
12
     weightList = {
        "PSYRON",   -- Champion
        "HARPSYN",  -- Warlock
        "KNIGHT",
        "WARRIOR",
        "THIEF",
        "WARDEN",
        "RANGER",
        "MAGE",
        "DRUID",
        "AUGUR"
     }


Edit:
The code in GridCliqueIt_Bar.lua also needs the following modification (as mentioned by Kista below). Just below the two definitions of the weightList lists above, find the line for i = 1,8 do and modify it to this:

Source code

1
    for i = 1, #weightList do

This modifications will make any future changes also work.


That will hopefully make things work. Don't have time to go over the code more at the moment, off to work and all....
2013... The year from hell....

4

Thursday, June 14th 2012, 11:34pm

Awesome, did a quick test with a warlock. Color is meh (kinda rusty red/orange), but otherwise it works. Will do a full test later when more of those pesky little dwarfs are running around.

suprra

Professional

Posts: 932

Location: New Zealand

Occupation: Mechanic

Mood: Cursing

  • Send private message

5

Friday, June 15th 2012, 12:43am

Thank you Peryl!!! You are a legend :)

edit: I added these same changes to Ikarus and appears at this point it's ok but I need to test further before I confirm aok :)

erinprice69

Jean-Claude Van Damme's next wife

Posts: 117

Location: in your pants

Occupation: student *studying Computer Science*

Mood: Cursing

  • Send private message

6

Saturday, June 16th 2012, 5:37am

Well i used this and it does work. but when I messed around with the colors it broke all my other addons.. if that's even possible D:

I'm still working on a few things to try and fix it

Edit: Yah for the love of god don't mess with the color's unless you know what your doing xD I spent an hr fixing my other addons :/
Faspee PewPewKittens
Reason #2934 why I shouldn't be on IRC:
( @Heron ) Bugreport: NPC saito doesn't give kittens - cannot continue questline


suprra

Professional

Posts: 932

Location: New Zealand

Occupation: Mechanic

Mood: Cursing

  • Send private message

7

Saturday, June 16th 2012, 6:11am

I found the colour thing is R G B but you must take the original rgb numbers then divide by 255 to get the correct number, then you should be able to slip it into the code fine.

erinprice69

Jean-Claude Van Damme's next wife

Posts: 117

Location: in your pants

Occupation: student *studying Computer Science*

Mood: Cursing

  • Send private message

8

Saturday, June 16th 2012, 6:20am

oh thank you. I'm going to see if it works. and hopefully not break all my addons again x_x

EDIT: For those that don't want to fiddle with all that and doing colors I did it ^^ click http://tinyurl.com/gcifix :D (ty Peryl and suprra for the help)
Faspee PewPewKittens
Reason #2934 why I shouldn't be on IRC:
( @Heron ) Bugreport: NPC saito doesn't give kittens - cannot continue questline


Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

9

Saturday, June 16th 2012, 4:01pm

Glad you got it working, though I'm unsure as to why you had so much trouble editing the colors. Just needed to change the numbers for the red, green and blue components. They range from 0 to 1 (0,0,0 being black, 1,1,1 being white). Hence suprra's suggestion of dividing each 0-255 RGB component by 255 will give you the correct values to use here.

On a slightly related note, The class name tokens returned by UnitClassToken may in fact be reversed. I based my modifications on the values mentioned in this post, but the Warlock is the one with psionic powers which would seem to indicate that it should be the one called PSYRON. I'm also basing this on a post I saw about the class icons being reversed (can't find the post here or on the EU forums so can't link to it). With the number of problems present with the new class/races (see here and here), it wouldn't surprise me if this was the case. Anyway, just a heads up on this.
2013... The year from hell....

10

Saturday, June 16th 2012, 10:50pm

There's also some counter in there of 8 which had to be changed to 10. One of my guildees was running into that problem cause he uses descending order (or something like that).

erinprice69

Jean-Claude Van Damme's next wife

Posts: 117

Location: in your pants

Occupation: student *studying Computer Science*

Mood: Cursing

  • Send private message

11

Saturday, June 16th 2012, 11:17pm

I know nothing off addons so i didn't know about the dividing thing.
Faspee PewPewKittens
Reason #2934 why I shouldn't be on IRC:
( @Heron ) Bugreport: NPC saito doesn't give kittens - cannot continue questline


12

Sunday, June 17th 2012, 12:47am

Quoted from "erinprice69;538556"

oh thank you. I'm going to see if it works. and hopefully not break all my addons again x_x

EDIT: For those that don't want to fiddle with all that and doing colors I did it ^^ click http://tinyurl.com/gcifix :D (ty Peryl and suprra for the help)


Thanks for this. I tried editing it myself and busted GCI so this should solve my problem. :)

erinprice69

Jean-Claude Van Damme's next wife

Posts: 117

Location: in your pants

Occupation: student *studying Computer Science*

Mood: Cursing

  • Send private message

13

Sunday, June 17th 2012, 2:23am

lawl yah i tried to edit myself the first time and man i broke all my addons and had to uninstall and resintall xD
Faspee PewPewKittens
Reason #2934 why I shouldn't be on IRC:
( @Heron ) Bugreport: NPC saito doesn't give kittens - cannot continue questline


Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

14

Sunday, June 17th 2012, 6:50am

Quoted from "Kista;538684"

There's also some counter in there of 8 which had to be changed to 10. One of my guildees was running into that problem cause he uses descending order (or something like that).

Good to know. Could you post the details of this change?

I suspect it is part of a for loop in which case I have to call it bad code (or at least, a hack implementation). Would be better to either iterate over the size of the list or loop across the size of the list.

Basically, if the original code looked like this:

Source code

1
    for i = 1, 8 do

then to loop over the size of the list you could change it to:

Source code

1
    for i = 1, #weightList do

The #weightList bit retrieves the size of the array weightList (if it was a different list, then use that list's name instead).

The advantage of doing it like this is that the code will always be correct regardless of the size of the list. So future edits will still work.
2013... The year from hell....

15

Sunday, June 17th 2012, 10:38am

I would but I didn't do the actual change in mine, he did. I'll see if I can get more detailed info on this. Personally, I don't used the ascending/descending parts, so didn't notice the problem.

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

16

Monday, June 18th 2012, 3:09am

I found and added the required change Kista mentioned to my original post about the needed modifications.
2013... The year from hell....

camagic

Professional

Posts: 849

Location: noobville

Occupation: expert noob

  • Send private message

17

Monday, June 18th 2012, 3:27pm

If anyone wants to change the colors, here is a link that gives the codes: http://www.tayloredmktg.com/rgb/
just use the RGB code coloumn for the numbers, and divide it by 255.

I am using Spring Green, 0-255-127 under the RGB code, for champion and Lawn Green, 124-252-0, for warlock.
So fromn post #3 of this thread then GridCliqueIt_Variables.lua changes for "wow" be:

['PSYRON'] = { r = 0.00 , g = 1.00 , b = 0.50 }, -- Champion
['HARPSYN'] = { r = 0.49 , g = 0.99 , b = 0.00 }, -- Warlock

and "rom" will be:

['PSYRON'] = { r = 0.000 , g = 1.00 , b = 0.498 }, -- Champion
['HARPSYN'] = { r = 0.486 , g = 0.988 , b = 0.000 }, -- Warlock
95wd/95s/65d
server artemis
Please do not "class balanace" the tactics I use.

Posts: 37

Location: Yes

Occupation: O-kay!

  • Send private message

18

Tuesday, June 19th 2012, 7:17am

Quoted from "erinprice69;538556"

For those that don't want to fiddle with all that and doing colors I did it ^^ click http://tinyurl.com/gcifix :D (ty Peryl and suprra for the help)


I downloaded this file, but I have no idea what to do with it. At first, I placed it inside rom's addons folder, which (having the same name) prompted me to replace my gridcliqueit (and I agreed to it). That didn't work. I redownloaded gridcliqueit and now i have this http://tinyurl.com/gcifix inside rom's addons folder next to gridcliqueit folder. That didn't worked either. Where do i put the file?

19

Tuesday, June 19th 2012, 3:30pm

Yes would you please let us not so savvy computer people where that file goes? rofl I would hate to mess with the codes in my gci. <3 i would appreciate it more than you know!

Peryl

Intermediate

Posts: 313

Location: Elsewhere

  • Send private message

20

Tuesday, June 19th 2012, 8:41pm

@shanshunaruto and kittygw

The file erinprice69 is providing is a pre-modified version of GridCliqueIt though it doesn't include the last change I did (see edit in the post I show all the changes). Anyway, to use it, decompress the .rar file into the addons folder, this will overwrite any current version you have! So backup your current GCI first (see below)

As to messing with the code in your current version of GCI, well all you have to do is again, backup your current GCI. Do this by merely copying the GridCliqueIt folder somewhere else.

Edit:
Forgot to mention, you can use WinRar or 7Zip to decompress the file (I recommend 7Zip as it is free).
2013... The year from hell....