Snippet String2PlayerColoredString

Azlier

Old World Ghost
Reaction score
461
The player array is only used once on Init, since updates have been made. Which means that it should be removed.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok then...

Update:
JASS:
library PlayerColors initializer Init


///////////////////////////////////////////////////////////////////////////////////////////////////
//                                 *//PlayerColoredString\\*                                     //
//                                 *//Made by , Komaqtion\\*                                      //
//                                                                                               //
//                                                                                               //
//                                        Purpose:                                               //
//                                                                                               //
//             ¤ This snippet is supposed to help people to, with ease, convert                  //
//               a string to use a desired player's own color!                                   //
//                                                                                               //
//                                         Usage:                                                //
//                                                                                               //
//             ¤ To use this snippet, simply type "call PlayerColoredString(playerid, string)"   //
//               where "string" is the string you want to colorize, and "playerid"               //
//               is the player number of the player, whose color you wan to use.                 //
//               Note: This uses JASS' player number range, meaning that                         //
//               Player 1(Red)'s number is 0, and Player 2(Blue)'s number is 1,                  //
//               and so on...                                                                    //
//               You can also get only the players color-string for own usage...                 //
//               This is accomplished by using the function "GetPlayerColorString"               //
//               which takes the player to get the string, or you can also use                   //
//               the GetPlayerColorStringById function, which takes the player's                 //
//               Id, or number instead <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin    :D" loading="lazy" data-shortname=":D" />                                                        //
//                                                                                               //                                                                                //
//                                    Requirements:                                              //
//                                                                                               //
//             ¤ This snippet&#039;s only requirement is vJASS compilement, which is                  //
//               easiest achieved by downloading JASS Newgen Pack, at                            //
//               <a href="http://www.thehelper.net/forums/showthread.php?t=73936" class="link link--internal">http://www.thehelper.net/forums/showthread.php?t=73936</a>                          //
//               You&#039;ll also have to update JASS Helper to the latest version...                 //
//                                                                                               //
//                                                                                               //
//                                        Credits:                                               //
//                                                                                               //
//             ¤ Azlier, for helpong me out alot with several bugfixes and tweaking !            //
//               Jesus4Lyf, for also helping me out alot ! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin    :D" loading="lazy" data-shortname=":D" />                                    //
//                                                                                               //
//               And credits, if you use this that is, is not needed to give me                  //
//               though it&#039;s always welcome <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink    ;)" loading="lazy" data-shortname=";)" />                                                   //
//                                                                                               //
///////////////////////////////////////////////////////////////////////////////////////////////////


    globals
        private string array PlayerColor
        private string array PlayerColorString
        
        private constant string EndString = &quot;|r&quot;
    endglobals
    
    function PlayerColoredString takes integer playerId, string s returns string
        return PlayerColor[playerId] + s + EndString
    endfunction
    
    function GetPlayerColorString takes player p returns string
        return PlayerColor[GetPlayerId(p)]
    endfunction
    
    function GetPlayerColorStringById takes integer playerId returns string
        return PlayerColor[playerId]
    endfunction
    
    private function OnColorChange takes player whichplayer, playercolor color returns nothing
        set PlayerColor[GetPlayerId(whichplayer)] = PlayerColorString[GetHandleId(color)]
    endfunction
    
    hook SetPlayerColor OnColorChange
    
    private function Init takes nothing returns nothing
        local integer i = 15
    
        set PlayerColorString[0] = &quot;|c00ff0202&quot;
        set PlayerColorString[1] = &quot;|c000041ff&quot;
        set PlayerColorString[2] = &quot;|c001be5b8&quot;
        set PlayerColorString[3] = &quot;|c00530080&quot;
        set PlayerColorString[4] = &quot;|c00fffc00&quot;
        set PlayerColorString[5] = &quot;|c00fe890d&quot;
        set PlayerColorString[6] = &quot;|c001fbf00&quot;
        set PlayerColorString[7] = &quot;|c00e45aaf&quot;
        set PlayerColorString[8] = &quot;|c00949596&quot;
        set PlayerColorString[9] = &quot;|c007dbef1&quot;
        set PlayerColorString[10] = &quot;|c000f6145&quot;
        set PlayerColorString[11] = &quot;|c004d2903&quot;
    
        loop
            exitwhen i &lt; 0
            set PlayerColor<i> = PlayerColorString[GetHandleId(GetPlayerColor(Player(i)))]
            set i = i - 1
        endloop
        
    endfunction
    
endlibrary</i>
 

Komaqtion

You can change this now in User CP.
Reaction score
469
BumP... I really want to extend this with even more features !
So, please come with suggestions, and I'll try to make them as good as I can ! :D:D

(Even if this is going to be graveyard'ed, I really want to test my skills with this ! ;))
 

quraji

zap
Reaction score
144
BumP... I really want to extend this with even more features !
So, please come with suggestions, and I'll try to make them as good as I can ! :D:D

(Even if this is going to be graveyard'ed, I really want to test my skills with this ! ;))

How many features could this possibly have? How about related functions?
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Could have a tint text tag with player colour function? :)

(Off memory text tags can be tinted with integers.)

Hmm... Can't say I quite get what you're saying there... :S
You mean that like takes x , y, player, string and returns texttag ? :S

How many features could this possibly have? How about related functions?

Well, what related functions would you wish to see here ? :eek:
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok, well the "text tag colour native thing" looks like this:
JASS:
native SetTextTagColor takes texttag t, integer red, integer green, integer blue, integer alpha returns nothing


So, how would I go about using "|c00ff0202" kind of colors, to using integer red,green,blue stuff ? :S

Or, should I do this you mean ? :
JASS:
    function PlayerColoredTextTag takes texttag tag, integer playerId, string s returns nothing
        call SetTextTagText( tag, PlayerColor[playerId] + s + EndString, 10. )
    endfunction
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Oh, ok...
I've never worked with that kind of color code before...
Though I've seen it be used, and I know that ARGB uses it :D

Though, how am I supposed to split my colors into those ? :S

Could I do something like this ? :S

JASS:
    function PlayerColoredTextTag takes integer playerId, integer alpha, texttag tag returns nothing
        call SetTextTagColor( tag, 0x SubString( PlayerColor[playerId], 5, 6 ), 0x SubString( PlayerColor[playerId], 7, 8 ), 0x SubString( PlayerColor[playerId], 9, 10 ), alpha )
    endfunction


Though, that gives me a syntax error :(
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok, are you sure it won't work the same way ? :S
(I don't have WE here, as I'm at school atm... So can't test it :()
 

Azlier

Old World Ghost
Reaction score
461
You should keep separate red, green, and blue integer arrays for each player. It is the most efficient method.

Like so:
JASS:
//...
set PlayerColorString[0] = &quot;|c00ff0202&quot;
set Red[0] = 0xff
set Green[0] = 0x02
set Blue[0] = 0x02
//...
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Ok, looks like this now:
JASS:
    private function Init takes nothing returns nothing
        local integer i = 11
    
        set PlayerColorString[0] = &quot;|c00ff0202&quot;
        set Red[0] = 0xff
        set Green[0] = 0x02
        set Blue[0] = 0x02
        set PlayerColorString[1] = &quot;|c000041ff&quot;
        set Red[0] = 0x00
        set Green[0] = 0x41
        set Blue[0] = 0xff
        set PlayerColorString[2] = &quot;|c001be5b8&quot;
        set Red[0] = 0x1b
        set Green[0] = 0xe5
        set Blue[0] = 0xb8
        set PlayerColorString[3] = &quot;|c00530080&quot;
        set Red[0] = 0x53
        set Green[0] = 0x00
        set Blue[0] = 0x80
        set PlayerColorString[4] = &quot;|c00fffc00&quot;
        set Red[0] = 0xff
        set Green[0] = 0xfc
        set Blue[0] = 0x00
        set PlayerColorString[5] = &quot;|c00fe890d&quot;
        set Red[0] = 0xfe
        set Green[0] = 0x89
        set Blue[0] = 0x0d
        set PlayerColorString[6] = &quot;|c001fbf00&quot;
        set Red[0] = 0x1f
        set Green[0] = 0xbf
        set Blue[0] = 0x00
        set PlayerColorString[7] = &quot;|c00e45aaf&quot;
        set Red[0] = 0xe4
        set Green[0] = 0x5a
        set Blue[0] = 0xaf
        set PlayerColorString[8] = &quot;|c00949596&quot;
        set Red[0] = 0x94
        set Green[0] = 0x95
        set Blue[0] = 0x96
        set PlayerColorString[9] = &quot;|c007dbef1&quot;
        set Red[0] = 0x7d
        set Green[0] = 0xbe
        set Blue[0] = 0xf1
        set PlayerColorString[10] = &quot;|c000f6145&quot;
        set Red[0] = 0x0f
        set Green[0] = 0x61
        set Blue[0] = 0x45
        set PlayerColorString[11] = &quot;|c004d2903&quot;
        set Red[0] = 0x4d
        set Green[0] = 0x29
        set Blue[0] = 0x03
    
        loop
            exitwhen i &lt; 0
            set PlayerColor<i> = PlayerColorString[GetHandleId(GetPlayerColor(Player(i)))]
            set i = i - 1
        endloop
        
    endfunction</i>


Though won't I somehow have to change those, the way I change the PlayerColor variable ? :S
 

Azlier

Old World Ghost
Reaction score
461
You have to treat them like the PlayerColor variable, yes.

It should also be noted that you're OVERWRITING THE 0 INDEX EVERY TIME.

This texttag business also brings up a question: do [lJASS]SetTextTagColor[/lJASS] and color codes mix? Does one overwrite the other? Huh.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
Yeah, that could be a good thing to test XD

And I did that now, but I used this (Which is supposed to set it's color to red, I hope) but it turned brown :(

Trigger:
  • Init
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set TempPoint = (Center of Region 1 &lt;gen&gt;)
      • Floating Text - Create floating text that reads Region 1! at TempPoint with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Custom script: call RemoveLocation(udg_TempPoint)
      • Set TempPoint = (Center of Region 2 &lt;gen&gt;)
      • Floating Text - Create floating text that reads Region 2! at TempPoint with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • Custom script: call PlayerColoredTextTag( 100, 0, GetLastCreatedTextTag())
      • Custom script: call RemoveLocation(udg_TempPoint)


JASS:
library PlayerColors initializer Init


///////////////////////////////////////////////////////////////////////////////////////////////////
//                                 *//PlayerColoredString\\*                                     //
//                                 *//Made by , Komaqtion\\*                                      //
//                                                                                               //
//                                                                                               //
//                                        Purpose:                                               //
//                                                                                               //
//             ¤ This snippet is supposed to help people to, with ease, convert                  //
//               a string to use a desired player&#039;s own color!                                   //
//                                                                                               //
//                                         Usage:                                                //
//                                                                                               //
//             ¤ To use this snippet, simply type &quot;call PlayerColoredString(playerid, string)&quot;   //
//               where &quot;string&quot; is the string you want to colorize, and &quot;playerid&quot;               //
//               is the player number of the player, whose color you wan to use.                 //
//               Note: This uses JASS&#039; player number range, meaning that                         //
//               Player 1(Red)&#039;s number is 0, and Player 2(Blue)&#039;s number is 1,                  //
//               and so on...                                                                    //
//               You can also get only the players color-string for own usage...                 //
//               This is accomplished by using the function &quot;GetPlayerColorString&quot;               //
//               which takes the player to get the string, or you can also use                   //
//               the GetPlayerColorStringById function, which takes the player&#039;s                 //
//               Id, or number instead <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin    :D" loading="lazy" data-shortname=":D" />                                                        //
//                                                                                               //
//                                    Requirements:                                              //
//                                                                                               //
//             ¤ This snippet&#039;s only requirement is vJASS compilement, which is                  //
//               easiest achieved by downloading JASS Newgen Pack, at                            //
//               <a href="http://www.thehelper.net/forums/showthread.php?t=73936" class="link link--internal">http://www.thehelper.net/forums/showthread.php?t=73936</a>                          //
//               You&#039;ll also have to update JASS Helper to the latest version...                 //
//                                                                                               //
//                                                                                               //
//                                        Credits:                                               //
//                                                                                               //
//             ¤ Azlier, for helpong me out alot with several bugfixes and tweaking !            //
//               Jesus4Lyf, for also helping me out alot ! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin    :D" loading="lazy" data-shortname=":D" />                                    //
//                                                                                               //
//               And credits, if you use this that is, is not needed to give me                  //
//               though it&#039;s always welcome <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink    ;)" loading="lazy" data-shortname=";)" />                                                   //
//                                                                                               //
///////////////////////////////////////////////////////////////////////////////////////////////////


    globals
        private string array PlayerColor
        private string array PlayerColorString
        private integer array Red
        private integer array Green
        private integer array Blue
        
        private constant string EndString = &quot;|r&quot;
    endglobals
    
    function PlayerColoredString takes integer playerId, string s returns string
        return PlayerColor[playerId] + s + EndString
    endfunction
    
    function PlayerColoredTextTag takes integer alpha, integer playerId, texttag tag returns nothing
        call SetTextTagColor( tag, Red[playerId], Green[playerId], Blue[playerId], alpha )
    endfunction
    
    function GetPlayerColorString takes player p returns string
        return PlayerColor[GetPlayerId(p)]
    endfunction
    
    function GetPlayerColorStringById takes integer playerId returns string
        return PlayerColor[playerId]
    endfunction
    
    private function OnColorChange takes player whichplayer, playercolor color returns nothing
        set PlayerColor[GetPlayerId(whichplayer)] = PlayerColorString[GetHandleId(color)]
    endfunction
    
    hook SetPlayerColor OnColorChange
    
    private function Init takes nothing returns nothing
        local integer i = 11
    
        set PlayerColorString[0] = &quot;|c00ff0202&quot;
        set Red[0] = 0xff
        set Green[0] = 0x02
        set Blue[0] = 0x02
        set PlayerColorString[1] = &quot;|c000041ff&quot;
        set Red[0] = 0x00
        set Green[0] = 0x41
        set Blue[0] = 0xff
        set PlayerColorString[2] = &quot;|c001be5b8&quot;
        set Red[0] = 0x1b
        set Green[0] = 0xe5
        set Blue[0] = 0xb8
        set PlayerColorString[3] = &quot;|c00530080&quot;
        set Red[0] = 0x53
        set Green[0] = 0x00
        set Blue[0] = 0x80
        set PlayerColorString[4] = &quot;|c00fffc00&quot;
        set Red[0] = 0xff
        set Green[0] = 0xfc
        set Blue[0] = 0x00
        set PlayerColorString[5] = &quot;|c00fe890d&quot;
        set Red[0] = 0xfe
        set Green[0] = 0x89
        set Blue[0] = 0x0d
        set PlayerColorString[6] = &quot;|c001fbf00&quot;
        set Red[0] = 0x1f
        set Green[0] = 0xbf
        set Blue[0] = 0x00
        set PlayerColorString[7] = &quot;|c00e45aaf&quot;
        set Red[0] = 0xe4
        set Green[0] = 0x5a
        set Blue[0] = 0xaf
        set PlayerColorString[8] = &quot;|c00949596&quot;
        set Red[0] = 0x94
        set Green[0] = 0x95
        set Blue[0] = 0x96
        set PlayerColorString[9] = &quot;|c007dbef1&quot;
        set Red[0] = 0x7d
        set Green[0] = 0xbe
        set Blue[0] = 0xf1
        set PlayerColorString[10] = &quot;|c000f6145&quot;
        set Red[0] = 0x0f
        set Green[0] = 0x61
        set Blue[0] = 0x45
        set PlayerColorString[11] = &quot;|c004d2903&quot;
        set Red[0] = 0x4d
        set Green[0] = 0x29
        set Blue[0] = 0x03
    
        loop
            exitwhen i &lt; 0
            set PlayerColor<i> = PlayerColorString[GetHandleId(GetPlayerColor(Player(i)))]
            set i = i - 1
        endloop
        
    endfunction
    
endlibrary</i>


Btw... What are the colorcodes for Neutral Hostile/Passive (And maybe Victim and Extra) ?
 

Azlier

Old World Ghost
Reaction score
461
Read my second to last post again.

[ljass]function PlayerColoredTextTag takes integer alpha, integer playerId, texttag tag returns nothing[/ljass] should take a player, no? A ById function should to take an integer.
 

Komaqtion

You can change this now in User CP.
Reaction score
469
JASS:
library PlayerColors initializer Init


///////////////////////////////////////////////////////////////////////////////////////////////////
//                                 *//PlayerColoredString\\*                                     //
//                                 *//Made by , Komaqtion\\*                                      //
//                                                                                               //
//                                                                                               //
//                                        Purpose:                                               //
//                                                                                               //
//             ¤ This snippet is supposed to help people to, with ease, convert                  //
//               a string to use a desired player&#039;s own color!                                   //
//                                                                                               //
//                                         Usage:                                                //
//                                                                                               //
//             ¤ To use this snippet, simply type &quot;call PlayerColoredString(playerid, string)&quot;   //
//               where &quot;string&quot; is the string you want to colorize, and &quot;playerid&quot;               //
//               is the player number of the player, whose color you wan to use.                 //
//               Note: This uses JASS&#039; player number range, meaning that                         //
//               Player 1(Red)&#039;s number is 0, and Player 2(Blue)&#039;s number is 1,                  //
//               and so on...                                                                    //
//               You can also get only the players color-string for own usage...                 //
//               This is accomplished by using the function &quot;GetPlayerColorString&quot;               //
//               which takes the player to get the string, or you can also use                   //
//               the GetPlayerColorStringById function, which takes the player&#039;s                 //
//               Id, or number instead <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin    :D" loading="lazy" data-shortname=":D" />                                                        //
//                                                                                               //
//                                    Requirements:                                              //
//                                                                                               //
//             ¤ This snippet&#039;s only requirement is vJASS compilement, which is                  //
//               easiest achieved by downloading JASS Newgen Pack, at                            //
//               <a href="http://www.thehelper.net/forums/showthread.php?t=73936" class="link link--internal">http://www.thehelper.net/forums/showthread.php?t=73936</a>                          //
//               You&#039;ll also have to update JASS Helper to the latest version...                 //
//                                                                                               //
//                                                                                               //
//                                        Credits:                                               //
//                                                                                               //
//             ¤ Azlier, for helpong me out alot with several bugfixes and tweaking !            //
//               Jesus4Lyf, for also helping me out alot ! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin    :D" loading="lazy" data-shortname=":D" />                                    //
//                                                                                               //
//               And credits, if you use this that is, is not needed to give me                  //
//               though it&#039;s always welcome <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink    ;)" loading="lazy" data-shortname=";)" />                                                   //
//                                                                                               //
///////////////////////////////////////////////////////////////////////////////////////////////////


    globals
        private string array PlayerColor
        private string array PlayerColorString
        private integer array Red
        private integer array Green
        private integer array Blue
        
        private constant string EndString = &quot;|r&quot;
    endglobals
    
    function PlayerColoredString takes integer playerId, string s returns string
        return PlayerColor[playerId] + s + EndString
    endfunction
    
    function PlayerColoredTextTag takes integer alpha, player p, texttag tag returns nothing
        call SetTextTagColor( tag, Red[GetPlayerId(p)], Green[GetPlayerId(p)], Blue[GetPlayerId(p)], alpha )
    endfunction
    
    function PlayerColoredTextTagById takes integer alpha, integer playerId, texttag tag returns nothing
        call SetTextTagColor( tag, Red[playerId], Green[playerId], Blue[playerId], alpha )
    endfunction
    
    function GetPlayerColorString takes player p returns string
        return PlayerColor[GetPlayerId(p)]
    endfunction
    
    function GetPlayerColorStringById takes integer playerId returns string
        return PlayerColor[playerId]
    endfunction
    
    private function OnColorChange takes player whichplayer, playercolor color returns nothing
        set PlayerColor[GetPlayerId(whichplayer)] = PlayerColorString[GetHandleId(color)]
    endfunction
    
    hook SetPlayerColor OnColorChange
    
    private function Init takes nothing returns nothing
        local integer i = 11
    
        set PlayerColorString[0] = &quot;|c00ff0202&quot;
        set Red[0] = 0xff
        set Green[0] = 0x02
        set Blue[0] = 0x02
        set PlayerColorString[1] = &quot;|c000041ff&quot;
        set Red[0] = 0x00
        set Green[0] = 0x41
        set Blue[0] = 0xff
        set PlayerColorString[2] = &quot;|c001be5b8&quot;
        set Red[0] = 0x1b
        set Green[0] = 0xe5
        set Blue[0] = 0xb8
        set PlayerColorString[3] = &quot;|c00530080&quot;
        set Red[0] = 0x53
        set Green[0] = 0x00
        set Blue[0] = 0x80
        set PlayerColorString[4] = &quot;|c00fffc00&quot;
        set Red[0] = 0xff
        set Green[0] = 0xfc
        set Blue[0] = 0x00
        set PlayerColorString[5] = &quot;|c00fe890d&quot;
        set Red[0] = 0xfe
        set Green[0] = 0x89
        set Blue[0] = 0x0d
        set PlayerColorString[6] = &quot;|c001fbf00&quot;
        set Red[0] = 0x1f
        set Green[0] = 0xbf
        set Blue[0] = 0x00
        set PlayerColorString[7] = &quot;|c00e45aaf&quot;
        set Red[0] = 0xe4
        set Green[0] = 0x5a
        set Blue[0] = 0xaf
        set PlayerColorString[8] = &quot;|c00949596&quot;
        set Red[0] = 0x94
        set Green[0] = 0x95
        set Blue[0] = 0x96
        set PlayerColorString[9] = &quot;|c007dbef1&quot;
        set Red[0] = 0x7d
        set Green[0] = 0xbe
        set Blue[0] = 0xf1
        set PlayerColorString[10] = &quot;|c000f6145&quot;
        set Red[0] = 0x0f
        set Green[0] = 0x61
        set Blue[0] = 0x45
        set PlayerColorString[11] = &quot;|c004d2903&quot;
        set Red[0] = 0x4d
        set Green[0] = 0x29
        set Blue[0] = 0x03
    
        loop
            exitwhen i &lt; 0
            set PlayerColor<i> = PlayerColorString[GetHandleId(GetPlayerColor(Player(i)))]
            set i = i - 1
        endloop
        
    endfunction
    
endlibrary</i>


Happy ? :p:p
(Just kidding, thanks ! :D)

And I don't really understand what you mean with that post :S
What index am I overwriting ? :S
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I am great and it is fantastic to see you my friend!
    +1
  • The Helper The Helper:
    If you are new to the site please check out the Recipe and Food Forum https://www.thehelper.net/forums/recipes-and-food.220/
  • Monovertex Monovertex:
    How come you're so into recipes lately? Never saw this much interest in this topic in the old days of TH.net
  • Monovertex Monovertex:
    Hmm, how do I change my signature?
  • tom_mai78101 tom_mai78101:
    Signatures can be edit in your account profile. As for the old stuffs, I'm thinking it's because Blizzard is now under Microsoft, and because of Microsoft Xbox going the way it is, it's dreadful.
  • The Helper The Helper:
    I am not big on the recipes I am just promoting them - I use the site as a practice place promoting stuff
    +2
  • Monovertex Monovertex:
    @tom_mai78101 I must be blind. If I go on my profile I don't see any area to edit the signature; If I go to account details (settings) I don't see any signature area either.
  • The Helper The Helper:
    You can get there if you click the bell icon (alerts) and choose preferences from the bottom, signature will be in the menu on the left there https://www.thehelper.net/account/preferences
  • The Helper The Helper:
    I think I need to split the Sci/Tech news forum into 2 one for Science and one for Tech but I am hating all the moving of posts I would have to do
  • The Helper The Helper:
    What is up Old Mountain Shadow?
  • The Helper The Helper:
    Happy Thursday!
    +1
  • Varine Varine:
    Crazy how much 3d printing has come in the last few years. Sad that it's not as easily modifiable though
  • Varine Varine:
    I bought an Ender 3 during the pandemic and tinkered with it all the time. Just bought a Sovol, not as easy. I'm trying to make it use a different nozzle because I have a fuck ton of Volcanos, and they use what is basically a modified volcano that is just a smidge longer, and almost every part on this thing needs to be redone to make it work
  • Varine Varine:
    Luckily I have a 3d printer for that, I guess. But it's ridiculous. The regular volcanos are 21mm, these Sovol versions are about 23.5mm
  • Varine Varine:
    So, 2.5mm longer. But the thing that measures the bed is about 1.5mm above the nozzle, so if I swap it with a volcano then I'm 1mm behind it. So cool, new bracket to swap that, but THEN the fan shroud to direct air at the part is ALSO going to be .5mm to low, and so I need to redo that, but by doing that it is a little bit off where it should be blowing and it's throwing it at the heating block instead of the part, and fuck man
  • Varine Varine:
    I didn't realize they designed this entire thing to NOT be modded. I would have just got a fucking Bambu if I knew that, the whole point was I could fuck with this. And no one else makes shit for Sovol so I have to go through them, and they have... interesting pricing models. So I have a new extruder altogether that I'm taking apart and going to just design a whole new one to use my nozzles. Dumb design.
  • Varine Varine:
    Can't just buy a new heatblock, you need to get a whole hotend - so block, heater cartridge, thermistor, heatbreak, and nozzle. And they put this fucking paste in there so I can't take the thermistor or cartridge out with any ease, that's 30 dollars. Or you can get the whole extrudor with the direct driver AND that heatblock for like 50, but you still can't get any of it to come apart
  • Varine Varine:
    Partsbuilt has individual parts I found but they're expensive. I think I can get bits swapped around and make this work with generic shit though
  • Ghan Ghan:
    Heard Houston got hit pretty bad by storms last night. Hope all is well with TH.
  • The Helper The Helper:
    Power back on finally - all is good here no damage
    +2
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    New recipe is another summer dessert Berry and Peach Cheesecake - https://www.thehelper.net/threads/recipe-berry-and-peach-cheesecake.194169/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top