EnglishGermanFrenchRussianItalianSpanish
Log inRegister
 
[MD/SE] Dynamic Colored Sector Names v2.1b - 20 Jan 2011 [XTC Compatible]
Post new topic Reply to topic Goto page 1, 2, 3, 4, 5  Next
View previous topic :: View next topic
Author Message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
modified
PostPosted: Mon, 20. Dec 10, 09:31    Post subject: [MD/SE] Dynamic Colored Sector Names v2.1b - 20 Jan 2011 [XTC Compatible] Reply with quote Print

Deutsch Version

Colored Sector Names uses a Script and MD to change the color of every sector's name to coincide with its owner.

Universe Map - Sector names are colored according to Race:


Sector Map - Gate names show the colors:




Installing:

  • Ensure MD Control is installed and Thereshallbewings is activated.
  • Reinit Script cache, wait a few seconds until a subtitle stating this is installing appears.
  • Enjoy.




Version: 2.1b
- English
(zip)
(7z)
(spk)

- German
(zip)
(7z)
(spk)


Exclamation Requires: MD Control
Exclamation Requires: Colored Object Fix



Compatibility:
Compatible with XTC
Compatible with STO
Save game compatible.
Exclamation Not compatible with mods which add new sector names (let me know of any of these and I can add compatibility).



Known problems:
This problem should be fixed in X3TC v3.1
Scripts which use colored object names in messages will display as blank.
Unless you are using scripts which have implemented the Color Extraction Code when they use 'send message'/'send question'/'write to players logbook'. Contact those script creators and ask them to add this as a patch to their script or ask them to contact me and give me permission to do so on their behalf, I'll gladly make patches.


Developers:
If you want your mods to be compatible then add these lines to your code anytime you change the sector's owner.
    $null = null
    START $null->call script 'plugin.dynamic.colored.sector.names' : sector=$sector



_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-


Last edited by h2o.Ava on Sat, 22. Jan 11, 01:31; edited 25 times in total
Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
modified
PostPosted: Mon, 20. Dec 10, 09:31    Post subject: Reply with quote Print

Change Log

    v2.1 - SETA can be used, fixed STO compatibility, minor spelling fixes and visual improvements, added debug logging output

    v2 - descriptions are back, all known bugs fixed, code optimized

    v1.3 - Menu implementation: uninstall, update all, manual coloring.

    v1.2 - Fixes, completion time decreased, dynamic functionality removed

    v1.1 - XTM Compatibility

    v1.0 - Standalone complete, dynamic functionality is untested

    v0.9 - Initial beta release



_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-


Last edited by h2o.Ava on Wed, 19. Jan 11, 23:50; edited 5 times in total
Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
modified
PostPosted: Mon, 20. Dec 10, 09:32    Post subject: Reply with quote Print

To do:
    Enable ETNO compatibility.







FYI:
This is the first full fledge example showing the power of MD Control.
The script engine does all the calculations and chooses the correct text.id.
It then sends variables to MD via MD Control's variable handler.



Last edited by h2o.Ava on Wed, 19. Jan 11, 06:08; edited 13 times in total
Back to top
View user's profile Send private message
blackwidow2ggst





Joined: 09 Mar 2007



PostPosted: Tue, 21. Dec 10, 03:49    Post subject: Reply with quote Print

Looks good but doesn't seem to work for me. When it says its installing and to wait 5 min it goes though each sector and names them something like "sector 05-06" without any added color. After about 10 min it finishes telling me MD has been installed. If I save and reload it just seems to do the process all over again but never tells me it has finished.




Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
PostPosted: Tue, 21. Dec 10, 14:26    Post subject: Reply with quote Print

That occurs if your T file isn't there.
I'll check to make sure that I packed it correctly.


edit:
I forgot to upload the T file.
Incoming fix.


_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-
Back to top
View user's profile Send private message
Trickmov



MEDALMEDALMEDAL

Joined: 07 Nov 2007
Posts: 1432 on topic
Location: AC, Germany
Thank you for registering your game
PostPosted: Tue, 21. Dec 10, 14:38    Post subject: Reply with quote Print

While I really like the view itself - you know, that colored strings make problems in the player's log? Meaning messages including color-tags (\033 ones) are not displayed at all... I suggest to either test that or write a warning into the OP Wink


_________________
meine Scripts (my scripts)
Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
PostPosted: Tue, 21. Dec 10, 14:55    Post subject: Reply with quote Print

Updated: V1.1
Now compatible with XTC


Thanks, I'll add a code snippet for scripters that needs to be added to any script which sends the sector name via messages.
Let me know of any in particular and I'll make temporary patches.


_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-
Back to top
View user's profile Send private message
Trickmov



MEDALMEDALMEDAL

Joined: 07 Nov 2007
Posts: 1432 on topic
Location: AC, Germany
Thank you for registering your game
PostPosted: Tue, 21. Dec 10, 15:00    Post subject: Reply with quote Print

The problem are the ES-messages... for instance the ship-killed-message. I don't know atm, if the sector is mentioned there, but that is the reason, that some colored-shipnames-scripts are not really recommandable.

However, for XTC this is no problem, as there is a custom warning (subtitle), which does not have that problem.


_________________
meine Scripts (my scripts)
Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
PostPosted: Tue, 21. Dec 10, 15:08    Post subject: Reply with quote Print

You are correct, these will work in subtitles. However, messages and logbook entries will blank unless the string patterns are replaced.


_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-
Back to top
View user's profile Send private message
confusion





Joined: 16 Jul 2010
Posts: 9 on topic

Thank you for registering your game
PostPosted: Wed, 22. Dec 10, 16:15    Post subject: Reply with quote Print

er...I installed this script and it seems to work well, but the first letter of the name of the sector remains uncolored and the second line of a sector's name is also white. Is this intended?

Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
PostPosted: Wed, 22. Dec 10, 17:06    Post subject: Reply with quote Print

Intentional and Hardcoded:
The first letter is uncolored so that you can search for sectors by pressing the first letter of its name when you are on the Universe map.

The second line turning that greyish white when it is near the edge of the screen is hardcoded, nothing can be done about it. Sad


_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-
Back to top
View user's profile Send private message
masskaos





Joined: 20 Feb 2010
Posts: 14 on topic

Thank you for registering your game
PostPosted: Thu, 23. Dec 10, 04:05    Post subject: Not the sharpest at installing scripts Reply with quote Print

Hello,
after installing (correctly is quite debatable) I waited for the appropriate signals. Then saved and reloaded game. I now get the following message-

mdc-se your mdc.array(9,0,0,0,0,0) did not reset the ships

and of course no colored sectors Sad

Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
PostPosted: Thu, 23. Dec 10, 05:13    Post subject: Reply with quote Print

That is very odd.
You shouldn't be seeing that message since it loaded and ran.
A new version will be out soon.
Please stand by.

Also: the first letter is uncolored so that if there is a mission in that sector then the first letter will turn Orange-ish.


_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-
Back to top
View user's profile Send private message
h2o.Ava





Joined: 12 Oct 2008
Posts: 317 on topic
Location: USA
Thank you for registering your game
PostPosted: Thu, 23. Dec 10, 05:54    Post subject: Reply with quote Print

Update 1.2
Minor fixes

It now runs faster, however still give yourself 5 minutes of real time to let it load every sector, especially if you are running it on XTC.

Dynamic Coloring is no longer an option, SE will not allow the special character that MD creates "←" in the name to make it colored.
In a future update I'll create a menu system where you can manually change the colors for you own sectors or other sectors.

The next update will color the Pirate sectors and fix the lone Kha'ak sector uncolored bug.

edit:
Since I figured out how to extract the colors, we're back in business with dynamic color changing. Next update will have those bug fixes and a better/easier dynamic system which STO and other's and use.


_________________


-|Organic Notoriety|- -|Dynamic Colored Sector Names|-
Back to top
View user's profile Send private message
qwizzie



MEDAL

Joined: 01 Jun 2006
Posts: 533 on topic

Thank you for registering your game
PostPosted: Fri, 24. Dec 10, 00:51    Post subject: Reply with quote Print

Hi h2o.Ava, i tried yr script on x3 TC 3.0 XTC (with the director XTC) and so far it doesnt seem to give Terran and Aldrin their respective colours
(they are totally seperate races in XTC and therefore need seperate colours). Can you pls take a look when you have the time..

thnks,


qwizzie

Back to top
View user's profile Send private message Send e-mail
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 Sun, 23. Sep 18, 14:00

All times are GMT + 2 Hours

[ Disclaimer / Impressum ] | [ Privacy Policy / Datenschutz ]

Board Security

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