[PROGRAM] Logitech G15 LCD Stats Applet V1.40 : Update 16/11/2006
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
I'm not sure how to use the custom menu. Could you upload an example script with custom content? (plugin.logitechg15.removecustom.xml and plugin.logitechg15.setcustom.xml)
E.g pure text or game info, anything just to give me a hint on what to edit.
E.g pure text or game info, anything just to give me a hint on what to edit.
Give a man a fish and he'll eat for a day, teach a man how to fish and he'll eat yours.
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
the custom menu just displays a string of text to the 4th menu in the stats display.
if u want an example, u could get my shield battery and nanobots scripts, which uses a custom display
heres bacially the scirpt that displays them
you assasin your custom display a unique identifier, this is jsut a string, that allows you to add or remove the display.
so if u set the message again, it will replace it rather than creating a new one.
Expire time is how long u want it to display before automatically removing, 0 keeps it forever until u remove it manually.
there are also the programming popup display, which is abit more complex
if u want an example, u could get my shield battery and nanobots scripts, which uses a custom display
heres bacially the scirpt that displays them
Code: Select all
001 $shield = [PLAYERSHIP] -> get local variable: name='plugin.shieldnano.shields'
002 $nano = [PLAYERSHIP] -> get local variable: name='plugin.shieldnano.nanobots'
003
004 if ! $shield OR ! $nano
005 @ = [THIS] -> call script 'plugin.logitechg15.removecustom' : Identifier='shieldnano'
006 else
007 $stats = sprintf: pageid=7553 textid=3, $nano, $shield, null, null, null
008 @ = [THIS] -> call script 'plugin.logitechg15.setcustom' : Identifier='shieldnano' string=$stats Expire Time=0
009 end
010 return null
so if u set the message again, it will replace it rather than creating a new one.
Expire time is how long u want it to display before automatically removing, 0 keeps it forever until u remove it manually.
there are also the programming popup display, which is abit more complex
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
well, what kind of display are you trying to get.
the only command u really need to use, is the call script 'plugin.logitechg14.setcustom'
then what ever u put in the string argument will be displayed on the lcd.
to edit the script, u'll have to use the built in script editor.
if u tell me what ur trying to do, then i can give u more help on creating it
the only command u really need to use, is the call script 'plugin.logitechg14.setcustom'
then what ever u put in the string argument will be displayed on the lcd.
to edit the script, u'll have to use the built in script editor.
if u tell me what ur trying to do, then i can give u more help on creating it
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
I was not thinking about anything in particular, I just wanted to put something in there. Maybe the missile stats? Pure text of missile stats like the one from rogueys site (I couldnt connect to it now). I noticed the menus were scrollable (like the rank stats), so maybe it could be done?
Give a man a fish and he'll eat for a day, teach a man how to fish and he'll eat yours.
-
- Posts: 1
- Joined: Mon, 7. Aug 06, 12:54
hello everyone and particulary the designer of this great mod.
great mod that i can't seem to get to work.
first it is to be known that i followed exactly the instructions given.
but i'm new to x3 script so i might have forgotten something obvious.
the error I get is that the plugion work on the lcd but doesn't seem to find the game when launched.
thanks for the help.
finally found out that the plugin menu only pop after typing Thereshallbewings... sorry
great mod that i can't seem to get to work.
first it is to be known that i followed exactly the instructions given.
but i'm new to x3 script so i might have forgotten something obvious.
the error I get is that the plugion work on the lcd but doesn't seem to find the game when launched.
thanks for the help.
finally found out that the plugin menu only pop after typing Thereshallbewings... sorry
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
well the whole point about that custom menu is so other scripters can get access and display stats from thier scripts.Cith wrote:I was not thinking about anything in particular, I just wanted to put something in there. Maybe the missile stats? Pure text of missile stats like the one from rogueys site (I couldnt connect to it now). I noticed the menus were scrollable (like the rank stats), so maybe it could be done?
i will be adding some more of my scripts to use it as well, and its upto other scripters to make use of it if they want.
but basically, there are 5 lines of text on each page for the custom display, so 5 scripts can display stuff on a single page. It does support multple pages so the number of scripts using it can theorectically be infinite.
all the text in the custom window is scrollable, and will scroll automatically if its too big to fit all on.
Desdichado, i assume u've fixed it now ? All custom scripts require the script editor to be enabled in game before they work
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
Thats pretty neat, so you can add your own scripts to that display?
How do I proceed if I want to display the missile stats then, in pure text?
These: http://roguey.ueuo.com/gaming/pc/x3/help/missiles.php
How do I proceed if I want to display the missile stats then, in pure text?
These: http://roguey.ueuo.com/gaming/pc/x3/help/missiles.php
Give a man a fish and he'll eat for a day, teach a man how to fish and he'll eat yours.
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
if u jsut want a simple string of text, u could type it in a text file then use the entry from the text file to display it
the textfile is the number of the file name u added the text to, this will load the text file into memory.
the $page.id and $id are where you put them in the text file itself.
for information on creating a text file, u could look at my help pages, http://x3.ircwhore.co.uk/help
theres a guide about creating text files on there
Code: Select all
load text: id = textfile
$text = read text: page id = $page.id, id = $id
= call script 'plugin.logitechg15.setcustom', identifier = 'missilestats', string = $text, Expire Time = 0
the $page.id and $id are where you put them in the text file itself.
for information on creating a text file, u could look at my help pages, http://x3.ircwhore.co.uk/help
theres a guide about creating text files on there
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<language id="44">
<page id="9047" title="missilestats">
<t id="1">
[Sting IR 257m/s 155s 200m 4,000dmg 3,368cr]
[Needle IR 174m/s 153s 200m 7,540dmg 6,740cr]
[Thorn IR 159m/s 112s 400m 15,000dmg 13.5Kcr]
[Mosquito IR 602m/s 25s 0m 200dmg 168cr]
[Wasp IR, Swarm 463m/s 32 s 2m 1,000dmg 1,348cr]
[Dragonfly Dumbfire 458m/s 33s 2 m 9,900dmg 1,012cr]
[Silkworm IR 167m/s 150s 20m 24,000dmg 5,052cr]
[Firefly Dumbfire 461m/s 43s 4m 1,500dmg 224cr]
[Hornet IR 149m/s 168s 100m 49,000dmg 10.1K]
[Disruptor IR 515m/s 78s 1m 10,000dmg 3,368cr]
[Tempest Auto IR 156m/s 320s 20m 60,000dmg 13.5Kcr]
[Thunderbolt Heat-Seeking 156m/s 640s 20m 75,000dmg 8,424c]
[Rapier IR 657m/s 152s 8m 1,000dmg 2,304cr]
[Firelance IR 500m/s 100s 10m 4,500dmg 4,608cr]
[Wildfire IR 247m/s 135s 20m 15,000dmg 5,760cr]
[Windstalker IR 179m/s 124s 40m 30,000dmg 11.5Kcr]
[Banshee IR 153m/s 97s 100m 74,000dmg 23Kcr]
[Hurricane IR, Proximity 471m/s 64s 200m 6,000dmg 4,044cr]
[Cyclone IR, Multiple 149m/s 403s 20m 20,000dmg 20.2Kcr]
[Blizzard IR, Multiple 825m/s 50s 0m 10,000dmg 3,368cr]
[Typhoon IR, Swarm 156m/s 384s 20m 30,000dmg 33.7Kcr]
[Tornado Dumbfire, Swarm 312m/s 80s 40m 50,000dmg 16.8Kcr]
[Aurora Dumbfire, Synaptic 471m/s 32s 200m 5,000dmg 2,020cr]
[Firestorm Torpedo 84m/s 953s 1000m 1,000,000dmg 80.9Kcr]
[Beluga IR 212m/s 425s 40m 100,000dmg 46.1K]
[Hammerhead IR 113m/s 885s 1200m 1,250,000dmg 138.2Kcr]</t>
</page>
</language>
I like the rolling text ( it starts at the Sting and rolls it over the display). However, there is a tiny problem here, the text doesn't go all the way down to the hammerhead. Sometimes it pops back to Sting after a few seconds. Dunno why this happens.
Also, how do you make several pages? I want to put the IR missiles on one page, and the swarm and dumbfire ones on a second one. I'm sure its easypiecy, but I've never done that before

Give a man a fish and he'll eat for a day, teach a man how to fish and he'll eat yours.
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
its possible that its just too long, and when the display is updated, it puts them all back to the beginning.
to get it on different pages, u can just split it up.
make multiple entries in the page file, ie, t id="1" with some missiles, then t id="2" with some others.
then call the script multiple times
that'll add 2 lines to the custom display, repeat that for more lines
to get it on different pages, u can just split it up.
make multiple entries in the page file, ie, t id="1" with some missiles, then t id="2" with some others.
then call the script multiple times
Code: Select all
$text = read text, page id = 9046, id = 1
= call script 'plugin.logitechg15.setcustom' Identifier = 'missiles1', string = $text, expire = 0
$text = read text, page id = 9046, id = 2
= call script 'plugin.logitechg15.setcustom' Identifier = 'missiles2', string = $text, expire = 0
-
- Posts: 534
- Joined: Thu, 21. Sep 06, 19:47
I split it into 4 lines. They are all rolling across the screen, but they still pop back to start after awhile. They don't reach the end of the text.
Maybe I should put the text into 4 pages instead, is that possible? I'm thinking about clicking the custom button several times to scroll through the pages.
Maybe I should put the text into 4 pages instead, is that possible? I'm thinking about clicking the custom button several times to scroll through the pages.
Give a man a fish and he'll eat for a day, teach a man how to fish and he'll eat yours.
-
- Posts: 185
- Joined: Tue, 25. Jul 06, 05:59
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
there are 2 seperate parts to install.
the first is the plugin for the keyboard, which u already have installed, but u also need to configure it, this is done via the Logitech LCD Control Panel, you need to set the directory to where X3 is isntalled.
the 2nd part, is the X3 scripts that you also need to install, these are what get all the data from the game into the program. As its an unsigned script, u will also need to activate the script editor
the first is the plugin for the keyboard, which u already have installed, but u also need to configure it, this is done via the Logitech LCD Control Panel, you need to set the directory to where X3 is isntalled.
the 2nd part, is the X3 scripts that you also need to install, these are what get all the data from the game into the program. As its an unsigned script, u will also need to activate the script editor
-
- Posts: 185
- Joined: Tue, 25. Jul 06, 05:59
-
- Moderator (Script&Mod)
- Posts: 22438
- Joined: Sun, 14. Nov 04, 23:26
first, download and install the Plugin Manager for X3. Its in the stick in this forum.
once thats installed and setup. Then you need to install the scripts for the LCD, they came in an spk file and should be where u installed the main g15 program.
once thats installed, u just need to run the game, and enable the script editor, this is also in the sticky.
once enabled, save and restart the game and it should now work
once thats installed and setup. Then you need to install the scripts for the LCD, they came in an spk file and should be where u installed the main g15 program.
once thats installed, u just need to run the game, and enable the script editor, this is also in the sticky.
once enabled, save and restart the game and it should now work
-
- Posts: 185
- Joined: Tue, 25. Jul 06, 05:59
-
- Posts: 185
- Joined: Tue, 25. Jul 06, 05:59