Page 1 of 1

How change msg-intro?

Posted: Thu Jul 02, 2015 6:11 pm
by maroder
Is it possible to change the modification msg-intro?
I mean changing the text through my mod

msg-intro=...

If I put it in 1-st string in locale/ru/base.cfg, it do nothing.

P.S.:sorry for my english :)

Re: How change msg-intro?

Posted: Thu Jul 02, 2015 9:46 pm
by DaveMcW
msg-intro is part of another mod: scenarios/freeplay. You need to edit that scenario to change it.

Re: How change msg-intro?

Posted: Fri Jul 03, 2015 8:37 am
by maroder
DaveMcW wrote:msg-intro is part of another mod: scenarios/freeplay. You need to edit that scenario to change it.
I want change it in my mod, for another players. I know, were is msg-intro. But I do not know: how can I change this text, use my mod only.

Re: How change msg-intro?

Posted: Fri Jul 03, 2015 1:44 pm
by prg
You just want to display some message at the start of the game in your mod? Use game.showmessagedialog in the onplayercreated event, look at the freeplay control.lua how it's done there. If you already have some code that's not working, post it here so we can look at it.

Re: How change msg-intro?

Posted: Fri Jul 03, 2015 2:46 pm
by DaveMcW
Copy scenarios/freeplay to scenarios/your-mod
Edit msg-intro
Move all your other mod assets into scenarios/your-mod
Distribute scenarios/your-mod and tell everyone to install it in scenarios.

Re: How change msg-intro?

Posted: Sat Jul 04, 2015 2:46 pm
by maroder
DaveMcW wrote:Copy scenarios/freeplay to scenarios/your-mod
Edit msg-intro
Move all your other mod assets into scenarios/your-mod
Distribute scenarios/your-mod and tell everyone to install it in scenarios.
It so hard for some people :mrgreen: , and I want do it simple.
prg wrote:You just want to display some message at the start of the game in your mod? Use game.showmessagedialog in the onplayercreated event, look at the freeplay control.lua how it's done there. If you already have some code that's not working, post it here so we can look at it.
Thank you. I did it already :)
But, how to change the texts on the front lines localization?!
Maybe moderator will answer this question.