Cycrow's Logitech G15 LCD screen scripts

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
corhen
Posts: 338
Joined: Thu, 16. Oct 08, 08:45
x3tc

Post by corhen »

ahh, NVM, a restart got it to work
lluoc
Posts: 7
Joined: Fri, 5. Feb 10, 12:43

Post by lluoc »

Bit of a bump here but there was a small bug in sibaz ported scripts that meant the players money wouldn't be displayed.
Anyway, to fix that change line 16 of the ai.logitechg15.timer script from
Account :%s
to
Account: %s

Oh and thanks for the applet.
eddieg
Posts: 153
Joined: Tue, 9. Dec 03, 16:10
x4

Post by eddieg »

lluoc wrote: Account :%s
to
Account: %s

Oh and thanks for the applet.
to be crystal clear on the change, the ":" has to move away from the percent sign... so the change is to move it back to the "t" of account
lluoc
Posts: 7
Joined: Fri, 5. Feb 10, 12:43

Post by lluoc »

One more thing. The money might be being displayed but the format finally got to me. So do this to get in into 123,456,789 form, change line 15 of the ai.logitechg15.timer script

$money= get player money

to

$moneyStr= get player money
$money= convert number $moneyStr to string

As in renaming the 'money' variable to 'moneyStr' and creating a new variable called 'money'

'<RetVar>= convert number <var/Number> to string' being in General Commands --> Strings



Initially I tried to write in a simple bit of code that would add in the comma's but the editor was the death of me (that took waaaaaay to long to work out how to do an if statement).
I had no idea why I kept getting double the amount of commas and missing numbers and frozen games. And then I found out that the 'convert number <var> to string' wasn't just converting the number to a string type (how does the editor handle types anyway) but was also adding in the comas which was what my code was trying to do but wasn't working because it was converting something that had already been converted. FRUSTRATING
sailor84
Posts: 1
Joined: Tue, 19. May 09, 03:53
x4

Re: Logitech G15 AL plugin ported to X3TC

Post by sailor84 »

sibaz wrote: You can download the scripts at http://www.sibaz.com/downloads/Logitech ... Plugin.zip
Sibaz, I think that your link may be broken, i'm unable to download from your site.
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)
Posts: 22437
Joined: Sun, 14. Nov 04, 23:26
x4

Post by Cycrow »

my new G15 app for TC should be available soon
OzWookie
Posts: 7
Joined: Fri, 30. Apr 10, 13:39
x3tc

Post by OzWookie »

Awesome Cycrow, can't wait.
User avatar
nazaxprime
Posts: 11
Joined: Sat, 16. Dec 06, 07:32
xr

Awesome!

Post by nazaxprime »

Yet again, I get to be lazy and let you have all the glory... Some times I really question my [DEV] Status round these parts.
;)
Oh well, spreading the love and playing when I can has been good enough for me up to now.... I suppose it will still be a long time before i get obsessed enough to force myself to make some mods... there is just so much great stuff from the other devs...
/shrug
*activates Newtonian physics drive in his mind, and continues to ponder making a new spacesuit that can utilize it...
.~

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