BCU main page Bridge Commander Universe
...welcome to the new world.
 
 FAQFAQ  RanksRanks  RulesRules   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  Staff SiteStaff Site    RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

AARRGGHH!!! I have no tactical icons!!!

 
Post new topic   Reply to topic    Bridge Commander Universe Forum Index -> BC Scripting
View previous topic :: View next topic  
Author Message

N1GH7H4WK

Ensign
Ensign


Age: 22
Zodiac: Virgo
Joined: 27 Feb 2006
Posts: 159
Location: On the bridge, Number One. Where else?
Offline

 

 



Reply with quote

Post Posted: 07-03-2006 04:43 PM Post subject: AARRGGHH!!! I have no tactical icons!!!

As I said, I made my new ship but I can't add the icons to the display.
I copied the ship icon to data/icons/ships, but I don't know how to direct the scripts to it Confused
I added the name of the icon in the pointer file and the in file in custom/ships/ship.py, but I had no results. the image is propperly scaled, coloured and masked.
any ideas?

Back to top
View user's profile Send private message Send e-mail MSN Messenger

MLeo

Fleet Admiral
Fleet Admiral


Age: 22
Zodiac: Aquarius
Joined: 26 Nov 2002
Posts: 11439
Location: Netherlands
Offline

 

 



Reply with quote

Post Posted: 07-03-2006 05:39 PM Post subject:

Have you looked at other ship plugins?
You only need to set the iconName variable to the right icon name. The icons are (if I'm not mistaken) 128x128 alpha blended tga files.


_________________

How to beat the Black Screen Of Death and Script problems Also handles Console/Screen/Error report/dump.
BC Technical FAQ [Last updated 26/12/2005]
"Trust me, I'm a con artist" - Moist von Lipwig, "Going Postal, Discworld"

Back to top
View user's profile Send private message Send e-mail MSN Messenger

N1GH7H4WK

Ensign
Ensign


Age: 22
Zodiac: Virgo
Joined: 27 Feb 2006
Posts: 159
Location: On the bridge, Number One. Where else?
Offline

 

 



Reply with quote

Post Posted: 07-03-2006 05:46 PM Post subject:

I did!
How do you think I learned all these (regular) modding abilities? Looking at other people's work!
even with the correct code, it doesn't work.
I saw a definition of something in ShipIcons.py:
Code:

ShipIconDef('Nebula', { 'species': App.SPECIES_NEBULA } )
ShipIconDef('FedShuttle', { 'species': App.SPECIES_SHUTTLE } )
ShipIconDef('Transport', { 'species': App.SPECIES_TRANSPORT } )
ShipIconDef('Defiant', { 'species': 136 } )
ShipIconDef('Intrepid', { 'species': 114 } )
ShipIconDef('USSLennox', { 'species': 128 } )
ShipIconDef('Norway', { 'species': 116 } )
ShipIconDef('Nova', { 'species': 117 } )

as you can see, there are two ways to load an icon.
should I add
ShipIconDef('MyShip', { 'species': *** } ) ?

Back to top
View user's profile Send private message Send e-mail MSN Messenger

MLeo

Fleet Admiral
Fleet Admiral


Age: 22
Zodiac: Aquarius
Joined: 26 Nov 2002
Posts: 11439
Location: Netherlands
Offline

 

 



Reply with quote

Post Posted: 07-03-2006 05:48 PM Post subject:

What should just work is the following in a normal (as generated by BCMP) plugin:
Code:
iconName = "Your Icon filename in data\Icons\Ships\ without the tga"


_________________

How to beat the Black Screen Of Death and Script problems Also handles Console/Screen/Error report/dump.
BC Technical FAQ [Last updated 26/12/2005]
"Trust me, I'm a con artist" - Moist von Lipwig, "Going Postal, Discworld"

Back to top
View user's profile Send private message Send e-mail MSN Messenger

N1GH7H4WK

Ensign
Ensign


Age: 22
Zodiac: Virgo
Joined: 27 Feb 2006
Posts: 159
Location: On the bridge, Number One. Where else?
Offline

 

 



Reply with quote

Post Posted: 07-03-2006 05:50 PM Post subject:

that's what I used.
I changed an standard plugin to adapt it to my ship, so I replaced all exactly as the original.
I'll check the tga again, just to be sure....


_________________

The point of the war is not dying for your country, but make your opponent die for his own one.
Winston Churchill, WWII

Back to top
View user's profile Send private message Send e-mail MSN Messenger

N1GH7H4WK

Ensign
Ensign


Age: 22
Zodiac: Virgo
Joined: 27 Feb 2006
Posts: 159
Location: On the bridge, Number One. Where else?
Offline

 

 



Reply with quote

Post Posted: 07-04-2006 01:51 PM Post subject:

bad tga.
works fine now. thanks


_________________

The point of the war is not dying for your country, but make your opponent die for his own one.
Winston Churchill, WWII

Back to top
View user's profile Send private message Send e-mail MSN Messenger

tiqhud

Pro-Captain
Pro-Captain




Joined: 28 Aug 2004
Posts: 1067
Location: this Desktop
Offline

 

 



Reply with quote

Post Posted: 07-04-2006 02:07 PM Post subject:

I had that problem with the Klingon Raptor (recently) and it turned out to be a corrupt plugin py, the one in scripts\custom\ships

As I looked at it everything was correct ,and it pointed to the correct files and everything

but when I deleted the one that was there , used BCMP and made a new one I got my tactical Icon.


_________________
TiqHud - COE

I didn't do it
If we don't learn from our Mistakes, we will surely repeat them.
It is all the little details, that cause headaches.
According to the way society is going, I'll need a college Degree just to change a light bulb

Back to top
View user's profile Send private message Send e-mail MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic

All times are GMT

Page 1 of 1
   Bridge Commander Universe Forum Index -> BC Scripting
 
Jump to:  
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

Powered by phpBB © 2001, 2005 phpBB Group
Bridge Commander Universe is a Nightsoft company. All rights reserved.