I'm trying for the first time to create a scenario in which I want to use some lua scripting to get story elements going on. I've tried 2 sets of examples (in the Wiki and the story-skeleton file in the core lualib) but they simply don't work when I try to launch a game.
I'm getting nil errors on either "story_init_helpers" (for the Wiki example) or "story" (for the story-skeleton). Are either examples supposed to work if simply plugged into a control.lua file or do they need something else? I'm trying to get them working in a freeplay environment with no mods in verion 1.0.0.
Wiki error message:
...Data/Roaming/Factorio/temp/currently-playing/control.lua:62: attempt to call global 'story_init_helpers' (a nil value)
stack traceback:
...Data/Roaming/Factorio/temp/currently-playing/control.lua:62: in main chunk
story-skeleton error message:
The scenario level caused a non-recoverable error.
Please report this error to the scenario author.
Error while running event level::on_pre_player_removed (ID 133)
__core__/lualib/story.lua:44: attempt to index local 'story' (a nil value)
stack traceback:
__core__/lualib/story.lua:44: in function 'story_update'
...Data/Roaming/Factorio/temp/currently-playing/control.lua:10: in function <...Data/Roaming/Factorio/temp/currently-playing/control.lua:9>
EDIT:
I've done some playing around and I feel like I'm missing something.
If I create a scenario using Freeplay and use "story_table" in the control lua file, it'll give me error messages like the previous ones.
If I create a scenario using the Tutorial 05, I'm able to use and modify the "story_table" in the control lua file, but if I replace the entire file with either examples from the Wiki or story-skeleton, the game will load but none of the story element in "story_table" will actually engage. If I only change the "story-table" part and leave the rest as is, everything works.
I've tried creating a Freeplay scenario and plug in the control, new-hope-util and final_screen lua files from the Tutorial 05 and that didn't work either.
So is it possible to have story element in a Freeplay environment or do I need to piggyback one of the other campaigns?
Scenario, lualib story how to?
Place to get help with not working mods / modding interface.
-
- Manual Inserter
- Posts: 1
- Joined: Wed Aug 19, 2020 12:41 pm
- Contact:
Jump to
- General
- ↳ Releases
- ↳ News
- ↳ General discussion
- ↳ Multiplayer
- ↳ Find Servers / Tools / Guides
- ↳ Show your Creations
- ↳ Videos
- ↳ Combinator Creations
- ↳ Mechanical Throughput Magic (circuit-free)
- ↳ Railway Setups
- ↳ Energy Production
- ↳ Medium/Big/Gigantic Sized Structures
- ↳ Fan Art
- ↳ Gameplay Help
- ↳ Spread the Word
- ↳ Off topic
- ↳ This Forum
- ↳ Celebration Party
- Support
- ↳ Gameplay Help
- ↳ Discover Factorio Wiki
- ↳ Discover Others Creations
- ↳ Discover Mods
- ↳ Discover Tools Around Factorio
- ↳ Technical Help
- ↳ Bug Reports
- ↳ Resolved for the next release
- ↳ Assigned
- ↳ Not a bug
- ↳ Pending
- ↳ 1 / 0 magic
- ↳ Duplicates
- ↳ Minor issues
- ↳ Desyncs with mods
- ↳ Won't fix.
- ↳ Resolved Problems and Bugs
- Factorio Direction
- ↳ Ideas and Suggestions
- ↳ Outdated/Not implemented
- ↳ Frequently Suggested / Link Collections
- ↳ Implemented Suggestions
- ↳ Development Proposals
- ↳ Balancing
- Contributions
- ↳ Mods
- ↳ Download mods
- ↳ Mod portal Discussion
- ↳ Mods
- ↳ Mod Packs / Libs / Special Interest
- ↳ 5dim's mod
- ↳ Angels Mods
- ↳ Atomic Power
- ↳ Bob's mods
- ↳ DyWorld
- ↳ F.A.R.L
- ↳ Fentus Challenge & Tool Mods
- ↳ Logistic Train Network
- ↳ MoMods
- ↳ Reika's Mods
- ↳ Resource Spawner Overhaul
- ↳ Yuoki Industries
- ↳ PyMods
- ↳ Questions, reviews and ratings
- ↳ Modding Discussions
- ↳ Modding discussion
- ↳ Modding help
- ↳ Ideas and Requests For Mods
- ↳ Modding interface requests
- ↳ Implemented mod requests
- ↳ Already exists
- ↳ Won't implement
- ↳ Documentation Improvement Requests
- ↳ Resolved Requests
- ↳ Development tools
- ↳ Tools
- ↳ Mod and installation managers
- ↳ Cheatsheets / Calculators / Viewers
- ↳ Development tools
- ↳ Special interest mods and libraries
- ↳ Modding Development
- ↳ Multiplayer / Dedicated Server
- ↳ Multiplayer Board
- ↳ Archive
- ↳ Maps and Scenarios
- ↳ Translations
- ↳ Texture Packs
- ↳ Fan Art
- ↳ Wiki Talk
- ↳ To be sorted
- ↳ Campaign / Scenario suggestions