EnglishGermanFrenchRussianPolishItalianSpanish
Log inRegister
 
[PROGRAM] G19 LCD Applet for X3TC/X3AP
Post new topic Reply to topic
View previous topic :: View next topic
Author Message
Teleth





Joined: 31 Mar 2012



modified
PostPosted: Wed, 4. Apr 12, 13:10    Post subject: [PROGRAM] G19 LCD Applet for X3TC/X3AP Reply with quote Print

Logitech G19 applet designed for use with X3TC/X3AP.
This applet is coded in LCDMisc, which is open source and easy to edit without requiring a compiler.
The install contains everything necessary.

Utilizes a modified version of Cycrow's G15 Logging script and also a modified version of LCDMisc.
The X3 panel was coded in approximately one day; hopefully it is problem free. Should work with any version of X3 that is capable of running the logging script.

Features
Integration with SEWN (Satellite Early Warning Network) alerts the player to the number of intruders entering their systems.
Credit transaction shows +/- changes to the players bank account.
Targeting/Speed/Distance/Missile/Insurance displays.
LED Backlight fades between red/yellow/green based on shield integrity.
Light-weight implementation with 0% CPU utilization on my aging dual-core phenom.

---

Instructions
Two versions are provided, X3-Only LCDMisc, and the full LCDMisc containing multiple views (CPU graphs/task manager etc).

X3 panel only
http://www.mediafire.com/?3kp2poeu1w21gg0
or
X3 panel + full LCD set
http://www.mediafire.com/?gkp4ake64so9d8l

[REQUIRED] X3 G19 logging scripts
http://www.mediafire.com/?ob5th7zbj2d8aur

[OPTIONAL] SEWN integration scripts
http://www.mediafire.com/?ta82obrkkat85b8

Installation
-------------
Extract the LCDMisc folder to where you wish to install it.
Open LCDMisc.ini and edit the [X3] log entry.
Replace Log = C:\Users\USERNAME\Documents\Egosoft\X3AP\ with your X3 Log directory.
e.g Log = C:\Users\Teleth\Documents\Egosoft\X3AP\

Run LCDMisc.exe or LCDMisc64.exe depending on your operating system.
If LCDMisc is running correctly, it should be selectable through your G19's interface. In the event LCDMisc cannot find your G19 it will run in its own separate window.
You can also force it to run in its own window by copying the 320x240ddraw.dll file into dll directory should you desire.

The X3 panel should be complaining about a lack of logfile at this point, if it is not, you should press the G19 direction pad to scroll to the X3 panel.

Extract X3_G19Logging.zip to your main X3 folder or /addons in the case of Albion.
Please ensure your game is set to modified by typing "Thereshallbewings" as your player name temporarily if you have not already done so for other mods.
Save and reload after setting your game to modified, this will allow the logging plugin to function.
If these are installed correctly, the Gameplay->Artificial Life Settings should contain the G19 stats logging option, switch it ON if it is not already.
Within a minute LCDMisc should detect the log files. If it does not, make sure the log file (log09003.txt) exists and that LCDMisc.ini is pointing to its directory.

SEWN integration
Extract the folder inside X3_G19_SEWN.zip to your X3TC folder, or the /addons folder for Albion. It should overwrite two SEWN related files. If it does not, double check you are copying to the correct location.
SEWN alerts will not work without this modification. Uses logfile 9004.

Hopefully that should cover it!

If you want to edit the panel yourself the two main files are located at LCDMisc/Override/view/X3view.c (declarations) and LCDMisc/Override/util/X3Draw.c I recommend using Notepad++ to edit these.

Notes
If you're wondering why I didn't add reputation tracking it's because I wanted to keep the panel focused on important/critical information.
Initially I really wanted to add flashing keyboard alerts when transport ships were attacked, I wasn't really sure how to go about it logging it, sadly..
Insurance isn't displayed unless you have less than 20.
May work with USB480D devices if you copy usbd480.dll into the dll folder.

Let me know if you want to see specific features or I missed something that should be on the panel.



Last edited by Teleth on Sat, 16. Mar 13, 02:59; edited 4 times in total
Back to top
View user's profile Send private message
Herdalis





Joined: 12 Apr 2012



PostPosted: Thu, 3. May 12, 19:54    Post subject: Reply with quote Print

Just tried to install the plugin.
First problem ist die logfile. I had to create the 9003 because i had none.
But he still didn´t find.

Text in InI: Log = C:\Users\tanzendes Wasser\Documents\Egosoft\X3TC\

second problem is installing the scripts from G19loggin.zip I nearly put them everywhere but i had nothing in AL to unable.

Back to top
View user's profile Send private message
Teleth





Joined: 31 Mar 2012



PostPosted: Sun, 6. May 12, 08:59    Post subject: Reply with quote Print

Herdalis wrote:
Just tried to install the plugin.
First problem ist die logfile. I had to create the 9003 because i had none.
But he still didn´t find.

Text in InI: Log = C:\Users\tanzendes Wasser\Documents\Egosoft\X3TC\

second problem is installing the scripts from G19loggin.zip I nearly put them everywhere but i had nothing in AL to unable.

You're not supposed to manually create the log file, the AL script creates the log file!
I believe it will only 'find' the log file if it is legitimate, just making the file won't do.

As for AL not being enabled, I missed the AL register script sorry. I have re-uploaded X3_G19Logging.zip. Hopefully that should fix everything.

16 Downloads and no one tells me it's broken!.. thanks for the feedback.


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
Shadowpriest





Joined: 02 Oct 2008
Posts: 7 on topic
Location: Erding
Thank you for registering your game
PostPosted: Sun, 20. Jan 13, 23:32    Post subject: Reply with quote Print

Is there a tutorial for Steam Users? I can´t make it work, the direction is have 2 copy into the log file is different...

But the Screens are Awsome Very Happy

Back to top
View user's profile Send private message
Bromy2004





Joined: 08 Mar 2011



PostPosted: Sun, 10. Mar 13, 03:36    Post subject: Reply with quote Print

Excellent job!! Smile
I love it.

1 Small note...although this is probably just my F**k up, you need the forward slash after your Logging location in the INI.
I didn't realise until I looked at the LCD display and it looked...funky.

Also for possible enhancements...
Freight Load (xxxx/yyyyy)
Current Sector
Auto-Pilot current command.


Cheers


p.s. I DL'd the full panel set and my Magician is doing really well Laughing

Back to top
View user's profile Send private message
Joigeit





Joined: 10 Mar 2013

Location: Iceland

PostPosted: Sun, 10. Mar 13, 16:50    Post subject: Reply with quote Print

In short, enabling the plugin option in AL settings isn't showing up.
I've done everything as described in the installation guide.

This is the Steam version if it matters at all. Rolling Eyes

Back to top
View user's profile Send private message
Teleth





Joined: 31 Mar 2012



PostPosted: Thu, 14. Mar 13, 13:50    Post subject: Reply with quote Print

I'm afraid it's been more or less a year since I developed this and I'm no longer familiar with it. My help will probably be limited at this point.

Joigeit wrote:
In short, enabling the plugin option in AL settings isn't showing up.
I've done everything as described in the installation guide.

This is the Steam version if it matters at all.

Having the steam version should not make any difference as far as I am aware, I assume you are familiar with installing mods in general?

Are you running X3TC or X3AP?
From memory there are several reasons AL plugins don't appear in-game but usually it's from not being placed in the right location. Ensure you check that it is absolutely in the correct place as they differ for X3TC and X3AP.

Also make sure your game is set to modified by typing "Thereshallbewings" as your player name temporarily, otherwise no AL plugins will function I think.

You may need to save and reload your game for AL Plugins to show.

Bromy2004 wrote:

Excellent job!!
I love it.

1 Small note...although this is probably just my F**k up, you need the forward slash after your Logging location in the INI.
I didn't realise until I looked at the LCD display and it looked...funky.

Odd, mine doesn't need anything other than what I've written in the instructions. Could be a defect in LCDMisc.

Bromy2004 wrote:

Also for possible enhancements...
Freight Load (xxxx/yyyyy)
Current Sector
Auto-Pilot current command.

Cheers

It already lists the current sector, doesn't it?
The only reason why I didn't really add more information to the panel is because it was already getting pretty packed! I wanted to keep it readable and neat. I guess there is a bit of space down the bottom left and right of the main section though.

Not too sure if the logger supports these things, but if I return to X3 I'll be sure to look into it.

Bromy2004 wrote:

p.s. I DL'd the full panel set and my Magician is doing really well

I didn't release it anywhere else because I never quite implemented all the features I wanted, but I'm glad you got some fun out of it!


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
Joigeit





Joined: 10 Mar 2013

Location: Iceland

PostPosted: Sat, 16. Mar 13, 02:01    Post subject: Reply with quote Print

Quote:
Having the steam version should not make any difference as far as I am aware, I assume you are familiar with installing mods in general?

Are you running X3TC or X3AP?
From memory there are several reasons AL plugins don't appear in-game but usually it's from not being placed in the right location. Ensure you check that it is absolutely in the correct place as they differ for X3TC and X3AP.

Also make sure your game is set to modified by typing "Thereshallbewings" as your player name temporarily, otherwise no AL plugins will function I think.

You may need to save and reload your game for AL Plugins to show.


Ah, I was not aware that you were required to set your name to "Thereshallbewings" to "activate" it, granted this is the first mod I've used with this game and i didn't look into it all that much to begin with.

Regardless, it's working now.
Might want to edit it into the description just for the convenience of others. Smile

Back to top
View user's profile Send private message
Teleth





Joined: 31 Mar 2012



PostPosted: Sat, 16. Mar 13, 02:53    Post subject: Reply with quote Print

Joigeit wrote:
Quote:
Having the steam version should not make any difference as far as I am aware, I assume you are familiar with installing mods in general?

Are you running X3TC or X3AP?
From memory there are several reasons AL plugins don't appear in-game but usually it's from not being placed in the right location. Ensure you check that it is absolutely in the correct place as they differ for X3TC and X3AP.

Also make sure your game is set to modified by typing "Thereshallbewings" as your player name temporarily, otherwise no AL plugins will function I think.

You may need to save and reload your game for AL Plugins to show.


Ah, I was not aware that you were required to set your name to "Thereshallbewings" to "activate" it, granted this is the first mod I've used with this game and i didn't look into it all that much to begin with.

Regardless, it's working now.
Might want to edit it into the description just for the convenience of others. Smile

I never expected this to be anyone's first mod! Rolling Eyes


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
ManiakNL





Joined: 27 Feb 2007
Posts: 55 on topic

Thank you for registering your game
PostPosted: Sun, 17. Mar 13, 15:24    Post subject: Reply with quote Print

To be honest, this is my first mod aswell Smile

Well, in AB that is. It's been ages since i last played an X3 game. I'm totally ready to dive right back in!

Thanks for the "Thereshallbewings" tip, i had totally forgotten it!

And thanks for the mod aswell Smile
Love the way the lights in my keyboard change colors when my ships shields are failing Very Happy

Back to top
View user's profile Send private message
Shadowpriest





Joined: 02 Oct 2008
Posts: 7 on topic
Location: Erding
Thank you for registering your game
PostPosted: Sat, 30. Mar 13, 20:14    Post subject: Reply with quote Print

Still not working, the log file wont appear, maybe i am 2 dumb Laughing
Is there any way you can upload the logfile and we place it there manually?

Back to top
View user's profile Send private message
Teleth





Joined: 31 Mar 2012



PostPosted: Sun, 31. Mar 13, 14:24    Post subject: Reply with quote Print

Shadowpriest wrote:
Still not working, the log file wont appear, maybe i am 2 dumb Laughing
Is there any way you can upload the logfile and we place it there manually?

Is the logger actually enabled in the Artificial Life options?

The logfile should be near your save game files.

This is the directory on my machine (windows 7):
C:\Users\YOUR_NAME\Documents\Egosoft\X3AP\

If the log file log09003.txt doesn't appear, the logger plugin is either not activated, has not had any time to write the log file or is conflicting somehow.
If LCDMisc itself cannot find the log file, then you have set LCDMisc.ini Log setting incorrectly.


_________________
Phanon Corporation updated for XRM+AP
G19 Applet for X3
Back to top
View user's profile Send private message
ManiakNL





Joined: 27 Feb 2007
Posts: 55 on topic

Thank you for registering your game
PostPosted: Sun, 31. Mar 13, 16:08    Post subject: Reply with quote Print

Shadowpriest wrote:
Still not working, the log file wont appear, maybe i am 2 dumb Laughing
Is there any way you can upload the log file and we place it there manually?


Hi, you sure you have tried to set your pilot name to "Thereshallbewings"? The G19 script should kick in at that moment.

These are the steps I took to get things to work (I use steam as well)

1: Download X-Universe Plugin Manager Lite
http://forum.egosoft.com/viewtopic.php?t=265915
2: Install Plugin manager (Installation should be self-explanatory)
3: Open Plugin manager
4: Make sure the "Current Directory" is set to "X3: Albion Prelude" (Set it to Terran Conflict if you are playing TC)
5: Click on "Settings" --> "Mode" --> "Modified"
6: Install Archive (X3_G19Logging)
7: Install Archive (X3_G19_SEWN) (I have the bonus pack installed)

8: start the lcdMisc application (LcdMisc/LCDMisc(64).exe)
9: Press the right arrow key next to your G19 LCD screen untill you selected the X3 app and press the OK key next to your G19 LCD screen (Not sure how that control pad is called)

Note: at this point the app should be crying about a missing file.

10: Boot up the game
11: If you have never installed a mod on a save game you will need to set your pilot name to "Thereshallbewings" without the quotes. Please make sure you add no spaces and the T is a capital letter

These are all the steps i have taken to get this to work no clue what else to do if this not works for you.

Back to top
View user's profile Send private message
Shadowpriest





Joined: 02 Oct 2008
Posts: 7 on topic
Location: Erding
Thank you for registering your game
PostPosted: Sun, 31. Mar 13, 17:47    Post subject: Reply with quote Print

My game is ***modified*** by default, i love messing with the universe by getting some ships Razz

AL-Setting is enabled, it says something like "read 9003-1".

The path on my system is C:\Program Files\Steam\SteamApps\common\X3 Terran Conflict\ (I tryed using with \ at the end and without).
Note that my system is german, so its called Programme instead of Program files, tryed 2 change that 2, no effect.


There was my error <.<

It got more then enough time 2 create the file, i started X3 and went 2 work so my facilitys and trader can make some money. Mr. Green But still no change.

I followed the install instructions, redownloaded every package needed, threw out the scripts (They have a different ending thou, the normal scripts in the directory are .pck while the scripts i downloaded are .xml !

I think thats everything i can tell you, if i missed something pls ask Exclamation

EDIT: Found it, jep, i am dumb Very Happy I looked at the wrong spot for the log file, i will test it and get you some responce^^

Working now thx Smile

Back to top
View user's profile Send private message
ManiakNL





Joined: 27 Feb 2007
Posts: 55 on topic

Thank you for registering your game
PostPosted: Sun, 31. Mar 13, 23:05    Post subject: Reply with quote Print

Awesome now bumb slowly into a station and watch those colors go red Very Happy At least that i what i did when i first got it Razz

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic Reply to topic
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Control Panel
Login Data
The time now is Thu, 23. May 13, 15:15

All times are GMT + 2 Hours


Board Security

Copyright © EGOSOFT 1989-2009
Powered by phpBB © 2001, 2005 phpBB Group
Template created by Avatar & BurnIt!
Debug: page generation = 0.28738 seconds, sql queries = 74