Cycrow's Logitech G15 LCD screen scripts
Moderators: Scripting / Modding Moderators, Moderators for English X Forum
-
- Posts: 7
- Joined: Fri, 5. Feb 10, 12:43
-
- Posts: 153
- Joined: Tue, 9. Dec 03, 16:10
-
- Posts: 7
- Joined: Fri, 5. Feb 10, 12:43
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
$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
-
- Posts: 1
- Joined: Tue, 19. May 09, 03:53
Re: Logitech G15 AL plugin ported to X3TC
Sibaz, I think that your link may be broken, i'm unable to download from your site.sibaz wrote: You can download the scripts at http://www.sibaz.com/downloads/Logitech ... Plugin.zip
-
- Posts: 11
- Joined: Sat, 16. Dec 06, 07:32
Awesome!
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...

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...
.~