How make scenarios

Place to get help with not working mods / modding interface.
generalmek
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Sun Sep 29, 2013 1:13 pm
Contact:

How make scenarios

Post by generalmek »

i want make scenarios how i can make this? need make story, edit tehnologys-items and map.

need speep by steep manual. here i cant find normal information in 1 place

be better on russian.
Last edited by generalmek on Sun Jan 19, 2014 3:15 pm, edited 1 time in total.
SilverWarior
Filter Inserter
Filter Inserter
Posts: 559
Joined: Mon Mar 04, 2013 9:23 am
Contact:

Re: scenarios

Post by SilverWarior »

You can make maps with ingame editor. But for doing scenario events and logics you will have to code htem in manually in LUA by changing control.lua file.
I suggest you check the existing campaign scenarios for reference. Also if you bought "scenario pack" addon there would be a bit more information there.
Other than that serch the Factorio Wiki for LUA coding. While it focues more on mod making, similar principles could be used in scenario design.
ficolas
Smart Inserter
Smart Inserter
Posts: 1068
Joined: Sun Feb 24, 2013 10:24 am
Contact:

Re: scenarios

Post by ficolas »

Firstly you need to know lua (a programming language)
Then create the scenario, go to the factorio folder and search where it is saved, then in your scenario folder edit the file called control.lua with a raw text editor like notepad++, look in campaigns/mods/other scenarios control.lua to see the code and see how events work, if you dont understand it then ask here.
You can also go to the factorio wiki.
If you dont know anytging about factorio scripting, then you should read freeEr's modding guide, it can be found somewhere in the modding subforum (modding discusion I think) and in the wiki.

If you need to ask something please ask it more specifically, I may make a guide some day if I have time but explaining everything in a simpleanswer post is not that easy.
Edit: silverwarrior was faster!
User avatar
FreeER
Smart Inserter
Smart Inserter
Posts: 1266
Joined: Mon Feb 18, 2013 4:26 am
Contact:

Re: scenarios

Post by FreeER »

Wasn't certain if I needed to comment after both SilverWarrior's and Ficolas's posts, but I may as well since I have a link to the forum modding guide in my sig. Obviously learn how to create the prototypes (items/entities/tech) you need (read a guide, look at base code, look at mods, ask questions). Then, if you know lua, or have some experience with programming I'd focus on creating the map first then creating the control code for it. Otherwise, create a small test map and experiment with some of the control code first. Also, since you're making a map I'll mention to make sure to use tags when creating entities that you know you'll be referencing with code later (give tags to entities by pressing 't' while hovering over the entity and it'll pop up some options, including a box to insert a tag), then in the code you can reference that entity using getentitybytag("tag") instead of having to use game.findentity and it's position.

And since I don't believe the Wiki Modding Tutorial is linked to anywhere (you can search it though) there's a link. Some of it might be a bit out of date (not too much) so if you copy/redo it and you get an error just read the message and it should point to the problem (most likely energy since the change to "W").
Hm, not sure what else to say honestly, so good luck and feel free to ask any other questions that come to mind :)
PS sorry it's not in Russian but I only know English
<I'm really not active any more so these may not be up to date>
~FreeER=Factorio Modding
- Factorio Wiki
- My Factorio Modding Guide
- Wiki Modding Guide
Feel free to pm me :)
Or drop into #factorio on irc.esper.net
generalmek
Long Handed Inserter
Long Handed Inserter
Posts: 73
Joined: Sun Sep 29, 2013 1:13 pm
Contact:

Re: scenarios

Post by generalmek »

i dont know lua, i thinking you use editor without programming. i can learn lua but its not for me. thank you all, anyway. think this topic will be nice for any who want make something interesting scenario pack
User avatar
Reygan
Fast Inserter
Fast Inserter
Posts: 177
Joined: Tue Jan 28, 2014 8:42 pm
Contact:

Re: scenarios

Post by Reygan »

FreeER wrote: ...
And since I don't believe the Wiki Modding Tutorial is linked to anywhere
...
Thank you very much for this link!! I have red whole modding part of wiki looking for any tutorials. But at least found only some mods. Well, looked over it...
Still i have many things misunderstood. Can you place a link on some of modding pages in wiki, so as to other factorio modders will not bloodly torturing google, like i am :)
Daniel V. Lenskiy
User avatar
Reygan
Fast Inserter
Fast Inserter
Posts: 177
Joined: Tue Jan 28, 2014 8:42 pm
Contact:

Re: scenarios

Post by Reygan »

generalmek wrote:i dont know lua, i thinking you use editor without programming. i can learn lua but its not for me. thank you all, anyway. think this topic will be nice for any who want make something interesting scenario pack
Если хочешь делать карты с сюжетом, то без кодинга тебе не обойтись, в факторио все что можно на луа. А без кодинга разве что просто карты в редакторе рисовать и все.
Если же захочешь найти какие нибудь мануалы по моддингу, то тут уже без английского никуда, да и самих манов на английском - кот наплакал :(
Я сам вон гугол уже второй день пытаю. Сейчас первый успешный улов, можно сказать.
Daniel V. Lenskiy
Post Reply

Return to “Modding help”