How change msg-intro?

Place to get help with not working mods / modding interface.
User avatar
maroder
Inserter
Inserter
Posts: 47
Joined: Mon Apr 27, 2015 1:02 pm
Contact:

How change msg-intro?

Post 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 :)

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3713
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How change msg-intro?

Post by DaveMcW »

msg-intro is part of another mod: scenarios/freeplay. You need to edit that scenario to change it.

User avatar
maroder
Inserter
Inserter
Posts: 47
Joined: Mon Apr 27, 2015 1:02 pm
Contact:

Re: How change msg-intro?

Post 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.

User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: How change msg-intro?

Post 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.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3713
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: How change msg-intro?

Post 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.

User avatar
maroder
Inserter
Inserter
Posts: 47
Joined: Mon Apr 27, 2015 1:02 pm
Contact:

Re: How change msg-intro?

Post 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.

Post Reply

Return to “Modding help”