View Single Post
  #6  
Old 05-30-2015, 02:03 PM
Cloyd Cloyd is offline
Approved Member
 
Join Date: Oct 2007
Posts: 61
Default

OK, here's what I've learned, mostly from trial and error. I've also benefited from others' expertise about custom icons and IL2 scripting.

For me at least, when I create a new pilot, the ICONS file is not automatically generated in the USERS folder. If I open the console, there is a "file not found" error message, the game is looking for the ICONS file for that pilot. Entering mp_dotrange into the console shows that the icon settings are at the default values. If I enter mp_dotrange FRIENDLY DOT 14.0 (the default value) an ICONS file is generated for that pilot, with all the default values. (For some reason, if I enter the default values for one of the new parameters, like ALTCOLOR, no ICONS file is generated.)

I'm not sure when this TD feature was implemented, your ICON settings are saved. So you can edit and save your ICONS file for each pilot, and those values will be loaded when you start the game and select that pilot.

You can find info about using and adjusting the new TD parameters here: http://forum.1cpublishing.eu/showthr...highlight=icon

You can automate the loading of different ICON sets.

Here's my rcu:

@set fast off
@set echo on
@set alias on
@set history 20

@alias a alias
@a h history
@a s show

@a st f script/fpsStarT.il2script
@a sp f script/fpsStoP.il2script

@a i f script/custom_icons.il2script

Entering i in the console runs a script that loads the icon values that are in a "script" folder I created in the main IL2 directory. Here are the contents of my custom_icons.il2script file (it's just a text file):

mp_dotrange FRIENDLY DOT 25.0 COLOR 6.0 RANGE 3.0 TYPE 3.0 ID 3.0 NAME 0.0050 ALTICON 15.0 ALTSYMBOL + ALTCOLOR 1
mp_dotrange FOE DOT 25.0 COLOR 6.0 RANGE 3.0 TYPE 3.0 ID 0.0050 NAME 0.0050 ALTICON 15.0 ALTSYMBOL + ALTCOLOR 2

I only use one icon set, but you can create several different custom icon sets and load them through the console.

I know nothing about IL2 scripting. Everything I know about it, I "stole" from Grille_Chompa, who obviously did know how it works. Here's the very old file from him that shows how to automate the loading of different icon sets:

http://www.mediafire.com/download/au...Iconscript.zip

Last edited by Cloyd; 05-30-2015 at 06:53 PM.
Reply With Quote