EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[SCRIPT] Display Ranks : v 0.5 (beta) : 22Jun09
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
View previous topic :: View next topic
Author Message
Carlo the Curious





Joined: 05 Mar 2007
Posts: 15622 on topic
Location: London, UK
Thank you for registering your game
modified
PostPosted: Wed, 6. May 09, 06:47    Post subject: [SCRIPT] Display Ranks : v 0.5 (beta) : 22Jun09 Reply with quote Print

Display Ranks
Version: 0.5 (beta)

Sends you a message showing the actual rank values for combat and trade, and your notoriety with the various races/factions.

Download
  • ZIP file is available from here - extract everything into the TC directory.
  • You also need ChemODun's strings library, available here.
  • Optional: Cycrow's Hotkey Manager, available here.

  • SPK from seePyou
.

Description
Sends a message with your internal rank value for each of the main races, along with the numeric title, and the title text & percentage.



Pirates & co. don't have rank title texts, so they're not shown (obviously).


Usage
After installing the script you can define a hotkey to run it. 'Display Ranks' should be present in Options-Controls-Interface in the Extensions section.

If you want to run the script directly from the editor the main script is plugin.display.ranks.main.


Known issues
1. Formatting is a bit dodgy.
2. Percentages don't match pilot screen.


Version history
0.05 - 22/06/2009
- fixed/added faction values.
0.03 - 13/05/2009
- Modified to work with Gazz's numeric ranks mod.
0.02 - 08/05/2009
- Added support for hotkey manager.
- Fixed display of negative notoriety.
0.01 - 06/05/2009
- Initial release.


Other
Bugs, etc. - PM me or post in this thread.


Tech bits
Text files
- 8412, page 8412
Global variables
- plugin.display.ranks.TextID
- plugin.display.ranks.HotKey
Script files
- setup.plugin.display.ranks
- plugin.display.ranks.main
- lib.crm.format.rank
- lib.crm.decode.rep


Legal bits
Feel free to reuse any of it (although I can't imagine you'd want to!).



Last edited by Carlo the Curious on Wed, 10. Aug 11, 14:04; edited 8 times in total
Back to top
View user's profile Send private message Visit poster's website
Locksley





Joined: 18 Mar 2005
Posts: 365 on topic

Thank you for registering your game
PostPosted: Wed, 6. May 09, 10:21    Post subject: Re: [SCRIPT] Display Ranks : v 0.1 (beta) : 06May09 Reply with quote Print

Thankyou! I always want to know where I stand Razz

This made me come up with a few more mission ideas; characters will offer to tell you your rank in pirate and yaki for a small fee. Now I'll just have to find the time and inclination to learn the MD properly.

Cheers!


_________________
Projects:
Onhold..... time time....
Back to top
View user's profile Send private message
bertiroteo





Joined: 10 Jul 2008

Location: madrid

PostPosted: Wed, 6. May 09, 13:57    Post subject: Reply with quote Print

yeah, capullo!!!


_________________
A todos los genios nos llaman locos
Back to top
View user's profile Send private message
hsung





Joined: 03 Jul 2004
Posts: 208 on topic
Location: Australia
Thank you for registering your game
PostPosted: Thu, 7. May 09, 04:54    Post subject: Reply with quote Print

Great script Carlos Exclamation

Now I can tell what's my rank against the Yaki, the Dukes and pirates Cool

Cheers.

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



MEDALMEDALMEDAL

Joined: 23 Apr 2005
Posts: 16874 on topic
Location: GalNet BBS
Thank you for registering your game
PostPosted: Thu, 7. May 09, 08:01    Post subject: Reply with quote Print

hsung wrote:
Now I can tell what's my rank against the Yaki, the Dukes and pirates Cool

You could have done it all the time, just export player stats from game and then Deflate the PlayerStats.pck file so you can read its (XML-formatted) contents. Reputation numbers ought to be there. But that is "work" compared to the use of a nice script. Wink

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



MEDAL

Joined: 21 Feb 2007
Posts: 3918 on topic

Thank you for registering your game
PostPosted: Thu, 7. May 09, 20:59    Post subject: Reply with quote Print

cosemtic bug:

this script is counting the - as a number. for instance instead of displaying my yaki rank as -403 it displays it as -,403. as you can see since the - is in the forth position it assigns a , thinking there are 4 number(s). does the same for example -,100,403.


_________________
None of us is as smart as all of us. ~Ken Blanchard

TC player bug fixes
Reunion player bug fixes
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Gazz





Joined: 13 Jan 2006
Posts: 12407 on topic
Location: Bavaria
Thank you for registering your game
PostPosted: Thu, 7. May 09, 21:11    Post subject: Reply with quote Print

jlehtone wrote:
You could have done it all the time, just export player stats from game and then Deflate the PlayerStats.pck file so you can read its (XML-formatted) contents. Reputation numbers ought to be there. But that is "work" compared to the use of a nice script. ;)

In the Script Editor, could also have turned on "Script Debugging: Additional Information".

Then every Yaki/Pirate station or ship info shows their notoriety points.
But yeah - that's not nearly as pretty. =)


_________________
My complete script download page. . . . . . Xai-Corp MSCI List is scripter's friend. I AM THE LAW!
There is no sense crying over every mistake. You just keep on trying till you run out of cake.
Back to top
View user's profile Send private message Visit poster's website
Cycrow
Moderator (Script&Mod)
Moderator (Script&Mod)



Joined: 15 Nov 2004
Posts: 20473 on topic
Location: London
Thank you for registering your game
PostPosted: Fri, 8. May 09, 03:39    Post subject: Reply with quote Print

draffutt wrote:
cosemtic bug:

this script is counting the - as a number. for instance instead of displaying my yaki rank as -403 it displays it as -,403. as you can see since the - is in the forth position it assigns a , thinking there are 4 number(s). does the same for example -,100,403.


this could easily be fixed, there is a script command available that already does this, so im not sure y a script was created to do it instead.

Code:

$text = convert number <number> to string


will convert it properly for what ever language is being used


_________________
My Scripts | MY X3TC Scripts | X3 Plugin Manager | Custom Gui
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Carlo the Curious





Joined: 05 Mar 2007
Posts: 15622 on topic
Location: London, UK
Thank you for registering your game
PostPosted: Fri, 8. May 09, 17:12    Post subject: Reply with quote Print

The numbers are formatted using Chem's library, since I was using that for alignment anyway (as [text cols=n] doesn't seem to work properly anymore).

Should be easy to fix though.

EDIT: Should work now.

Back to top
View user's profile Send private message Visit poster's website
MutantDwarf





Joined: 20 Jun 2006
Posts: 605 on topic
Location: United States
Thank you for registering your game
PostPosted: Tue, 12. May 09, 07:11    Post subject: Reply with quote Print

I haven't the faintest idea why, but this plugin isn't working for me. I assigned the hotkey for it, but when I push it I get a completely blank message (both in the log and popping up).

Any ideas as to why it's blank? I'm running a rather heavily modded game, but I wouldn't think that would cause any trouble in a script like this.

Back to top
View user's profile Send private message MSN Messenger
Carlo the Curious





Joined: 05 Mar 2007
Posts: 15622 on topic
Location: London, UK
Thank you for registering your game
PostPosted: Tue, 12. May 09, 07:16    Post subject: Reply with quote Print

Did you install Chem's library?

Back to top
View user's profile Send private message Visit poster's website
MutantDwarf





Joined: 20 Jun 2006
Posts: 605 on topic
Location: United States
Thank you for registering your game
PostPosted: Tue, 12. May 09, 07:18    Post subject: Reply with quote Print

Yep - that shouldn't be the problem. I'm using other mods that require Chem's library with no problem.

Back to top
View user's profile Send private message MSN Messenger
Carlo the Curious





Joined: 05 Mar 2007
Posts: 15622 on topic
Location: London, UK
Thank you for registering your game
PostPosted: Tue, 12. May 09, 07:26    Post subject: Reply with quote Print

Hrm, dunno then.

Most of the data just comes from script functions, but it does read a few entries on page 35 and page 900 for some things (like faction names). Do any of your scripts/mods modify the text files?

Back to top
View user's profile Send private message Visit poster's website
MutantDwarf





Joined: 20 Jun 2006
Posts: 605 on topic
Location: United States
Thank you for registering your game
PostPosted: Tue, 12. May 09, 07:35    Post subject: Reply with quote Print

Quite a few of them - as far as I know they don't alter page 35 or 900. The only one that modifies 0001-L044.xml is the unofficial patch. I don't think it modifies Page ID 35 at all, and the only one that I know of that modifies Page ID 900 is the numeric race ranks mod (which does modify one line of Page ID 35, though).

EDIT: Just checked - turns out Gazz's Numeric Race Ranks mod is the culprit. Too bad - this script would be a great complement to his mod.

Back to top
View user's profile Send private message MSN Messenger
Carlo the Curious





Joined: 05 Mar 2007
Posts: 15622 on topic
Location: London, UK
Thank you for registering your game
PostPosted: Tue, 12. May 09, 07:54    Post subject: Reply with quote Print

Interesting. Not sure why - I was under the impression it just replaced the rank text with numbers.

I'll take a look when I have a minute.

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
 
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, 14. Dec 17, 02:26

All times are GMT + 2 Hours


Board Security

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