This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [QUESTION] [WotLk] Loading Screen Tips - editable?  (Read 1826 times)

Scytheria23

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
    • View Profile
[QUESTION] [WotLk] Loading Screen Tips - editable?
« on: April 14, 2016, 01:59:48 pm »
Hi Folks,

Has anyone had any luck editing the loading screen tips?  I can change their content via the gametips dbc, and alter their colour with cff codes, but I cannot seem to find any frame or glue info regarding their font, on-screen position and size.  Ideally, I want to locate them centrally, make them larger and use a different font.

Any ideas?

Thanks
Scy
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #1 on: April 14, 2016, 03:25:24 pm »
That's all hard coded.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Kobiesan

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 161
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #2 on: April 15, 2016, 02:51:55 am »
Quote from: "schlumpf"
That's all hard coded.

What else is hard coded?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Scytheria23

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #3 on: April 15, 2016, 07:32:31 am »
That's a good question, Kobiesan.  

I'm slightly suspicious that Schlumf may be wrong about this one.  It seems odd to hard code something that would require localization (for example, in the Chinese client the loading tips are - of course - in Chinese, and in a substantially larger font).  There is, however, no difference between the US and CN client (at least, the wow.exe).  This seems to indicate that the font information for these tips is elsewhere.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #4 on: April 15, 2016, 09:00:18 am »
Some chinese (and other) files seem to be in all clienths though. For instance logo of game. One can find chinese one even in enGB client. So, Wizzard Entertainment may have actually hardcoded things like this.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #5 on: April 15, 2016, 03:38:08 pm »
Lizzard Entertainment is doing quietly black magic about this but i would recomend you to not underestimate schlumpfs opinion - he is always right :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #6 on: April 16, 2016, 01:14:43 pm »
Code: [Select]
void LoadingScreenEnable(int mapId, bool loadingWorld)
{
  if ( s_loadingScreenEnableCount++ <= 0 )
  {
    ObjectAllocFreeEmptyPages(0);

    if ( CGGameUI::AreScriptFunctionsLoaded() )
    {
      FrameScript_SignalEvent(0x338u, 0LL);
    }

    s_customLoadScreenSpellID = -1;
    s_customLoadingScreensID = 0;
    s_customLoadingScreenPathID = 0;
    s_customLoadingScreenLegIndex = 0;
    s_drawingCustomLoadingScreenBackground = 0;
    s_drawingCustomLoadingScreenSpline = 0;

    UserClientLoadingScreenNotify packet;
    packet.mapID = mapId;
    packet.showing = 1;
    ClientServices::Send(&packet);

    CGGameUI::SetAspect();

    if ( s_gameTip && *s_gameTip )
    {
      if ( !s_textFont )
      {
        char fontName[260]; // Locale.db2
        GetLocaleDefaultFont(GetCurrentWowLocale(), fontName, sizeof (fontName));
        s_textFont = TextBlockGenerateFont(fontName, NDCToDDCHeight(0.017999999), 1u);
      }

      float aspect_compensation = CoordinateGetAspectCompensation();
      float v18 = 0.50292969 / aspect_compensation;
      C3Vector position
        ( 0.5 - v18 * 0.5
        , aspect_compensation < 1.0  : 0.1 ? ((1.0 - aspect_compensation) * 0.5 + 0.1);
        , 1.0
        );

      trim_trailing_newlines (s_gameTip);

      GxuFontCreateString(
        TextBlockGetFontPtr(s_textFont),
        s_gameTip,
        0.017999999,
        &v22,
        v18,
        1.0,
        0.0049999999,
        &s_tipStr,
        (EGxFontVJusts)2,
        0,
        0,
        0xD7C8C8C8,
        0.0,
        1.0,
        1.0,
        0.0);

      GxuFontAddShadow(s_tipStr, COLOR_BLACK, {0.001, -0.001});

      if ( !s_batch )
      {
        s_batch = GxuFontCreateBatch();
      }
      GxuFontAddToBatch(s_batch, s_tipStr);
    }

    s_simpleMapID = mapId;
    InitializeProgressBar(loadingWorld);
  }
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #7 on: April 16, 2016, 01:51:34 pm »
So Core handle it ? i thought its all in exe
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #8 on: April 16, 2016, 03:14:14 pm »
Quote from: "Alastor"
So Core handle it ? i thought its all in exe
???

That's client code.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Scytheria23

  • Registred Member
  • LUA Script Tinker
  • *****
  • Posts: 49
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #9 on: April 16, 2016, 11:29:52 pm »
Thanks, Schlumpf.  I didn't doubt you.  Well, I did, but only in the sense that I couldn't understand why this would be buried in the client.

Time to start hacking...
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Alastor

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1105
    • View Profile
Re: [QUESTION] [WotLk] Loading Screen Tips - editable?
« Reply #10 on: April 17, 2016, 01:53:43 am »
wuh .. how did you digged it out ?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
No matter how fast light travels it finds the darkness has always got there first and is waiting for it
Star Citizen Referral Code : STAR-XNFS-HVL9