|
You last visited: Today at 15:00
Advertisement
[TuT Source] Name Color
Discussion on [TuT Source] Name Color within the Flyff Private Server forum part of the Flyff category.
05/19/2011, 18:27
|
#16
|
elite*gold: 0
Join Date: Aug 2010
Posts: 501
Received Thanks: 178
|
hey super tut echt gut,
ich hab aber ein problem. selbst wenn ich mit dem Programm den farbcode eingebe egal ob Groß oder Klein geschrieben, ingame wird es transparent oder leicht transparten angezeigt -.- >> auch wenn ich die vorhandene farbe von GM nehme "0xff2D7CAE" und das bei "#define COLOR_ADMINISTRATOR 0xff2D7CAE" eingebe ist diese farbe nur leicht transparent >_< kaum sichtbar..
hoffentlich könnt ihr mir helfen
|
|
|
05/29/2011, 03:04
|
#17
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 5
|
Wenn ich versuche die Neuz zu Kompilieren komm dieser Fehler:
c:\Users\Le\Desktop\Flyff Pserver\Source\Official Source\_Interface\WndWorld.cpp(2864): fatal error C1022: #endif erwartet
|
|
|
05/29/2011, 03:28
|
#18
|
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
|
Quote:
Originally Posted by DarkAttemption
Wenn ich versuche die Neuz zu Kompilieren komm dieser Fehler:
c:\Users\Le\Desktop\Flyff Pserver\Source\Official Source\_Interface\WndWorld.cpp(2864): fatal error C1022: #endif erwartet
|
fehlermeldung lesen und verstehen.
er erwartet ein #endif, sprich das ein If BEENDED wird.
vermutlich hast du nach dem eigentlichen endif noch etwas stehen, sodass er fehler hat...
|
|
|
05/29/2011, 08:59
|
#19
|
elite*gold: 0
Join Date: Nov 2010
Posts: 33
Received Thanks: 5
|
#if __VER >= 11 // __CSC_VER11_1
// Áß¾Ó Á¤·Ä
int n = 0;
int ntextlen = strlen(szText);
if(ntextlen <= 16)
n = (16 - ntextlen) * 3;
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_PLAYER );
#else //__CSC_VER11_1
p2DRender->TextOut( point.x + 50, point.y - 18, szText, COLOR_PLAYER );
if( g_pPlayer->IsAuthHigher( AUTH_ADMINISTRATOR ) )
{
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN );
}
#else //__CSC_VER11_1
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_PLAYER );
if( g_pPlayer->IsAuthHigher( AUTH_ADMINISTRATOR ) )
{
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN );
}
Das ist die Funktion für die farbigen Namen und das ist Zeile 2864, wo das #endif hin soll, was ich aber auch schon versucht habe. Alles was dabei dann passiert, ist einen neuen Fehler auszugeben:
Quote:
|
c:\Users\Le\Desktop\Flyff Pserver\Source\Official Source\_Interface\WndWorld.cpp(2864): fatal error C1022: unerwartetes #endif
|
Könnte mir vielleicht jemand die richtige Funktion posten?
|
|
|
05/29/2011, 16:06
|
#20
|
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
|
also, lösch mal bei dir alles von
Code:
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_PLAYER );
bis
Code:
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN );
}
Dann setzt du an die stelle diesen code:
Code:
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_PLAYER );
if( g_pPlayer->IsAuthHigher( AUTH_ADMINISTRATOR ) )
{
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN );
}
#else //__CSC_VER11_1
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_PLAYER );
if( g_pPlayer->IsAuthHigher( AUTH_ADMINISTRATOR ) )
{
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN );
}
der sollte afaik gehen
|
|
|
06/06/2011, 15:07
|
#21
|
elite*gold: 0
Join Date: Jan 2009
Posts: 73
Received Thanks: 6
|
7 Tage zum letzten Beitrag
Also ich habe das selbe Problem wie damir123. Das ganze wird nur ganz leicht transparent angezeigt. Woran kann das liegen, falscher Farbcode ? Bei Hex wird die Transparenz doch in dem Farbcode in sich angegeben, wenn ich mich nicht täusche sind die letzten 2 Zeichen die Transparenz oder wie war das ?  kann da wer helfen ?
Edit: Nach ein bisschen googlen hab ich mir das Bestätigt das bei Hex Codes die letzten 2 Zeichen für die Transparenz stehen. Habe die Transparenz als FF (keine Transparenz) angegeben. Habe es dann sogar nochmal klein gemacht aber auch da keine Änderung, immer noch kaum sichtbar.
Suche noch nach der Lösung.
|
|
|
06/06/2011, 20:25
|
#22
|
elite*gold: 0
Join Date: Aug 2010
Posts: 501
Received Thanks: 178
|
ich habs gefixxt bekommen ^^ ich hab damals nur die World neu gebuildet, das musste man aber mit der Neuz auch machen sonst gehts nicht. Hoffe bei dir ist es auch so ^^
|
|
|
09/23/2011, 11:10
|
#23
|
elite*gold: 0
Join Date: Mar 2010
Posts: 1,489
Received Thanks: 701
|
Danke 
Klappt wunderbar
Kann man noch irgendwie [Admin] nach dem Nmaen schreiben lassen ?
(Ohne Titel)
Also AlienForce[Admin]
|
|
|
11/30/2011, 16:51
|
#24
|
elite*gold: 0
Join Date: Oct 2011
Posts: 139
Received Thanks: 2
|
bekomme errors Program\_Interface\WndWorld.cpp(2901) : error C2065: 'COLOR_ADMIN' : undeclared identifier wo muss ich das deklinieren?
PHP Code:
p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_PLAYER ); if( g_pPlayer->IsAuthHigher( AUTH_ADMINISTRATOR ) ) { p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN ); } #else //__CSC_VER11_1 p2DRender->TextOut( point.x + 50, point.y - 18, szText, COLOR_PLAYER ); if( g_pPlayer->IsAuthHigher( AUTH_ADMINISTRATOR ) ) { p2DRender->TextOut( point.x + 50 + n, point.y - 18, szText, COLOR_ADMIN ); } #endif //__CSC_VER11_1
so sieht es bei mir aus
|
|
|
11/30/2011, 20:15
|
#25
|
elite*gold: 2
Join Date: Jul 2009
Posts: 1,447
Received Thanks: 923
|
"#define COLOR_ADMIN DEINE FARBE"
Beispiel:
"#define COLOR_ADMIN 0xFFFFFF"
|
|
|
11/30/2011, 20:19
|
#26
|
elite*gold: 0
Join Date: Oct 2011
Posts: 139
Received Thanks: 2
|
geht ;D
|
|
|
11/30/2011, 21:25
|
#27
|
elite*gold: 0
Join Date: Mar 2010
Posts: 62
Received Thanks: 37
|
@TheDextros
für das tag suchst du nach dem hier in der MoverRender.cpp
CString strFameName = GetTitle();
if( strFameName.IsEmpty() == FALSE )
{
CString strName;
strName = "[";
strName += strFameName;
strName += "] ";
strName += m_szName;
strcpy( szName, (LPCTSTR)strName );
}
und fügst zB das hier drunter ein
if(m_dwAuthorization >= AUTH_GAMEMASTER)
{
CString strName;
strName = szName;
if(m_dwAuthorization >= AUTH_ADMINISTRATOR)
{
strName += " [Admin]";
}
else
{
strName += " [GM]";
}
strcpy( szName, (LPCTSTR)strName );
}
|
|
|
12/01/2011, 14:29
|
#28
|
elite*gold: 4
Join Date: Mar 2010
Posts: 3,148
Received Thanks: 1,535
|
Quote:
Originally Posted by Sabage
@TheDextros
für das tag suchst du nach dem hier in der MoverRender.cpp
CString strFameName = GetTitle();
if( strFameName.IsEmpty() == FALSE )
{
CString strName;
strName = "[";
strName += strFameName;
strName += "] ";
strName += m_szName;
strcpy( szName, (LPCTSTR)strName );
}
und fügst zB das hier drunter ein
if(m_dwAuthorization >= AUTH_GAMEMASTER)
{
CString strName;
strName = szName;
if(m_dwAuthorization >= AUTH_ADMINISTRATOR)
{
strName += " [Admin]";
}
else
{
strName += " [GM]";
}
strcpy( szName, (LPCTSTR)strName );
}
|
ich denke mal das er es schon, da er im september gefragt hat, mittlerweile weiß
|
|
|
Similar Threads
|
Horse Color (This Program Tells You Your Horse's EXACT Color Values)
10/21/2009 - CO2 Exploits, Hacks & Tools - 35 Replies
CURRENTLY: WORKING (Patch 5157)
Alright guys, finally got around to updating and fixing this program... the way it works now is, just run the program, equip the horse you want to look at, and it'll show you it's Color Stats... in future versions I will be making it so u can equip one horse, then another, and it'll tell you what each horse's value is AND what would be the result if u combined them... and maybe even a little further into the future I will release a program that'll allow you to...
|
WoW Color Hack (Use color-codes in text)
09/23/2007 - WoW Exploits, Hacks, Tools & Macros - 31 Replies
WoWColorHack.flt
-=Preamble=-
I'm quite surprised that no one has released
anything similar yet - the theory behind
this dates back to the alpha days. Hell,
I first used this filter on my own alpha
sandbox.
-=Theory=-
|
All times are GMT +1. The time now is 15:04.
|
|