Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom loading screen hints
#1
So I would like to add some hints to the hints section in the map loading screen and only make them show when a specific gametype is loaded. What file would I have to look into to get that done?
Thanks. Smile
Would like to make a donation? Click here
Reply

#2
There's a command that selects a random hint from a file, you could create a .csv file for each gametype and end them with the gametype name and then use:

( "hints_" + DvarString( "g_gametype" ) + ".csv" )

or something.

Looking for the command now, hang on

edit: forgot that I uninstalled blops and the tools, but the command is in the ui_mp\connect.menu
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
(03-07-2012, 15:58)iAegle Wrote: There's a command that selects a random hint from a file, you could create a .csv file for each gametype and end them with the gametype name and then use:

( "hints_" + DvarString( "g_gametype" ) + ".csv" )

or something.

Looking for the command now, hang on

edit: forgot that I uninstalled blops and the tools, but the command is in the ui_mp\connect.menu
All that I can see in connect.menu that could have something to do with it is this:
Code:
itemDef
        {
            rect            LOADBAR_X 140 LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            type            ITEM_TYPE_BUTTON
            dvar            "didyouknow"
            textalign         ITEM_ALIGN_LEFT
            textscale        TEXTSIZE_SMALL
            textfont        UI_FONT_SMALL
            forecolor        1 1 1 1
            backcolor        0 0 0 0
            textalignx         0
            textaligny         0  
            visible            1
            decoration
            autowrapped
            state
            {
                name "meet"
                rect LOADBAR_X (LOADBAR_Y+LOADBAR_HEIGHT+15) LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            }
        }
But I can't figure out where I can set the location of the file from that.
Would like to make a donation? Click here
Reply

#4
use my tutorial, editing didyouknowfile.csv
www.itsmods.com/forum/Thread-How-to-make-custom-didyouknow-messages.html
and add in menu file:
Code:
itemDef
        {
            rect            LOADBAR_X 140 LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            type            ITEM_TYPE_BUTTON
            dvar            "didyouknow"
            textalign         ITEM_ALIGN_LEFT
            textscale        TEXTSIZE_SMALL
            textfont        UI_FONT_SMALL
            forecolor        1 1 1 1
            backcolor        0 0 0 0
            textalignx         0
            textaligny         0  
            visible            dvarGet(g_gametype) !=  ur
            decoration
            autowrapped

            state
            {
                name "meet"
                rect LOADBAR_X (LOADBAR_Y+LOADBAR_HEIGHT+15) LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            }
        }
and
Code:
itemDef
        {
            rect            LOADBAR_X 140 LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            type            ITEM_TYPE_BUTTON
            TEXT           read thingy, i saw it
            textalign         ITEM_ALIGN_LEFT
            textscale        TEXTSIZE_SMALL
            textfont        UI_FONT_SMALL
            forecolor        1 1 1 1
            backcolor        0 0 0 0
            textalignx         0
            textaligny         0  
            visible            dvarGet(g_gametype) ==  ur
            decoration
            autowrapped

            state
            {
                name "meet"
                rect LOADBAR_X (LOADBAR_Y+LOADBAR_HEIGHT+15) LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            }
        }
replace "dvar" to text and read lines from csv
and replace vision
@iAegle i tried to edit hints_ thing, didnt worked
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#5
(03-07-2012, 17:17)Se7en Wrote: use my tutorial, editing didyouknowfile.csv
www.itsmods.com/forum/Thread-How-to-make-custom-didyouknow-messages.html
and add in menu file:
Code:
itemDef
        {
            rect            LOADBAR_X 140 LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            type            ITEM_TYPE_BUTTON
            dvar            "didyouknow"
            textalign         ITEM_ALIGN_LEFT
            textscale        TEXTSIZE_SMALL
            textfont        UI_FONT_SMALL
            forecolor        1 1 1 1
            backcolor        0 0 0 0
            textalignx         0
            textaligny         0  
            visible            dvarGet(g_gametype) !=  ur
            decoration
            autowrapped

            state
            {
                name "meet"
                rect LOADBAR_X (LOADBAR_Y+LOADBAR_HEIGHT+15) LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            }
        }
and
Code:
itemDef
        {
            rect            LOADBAR_X 140 LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            type            ITEM_TYPE_BUTTON
            TEXT           read thingy, i saw it
            textalign         ITEM_ALIGN_LEFT
            textscale        TEXTSIZE_SMALL
            textfont        UI_FONT_SMALL
            forecolor        1 1 1 1
            backcolor        0 0 0 0
            textalignx         0
            textaligny         0  
            visible            dvarGet(g_gametype) ==  ur
            decoration
            autowrapped

            state
            {
                name "meet"
                rect LOADBAR_X (LOADBAR_Y+LOADBAR_HEIGHT+15) LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            }
        }
replace "dvar" to text and read lines from csv
and replace vision
@iAegle i tried to edit hints_ thing, didnt worked
Thanks Se7en. Smile
I didn't know there was a tutorial for this, fail. Rolleyes
Would like to make a donation? Click here
Reply

#6
Alright, almost got it working.
The only thing I can't figure out is what you have to put after TEXT excactly.
Would like to make a donation? Click here
Reply

#7
This is what I have got so far..
Code:
itemDef
        {
            rect            LOADBAR_X 140 LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            type            ITEM_TYPE_BUTTON
            exp text          tableLookup( "mp/tips.csv",    0, 3, 1 );
            textalign         ITEM_ALIGN_LEFT
            textscale        TEXTSIZE_SMALL
            textfont        UI_FONT_SMALL
            forecolor        1 1 1 1
            backcolor        0 0 0 0
            textalignx         0
            textaligny         0  
            visible            when(dvar(g_gametype) ==  "aico")
            decoration
            autowrapped

            state
            {
                name "meet"
                rect LOADBAR_X (LOADBAR_Y+LOADBAR_HEIGHT+15) LOADBAR_W 60 HORIZONTAL_ALIGN_CENTER VERTICAL_ALIGN_BOTTOM
            }
        }
Would like to make a donation? Click here
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Black Ops 2 Custom background? jotape99 10 12,437 10-29-2013, 07:22
Last Post: xInfinity.
  Custom xanims DidUknowiPwn 8 7,075 08-28-2013, 08:17
Last Post: RaZ
  Help Make ac130 shoot custom bullets Ra3shed 0 2,728 07-23-2013, 13:02
Last Post: Ra3shed
  [Tutorial] Custom gametype HUD iAegle 17 15,343 07-14-2013, 01:16
Last Post: Nekochan
Video Custom Facepaints? Cuddlyedits 5 4,551 07-01-2013, 14:58
Last Post: iPaddie
  Help dedicated servers and custom dvars mattyman 0 2,515 06-22-2013, 07:33
Last Post: mattyman
Sad Help Minecraft-Mojang Loading Screen, Than Black Screen mans123 6 6,804 06-01-2013, 19:40
Last Post: Shreddie
Information [Tutorial] Adding DLC Maps as Custom Maps. Nekochan 151 156,032 05-25-2013, 01:05
Last Post: Nero Z zero
  QS Mod by GeKKo v 6.5 with Custom Maps GeKKoFL0X 35 30,662 05-21-2013, 19:30
Last Post: [HARD] Tony.
  [Request] custom gun mod ColorCorrects 2 3,169 05-18-2013, 22:19
Last Post: mitchhacker

Forum Jump:


Users browsing this thread:
2 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.