How to remove 'Nice Shooting!' messages from ships?

Freeform discussion about anything related to modding Transcendence.
Post Reply
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

I can't figure it out :(
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
george moromisato
Developer
Developer
Posts: 2997
Joined: Thu Jul 24, 2003 9:53 pm
Contact:

You can't do it globally, but you can do it for a specific sovereign. Look at svFriendlyAuton in StdSovereigns.xml:

Code: Select all

	<Sovereign UNID="&svFriendlyAuton;"
			name="auton"
			alignment="constructive chaos"
			>
		<Language>
			<Text id="WatchYourTargets">""</Text>
			<Text id="NiceShooting">""</Text>
		</Language>
	</Sovereign>
It puts an empty string for the "NiceShooting" message.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Thanks George! :D
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
LordSutekh
Commonwealth Pilot
Commonwealth Pilot
Posts: 87
Joined: Sat Mar 20, 2010 9:36 pm
Location: Bedlam

Sorry to necro this thread, but are some of those messages hard-coded? The only thing in the xml with the actual message "Nice Shooting!" that I could find was in RPGWingmen. I tried changing changing it and everyone (except presumably wingmen) was still saying "Nice Shooting!" I have a mod that uses an OnFireWeapon event to create a mine spacecraft. It works great except when I shoot a ship and a bunch of mines congratulate me on my shooting.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

I think in your case you can make a new sovereign and make the "Nice Shooting!" messages nil, then set your mines to that new sovereign. It might work.
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
LordSutekh
Commonwealth Pilot
Commonwealth Pilot
Posts: 87
Joined: Sat Mar 20, 2010 9:36 pm
Location: Bedlam

I thought about that, but the problem is that the way I have it coded now, the mines use the sovereign of the space object that fires the weapon. That way, I can use the same weapon on an AI ship and it will work correctly. And the player can salvage that same weapon and use it correctly as well. I'd hate to have to code three or four different versions using different sovereigns, and then use some sort of OnDestroy event to switch it out so that the player can salvage it and use it, all because of the "Nice Shooting!" message. But if it's hard-coded, then I guess I'd have to.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

For the player's mines(if the player uses your weapon?), you can override svPlayer so the messages are gone, and probably override all other sovereigns that use the mine weapon. It's a very clunky approach though :S
I think you can also TypCreate the sovereign so that if other mods override sovereigns your override will stay, but not sure about that :/
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
User avatar
LordSutekh
Commonwealth Pilot
Commonwealth Pilot
Posts: 87
Joined: Sat Mar 20, 2010 9:36 pm
Location: Bedlam

you can override svPlayer so the messages are gone
That's what I thought, but I can't find where that is (the message, not svPlayer). The only place I could find that has the "Nice Shooting!" message was in RPGWingmen. I tried changing that, but it didn't seem to work. That's why I was wondering if some of that is hard-coded.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

Try

Code: Select all

	<Sovereign UNID="&svPlayer;"
		name="independent"
		alignment="constructive chaos"
		>
		<Language>
			 <Text id="WatchYourTargets">""</Text>
			 <Text id="NiceShooting">""</Text>
		</Language>
	</Sovereign>
?
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
EditorRUS
Militia Lieutenant
Militia Lieutenant
Posts: 148
Joined: Tue Oct 30, 2012 6:30 pm

A virtual sovereign with no messages, but with a data field: parent.
User avatar
LordSutekh
Commonwealth Pilot
Commonwealth Pilot
Posts: 87
Joined: Sat Mar 20, 2010 9:36 pm
Location: Bedlam

That seems to work. And it doesn't interfere with the other Commonwealth ships messages, so I'm pleased with that. Thank you both.
RPC
Fleet Admiral
Fleet Admiral
Posts: 2876
Joined: Thu Feb 03, 2011 5:21 am
Location: Hmm... I'm confused. Anybody have a starmap to the Core?

No problem, good luck with your mod ;)
Tutorial List on the Wiki and Installing Mods
Get on Discord for mod help and general chat
Image
Image
Der Tod ist der zeitlose Frieden und das leben ist der Krieg
Wir müssen wissen — wir werden wissen!
I don't want any sort of copyright on my Transcendence mods. Feel free to take/modify whatever you want.
Post Reply