1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Server Console Appearance

Discussion in 'Modding [KAG Classic]' started by jackitch, Jan 7, 2013.

  1. jackitch

    jackitch :(){ :|: & };: Global Moderator Donator Tester
    1. SharSharShar - [SHARK]

    Messages:
    249
    Afaik no one's bothered to put this up, so here we go!...

    I hate not being able to see what's going on while using the server console (rcon). Therefore, I played around with my rcon console settings to get it the way I like it.

    The file you will need to edit is found in Base/Scripts/autoconfig.gm

    You will need to edit items from line 20 up to line 65.

    Here is the code that you'll want to edit, with my personal changes added (I've bolded the variables that you might want to edit)
    global n_graph = 1; // Shows the network activity graph.
    global n_log = 0; // Saves the session network data to a file.
    global n_filechunk = 8192; // Max amount of file sent every packet (in bytes). (I haven't bothered with the next few things since they didn't really add anything for me, if they had a noticeable effect for you post so we can all know what they do)
    global v_bpp = 32; // Requires v_restart to take effect.
    global v_driver = 5; // Rendering driver (0 - null, 1 - software, 2 - software+, 5 - ogl).
    global v_vsync = 0; // Vertical synchronization of video with monitor.
    global v_showfps = 1; // Show the current FPS on screen.
    global v_showminimap = 1; // Show minimap or not. Might solve performance issues. (as it says, might solve performance issues. if you have an old pc, consider setting this off [0])
    global g_playerlistkey = 9; // The key used for showing the players list. [TAB]
    global g_screenshotkey = 115; // The key used for taking screenshots. [F4]
    global g_reportbugkey = 116; // The key used for sending screen bug reports. [F5]
    global g_tutorialkey = 112; // The key used for showing help. [F1]
    global v_postprocess = 0; // Use fullscreen post processing effects.
    global v_fastrender = 0; // Degrades visual quality for speed
    global v_smoothsprites = 0; // Uses a filter to smoothen sprite pixels
    global v_smoothmap = 0; // Uses a filter to smoothen map pixels
    global v_screenshotquality = 99; // screenshotquality 92
    global v_drawhud = 1; // v_drawhud 1 (don't make this = 0, you'll think you broke KAG)
    global g_smallhud = 0; // Uses smaller HUD scaling.
    global g_fixedcamera = 1; // Uses a fixed camera on player. Disabling this makes the camera Soldat-like.
    global c_dimension_x = 0.6; // Width of console in percents of screen.
    global c_dimension_y = 0.3; // Height of console in percents of screen. (this gets overwritten to 0.9 once you hit [ENTER], but it's still worth keeping at a smaller value if all you do is read rcon and use the admin menu for kicks / bans. It is a bit annoying though.)
    global c_bgshow = 1; // Draws background of console. (you might like this set = 0 if you don't want a background [for a similar effect you could set global c_bgcolor_a = 0, but I prefer to set this one = 0])
    global c_fontfile = `GUI/Fonts/commodore.png`; // Sets the font file of the console. (unless you have built a completely custom png font file, I wouldn't bother changing this)
    global c_bgcolor_a = 160; // (for the colors, just use a paint application to figure out the argb values you might like, my suggestion is to use a dark gray for the background with transparency and a opaque text color that will be easily visible over the sky [light blue] and caves / darkness [black])
    global c_bgcolor_r = 40; //
    global c_bgcolor_g = 40; //
    global c_bgcolor_b = 40; //
    global c_fontcolor_a = 255; //
    global c_fontcolor_r = 255; //
    global c_fontcolor_g = 255; //
    global c_fontcolor_b = 235; //
    global c_linespacing = 1;
    // Space between lines in console.
    global c_indent = 1; // Left indentation of messages in console.
    global c_key = 36; // The key for opening and closing the console. [HOME]
    global c_prompt = ``; // Sets the command prompt text. (pointless, but you can edit it anyway. basically it's text that's displayed next to the > in the console)
    global c_history_size = 20; // Number of console commands stored in history.
    global c_halign = 1; // Horizontal alignment of console 0-left, 1-center, 2-right.
    global c_valign = 1; // Vertical alignment of console 0-top, 1-middle, 2-bottom.
    global cc_linespacing = 1; // Space between lines in console. (from now on these are chat console [cc] commands)
    global cc_indent = 8; // Left indentation of messages in console.
    global cc_key = 84; // The key for opening and closing the chat. [T]
    global cc_key_team = 89; // The key for opening and closing the chat in team mode. [Y]
    global cc_history_size = 25; // Number of console commands stored in history.
    global cc_valign = 0; // Vertical alignment of console 0-top, 1-middle, 2-bottom.
    global cc_killfeed = 1; // Show kill feed in chat console? (this spams up the chat quite a bit, but it can be useful, especially for recording clan matches)

    Here are some text colors that I like the best. They are in argb order (alpha, red, green, blue).

    White: 255 255 255 255 or (off-white) 255 255 255 235
    white.png
    Red: 255 200 40 0 or 255 255 0 0
    red.png
    Yellow: 255 210 220 0 or 255 255 255 0
    yellow.png
    Green: 255 50 180 0 or 255 0 255 0
    green.png
    Blue: 255 0 0 255
    blue.png
    Pink: 255 230 0 200
    pink.png
     
    Calindrus, Guitarman, Beepo and 16 others like this.
  2. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,112
    Good job, I think it is worth a sticky.
     
  3. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,578
    Thanks!
     
  4. AdrianC

    AdrianC Bison Rider Tester

    Messages:
    119
    Very nice tutorial, but I think you made a little mistake here:
    It's autoconfig.gm ;)
     
    Froghead48 likes this.
  5. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    Very nice jack :D
     
  6. Guitarman

    Guitarman Haxor Tester Official Server Admin

    Messages:
    691
    I tried to open the autoconfig.gm file, but a pop-up alert said a have no applications to open it with. Any suggestions on how to open it?
    I'm running a Macbook btw
     
    delankski likes this.
  7. AdrianC

    AdrianC Bison Rider Tester

    Messages:
    119
    You can open it with any text editor.
     
  8. Guitarman

    Guitarman Haxor Tester Official Server Admin

    Messages:
    691
    For some reason it didn't select TextEdit automatically so I had to do it manually :eek:
     
  9. restbench

    restbench Alpha Recruiter Donator

    Messages:
    32
    i like this only one way to make it better tho. make it multicoloured
     
  10. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    It is multicoloured....
     
  11. Guitarman

    Guitarman Haxor Tester Official Server Admin

    Messages:
    691
    I think he means each line of code have a different color.:p
     
  12. Froghead48

    Froghead48 Haxor

    Messages:
    699
    Wow, this is pretty cool. i'm wondering why i haven't stumbled across this before :huh?:

    Time to find a cool color now! thanks jack.
     
  13. restbench

    restbench Alpha Recruiter Donator

    Messages:
    32
    thats what i ment
     
  14. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    Different types of lines are different colours...
     
  15. Guitarman

    Guitarman Haxor Tester Official Server Admin

    Messages:
    691
    Thats true, but I think he means is he wants alternating colors for each line, as in no matter what the code is for it needs to alternate.
    It is kind of hard to explain with out an illustration :huh?:
     
  16. lavalord

    lavalord Haxor Staff Alumni Donator Tester

    Messages:
    672
    Why would you want alternating colour for each line, that would make it harder to read, defeating the purpose of this
     
    Froghead48 likes this.
  17. Guitarman

    Guitarman Haxor Tester Official Server Admin

    Messages:
    691
    That is a very good question:huh?:
     
    Froghead48 likes this.
  18. vampo

    vampo alchemist Donator Tester

    Messages:
    265
    one more correction
    global cc_valign = 0; // Vertical alignment of chat console 0-top, 1-middle, 2-bottom.
    also thanks a lot for this.
     
  19. jackitch

    jackitch :(){ :|: & };: Global Moderator Donator Tester
    1. SharSharShar - [SHARK]

    Messages:
    249
    Yeah I just used the default comments. Anything with a cc in the name refers to the chat console.
     
    jeffeypop likes this.
  20. SMASH1413

    SMASH1413 Horde Gibber

    Messages:
    225
    So can I just paste the lines into the correct area then?