Logitech G19 applet

The place to discuss scripting and game modifications for X³: Terran Conflict and X³: Albion Prelude.

Moderators: Scripting / Modding Moderators, Moderators for English X Forum

User avatar
Mobius R
Posts: 19
Joined: Sat, 11. Nov 06, 17:12
x3tc

Post by Mobius R »

Here's some ideas that might be cool.

- You could have a page that displays all the player stats (i.e all the stuff in the "My Pilot Status" menu). Possibly scrollable with the LCD's arrow buttons?

- A list of all the ships/stations/etc in the sector - I don't know how useful this one would be, but it might be cool anyway. :P

- Lastly (I don't even know if this is possible) you could display one of the external monitors on the LCD screen. I usually use the left monitor as a rear-view mirror, and it would be cool if you could display it on the LCD. 8)
sepa
Posts: 154
Joined: Mon, 23. May 05, 22:48
x4

Post by sepa »

Thanks for reply,

Stats are definitively possible, list of ships etc too. It's already in the text file :)

It's fairly easy to get info from the game, I encourage you guys to take a look on the AL script and try to play with it. Once you know what you want to get out I can show it on a LCD.

As for those 100chars it may be that the line in text file has a 100 chars limit. It's stupid and I'll change it.
As I mentioned, this is my 1st bit of C++ ever, and it's far from perfect at this point.

The monitor on the lcd would be great, but I don't have any idea how to do it (apart from taking screenshots and displaying the cropped area).

I'll try to do those bits over the weekend, but no promises so far.

Right now I gotta do some ship balancing :)
Shit happens, ppl die. Usually when I'm around.
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

Im afraid I personally am NOT a scripter :( i just found your amazing app by chance. ...did i mention i love it? :D

question

I have to start the LCD exe file manually each time i want to use it yes?
sepa
Posts: 154
Joined: Mon, 23. May 05, 22:48
x4

Post by sepa »

Yes. But I'll take a look into this, too :)

This 100 char bug is gone, I've done a nasty fix - increased the limit to 200 chars for now. Did I mention I'm lazy ? :roll:

http://www.mediafire.com/file/zj24mzzjuig/x3tc_lcd.zip
Shit happens, ppl die. Usually when I'm around.
Canterous
Posts: 39
Joined: Sun, 9. May 10, 09:24
x3tc

Post by Canterous »

you mentioned a g15 applet, anyone care to provide a link for that?
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

I dont care if you are lazy as long as it works :D

Ill try it out :)


Anyway I got some ideas, im not sure if they are possible at all.

Can it show the mission logs and the message logs? would be usefull for me :)

Woohoo it seems to be working :D before it was more or less just a demo for me on what could be done ..something i wanted very bad :D

Now i can use it without having to worry about not targeting the wrong thing :D BRILLIANT

I wish there was something I could do to help you out :)

Also maybe try and contract Egosoft about this one? maybe other people with G19 who dont normally look in here would be interested?

I have not yet seen any app looking as nice as this one for my keyboard :D
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

I found another strange bug :s the logfile (and app) says im a Capitalist....but the game says im only an Industrialist?
sndle9
Posts: 428
Joined: Tue, 10. Feb 04, 09:00
x4

Post by sndle9 »

Cool little app. Thanks for creating it.

If they are possible, and as you asked, I think the following would be useful...

Monitor for assets being attacked and generate an un-missable alert on the keyboard screen (great to make sure you know about it ASAP)

Monitor the message log and report how old the last message logged is on the main status panel with a selectable screen that actually shows recent messages (great for the CAG spams when a factory runs out of credits, or your Boreas has just been killed).

Monitor the currently active mission and list the current objectives (great for the XXX chips remaining on the hub mission).

Have a page showing race relationships (optionally including pirates & Yaki)

I'm sure there are loads of others but these are general, but useful options that spring to mind.

Cheers,
Dave.
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

I tried deleting the text file in hope that a new would show my real trade rating :) but no such luck :s

btw i love the Elite and Starwars references in your demo :P


All of a sudden my baground picture and all the icons disapeared...I can still read the data and such though. Restarted exe and it works again
sepa
Posts: 154
Joined: Mon, 23. May 05, 22:48
x4

Post by sepa »

I have seen this issue with background disappearing, I have no clue why (although it happened b4 when I had a bug in there when background was set every single time the file was read) - I have to do some deep research on this.... I suspect LCD sdk bug, cause similar thing happens if u use LUA (script language you can use to program G-keys) and update LCD often.

U missed the reference to Privateer ;)

As for the wrong rank, if it's wrong in the file, then it is wrongly reported by AL script, and here I have to ask Cycrow, as this part is 99% his work...

tass_bur, do you know how to do graphics? I need icons made... It's not hard, just dubleshadows editor -> copy -> graphic editor (photoshop/gimp/other) -> make it 2x bigger -> make it NICE -> save as png.

I will understand if you do not know how. However, it's not a problem, it's an opportunity - you can learn HOW and HELP, and I'll guide. As you seem to be the most interested user, we can make a nice app together.
And this knowledge (how to edit graphics) will look really nice in your CV.

I got guests for the weekend, so I'll not be able to do much, but if anything breaks your game seriously then gimme a shout.

Have fun,
sepa
Shit happens, ppl die. Usually when I'm around.
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

sepa wrote:I have seen this issue with background disappearing, I have no clue why (although it happened b4 when I had a bug in there when background was set every single time the file was read) - I have to do some deep research on this.... I suspect LCD sdk bug, cause similar thing happens if u use LUA (script language you can use to program G-keys) and update LCD often.

U missed the reference to Privateer ;)

As for the wrong rank, if it's wrong in the file, then it is wrongly reported by AL script, and here I have to ask Cycrow, as this part is 99% his work...

tass_bur, do you know how to do graphics? I need icons made... It's not hard, just dubleshadows editor -> copy -> graphic editor (photoshop/gimp/other) -> make it 2x bigger -> make it NICE -> save as png.

I will understand if you do not know how. However, it's not a problem, it's an opportunity - you can learn HOW and HELP, and I'll guide. As you seem to be the most interested user, we can make a nice app together.
And this knowledge (how to edit graphics) will look really nice in your CV.

I got guests for the weekend, so I'll not be able to do much, but if anything breaks your game seriously then gimme a shout.

Have fun,
sepa
Eh I have never played Privateer :oops: only Elite 2: Frontier (my favorit game ever, got elite ranking and Prince ranking back then), Elite 3 First encounter . X (never tried Xtension), x2, x3, x3tc.

I hope you can get a chance to talk to Cycrow about it kinda bugs me when now i noticed it lol but it is not gamebreaking as the 100 char bug was :)

HELL yes I would LOVE to help you with the graphics when i have the time for it.......I have NO idea how to do or which program to use for it but im ready to learn :)

I got my keyboard like a month ago and No game I tried had any real usefull apps :) And X being one of my favorit singleplayer games I was sad to see nothing here either....then you showed up in a search that had nothing to do with G19 at all and oooh buy ..best app i have seen for it so far :D (normally use it most for Everest to see how my computer is doing :))
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

I found an X3 editor 2 ....tried to find the GUI master thing mentioned earler but cant seem to find any called .dds only pck i think it was :s

Going to bed soon but ill keep an eye out for this post :D
User avatar
Mobius R
Posts: 19
Joined: Sat, 11. Nov 06, 17:12
x3tc

Post by Mobius R »

sepa, I made png's out of all the ship icons if you're still interested. If you want them, just pm me, and I can send them to you however you want (email, aim, whatever).
sepa
Posts: 154
Joined: Mon, 23. May 05, 22:48
x4

Post by sepa »

Hi,

The trick with the icons is that they have to be scaled up (200%) and saved with the right background.

http://www.mediafire.com/file/nvgyywgownz/icons.psd

These are the icons I made, if you can prepare yours using the file above as template then it would be great.

The way I did it was to save 3x .png - with blue, red and green icon version.
You will find that I made those icons manually, they are not just scaled up, as I found the scaled icons ugly.

If you can pack the icons (as you got them now) and put them somewhere it would be very helpful.

tass_bur, U missed a lot if U didn't play Privateer. There is a clone on the net, Privateer Gemini Gold, based on VegaStrike engine. Take a look :)

I enjoyed Elite series a lot, especially the little buggers all around my screen on the C64 version :)

As for what to put on our little screen, I guess I'll start with message box :)

Cheers,
sepa
Shit happens, ppl die. Usually when I'm around.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

i believe the rank problem was due to some problems in the script engine for X3R. The scripts couldn't get accurate data about the ranks and attempted to compute the correct values instead.

this however is not an issue anymore with TC, as there are new commands available that'll make it easier.

if i get chance ill remake the script using newer TC commands
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

I do remember something about playing Elite2 while my friend played Privateer. I was too busy with Elite2 back then though :P

I tried the background image disapear again today...but except for that and the wrong title thats the only problem im having so far. Im getting close to a new Combat rank so im going to look if the combat rank (which as i can see is correct) will change when it does in game. I have no reason to belive it wont, but just curious since the other was wrong.

Not very good with the graphics, but if there is anything i can try and do please let me know :)
sepa
Posts: 154
Joined: Mon, 23. May 05, 22:48
x4

Post by sepa »

Thanks for info Cycrow, I'll take a look into this.
Shit happens, ppl die. Usually when I'm around.
tass_bur
Posts: 367
Joined: Sat, 14. Feb 04, 16:13
x4

Post by tass_bur »

It seems that the combat raiting works as it should. I just got Crusader and it changed to Crusader as soon as It changed in game :D so thats a plus.

Im getting the thing with the background disapearing quite often. It seems to happen after i have played for some time, I cant figure out if there is anything special that triggers it. I dont think so though.
User avatar
Mobius R
Posts: 19
Joined: Sat, 11. Nov 06, 17:12
x3tc

Post by Mobius R »

sepa wrote:If you can pack the icons (as you got them now) and put them somewhere it would be very helpful.sepa
The icons I made are just the default ones scaled up 2x. However, I did get all blue, green, and red versions of every icon, the orange version of the station icon, and all the gate icons (including numbered gates and HUB gates). I also saved them all as png's with transparent backgrounds. I also included the psd if you want to tweak around with them.

Yeah... they are kinda ugly but there's only so much you can do with icons that are so small :P

http://www.mediafire.com/file/wirgvyzjl ... _ICONS.zip
sepa
Posts: 154
Joined: Mon, 23. May 05, 22:48
x4

Post by sepa »

Mobius R
Wow, that's nice work.

However, I still need to make them again with the background - the LCD sdk do not support transparent backgrounds.

tass_bur

This disappearing background is something I'll be looking at, it's basically when you change background picture a set number of times it disappears. Why - I have no clue at the moment.

I'm changing the code quiet a bit to make it more robust etc, but this will be done the earliest on Monday.

Have fun,
sepa
Shit happens, ppl die. Usually when I'm around.

Return to “X³: Terran Conflict / Albion Prelude - Scripts and Modding”